Skip to content

Feature/kevinkatelyn/navigation bar #17

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

Merged
merged 10 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file added backend/.DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions frontend/public/Color=Default.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Inter, Open_Sans, Roboto_Slab } from "next/font/google";
import type { Metadata } from "next";

import "./globals.css";

import { HeaderBar } from "@/components/HeaderBar";
import Footer from "@/components/footer";

// const inter = Inter({ subsets: ["latin"] });
Expand Down Expand Up @@ -40,6 +42,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
`}
>
<body>
<HeaderBar />
{children}
<Footer />
</body>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ export default function Home() {
rel="noopener noreferrer"
>
By{" "}
<Image
{/* <Image
src="/vercel.svg"
alt="Vercel Logo"
className="dark:invert"
width={100}
height={24}
priority
/>
/> */}
</a>
</div>
</div>
Expand Down
251 changes: 251 additions & 0 deletions frontend/src/components/HeaderBar.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
.headerBar {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 0px 96px;
gap: 10px;

position: relative;
width: 100%;
height: 107px;

background: #ffffff;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

/* Logo */
.logo {
width: 196px;
height: 69.54px;

position: absolute;
left: 64px;

/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
}

/* Container for About Us, Get Involved, Our Impact, and Donate*/
.txtContainer {
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
padding: 0px;
gap: 48px;

position: absolute;
right: 128px;

width: 541px;
height: 48px;
}

/* About Us */
.aboutUs {
width: 75px;
height: 24px;

/* Body/Normal (Bold) */
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 24px;
letter-spacing: 0.03em;
text-decoration: none;
color: #000000;

flex: none;
order: 0;
flex-grow: 0;
padding-bottom: 100px;
margin-bottom: -75px;
}

/* Get Involved */
.getInvolved {
width: 105px;
height: 24px;

/* Body/Normal (Bold) */
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 24px;
letter-spacing: 0.03em;
color: #000000;

flex: none;
order: 1;
flex-grow: 0;
padding-bottom: 100px;
margin-bottom: -75px;
}

/* Our Impact */
.ourImpact {
width: 94px;
height: 24px;

/* Body/Normal (Bold) */
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 24px;
letter-spacing: 0.03em;
color: #000000;

flex: none;
order: 2;
flex-grow: 0;
padding-bottom: 100px;
margin-bottom: -75px;
}

/* Button */
.button {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;

/* Primary */
background: #694c97;
border-radius: 4px;
padding: 12px 24px 8px;
gap: 6px;
width: 123px;
height: 48px;
order: 3;
}

/* Body/Medium (Bold) */
.buttonBody {
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 550;
font-size: 20px;
line-height: 30px;
letter-spacing: 1px;

/* Center align text */
text-align: center;

/* Neutral/White */
color: #ffffff;
}

/* Dropdown styles for About Us */
.aboutUsDropdown {
display: none;
position: absolute;
top: 77px;
right: 402px;
background-color: #fff;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
z-index: 1;
width: 163px;
max-height: 156px; /* Set your preferred max height */
overflow-y: auto; /* Enable vertical scroll if content exceeds max height */
}

.aboutUs:hover {
color: #743eb6; /* Set your preferred hover color */
}

.aboutUs:hover .aboutUsDropdown {
display: block;
}

.aboutUsDropdown a {
color: black;
padding: 14px 48px 14px 24px;
text-decoration: none;
display: block;
font-family: "Open Sans", sans-serif;
font-size: 16px;
font-weight: 300;
}

.aboutUsDropdown a:hover {
background-color: #f1f1f1;
}

/* Dropdown styles getinvolved */
.getInvolvedDropdown {
display: none;
position: absolute;
top: 77px;
right: 221px;
background-color: #fff;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
z-index: 1;
width: 202px; /* Set your preferred width */
max-height: 104px; /* Set your preferred max height */
overflow-y: auto; /* Enable vertical scroll if content exceeds max height */
}

.getInvolved:hover {
color: #743eb6; /* Set your preferred hover color */
}

.getInvolved:hover .getInvolvedDropdown {
display: block;
}

.getInvolvedDropdown a {
color: black;
padding: 14px 48px 14px 24px;
text-decoration: none;
display: block;
font-family: "Open Sans", sans-serif;
font-size: 16px;
font-weight: 300;
white-space: nowrap;
}

.getInvolvedDropdown a:hover {
background-color: #f1f1f1;
}

/* Dropdown styles Our Impact */
.ourImpactDropdown {
display: none;
position: absolute;
top: 77px;
right: 115px;
background-color: #fff;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
z-index: 1;
width: 167px; /* Set your preferred width */
max-height: 104px; /* Set your preferred max height */
overflow-y: auto; /* Enable vertical scroll if content exceeds max height */
}

.ourImpact:hover {
color: #743eb6; /* Set your preferred hover color */
}

.ourImpact:hover .ourImpactDropdown {
display: block;
}

.ourImpactDropdown a {
color: black;
padding: 14px 48px 14px 24px;
text-decoration: none;
display: block;
font-family: "Open Sans", sans-serif;
font-size: 16px;
font-weight: 300;
}

.ourImpactDropdown a:hover {
background-color: #f1f1f1;
}
49 changes: 49 additions & 0 deletions frontend/src/components/HeaderBar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import Link from "next/link";
import React from "react";

import styles from "./HeaderBar.module.css";

export const HeaderBar = () => {
return (
<div className={styles.headerBar}>
<div className={styles.logo}>
<img className={styles.logo} src="/Color=Default.svg" alt="Default Logo"></img>
</div>
<div className={styles.txtContainer}>
{/* Use the dropdown styles for "About Us" */}
<div className={styles.aboutUs}>
About Us
<div className={styles.aboutUsDropdown}>
<Link href="/">Our Mission</Link>
<Link href="/">Our Team</Link>
<Link href="/">Contact</Link>
</div>
</div>

{/* Use the dropdown styles for "get Involved" */}
<div className={styles.getInvolved}>
Get Involved
<div className={styles.getInvolvedDropdown}>
<Link href="/">Upcoming Events</Link>
<Link href="/">Donate</Link>
</div>
</div>

{/* Use the dropdown styles for "Our Impact" */}
<div className={styles.ourImpact}>
Our Impact
<div className={styles.ourImpactDropdown}>
<Link href="/">Testimonials</Link>
<Link href="/">Newsletter</Link>
</div>
</div>

<div className={styles.button}>
<button>
<span className={styles.buttonBody}>Donate</span>
</button>
</div>
</div>
</div>
);
};