From 55afcdec70da617b5f263359fc788aae46249adf Mon Sep 17 00:00:00 2001 From: Aaron William Po Date: Tue, 9 May 2023 08:36:05 -0400 Subject: [PATCH] Begin work on account page --- src/pages/account/index.tsx | 57 +++++++++++++++++++++++++++++++++++-- 1 file changed, 54 insertions(+), 3 deletions(-) diff --git a/src/pages/account/index.tsx b/src/pages/account/index.tsx index bdf5020..4ee92a8 100644 --- a/src/pages/account/index.tsx +++ b/src/pages/account/index.tsx @@ -1,13 +1,64 @@ +import UserContext from '@/contexts/userContext'; +import withPageAuthRequired from '@/util/withPageAuthRequired'; import { NextPage } from 'next'; +import { useContext } from 'react'; +import { Tab } from '@headlessui/react'; +import Head from 'next/head'; + interface AccountPageProps {} const AccountPage: NextPage = () => { + const { user } = useContext(UserContext); + return ( -
-

Account Page

-
+ <> + + Your Account | The Biergarten App + + +
+
+
+
+
+
+ +
+

Hello, {user?.username}!

+

Welcome to your account page.

+
+
+ +
+ + + + Settings + + + Account Info + + + Your Posts + + + + Content 1 + Content 2 + Content 3 + + +
+
+
+ ); }; export default AccountPage; + +export const getServerSideProps = withPageAuthRequired();