From 3a0f5fa0bbc907e81a0ddf2f8728a36761499928 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sat, 7 Jun 2025 17:03:02 +0000 Subject: feat(ui): Improve the look of the public bookmarks page --- .../components/public/lists/PublicListHeader.tsx | 64 ++++++++++++++++++++-- 1 file changed, 59 insertions(+), 5 deletions(-) (limited to 'apps/web/components/public') diff --git a/apps/web/components/public/lists/PublicListHeader.tsx b/apps/web/components/public/lists/PublicListHeader.tsx index 1f016351..acdb845a 100644 --- a/apps/web/components/public/lists/PublicListHeader.tsx +++ b/apps/web/components/public/lists/PublicListHeader.tsx @@ -1,17 +1,71 @@ +import Link from "next/link"; +import KarakeepLogo from "@/components/KarakeepIcon"; +import { buttonVariants } from "@/components/ui/button"; +import { BookmarkIcon, RssIcon } from "lucide-react"; + export default function PublicListHeader({ list, }: { list: { id: string; + name: string; + description: string | null | undefined; + icon: string; + ownerName: string; numItems: number; }; }) { + const rssLink = `/api/v1/rss/lists/${list.id}`; return ( -
- -

- {list.numItems} bookmarks -

+
+
+ +
+ {/* Header */} +
+ + {list.icon} + +
+

+ {list.name} +

+ {list.description && list.description.length > 0 && ( +

+ {list.description} +

+ )} +
+
+ {/* Created by */} +
+
+ {list.ownerName[0]?.toUpperCase()} +
+
+

Created by

+

{list.ownerName}

+
+
+
+ {/* Options */} +
+
+ + {list.numItems} bookmarks +
+ + + +
+
); } -- cgit v1.2.3-70-g09d2