Skip to content

Commit 4029220

Browse files
authored
Fixup (#13)
Signed-off-by: GitHub <[email protected]>
1 parent 1563088 commit 4029220

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/layouts/BaseLayout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ const { pageTitle } = Astro.props;
1515
<title>{pageTitle}</title>
1616
<ViewTransitions />
1717
<script>
18-
import { injectSpeedInsights } from '@vercel/speed-insights';
18+
import { injectSpeedInsights } from "@vercel/speed-insights";
1919
injectSpeedInsights({});
2020
</script>
2121
</head>
2222
<body>
2323
<Header />
24-
<h1 transition:animate="slide">{pageTitle}</h1>
24+
<h1>{pageTitle}</h1>
2525
<slot />
2626
<Footer />
2727
<script>

src/layouts/MarkdownPostLayout.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
---
22
import BaseLayout from "./BaseLayout.astro";
3-
import { fade } from "astro:transitions";
43
54
const { frontmatter } = Astro.props;
65
---
76

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

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

src/styles/global.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
html {
2-
background-color: #f1f5f9;
2+
background-color: #f8fafc;
33
font-family: sans-serif;
44
}
55

6+
html.dark {
7+
background-color: #020617;
8+
color: #fff;
9+
}
10+
11+
.dark .nav-links a {
12+
color: #fff;
13+
}
14+
615
body {
716
margin: 0 auto;
817
width: 100%;
@@ -81,12 +90,3 @@ h1 {
8190
display: none;
8291
}
8392
}
84-
85-
html.dark {
86-
background-color: #0d0950;
87-
color: #fff;
88-
}
89-
90-
.dark .nav-links a {
91-
color: #fff;
92-
}

tailwind.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ export default {
55
extend: {},
66
},
77
plugins: [],
8+
darkMode: 'class',
89
}

0 commit comments

Comments
 (0)