From f8dbdef3910f97cd2519c5ab713acaf89f85fada Mon Sep 17 00:00:00 2001 From: abermack Date: Fri, 6 Dec 2024 14:29:14 -0500 Subject: [PATCH] started ticket --- src/app/private/admin/home/layout.tsx | 11 +++++++++++ src/app/private/admin/home/page.tsx | 16 ++++++++++++++++ src/app/private/home/layout.tsx | 11 +++++++++++ src/app/private/home/page.tsx | 13 +++++++++++++ src/app/private/layout.tsx | 2 +- src/app/private/logout/layout.tsx | 11 +++++++++++ src/app/private/logout/page.tsx | 11 +++++++++++ src/app/private/volunteer/home/layout.tsx | 11 +++++++++++ src/app/private/volunteer/home/page.tsx | 9 +++++++++ src/components/TopHeader.tsx | 2 +- 10 files changed, 95 insertions(+), 2 deletions(-) create mode 100644 src/app/private/admin/home/layout.tsx create mode 100644 src/app/private/admin/home/page.tsx create mode 100644 src/app/private/home/layout.tsx create mode 100644 src/app/private/home/page.tsx create mode 100644 src/app/private/logout/layout.tsx create mode 100644 src/app/private/logout/page.tsx create mode 100644 src/app/private/volunteer/home/layout.tsx create mode 100644 src/app/private/volunteer/home/page.tsx diff --git a/src/app/private/admin/home/layout.tsx b/src/app/private/admin/home/layout.tsx new file mode 100644 index 0000000..5927c11 --- /dev/null +++ b/src/app/private/admin/home/layout.tsx @@ -0,0 +1,11 @@ +import React from "react"; + +interface IAdminHomeLayoutProps { + children: React.ReactNode; +} + +const AdminHomeLayout = ({ children }: IAdminHomeLayoutProps) => { + return
{children}
; +}; + +export default AdminHomeLayout; diff --git a/src/app/private/admin/home/page.tsx b/src/app/private/admin/home/page.tsx new file mode 100644 index 0000000..5182710 --- /dev/null +++ b/src/app/private/admin/home/page.tsx @@ -0,0 +1,16 @@ +"use client"; + +import StatsCard from "@components/StatsCard"; +import TopHeader from "@components/TopHeader"; +import EventCard from "@components/EventCard"; + + +const AdminHomePage = () => { + return ( +
+ +
+ ); +}; + +export default AdminHomePage; diff --git a/src/app/private/home/layout.tsx b/src/app/private/home/layout.tsx new file mode 100644 index 0000000..5927c11 --- /dev/null +++ b/src/app/private/home/layout.tsx @@ -0,0 +1,11 @@ +import React from "react"; + +interface IAdminHomeLayoutProps { + children: React.ReactNode; +} + +const AdminHomeLayout = ({ children }: IAdminHomeLayoutProps) => { + return
{children}
; +}; + +export default AdminHomeLayout; diff --git a/src/app/private/home/page.tsx b/src/app/private/home/page.tsx new file mode 100644 index 0000000..3b67e31 --- /dev/null +++ b/src/app/private/home/page.tsx @@ -0,0 +1,13 @@ +"use client"; + +import StatsCard from "@components/StatsCard"; +import TopHeader from "@components/TopHeader"; +import EventCard from "@components/EventCard"; + +export default function Home() { + return ( +
+ +
+ ); +} diff --git a/src/app/private/layout.tsx b/src/app/private/layout.tsx index e76d279..4089a03 100644 --- a/src/app/private/layout.tsx +++ b/src/app/private/layout.tsx @@ -8,7 +8,7 @@ const HomeLayout = ({ children }: IHomeLayoutProps) => { return (
-
{children}
+
{children}
); }; diff --git a/src/app/private/logout/layout.tsx b/src/app/private/logout/layout.tsx new file mode 100644 index 0000000..5927c11 --- /dev/null +++ b/src/app/private/logout/layout.tsx @@ -0,0 +1,11 @@ +import React from "react"; + +interface IAdminHomeLayoutProps { + children: React.ReactNode; +} + +const AdminHomeLayout = ({ children }: IAdminHomeLayoutProps) => { + return
{children}
; +}; + +export default AdminHomeLayout; diff --git a/src/app/private/logout/page.tsx b/src/app/private/logout/page.tsx new file mode 100644 index 0000000..823bd7d --- /dev/null +++ b/src/app/private/logout/page.tsx @@ -0,0 +1,11 @@ +"use client"; + +import SideNavBar from "@components/SideNavBar"; + +export default function Logout() { + return ( +
+ +
+ ); +} diff --git a/src/app/private/volunteer/home/layout.tsx b/src/app/private/volunteer/home/layout.tsx new file mode 100644 index 0000000..b4a62a3 --- /dev/null +++ b/src/app/private/volunteer/home/layout.tsx @@ -0,0 +1,11 @@ +import React from "react"; + +interface VolunteerHomeLayoutProps { + children: React.ReactNode; +} + +const VolunteerHomeLayout = ({ children }: VolunteerHomeLayoutProps) => { + return
{children}
; +}; + +export default VolunteerHomeLayout; diff --git a/src/app/private/volunteer/home/page.tsx b/src/app/private/volunteer/home/page.tsx new file mode 100644 index 0000000..4288c82 --- /dev/null +++ b/src/app/private/volunteer/home/page.tsx @@ -0,0 +1,9 @@ +const VolunteerHomePage = () => { + return ( +
+

Volunteer Home

+
+ ); +}; + +export default VolunteerHomePage; diff --git a/src/components/TopHeader.tsx b/src/components/TopHeader.tsx index d5430db..b7cf08e 100644 --- a/src/components/TopHeader.tsx +++ b/src/components/TopHeader.tsx @@ -14,7 +14,7 @@ const TopHeader = ({ userType }: TopHeaderProps) => { const [isEnglish, setIsEnglish] = React.useState(true); return ( -
+