Skip to content

Commit

Permalink
started ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
abermack authored and wkim10 committed Dec 11, 2024
1 parent be0a093 commit f8dbdef
Show file tree
Hide file tree
Showing 10 changed files with 95 additions and 2 deletions.
11 changes: 11 additions & 0 deletions src/app/private/admin/home/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from "react";

interface IAdminHomeLayoutProps {
children: React.ReactNode;
}

const AdminHomeLayout = ({ children }: IAdminHomeLayoutProps) => {
return <div> {children} </div>;
};

export default AdminHomeLayout;
16 changes: 16 additions & 0 deletions src/app/private/admin/home/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"use client";

import StatsCard from "@components/StatsCard";
import TopHeader from "@components/TopHeader";
import EventCard from "@components/EventCard";


const AdminHomePage = () => {
return (
<div>
<TopHeader userType = "admin"></TopHeader>
</div>
);
};

export default AdminHomePage;
11 changes: 11 additions & 0 deletions src/app/private/home/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from "react";

interface IAdminHomeLayoutProps {
children: React.ReactNode;
}

const AdminHomeLayout = ({ children }: IAdminHomeLayoutProps) => {
return <div> {children} </div>;
};

export default AdminHomeLayout;
13 changes: 13 additions & 0 deletions src/app/private/home/page.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div className="w-full">
<TopHeader userType="admin"></TopHeader>
</div>
);
}
2 changes: 1 addition & 1 deletion src/app/private/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const HomeLayout = ({ children }: IHomeLayoutProps) => {
return (
<div className="flex min-h-screen">
<SideNavBar role="admin" />
<main className="flex-1 ml-60 p-6">{children}</main>
<main className="flex-1 ml-60">{children}</main>
</div>
);
};
Expand Down
11 changes: 11 additions & 0 deletions src/app/private/logout/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from "react";

interface IAdminHomeLayoutProps {
children: React.ReactNode;
}

const AdminHomeLayout = ({ children }: IAdminHomeLayoutProps) => {
return <div> {children} </div>;
};

export default AdminHomeLayout;
11 changes: 11 additions & 0 deletions src/app/private/logout/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"use client";

import SideNavBar from "@components/SideNavBar";

export default function Logout() {
return (
<div className="flex items-center justify-center h-screen">
<SideNavBar role="admin"/>
</div>
);
}
11 changes: 11 additions & 0 deletions src/app/private/volunteer/home/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from "react";

interface VolunteerHomeLayoutProps {
children: React.ReactNode;
}

const VolunteerHomeLayout = ({ children }: VolunteerHomeLayoutProps) => {
return <div> {children} </div>;
};

export default VolunteerHomeLayout;
9 changes: 9 additions & 0 deletions src/app/private/volunteer/home/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const VolunteerHomePage = () => {
return (
<div>
<h1> Volunteer Home</h1>
</div>
);
};

export default VolunteerHomePage;
2 changes: 1 addition & 1 deletion src/components/TopHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const TopHeader = ({ userType }: TopHeaderProps) => {
const [isEnglish, setIsEnglish] = React.useState(true);

return (
<div className="absolute top-0 flex flex-row w-screen border border-gray-200 py-5 px-6 place-content-between">
<div className="absolute fixed top-0 flex flex-row w-[calc(100%-15rem)] border border-gray-200 py-5 px-6 place-content-between">
<button className="flex flex-row gap-x-2 bg-teal-600 p-2.5 px-3 text-white rounded-md place-items-center">
<Icon icon={icon} width="20" height="20" />
{buttonText}
Expand Down

0 comments on commit f8dbdef

Please sign in to comment.