Skip to content
Closed
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
61 changes: 55 additions & 6 deletions apps/site/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,68 @@ const nextConfig = {
sassOptions: {
includePaths: [path.join(__dirname, "src", "lib", "styles")],
},
/* TODO: Remove redirects once we have the new site up and running */
async redirects() {
return [
{
source: "/apply",
destination: "/",
permanent: false,
},
{
source: "/apply/hacker",
destination: "/",
permanent: false,
},
{
source: "/apply-mentor",
destination: "/",
permanent: false,
},
{
source: "/auth",
destination: "/",
permanent: false,
},
{
source: "/guest-login",
destination: "/",
permanent: false,
},
{
source: "/login",
destination: "/",
permanent: false,
},
{
source: "/logout",
destination: "/",
permanent: false,
},
{
source: "/portal",
destination: "/",
permanent: false,
},
{
source: "/resources",
destination: "/",
permanent: false,
},
{
source: "/schedule",
destination: "/",
permanent: false,
},
{
source: "/mentor",
destination:
"https://docs.google.com/forms/d/e/1FAIpQLSc68omDO40vn16-QmmdrvVgdLh9vFN623u5hLOG64je8t_VQA/viewform?usp=dialog",
permanent: true,
destination: "/",
permanent: false,
},
{
source: "/incident",
destination:
"https://docs.google.com/forms/d/e/1FAIpQLSc3rDK238iKZHCrSJ4wz9xCyqyjIStDSiMuKxEcahG4_a45FA/viewform?usp=dialog",
permanent: true,
destination: "/",
permanent: false,
},
];
},
Expand Down
6 changes: 6 additions & 0 deletions apps/site/src/app/(home)/page.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
$container-padding: 6rem;

.home {
min-height: 100vh;
background-image: url("~@/assets/background/aldrich-park-background.jpg");
background-position: center top;
background-size: cover;
background-repeat: no-repeat;

h2 {
text-align: center;
}
Expand Down
6 changes: 3 additions & 3 deletions apps/site/src/app/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ const Home = () => {
return (
<div className={styles.home}>
<Landing />
<About />
{/* <About /> */}
{/* <Countdown /> */}
<Sponsors />
{/* <Sponsors /> */}
{/* <Clubs /> */}
<FAQ />
{/* <FAQ /> */}
</div>
);
};
Expand Down
1 change: 0 additions & 1 deletion apps/site/src/app/(home)/sections/FAQ/FAQ.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ $item-padding-x: 3rem;
display: flex;
justify-content: space-evenly;
width: 100vw;
background: linear-gradient(to bottom, #0d1321, #070a11);
min-height: 100vh;
}

Expand Down
78 changes: 0 additions & 78 deletions apps/site/src/app/(home)/sections/Landing/ApplyButton.module.scss

This file was deleted.

62 changes: 0 additions & 62 deletions apps/site/src/app/(home)/sections/Landing/ApplyButton.tsx

This file was deleted.

70 changes: 70 additions & 0 deletions apps/site/src/app/(home)/sections/Landing/ColorPicker.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
@use "bootstrap-utils" as bootstrap;

$color-palette-size: 25.22px;

.colorPicker {
display: flex;
flex-direction: row;
align-items: center;
gap: 9.25px;
padding: 15px 0;
}

.brushCell {
display: flex;
align-items: center;
justify-content: center;
width: 46.23px;
height: 54.63px;
overflow: hidden;
flex-shrink: 0;
background-color: #dcdcdc;
box-shadow:
inset 1.68px 1.68px 0 #dfdfdf,
inset 0.84px 0.84px 0 #ffffff,
inset -1.68px -1.68px 0 #808080,
inset -0.84px -0.84px 0 #252525;
}

.brushIcon {
width: 82.37px;
height: 82.37px;
object-fit: contain;
}

.paletteFrame {
display: flex;
flex-direction: row;
flex-wrap: wrap;
width: 297px;
gap: 4.2px;
}

.colorPalette {
width: $color-palette-size;
height: $color-palette-size;
padding: 0;
border: 0;
cursor: pointer;
outline: none;

box-shadow:
inset -1.68px -1.68px 0 #dfdfdf,
inset -0.84px -0.84px 0 #ffffff,
inset 1.68px 1.68px 0 #808080,
inset 0.84px 0.84px 0 #252525;

&[aria-pressed="true"],
&:active {
box-shadow:
inset 1.68px 1.68px 0 #dfdfdf,
inset 0.84px 0.84px 0 #ffffff,
inset -1.68px -1.68px 0 #808080,
inset -0.84px -0.84px 0 #252525;
}

&:focus-visible {
outline: 1px dotted #000000;
outline-offset: 1px;
}
}
62 changes: 62 additions & 0 deletions apps/site/src/app/(home)/sections/Landing/ColorPicker.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
"use client";

import Image from "next/image";
import { useState } from "react";
import paintbrush from "@/assets/icons/paintbrush.svg";
import styles from "./ColorPicker.module.scss";

const PALETTE: string[] = [
"#808080",
"#8D0000",
"#808000",
"#008200",
"#008281",
"#000086",
"#8D0085",
"#808035",
"#004141",
"#0082FF",
"#FF7575",
"#FFFF00",
"#00FF00",
"#00FFFF",
"#0000FF",
"#FF00FF",
"#FFFF68",
"#00FF70",
"#FFFFFF",
"#002248",
];

interface ColorPickerProps {
onColorSelect?: (color: string) => void;
}

export default function ColorPicker({ onColorSelect }: ColorPickerProps) {
const [selected, setSelected] = useState<string>();

return (
<div className={styles.colorPicker}>
<div className={styles.brushCell}>
<Image src={paintbrush} alt="Paintbrush" className={styles.brushIcon} />
</div>

<div className={styles.paletteFrame}>
{PALETTE.map((color) => (
<button
key={color}
type="button"
className={styles.colorPalette}
style={{ backgroundColor: color }}
aria-label={color}
aria-pressed={selected === color}
onClick={() => {
setSelected(color);
onColorSelect?.(color);
}}
/>
))}
</div>
</div>
);
}
Loading
Loading