diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 5795052..fde6b1e 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -7,9 +7,10 @@ const { title } = Astro.props; const navButtons = [ { title: "home", route: "/" }, { title: "blog", route: "/blog" }, - { title: "linkedin", route: "https://www.linkedin.com/in/andrewbrower" }, { title: "github", route: "https://github.com/bigspeedfpv" }, ]; + +const isHome = Astro.url.pathname === "/"; --- @@ -23,8 +24,9 @@ const navButtons = [
-
-

Andrew Brower

+
+ +

{isHome ? "" : "Andrew Brower"}

{navButtons.map(({title, route}) => )}
diff --git a/src/pages/index.astro b/src/pages/index.astro index b9a57bc..d2bbf2b 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,8 +1,8 @@ --- import Layout from '../layouts/Layout.astro'; - --- -home +

Andrew Brower

+

Software Engineer

diff --git a/src/styles/global.css b/src/styles/global.css index 055c902..bcbd41e 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -3,32 +3,32 @@ @theme { --breakpoint-xs: 28rem; --default-font-family: var(--font-display); - --font-display: "Libre Baskerville", Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif; + --font-display: "Libre Baskerville", Charter, "Bitstream Charter", "Sitka Text", Cambria, serif; --color-sepia: #faeac5; } @font-face { - font-family: 'Libre Baskerville'; - src: url('/fonts/LibreBaskerville-Regular.woff2') format('woff2'), - url('/fonts/LibreBaskerville-Regular.ttf') format('truetype'); + font-family: "Libre Baskerville"; + src: url("/fonts/LibreBaskerville-Regular.woff2") format("woff2"), + url("/fonts/LibreBaskerville-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; } @font-face { - font-family: 'Libre Baskerville'; - src: url('/fonts/LibreBaskerville-Bold.woff2') format('woff2'), - url('/fonts/LibreBaskerville-Bold.ttf') format('truetype'); + font-family: "Libre Baskerville"; + src: url("/fonts/LibreBaskerville-Bold.woff2") format("woff2"), + url("/fonts/LibreBaskerville-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; } @font-face { - font-family: 'Libre Baskerville'; - src: url('/fonts/LibreBaskerville-Italic.woff2') format('woff2'), - url('/fonts/LibreBaskerville-Italic.ttf') format('truetype'); + font-family: "Libre Baskerville"; + src: url("/fonts/LibreBaskerville-Italic.woff2") format("woff2"), + url("/fonts/LibreBaskerville-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap;