From b370235a4c5e5a1f78b37f83cdd5993d4bba037c Mon Sep 17 00:00:00 2001 From: Haziq Khairi Date: Wed, 10 Jan 2024 20:07:00 +0800 Subject: [PATCH] refactor: routing and more art --- src/App.jsx | 6 ------ src/pages/MoreArt.jsx | 21 ++++++++++++--------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 7eb6932..a86158f 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -11,18 +11,12 @@ function App() { return (
- {/* Navigation Bar */} {/* Route Definitions */} - {/* Home Page */} } /> - - {/* Top Picks Page */} } /> - - {/* Art Description Page */} } /> {/* Fallback Error Page for Unmatched Routes */} diff --git a/src/pages/MoreArt.jsx b/src/pages/MoreArt.jsx index 7cbb9e3..406f7c9 100644 --- a/src/pages/MoreArt.jsx +++ b/src/pages/MoreArt.jsx @@ -26,8 +26,6 @@ import { MdOutlineReport } from 'react-icons/md'; export default function MoreArt() { const fixedWidth = '250px'; - const iconClasses = - 'text-sm text-default-500 pointer-events-none flex-shrink-0'; const shareUrl = 'http://github.com'; const title = 'GitHub'; @@ -48,8 +46,7 @@ export default function MoreArt() { }; return ( -
-

More Arts

+
{Object.values(allLists).map((categoryList, categoryIndex) => (
@@ -58,7 +55,6 @@ export default function MoreArt() { key={index} shadow="sm" isPressable - onPress={() => console.log('item pressed')} className="relative overflow-hidden inline-block group transition-opacity duration-300 hover:opacity-90" style={{ margin: '0 0 1.5em', @@ -66,6 +62,7 @@ export default function MoreArt() { height: '100%', }} > + {/* Card Header */}
@@ -87,6 +84,7 @@ export default function MoreArt() {
+ {/* Image Component */} + + {/* Card Footer */}
@@ -163,7 +163,7 @@ export default function MoreArt() { handleDownload(item.img, item.name)} - startContent={} + startContent={ + + } > - Download image + Download } >