From 2137484680181102ec9dcb4c2f4ed9c30facc799 Mon Sep 17 00:00:00 2001 From: jinkang-0 Date: Wed, 3 Jan 2024 23:11:35 -0800 Subject: [PATCH] fix: styling issues --- package.json | 4 +- src/components/Header.astro | 36 ++++----- src/components/Hero.astro | 101 ++++++++++++------------ src/layouts/Container.astro | 14 ++-- src/layouts/Layout.astro | 152 ++++++++++++++++++------------------ src/pages/index.astro | 36 ++++----- 6 files changed, 172 insertions(+), 171 deletions(-) diff --git a/package.json b/package.json index e72d476..506686e 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "lint:check": "npx eslint .", "lint:fix": "npx eslint . --fix", "prettier:check": "npx prettier --check .", - "prettier:fix": "npx prettier --write ." + "prettier:fix": "npx prettier --write .", + "compile:check": "npx tsc --noEmit", + "check": "npm run lint:check && npm run prettier:check && npm run compile:check" }, "dependencies": { "@astrojs/check": "^0.3.4", diff --git a/src/components/Header.astro b/src/components/Header.astro index 075ff3e..345869b 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,26 +1,26 @@ --- -import NavBar from "./Navbar"; -import Hero from "./Hero.astro"; +import NavBar from './Navbar'; +import Hero from './Hero.astro'; ---
- - + +
diff --git a/src/components/Hero.astro b/src/components/Hero.astro index 9993846..4d6e964 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -1,68 +1,67 @@
-
-
-

Cal Hacks x Blueprint

-

Hack the Bay

-
-
-
-

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. -

-
-
- +
+
+

Cal Hacks x Blueprint

+

Hack the Bay

+
+
+
+

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. +

+
+
+
diff --git a/src/layouts/Container.astro b/src/layouts/Container.astro index 2ad896f..fd9c56e 100644 --- a/src/layouts/Container.astro +++ b/src/layouts/Container.astro @@ -1,12 +1,12 @@
- +
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index fb13c7b..f551930 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,8 +1,8 @@ --- -import "@fontsource-variable/lexend-deca"; +import '@fontsource-variable/lexend-deca'; interface Props { - title: string; + title: string; } const { title } = Astro.props; @@ -10,93 +10,93 @@ const { title } = Astro.props; - - - - - - - {title} - - - - + + + + + + + {title} + + + + diff --git a/src/pages/index.astro b/src/pages/index.astro index 8bcae38..bcbf362 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,23 +1,23 @@ --- -import Layout from "../layouts/Layout.astro"; -import Container from "../layouts/Container.astro"; -import Header from "../components/Header.astro"; -import About from "../components/About.astro"; -import NonProfits from "../components/NonProfits.astro"; -import Schedule from "../components/Schedule.astro"; -import FAQ from "../components/FAQ.astro"; -import Contact from "../components/Contact.astro"; -import Footer from "../components/Footer.astro"; +import Layout from '../layouts/Layout.astro'; +import Container from '../layouts/Container.astro'; +import Header from '../components/Header.astro'; +import About from '../components/About.astro'; +import NonProfits from '../components/NonProfits.astro'; +import Schedule from '../components/Schedule.astro'; +import FAQ from '../components/FAQ.astro'; +import Contact from '../components/Contact.astro'; +import Footer from '../components/Footer.astro'; --- - -
- - - - - -