From b43f980e2b1af4f1f5a0cb7b084a002b79a18687 Mon Sep 17 00:00:00 2001 From: wlren Date: Fri, 7 Oct 2022 12:31:47 +0800 Subject: [PATCH] [questions][feat] add nav bar --- apps/portal/public/logo.svg | 39 +++++++++++++ .../src/components/questions/NavBar.tsx | 56 +++++++++++++++++++ apps/portal/src/pages/questions/index.tsx | 6 +- 3 files changed, 100 insertions(+), 1 deletion(-) create mode 100644 apps/portal/public/logo.svg create mode 100644 apps/portal/src/components/questions/NavBar.tsx diff --git a/apps/portal/public/logo.svg b/apps/portal/public/logo.svg new file mode 100644 index 00000000..ed21574f --- /dev/null +++ b/apps/portal/public/logo.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/portal/src/components/questions/NavBar.tsx b/apps/portal/src/components/questions/NavBar.tsx new file mode 100644 index 00000000..4e53cfc2 --- /dev/null +++ b/apps/portal/src/components/questions/NavBar.tsx @@ -0,0 +1,56 @@ +import Link from 'next/link'; + +const navigation = [ + { href: '/questions/landing', name: 'Landing' }, + { href: '#', name: 'Home' }, + { href: '#', name: 'My Lists' }, + { href: '#', name: 'My Questions' }, + { href: '#', name: 'History' }, +]; + +export default function NavBar() { + return ( +
+ +
+ ); +} diff --git a/apps/portal/src/pages/questions/index.tsx b/apps/portal/src/pages/questions/index.tsx index 5f11a28f..eaf1b769 100644 --- a/apps/portal/src/pages/questions/index.tsx +++ b/apps/portal/src/pages/questions/index.tsx @@ -1,10 +1,14 @@ import ContributeQuestionCard from '~/components/questions/ContributeQuestionCard'; +import NavBar from '~/components/questions/NavBar'; import QuestionOverviewCard from '~/components/questions/QuestionOverviewCard'; import QuestionSearchBar from '~/components/questions/QuestionSearchBar'; export default function QuestionsHomePage() { return ( -
+
+
+ +