From 00de7a5d0066092cd964a0a47615b4d2d96cf548 Mon Sep 17 00:00:00 2001 From: Maxi Ferreira Date: Tue, 30 Nov 2021 21:52:32 -0800 Subject: [PATCH] Added fonts --- TODO | 3 ++- src/components/BaseHead.astro | 5 +++-- src/components/Footer.astro | 2 +- src/components/Nav.astro | 2 +- src/layouts/BlogPostLayout.astro | 2 +- src/pages/blog/index.astro | 6 +----- src/styles/global.css | 10 ++++++---- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/TODO b/TODO index 83d17f8..52108f7 100644 --- a/TODO +++ b/TODO @@ -1,9 +1,10 @@ [ ] Update README [ ] Install Fonts -[ ] Style Code blocks +[x] Style Code blocks [x] Highlight current navigation item [ ] Use css variables [ ] Dark mode [x] Resize Logo [ ] Reading time [x] Bio component +[ ] Add social image diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index dc9748c..1d67bac 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -33,8 +33,9 @@ const { title, description, permalink } = Astro.props; - - + + + diff --git a/src/components/Footer.astro b/src/components/Footer.astro index e489684..e6d0b08 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -10,7 +10,7 @@ footer { color: #AAA; font-size: 1em; - font-family: Rubik, sans-serif; + font-family: var(--font-family-sans); margin: 1em auto; max-width: 1400px; padding: 1em 2em; diff --git a/src/components/Nav.astro b/src/components/Nav.astro index 0ffa5e9..0de3a9e 100644 --- a/src/components/Nav.astro +++ b/src/components/Nav.astro @@ -7,7 +7,7 @@ const { current = '' } = Astro.props; align-items: flex-end; display: flex; flex: 1; - font-family: Rubik, sans-serif; + font-family: var(--font-family-sans); font-weight: 700; justify-content: flex-end; text-transform: uppercase; diff --git a/src/layouts/BlogPostLayout.astro b/src/layouts/BlogPostLayout.astro index d6a3542..db40b43 100644 --- a/src/layouts/BlogPostLayout.astro +++ b/src/layouts/BlogPostLayout.astro @@ -33,7 +33,7 @@ const {title, description, publishDate, author, heroImage, permalink, alt} = con header p { color: #AAA; text-transform: uppercase; - font-family: Rubik, sans-serif; + font-family: var(--font-family-sans); font-weight: 600; } diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index c24a399..5ebcab6 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -1,10 +1,6 @@ --- import BaseLayout from '../../layouts/BaseLayout.astro'; -interface MarkdownFrontmatter { - publishDate: number; -} - const title = 'Blog'; const description = 'Latest articles.'; const permalink = 'https://example.com/blog'; @@ -36,7 +32,7 @@ allPosts = allPosts.sort((a, b) => new Date(b.publishDate).valueOf() - new Date(