-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Kyziq/matrepsukun
- Loading branch information
Showing
9 changed files
with
110 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import bobotimg from '../assets/images/4errorPage/404image.png'; | ||
|
||
const ErrorPage = () => { | ||
return ( | ||
<div className="flex flex-col justify-start items-start min-h-screen bg-gray-100 overflow-hidden p-10 ml-20"> | ||
<div className="flex items-center justify-between w-full p-10 ml-20"> | ||
<div className="p-10 ml-20"> | ||
<h1 className="text-4xl font-bold text-black-500 mb-10 mt-12"> | ||
ArtistryHub. | ||
</h1> | ||
<h2 className="text-3xl font-bold text-black-500 mb-5">404 Error.</h2> | ||
<h2 className="text-3xl font-bold text-red-500"> | ||
Oops! Something went wrong. | ||
</h2> | ||
<p className="font-bold text-gray-400 mt-3"> | ||
This page does not exist. | ||
</p> | ||
</div> | ||
<div className="text-6xl p-10 ml-20"> | ||
{' '} | ||
<img src={bobotimg} alt="Bot Image" />{' '} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ErrorPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { Tooltip } from '@nextui-org/react'; | ||
import { landscapesList } from '../data/list/landscapes-list'; | ||
import { paintingsList } from '../data/list/paintings-list'; | ||
import { portraitsList } from '../data/list/portraits-list'; | ||
import { abstractsList } from '../data/list/abstracts-list'; | ||
|
||
const Top = () => { | ||
// Combine all lists | ||
const combinedList = [ | ||
...landscapesList, | ||
...paintingsList, | ||
...portraitsList, | ||
...abstractsList, | ||
]; | ||
|
||
// Sort the combined list based on the "likes" attribute in descending order | ||
const sortedList = combinedList.sort((a, b) => b.likes - a.likes); | ||
|
||
// Limit the number of items to show in the Top Picks section | ||
const limitedTopPicksList = sortedList.slice(0, 18); | ||
|
||
return ( | ||
<div className="p-6"> | ||
<header className="text-2xl font-bold">ArtistryHub.</header> | ||
<p className="text-gray-700">Explore our world of creative designs.</p> | ||
|
||
<div className="mt-5"> | ||
<h2 className="text-2xl font-bold">Top Picks</h2> | ||
<br /> | ||
<div className="top-picks-container flex flex-wrap overflow-x-auto"> | ||
{limitedTopPicksList.map((item) => ( | ||
<Tooltip | ||
key={item.name} | ||
content={'View ' + item.name} | ||
placement="bottom" | ||
showArrow | ||
> | ||
<div className="flex flex-col items-center mr-3 mb-3"> | ||
<div className="w-48 h-48 rounded-lg overflow-hidden bg-white shadow-md border border-gray-300"> | ||
<img | ||
src={item.img} | ||
alt={item.name} | ||
className="object-cover w-full h-full" | ||
/> | ||
</div> | ||
</div> | ||
</Tooltip> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Top; |