Skip to content

Commit

Permalink
Fix: Add minimal styling
Browse files Browse the repository at this point in the history
  • Loading branch information
sandypockets committed Dec 16, 2023
1 parent 292e3ef commit 9410c81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
4 changes: 2 additions & 2 deletions example/pages/blog/[slug].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ export async function getStaticProps({ params }) {
export default function Post({ postData, slug }) {
return (
<article>
<h1>{slug}</h1>
<h1 className="text-5xl">{slug}</h1>
<p>Reading time: {postData.readingTime} min</p>
<div>
<h3>Table of Contents</h3>
<h3 className="text-2xl">Table of Contents</h3>
<div dangerouslySetInnerHTML={{ __html: postData.toc }} />
</div>
<div dangerouslySetInnerHTML={{ __html: postData.contentHtml }} />
Expand Down
22 changes: 6 additions & 16 deletions example/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,11 @@
@tailwind components;
@tailwind utilities;

:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}

@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}

body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(to bottom, transparent, rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb));
color: white;
background: black;
}

ol, ul {
list-style: disc;
}

0 comments on commit 9410c81

Please sign in to comment.