From 207ea184e288f1aca3c348d04e245f3fb6ce97f8 Mon Sep 17 00:00:00 2001 From: Pattadon Date: Wed, 20 Nov 2024 10:23:20 +0700 Subject: [PATCH] feat: enhance About page layout and add Calendar icon for authenticated users --- src/app/(legal)/about/page.tsx | 104 ++++++++++-------- .../navigationBar/AuthenticatedComponents.tsx | 32 +++++- 2 files changed, 82 insertions(+), 54 deletions(-) diff --git a/src/app/(legal)/about/page.tsx b/src/app/(legal)/about/page.tsx index f17f09e..9bd8437 100644 --- a/src/app/(legal)/about/page.tsx +++ b/src/app/(legal)/about/page.tsx @@ -46,59 +46,67 @@ export default function About() { }; return ( -
-
-

Growth opportunities for all sides

-

of the investment market

-

- B2DVentures is where both accredited and non-accredited investors meet -

-

entrepreneurs and access high-growth potential deals across a range

-

of private markets.

-
-
-
+
+
+
+

Growth opportunities for all sides

+

of the investment market

+

+ B2DVentures is where both accredited and non-accredited investors meet +

+

+ entrepreneurs and access high-growth potential deals across a range +

+

of private markets.

+
+
+
+ + + +
+ - -
- - +
+
+

Built by a diverse team with deep

+

expertise in private investing

{/*
diff --git a/src/components/navigationBar/AuthenticatedComponents.tsx b/src/components/navigationBar/AuthenticatedComponents.tsx index 1a9a004..4ddbe33 100644 --- a/src/components/navigationBar/AuthenticatedComponents.tsx +++ b/src/components/navigationBar/AuthenticatedComponents.tsx @@ -10,7 +10,7 @@ import { DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; -import { Bell, Heart, Wallet, ChartPie } from "lucide-react"; +import { Bell, Heart, Wallet, ChartPie, CalendarClock } from "lucide-react"; import { LogoutButton } from "@/components/auth/logoutButton"; import { useUserRole } from "@/hooks/useUserRole"; import CustomTooltip from "../customToolTip"; @@ -54,13 +54,25 @@ export const AuthenticatedComponents = ({ uid, avatarUrl, notificationCount }: A + {data?.role === "investor" && ( +
+ + + + + +
+ )} + {/*chart pie icon for bussiness's dashboard */} {data?.role === "business" && ( - - - - - +
+ + + + + +
)} @@ -86,6 +98,14 @@ export const AuthenticatedComponents = ({ uid, avatarUrl, notificationCount }: A Admin )} + {data?.role === "business" && ( + <> + + Calendar + + + + )} {data != null && data != undefined && data.role === "business" && ( Dataroom