-
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: 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 <[email protected]> Add tiling anteater head background art (#25) - Make diagonally tiling base asset to use native CSS background repeat - Embed white background to minimize opaque file size (no transparency) - The resulting GIF uses 8 colors with dithering Co-authored-by: Taesung Hwang <[email protected]> Set up Home page content including Landing (#21) Set up Home page content including Landing - Reorganize Landing into Home - To match common naming, rename primary page to Home - Landing is now the first view of the Home page - Wrap primary layout children in `<main>` - Use container layout for Home page sections - Add `Container` elements for sections w/ responsive vertical padding - Create yellow Apply button with bs-btn variant in Home page Landing - Use `bootstrap.button-variant` mixin for Apply button styles - Specify empty variant to React Bootstrap - Remove unnecessary sizing and layout styles - Separate usage of theme variables and Bootstrap mixins --------- Co-authored-by: Taesung Hwang <[email protected]>
- Loading branch information
Showing
32 changed files
with
6,492 additions
and
2,887 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 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 { Home 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.
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,5 +1,3 @@ | ||
@use "@/lib/styles/variables.scss" as variables; | ||
|
||
.footer { | ||
padding-bottom: 7vw; | ||
} | ||
|
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,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,11 @@ | ||
@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"; | ||
|
||
// bootstrap overrides | ||
$font-family-base: var(--next-font-fuzzy-bubbles); | ||
$font-size-base: 1.25rem; | ||
$headings-font-weight: 700; |
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"; |
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,4 @@ | ||
.background { | ||
background-image: url("~@/assets/background/anteater-head-tiling.gif"); | ||
background-size: 464px; // half size for 2x scaling | ||
} |
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,17 @@ | ||
@use "bootstrap-utils" as bootstrap; | ||
|
||
$container-padding: 6rem; | ||
|
||
.home { | ||
h2 { | ||
text-align: center; | ||
} | ||
|
||
:global { | ||
section.container { | ||
// responsive padding | ||
@include bootstrap.padding-top($container-padding); | ||
@include bootstrap.padding-bottom($container-padding); | ||
} | ||
} | ||
} |
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,23 @@ | ||
"use client"; | ||
|
||
import Landing from "./sections/Landing/Landing"; | ||
import About from "./sections/About/About"; | ||
import Mentors from "./sections/Mentors/Mentors"; | ||
import Sponsors from "./sections/Sponsors/Sponsors"; | ||
import FAQ from "./sections/FAQ/FAQ"; | ||
|
||
import styles from "./Home.module.scss"; | ||
|
||
function Home() { | ||
return ( | ||
<div className={styles.home}> | ||
<Landing /> | ||
<About /> | ||
<Mentors /> | ||
<Sponsors /> | ||
<FAQ /> | ||
</div> | ||
); | ||
} | ||
|
||
export default Home; |
37 changes: 37 additions & 0 deletions
37
apps/site/src/views/Home/components/ApplyButton/ApplyButton.module.scss
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,37 @@ | ||
@use "bootstrap-utils" as bootstrap; | ||
@use "zothacks-theme" as theme; | ||
|
||
$highlighter: rgba(theme.$yellow, 0.7); | ||
$skew-amount: -30deg; | ||
|
||
.applyButton { | ||
@include bootstrap.button-variant( | ||
$highlighter, | ||
$highlighter, | ||
$hover-border: theme.$black, | ||
$active-border: theme.$black | ||
); | ||
@include bootstrap.rfs(6rem, --bs-btn-padding-x); | ||
--bs-btn-font-weight: bold; | ||
--bs-btn-border-width: 4px; | ||
|
||
@include bootstrap.font-size(bootstrap.$h2-font-size); | ||
|
||
transform: skew($skew-amount); | ||
// unskew children | ||
> * { | ||
transform: skew(-$skew-amount); | ||
} | ||
|
||
box-shadow: | ||
2px 3px 8px rgba(black, 0.2), | ||
4px 6px 16px rgba(black, 0.2); | ||
|
||
&:hover, | ||
&:focus { | ||
text-decoration: underline; | ||
box-shadow: | ||
2px 3px 16px rgba(black, 0.3), | ||
4px 6px 32px rgba(black, 0.3); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
apps/site/src/views/Home/components/ApplyButton/ApplyButton.tsx
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 @@ | ||
import Button from "react-bootstrap/Button"; | ||
|
||
import styles from "./ApplyButton.module.scss"; | ||
|
||
export default function ApplyButton() { | ||
return ( | ||
<Button | ||
className={styles.applyButton} | ||
href="https://hack.ics.uci.edu/" // TODO: Change to application site link | ||
variant="" | ||
> | ||
<div>Apply</div> | ||
</Button> | ||
); | ||
} |
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,11 @@ | ||
import Container from "react-bootstrap/Container"; | ||
|
||
function About() { | ||
return ( | ||
<Container as="section"> | ||
<h2>About</h2> | ||
</Container> | ||
); | ||
} | ||
|
||
export default About; |
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,11 @@ | ||
import Container from "react-bootstrap/Container"; | ||
|
||
function FAQ() { | ||
return ( | ||
<Container as="section"> | ||
<h2>FAQ</h2> | ||
</Container> | ||
); | ||
} | ||
|
||
export default FAQ; |
10 changes: 10 additions & 0 deletions
10
apps/site/src/views/Home/sections/Landing/Landing.module.scss
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,10 @@ | ||
.landing { | ||
min-height: 62vh; | ||
|
||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
text-align: center; | ||
} |
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,14 @@ | ||
import ApplyButton from "@/views/Home/components/ApplyButton/ApplyButton"; | ||
|
||
import styles from "./Landing.module.scss"; | ||
|
||
function Landing() { | ||
return ( | ||
<div className={styles.landing}> | ||
<h1>ZotHacks 2023</h1> | ||
<ApplyButton /> | ||
</div> | ||
); | ||
} | ||
|
||
export default Landing; |
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,11 @@ | ||
import Container from "react-bootstrap/Container"; | ||
|
||
function Mentors() { | ||
return ( | ||
<Container as="section"> | ||
<h2>Mentors</h2> | ||
</Container> | ||
); | ||
} | ||
|
||
export default Mentors; |
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,11 @@ | ||
import Container from "react-bootstrap/Container"; | ||
|
||
function Sponsors() { | ||
return ( | ||
<Container as="section"> | ||
<h2>Sponsors</h2> | ||
</Container> | ||
); | ||
} | ||
|
||
export default Sponsors; |
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.