From 0893d3637c29808c3d64cd674d9bc1dc39dc33ad Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Mon, 12 Jan 2026 11:56:56 -0500 Subject: [PATCH] refactors done for now --- public/styles/{common.css => base.css} | 0 public/styles/index.css | 52 +++++++++++++++++++-- src/layouts/PostLayout.astro | 65 -------------------------- src/pages/about.astro | 12 ++--- src/pages/index.astro | 60 ++++++++++++++++++++++-- 5 files changed, 108 insertions(+), 81 deletions(-) rename public/styles/{common.css => base.css} (100%) delete mode 100644 src/layouts/PostLayout.astro diff --git a/public/styles/common.css b/public/styles/base.css similarity index 100% rename from public/styles/common.css rename to public/styles/base.css diff --git a/public/styles/index.css b/public/styles/index.css index 888e2e7..5ba9319 100644 --- a/public/styles/index.css +++ b/public/styles/index.css @@ -1,5 +1,49 @@ -header h1 { - font-weight: 300; - font-size: 2em; - /* letter-spacing: 0.05em; */ +body { + background: #f5f1e8; + color: #3a3a3a; +} + +header { + display: flex; + padding: 60px; + max-width: 1200px; + margin: 0 auto; +} + +h1, +header span { + margin: 0; + font-weight: 300; + font-size: 4em; +} + +section { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 80px; + max-width: 1200px; + margin: 0 auto; +} + +h2 { + margin-top: 24px; + font-weight: 300; + font-style: italic; + font-size: 2em; +} + +ul { + list-style: none; + padding: 0; +} + +li { + margin-bottom: 12px; + font-size: 1.1em; + line-height: 1.6; +} + +a { + color: inherit; + border-bottom: 1px solid transparent; } diff --git a/src/layouts/PostLayout.astro b/src/layouts/PostLayout.astro deleted file mode 100644 index 701a43e..0000000 --- a/src/layouts/PostLayout.astro +++ /dev/null @@ -1,65 +0,0 @@ ---- -import BaseLayout from "./BaseLayout.astro"; - -interface Props { - frontmatter: { - title: string; - description?: string; - date?: string; - useKatex?: boolean; - useD3?: boolean; - scripts?: string[]; - category?: string; - }; - post?: { - id?: string; - collection?: string; - slug?: string; - }; - headings?: Array<{ - depth: number; - slug: string; - text: string; - }>; -} - -const { frontmatter, headings = [] } = Astro.props as Props; -const { title, description, useKatex = false, useD3 = false } = frontmatter; - -let documentTitle = title; ---- - - - - { - useKatex && ( - - ) - } - {useD3 && - {frontmatter.scripts?.map((src) => + + + + + +
+

barrett ruth

+ Δ +
+ +
+
+

experience

+ +
+ +
+

contact

+ +
+