Skip to content

Commit

Permalink
Fixup (#13)
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
shenanigansd authored Jan 8, 2024
1 parent 1563088 commit 4029220
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ const { pageTitle } = Astro.props;
<title>{pageTitle}</title>
<ViewTransitions />
<script>
import { injectSpeedInsights } from '@vercel/speed-insights';
import { injectSpeedInsights } from "@vercel/speed-insights";
injectSpeedInsights({});
</script>
</head>
<body>
<Header />
<h1 transition:animate="slide">{pageTitle}</h1>
<h1>{pageTitle}</h1>
<slot />
<Footer />
<script>
Expand Down
3 changes: 1 addition & 2 deletions src/layouts/MarkdownPostLayout.astro
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
---
import BaseLayout from "./BaseLayout.astro";
import { fade } from "astro:transitions";
const { frontmatter } = Astro.props;
---

<BaseLayout pageTitle={frontmatter.title}>
<p><em>{frontmatter.description}</em></p>
<p transition:animate={fade({ duration: '2s' })}>{frontmatter.pubDate.toString().slice(0,10)}</p>
<p>{frontmatter.pubDate.toString().slice(0,10)}</p>

<p>Written by: {frontmatter.author}</p>

Expand Down
20 changes: 10 additions & 10 deletions src/styles/global.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
html {
background-color: #f1f5f9;
background-color: #f8fafc;
font-family: sans-serif;
}

html.dark {
background-color: #020617;
color: #fff;
}

.dark .nav-links a {
color: #fff;
}

body {
margin: 0 auto;
width: 100%;
Expand Down Expand Up @@ -81,12 +90,3 @@ h1 {
display: none;
}
}

html.dark {
background-color: #0d0950;
color: #fff;
}

.dark .nav-links a {
color: #fff;
}
1 change: 1 addition & 0 deletions tailwind.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ export default {
extend: {},
},
plugins: [],
darkMode: 'class',
}

0 comments on commit 4029220

Please sign in to comment.