diff --git a/.prettierignore b/.prettierignore index 775f990..a0d9092 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,6 +3,7 @@ README.md +src/env.d.ts .eslintrc.cjs .prettierrc.cjs astro.config.mjs diff --git a/src/components/Hero.astro b/src/components/Hero.astro index 4061f38..dd49087 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -1,62 +1,104 @@ -
-
-
-

Cal Hacks x Blueprint

-

Hack for Impact

-
-
-
-

February 25, 2024

-

Pauley Ballroom @ University of California, Berkeley

-

- We are connecting a community of leaders, creators, and change makers to - tackle social challenges. -

-

- Registration is opening soon — stay tuned! In the meantime, follow - @calblueprint and @calhacks on Instagram for updates. -

-
-
- -
+--- +import { Image } from 'astro:assets'; +import Button from './Button.astro'; +import TitleAccent from './TitleAccent.astro'; +import stopwatchIcon from '../graphics/stopwatch.svg'; +import arrowsIcon from '../graphics/arrows.svg'; +--- + +
+

FEBRUARY 25, 2024 @ UNIVERSITY OF CALIFORNIA, BERKELEY

+

+ Hack for Impact 2024 connects a community of + + to tackle social challenges +

+
+ + + Stay tuned! In the meantime, follow + + + @calblueprint + + + and + + + @calhacks + + + on Instagram for updates. + +
+ arrows +
diff --git a/src/components/TitleAccent.astro b/src/components/TitleAccent.astro new file mode 100644 index 0000000..1ebc97b --- /dev/null +++ b/src/components/TitleAccent.astro @@ -0,0 +1,102 @@ +--- +interface Props { + words: string[]; +} + +const { words } = Astro.props; + +const longestWord = words.reduce((prev, curr) => + curr.length > prev.length ? curr : prev, +); +--- + +
+

{longestWord}

+
+
+ { + words.map(w => ( +
+

{w}

+

{w}

+
+ )) + } +
+

{words[0]}

+

{words[0]}

+
+
+
+
+ + diff --git a/src/env.d.ts b/src/env.d.ts index f964fe0..6811d7c 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -1 +1,3 @@ +// eslint-disable-next-line @typescript-eslint/triple-slash-reference +/// /// diff --git a/src/styles/_colors.scss b/src/styles/_colors.scss index 313bbf6..144fb0f 100644 --- a/src/styles/_colors.scss +++ b/src/styles/_colors.scss @@ -1,6 +1,7 @@ $background: #fff9ef; $primary: #80d3f1; $secondary: #ccedf9; // nontransparent hex -$accent: #df7291; +$accent-yellow: #fddf81; +$accent-red: #df7291; $text: #3d3833; // theres a #3d3935, but the difference is miniscule $link: #61c5e3; diff --git a/src/styles/_global.scss b/src/styles/_global.scss index 538919a..0dfb99e 100644 --- a/src/styles/_global.scss +++ b/src/styles/_global.scss @@ -5,6 +5,9 @@ html { font-family: fonts.$sans; background: colors.$background; + color: colors.$text; + scroll-behavior: smooth; + scroll-padding-top: 20svh; } * { @@ -39,6 +42,7 @@ h4 { letter-spacing: 0.8px; font-size: 1rem; font-weight: 400; + text-transform: uppercase; } h5 {