File tree Expand file tree Collapse file tree 4 files changed +14
-14
lines changed
Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 11---
22import BaseLayout from " ./BaseLayout.astro" ;
3- import { fade } from " astro:transitions" ;
43
54const { 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
Original file line number Diff line number Diff line change 11html {
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+
615body {
716 margin : 0 auto;
817 width : 100% ;
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- }
Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ export default {
55 extend : { } ,
66 } ,
77 plugins : [ ] ,
8+ darkMode : 'class' ,
89}
You can’t perform that action at this time.
0 commit comments