From e847d04a7f6b5521de5d2cccedbff17e27206d01 Mon Sep 17 00:00:00 2001 From: Johnny Tan Date: Thu, 12 Dec 2024 05:17:55 -0500 Subject: [PATCH] Media and profile header links --- src/components/SideNavBar.tsx | 53 ++++++++++++++++++++++------------- src/components/TopHeader.tsx | 17 ++++++----- 2 files changed, 44 insertions(+), 26 deletions(-) diff --git a/src/components/SideNavBar.tsx b/src/components/SideNavBar.tsx index e6db6ba..27bf57e 100644 --- a/src/components/SideNavBar.tsx +++ b/src/components/SideNavBar.tsx @@ -50,6 +50,33 @@ const SideNavBar = ({ user }: SideNavBarProps) => { const tabs = user.role === Role.ADMIN ? adminTabs : volunteerTabs; + const mediaTabs = [ + { + name: "Facebook", + icon: "gg:facebook", + link: "https://www.facebook.com/breadandroseslawrence/", + }, + { + name: "Instagram", + icon: "ph:instagram-logo", + link: "https://www.instagram.com/breadandroseslawrence/", + }, + { + name: "Twitter", + icon: "fa6-brands:x-twitter", + link: "https://x.com/breadandroses58", + }, + { + name: "Vimeo", + icon: "mdi:vimeo", + link: "https://vimeo.com/breadandroses", + }, + { + name: "LinkedIn", + icon: "akar-icons:linkedin-fill", + link: "https://www.linkedin.com/company/breadandrosescommunitykitchen/", + }, + ]; return (
@@ -90,25 +117,13 @@ const SideNavBar = ({ user }: SideNavBarProps) => {
- - - - - - - - - + {mediaTabs.map((tab, index) => { + return ( + + + + ); + })}
diff --git a/src/components/TopHeader.tsx b/src/components/TopHeader.tsx index fe5aca5..e748807 100644 --- a/src/components/TopHeader.tsx +++ b/src/components/TopHeader.tsx @@ -6,6 +6,7 @@ import React from "react"; import { VolunteerDetails } from "../types/next-auth"; import UserAvatar from "./UserAvatar"; import { usePathname } from "next/navigation"; +import Link from "next/link"; interface TopHeaderProps { user: { @@ -68,13 +69,15 @@ const TopHeader = ({ user }: TopHeaderProps) => {

EN

- -
-

- {user.firstName} {user.lastName} -

-

{user.role.toLowerCase()}

-
+ + +
+

+ {user.firstName} {user.lastName} +

+

{user.role.toLowerCase()}

+
+
);