From 8a8240e9759038b101cbe7e863617e845c767b30 Mon Sep 17 00:00:00 2001 From: shye <113232835+justshye@users.noreply.github.com> Date: Fri, 17 May 2024 16:48:02 -0700 Subject: [PATCH 1/2] Add footer component --- src/components/ui/footer.jsx | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/components/ui/footer.jsx diff --git a/src/components/ui/footer.jsx b/src/components/ui/footer.jsx new file mode 100644 index 0000000..548f39d --- /dev/null +++ b/src/components/ui/footer.jsx @@ -0,0 +1,40 @@ +import React from 'react'; +import Link from 'next/link'; + +function Footer() { + return ( + + ); +} + +export default Footer; From add5229ed5fd9b99c006b6c2ed6341916a0fd0d1 Mon Sep 17 00:00:00 2001 From: shye <113232835+justshye@users.noreply.github.com> Date: Fri, 17 May 2024 16:48:16 -0700 Subject: [PATCH 2/2] Replace hard-coded footer with component --- src/app/page.js | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/src/app/page.js b/src/app/page.js index a469216..8f385d6 100644 --- a/src/app/page.js +++ b/src/app/page.js @@ -10,6 +10,7 @@ import React from 'react'; import { useUser } from '@auth0/nextjs-auth0/client'; import { redirect } from 'next/navigation'; import Navbar from '@/components/ui/navbar'; +import Footer from '@/components/ui/footer'; export default function Component() { const { user, error } = useUser(); @@ -108,37 +109,7 @@ export default function Component() { - +