From acc38cc73e1a84fbda36416d259133d46d4026fd Mon Sep 17 00:00:00 2001 From: EvanLin3141 Date: Thu, 6 Feb 2025 18:56:33 +0000 Subject: [PATCH] MISC: Styles change --- frontend/src/components/Layout/ListRow.tsx | 14 ++++++++------ frontend/src/pages/HomePage.tsx | 3 +++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/Layout/ListRow.tsx b/frontend/src/components/Layout/ListRow.tsx index 3c50446..8a227ef 100644 --- a/frontend/src/components/Layout/ListRow.tsx +++ b/frontend/src/components/Layout/ListRow.tsx @@ -15,6 +15,7 @@ interface ListRowProps { title: string; description: string; items: ListItemProps[]; + extraClasses?: string; onClick: (itemId: number, itemName: string) => void; } @@ -43,10 +44,10 @@ const ListItem: React.FC = ({
)}
-
+

{title}

- {type === "stream" &&

{streamer}

} -

{viewers} viewers

+ {type === "stream" &&

{streamer}

} +

{viewers} viewers

); @@ -58,12 +59,13 @@ const ListRow: React.FC = ({ description, items, onClick, + extraClasses="", }) => { return ( -
+
-

{title}

-

{description}

+

{title}

+

{description}

{items.map((item) => ( diff --git a/frontend/src/pages/HomePage.tsx b/frontend/src/pages/HomePage.tsx index c2b6dfc..3ba9e2f 100644 --- a/frontend/src/pages/HomePage.tsx +++ b/frontend/src/pages/HomePage.tsx @@ -43,6 +43,7 @@ const HomePage: React.FC = ({ variant = "default" }) => { } items={featuredStreams} onClick={handleStreamClick} + extraClasses="border border-gray-700 bg-[#FF7F50]/80" /> {/* If Personalised_HomePage, display Categories the logged-in user follows. Else, trending categories. */} @@ -60,6 +61,8 @@ const HomePage: React.FC = ({ variant = "default" }) => { } items={featuredCategories} onClick={handleCategoryClick} + extraClasses="border border-gray-700 bg-[#5AFF75]/80" + />
);