From 0a07162e14c7b6a4c768baf8c97fceb410cab5cf Mon Sep 17 00:00:00 2001 From: Stirling Hostetter Date: Mon, 30 Sep 2024 22:57:07 -0500 Subject: [PATCH] fix styling for mobile --- src/components/Header.astro | 1 - src/layouts/Layout.astro | 7 ++- src/pages/index.astro | 105 ++++++++++++++++++++---------------- src/styles/global.css | 5 ++ 4 files changed, 68 insertions(+), 50 deletions(-) diff --git a/src/components/Header.astro b/src/components/Header.astro index 959d167..e8100c8 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -27,7 +27,6 @@ main { header { display: flex; padding: 0.5em; - width: 100%; background: white; justify-content: center; } diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 07e2204..8384a24 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -39,12 +39,14 @@ const { title } = Astro.props; } main { margin: auto; - max-width: 100%; + width: 960px; + max-width: calc(100% - 2rem); color: Black; font-size: 20px; } body { margin: auto; + width: 100%; } html { font-family: system-ui, sans-serif; @@ -61,7 +63,4 @@ code { Courier New, monospace; } - - - diff --git a/src/pages/index.astro b/src/pages/index.astro index 9696faa..f17df8c 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -5,52 +5,46 @@ import CTAButton from "../components/CTAButton.astro"; --- -
-

Welcome to <BABLR>

- +

Welcome to <BABLR>

+ - -
-
-

Roadmap

-

Where are we going? Where have we been?

-
-
- -
+ +
+
+

Roadmap

+

Where are we going?
Where have we been?

+
+
+
- -
+ +
diff --git a/src/styles/global.css b/src/styles/global.css index 3555a40..fb80517 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -64,4 +64,9 @@ a:focus { font-size: 40px; font-weight: 200; } + .link-container { + padding-bottom: 4rem; + width: 720px; + margin: auto; + } }