Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Director Nav Links #65

Open
wants to merge 12 commits into
base: dev
Choose a base branch
from
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const Page = () => {
return (
<div className="flex h-screen w-screen items-center justify-center">
Director Program Application
Director Ignite Applications
</div>
);
};
Expand Down
9 changes: 9 additions & 0 deletions src/app/director/[program]/assignments/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const Page = () => {
return (
<div className="flex h-screen w-screen items-center justify-center">
Director Assign Teams
</div>
);
};

export default Page;
9 changes: 9 additions & 0 deletions src/app/director/[program]/profile/[uid]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const Page = () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not add the pages yet, just need the navigation

return (
<div className="flex h-screen w-screen items-center justify-center">
Director User Profile
</div>
);
};

export default Page;
9 changes: 9 additions & 0 deletions src/app/director/[program]/view/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const Page = () => {
return (
<div className="flex h-screen w-screen items-center justify-center">
Director View Teams
</div>
);
};

export default Page;
9 changes: 9 additions & 0 deletions src/app/director/contacts/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const Page = () => {
return (
<div className="flex h-screen w-screen items-center justify-center">
Director Contacts
</div>
);
};

export default Page;
2 changes: 1 addition & 1 deletion src/app/director/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type LayoutProps = {

const Layout = ({ children }: LayoutProps) => {
return (
<div className="h-full">
<div className="flex h-full">
<Navigation links={links} />
{children}
</div>
Expand Down
9 changes: 9 additions & 0 deletions src/app/director/leads/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const Page = () => {
return (
<div className="flex h-screen w-screen items-center justify-center">
Director Leads
</div>
);
};

export default Page;
2 changes: 1 addition & 1 deletion src/components/global/navigation/side.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const SideNav = ({ links }: props) => {
<nav className="flex h-screen w-[10%] flex-col items-center bg-starlight-blue text-white">
<Image src={Logo} alt="Starlight Logo" />

<div className="w-full text-center">
<div className="flex w-full flex-col gap-2 text-center">
{links.map(({ link, name }, index) => (
<Link
key={index}
Expand Down
28 changes: 26 additions & 2 deletions src/data/director/navigation.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
export const links = [
{
name: "Interviews",
link: "/admin/interviews",
name: "Director",
link: "",
},
{
name: "Applications",
link: "/director/:program/application",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the link is dynamic, we should instead make each link a function which returns a string for the dynamically generated url

},
{
name: "Leads",
link: "/director/leads",
},
{
name: "Directors",
link: "/director/:program/profile/:uid",
},
{
name: "Assignments",
link: "/director/:program/assignments",
},
{
name: "View Teams",
link: "/director/:program/view",
},
{
name: "Email",
link: "/director/contacts",
},
];
Loading