From c2c81ac08b69befabe016d650f14ec89ae9c8525 Mon Sep 17 00:00:00 2001 From: Pattadon Date: Fri, 13 Sep 2024 13:39:00 +0700 Subject: [PATCH] Refactor UI components, remove unused imports ,update hover animation duration and create notification page --- src/app/invest/page.tsx | 1 - src/app/notification/page.tsx | 28 ++++++++++++++++++++++++++++ src/components/extendableCard.tsx | 2 +- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 src/app/notification/page.tsx diff --git a/src/app/invest/page.tsx b/src/app/invest/page.tsx index 3353708..b9ac22e 100644 --- a/src/app/invest/page.tsx +++ b/src/app/invest/page.tsx @@ -18,7 +18,6 @@ import { ShareIcon, StarIcon } from "lucide-react"; import { Toaster, toast } from "react-hot-toast"; import useSession from "@/lib/supabase/useSession"; import { redirect } from "next/navigation"; -import { Skeleton } from "@/components/ui/skeleton"; import { Tooltip, TooltipContent, diff --git a/src/app/notification/page.tsx b/src/app/notification/page.tsx new file mode 100644 index 0000000..e4433c5 --- /dev/null +++ b/src/app/notification/page.tsx @@ -0,0 +1,28 @@ +"use client"; + +import { Card, CardContent } from "@/components/ui/card"; + +export default function Notification() { + const sampleNotifications = [ + { message: "New message from John Doe", time: "5 minutes ago" }, + { message: "Your order has been shipped", time: "2 hours ago" }, + { message: "Meeting reminder: Team sync at 3 PM", time: "1 day ago" }, + ]; + return ( +
+
+

Notifications

+
+ {/* Cards */} + + + + 1 + + + +
+
+
+ ); +} diff --git a/src/components/extendableCard.tsx b/src/components/extendableCard.tsx index 933ee9d..f266e69 100644 --- a/src/components/extendableCard.tsx +++ b/src/components/extendableCard.tsx @@ -57,7 +57,7 @@ export function ExtendableCard(props: ExtendableCardProps) { {/* Hover content (appears when hovered) */} -
+

{props.description}