From 907e2a0293f506f64a0eb458399f9af3d837539e Mon Sep 17 00:00:00 2001 From: Odafe Aror Date: Tue, 14 Nov 2023 14:46:59 +0000 Subject: [PATCH] update homepage --- .../src/app/dapp/components/right-sidebar.tsx | 76 +++++++++++++++++++ frontend/nextjs/src/app/dapp/layout.tsx | 68 +++++++++-------- frontend/nextjs/src/app/dapp/page.tsx | 21 +++-- .../nextjs/src/components/ui/post-card.tsx | 2 +- 4 files changed, 128 insertions(+), 39 deletions(-) create mode 100644 frontend/nextjs/src/app/dapp/components/right-sidebar.tsx diff --git a/frontend/nextjs/src/app/dapp/components/right-sidebar.tsx b/frontend/nextjs/src/app/dapp/components/right-sidebar.tsx new file mode 100644 index 0000000..08f8a11 --- /dev/null +++ b/frontend/nextjs/src/app/dapp/components/right-sidebar.tsx @@ -0,0 +1,76 @@ +import Link from "next/link" +import { cn } from "@/lib/utils" +import { Button } from "@/components/ui/button" +import { ScrollArea } from "@/components/ui/scroll-area" +import {HiOutlineHome, HiOutlineUser, HiOutlineEnvelope} from 'react-icons/hi2' + +interface SidebarProps extends React.HTMLAttributes { + +} + +const primaryNavigationLinks = [ + { + title: "Home", + icon: HiOutlineHome, + isActive: false, + href: "/dapp" + }, + { + title: "My Profile", + icon: HiOutlineUser, + isActive: false, + href: "/my-profile" + }, + { + title: "Notifications", + icon: HiOutlineEnvelope, + isActive: false, + href: "/notifications" + } +] + +export function RightSidebar({ className }: SidebarProps) { + return ( +
+
+
+
+ {primaryNavigationLinks.map((link, key)=> ( + + ))} +
+ +
+
+
+

+ Resources +

+
+ + + + +
+
+ +
+
+
+ ) +} \ No newline at end of file diff --git a/frontend/nextjs/src/app/dapp/layout.tsx b/frontend/nextjs/src/app/dapp/layout.tsx index dedb598..127d929 100644 --- a/frontend/nextjs/src/app/dapp/layout.tsx +++ b/frontend/nextjs/src/app/dapp/layout.tsx @@ -10,6 +10,7 @@ import { Search } from '@/components/ui/forms/search'; import { Button } from '@/components/ui/button'; import { HiOutlinePencilAlt } from "react-icons/hi" import DappProviders from './components/providers'; +import { ScrollArea } from "@/components/ui/scroll-area" export const metadata: Metadata = { title: 'MEMM! Homepage', @@ -23,43 +24,48 @@ export default function DappLayout({ return ( <> -
-
-
-

MEMM!

-
- - - -
-
+
+
+
+

MEMM!

+
+ + +
-
+
+ +
+ +
+
+
+
+ +
+ +
+ + {children} + -
-
-
-
- -
-
- {children} -
-
+
+
+
) diff --git a/frontend/nextjs/src/app/dapp/page.tsx b/frontend/nextjs/src/app/dapp/page.tsx index 6407b66..5f9403e 100644 --- a/frontend/nextjs/src/app/dapp/page.tsx +++ b/frontend/nextjs/src/app/dapp/page.tsx @@ -118,16 +118,23 @@ export default function RootLayout() {
- {dummyPosts.map((post, key) => { - return <> - - - - })} + {dummyPosts.map((post, key) => { + return <> + + + + })}
- {/* */} +
+ {dummyPosts.map((post, key) => { + return <> + + + + })} +
diff --git a/frontend/nextjs/src/components/ui/post-card.tsx b/frontend/nextjs/src/components/ui/post-card.tsx index 4535bca..8f2efba 100644 --- a/frontend/nextjs/src/components/ui/post-card.tsx +++ b/frontend/nextjs/src/components/ui/post-card.tsx @@ -51,7 +51,7 @@ const PostCard = ({data}: any) => { {`${post.title}