-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: create navigation bar * feat: create footer * refactor: font, dependencies, scss, footer * fix: navbar on mobile * refactor: added routes and other small changes * feat: active page link has corresponding color * feat: add ZotHacks logo * fix: use responsive css and add bold weight * chore: use absolute asset path for navbar background * fix: logo moves upon navbar expansion and navbar is fixed to top of the screen * refactor: clean up css and use bootstrap grid * fix: remove horizontal scroll * fix: switch Twitter to Hack and SVG to PNG * fix: move Hack to front of footer --------- Co-authored-by: Alexander Liu <a@alexanderliu.com> feat: text centered feat: added apply button svg to assets Bootstrap Sass Organization (#17) * feat: bootstrap sass organization * fix: installed bootstrap * fix: import font from Next instead of Google Fonts * fix: update red hex value correctly * linting * fix: custom CSS property for font * fix: sass partials * fix: new sass path, incorporated navbar and footer * fix: removed comment --------- Co-authored-by: Tyler Yu <tyleryy@uci.edu> feat: apply button
- Loading branch information
Showing
30 changed files
with
527 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,4 @@ | |
"prettier": "^2.8.8", | ||
"typescript": "^4.9.5" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
const path = require("path"); | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
sassOptions: { | ||
includePaths: [path.join(__dirname, "src", "lib", "styles")], | ||
}, | ||
}; | ||
|
||
module.exports = nextConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { Landing as default } from "@/views"; | ||
export { Landing as default } from "@/views"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { Resources as default } from "@/views"; | ||
export { Resources as default } from "@/views"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { Schedule as default } from "@/views"; | ||
export { Schedule as default } from "@/views"; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.footer { | ||
padding-bottom: 7vw; | ||
} | ||
|
||
.text { | ||
font-size: 1.5rem; | ||
font-weight: bold; | ||
color: black; | ||
text-align: center; | ||
margin-bottom: 0; | ||
} | ||
|
||
.socials { | ||
margin: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
"use client"; | ||
|
||
import Image from "next/image"; | ||
|
||
import styles from "./Footer.module.scss"; | ||
|
||
import Mail from "@/assets/icons/mail.png"; | ||
import Facebook from "@/assets/icons/facebook.png"; | ||
import Instagram from "@/assets/icons/insta.png"; | ||
import Hack from "@/assets/icons/hack.png"; | ||
|
||
type Social = { | ||
icon: any; | ||
link: string; | ||
alt: string; | ||
width: number; | ||
height: number; | ||
}; | ||
|
||
const SOCIALS: Social[] = [ | ||
{ | ||
icon: Hack, | ||
link: "https://hack.ics.uci.edu/", | ||
alt: "Hack at UCI", | ||
width: 70, | ||
height: 70, | ||
}, | ||
{ | ||
icon: Mail, | ||
link: "mailto:hack@uci.edu", | ||
alt: "Mail", | ||
width: 79, | ||
height: 59, | ||
}, | ||
{ | ||
icon: Facebook, | ||
link: "https://www.facebook.com/UCI.Hack/", | ||
alt: "Facebook", | ||
width: 59, | ||
height: 59, | ||
}, | ||
{ | ||
icon: Instagram, | ||
link: "https://www.instagram.com/hackatuci/", | ||
alt: "Instagram", | ||
width: 69, | ||
height: 72, | ||
}, | ||
]; | ||
|
||
export default function Footer() { | ||
return ( | ||
<footer className={styles.footer}> | ||
<p className={styles.text}>Made with <3 in Irvine, CA - Hack @ UCI</p> | ||
<div className="text-center"> | ||
{SOCIALS.map(({ icon, link, alt, width, height }) => ( | ||
<a key={link} href={link} target="_blank" className={styles.socials}> | ||
<Image src={icon.src} alt={alt} width={width} height={height} /> | ||
</a> | ||
))} | ||
</div> | ||
</footer> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
@use "bootstrap-utils" as utils; | ||
|
||
.nav { | ||
position: sticky; | ||
width: 100%; | ||
filter: drop-shadow(0px 2.5px 2px rgba(0, 0, 0, 0.4)); | ||
} | ||
|
||
.navbar { | ||
background-image: url("~@/assets/images/lined_paper.png"); | ||
background-size: cover; | ||
background-position: left bottom; | ||
background-repeat: no-repeat; | ||
} | ||
|
||
.logo { | ||
position: absolute; | ||
left: 30px; | ||
width: 20vw; | ||
height: 20vw; | ||
text-align: center; | ||
transform: rotate(-16.81deg) translateY(-5vw); | ||
} | ||
|
||
.text { | ||
margin-left: 1vw; | ||
margin-right: 1vw; | ||
font-size: 2rem; | ||
font-weight: bold; | ||
text-decoration: none; | ||
} | ||
|
||
.notActive { | ||
@extend .text; | ||
color: black; | ||
} | ||
|
||
.homeActive { | ||
@extend .text; | ||
color: utils.$green; | ||
} | ||
|
||
.resourcesActive { | ||
@extend .text; | ||
color: utils.$blue; | ||
} | ||
|
||
.scheduleActive { | ||
@extend .text; | ||
color: utils.$navbar-red; | ||
} | ||
|
||
@include utils.media-breakpoint-down(md) { | ||
.logo { | ||
left: 3vw; | ||
transform: rotate(-16.81deg) translateY(-6vw); | ||
} | ||
.text { | ||
font-size: 1.5rem; | ||
} | ||
} | ||
|
||
@include utils.media-breakpoint-up(lg) { | ||
.logo { | ||
width: 180px; | ||
height: 180px; | ||
transform: rotate(-16.81deg) translateY(-50px); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
"use client"; | ||
|
||
import { usePathname } from "next/navigation"; | ||
import Link from "next/link"; | ||
import Image from "next/image"; | ||
|
||
import Container from "react-bootstrap/Container"; | ||
import Nav from "react-bootstrap/Nav"; | ||
import Navbar from "react-bootstrap/Navbar"; | ||
|
||
import ZotHacksLogo from "@/assets/icons/zothacks-logo.png"; | ||
|
||
import styles from "./NavBar.module.scss"; | ||
|
||
export default function NavBar() { | ||
const activeRoute = usePathname(); | ||
|
||
return ( | ||
<nav className={styles.nav}> | ||
<Navbar expand="md" className={`bg-body-tertiary ${styles.navbar}`}> | ||
<Container fluid> | ||
<Navbar.Brand /> | ||
<Navbar.Toggle aria-controls="basic-navbar-nav" /> | ||
<Navbar.Collapse id="basic-navbar-nav"> | ||
<Nav className="ms-auto text-center"> | ||
<Link | ||
href="/" | ||
className={ | ||
activeRoute === "/" ? styles.homeActive : styles.notActive | ||
} | ||
> | ||
Home | ||
</Link> | ||
<Link | ||
href="/resources" | ||
className={ | ||
activeRoute === "/resources" | ||
? styles.resourcesActive | ||
: styles.notActive | ||
} | ||
> | ||
Resources | ||
</Link> | ||
<Link | ||
href="/schedule" | ||
className={ | ||
activeRoute === "/schedule" | ||
? styles.scheduleActive | ||
: styles.notActive | ||
} | ||
> | ||
Schedule | ||
</Link> | ||
</Nav> | ||
</Navbar.Collapse> | ||
</Container> | ||
</Navbar> | ||
<Link href="/"> | ||
<div className={styles.logo}> | ||
<Image src={ZotHacksLogo.src} alt="ZotHacks Logo" fill /> | ||
</div> | ||
</Link> | ||
</nav> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"use client"; | ||
|
||
import { Fuzzy_Bubbles } from "next/font/google"; | ||
|
||
const fuzzy = Fuzzy_Bubbles({ | ||
weight: ["400", "700"], | ||
subsets: ["latin"], | ||
}); | ||
|
||
export default function FontProvider() { | ||
return ( | ||
<style jsx global> | ||
{` | ||
:root { | ||
--next-font-fuzzy-bubbles: ${fuzzy.style.fontFamily}; | ||
} | ||
`} | ||
</style> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@import "./zothacks-theme"; | ||
|
||
@import "~bootstrap/scss/functions"; | ||
@import "~bootstrap/scss/variables"; | ||
@import "~bootstrap/scss/variables-dark"; | ||
@import "~bootstrap/scss/maps"; | ||
@import "~bootstrap/scss/mixins"; | ||
@import "~bootstrap/scss/utilities"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Core configuration with overrides | ||
@import "./bootstrap-utils"; | ||
|
||
/* Layout & components */ | ||
@import "~bootstrap/scss/root"; | ||
@import "~bootstrap/scss/reboot"; | ||
@import "~bootstrap/scss/type"; | ||
|
||
@import "~bootstrap/scss/images"; | ||
@import "~bootstrap/scss/containers"; | ||
@import "~bootstrap/scss/grid"; | ||
|
||
/* Components */ | ||
@import "~bootstrap/scss/buttons"; | ||
@import "~bootstrap/scss/transitions"; | ||
@import "~bootstrap/scss/nav"; | ||
@import "~bootstrap/scss/navbar"; | ||
@import "~bootstrap/scss/card"; | ||
@import "~bootstrap/scss/accordion"; | ||
|
||
/* Helpers */ | ||
@import "~bootstrap/scss/helpers"; | ||
|
||
/* Utilities */ | ||
@import "~bootstrap/scss/utilities/api"; |
Oops, something went wrong.