Skip to content

Commit

Permalink
Fix html
Browse files Browse the repository at this point in the history
  • Loading branch information
altugbakan committed Nov 16, 2023
1 parent a309f51 commit 8b8136e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<footer class="mt-auto pt-4">
<hr class="my-4 h-0.5 border-t-0 bg-slate-50 dark:bg-zinc-600" />
<hr class="my-4 h-0.5 border-t-0 bg-slate-300 dark:bg-zinc-600" />
<div class="mb-4">
<p class="text-center text-sm text-gray-500 dark:text-gray-400">
© 2023 Altuğ Bakan
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ const { className } = Astro.props;
</button>
</section>
</div>
<hr class="my-4 h-0.5 border-t-0 bg-slate-50 dark:bg-zinc-600" />
<hr class="my-4 h-0.5 border-t-0 bg-slate-300 dark:bg-zinc-600" />
</nav>
14 changes: 7 additions & 7 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,9 @@ interface Props {
const { title } = Astro.props;
---

<style>
html.dark {
@apply bg-zinc-900 from-zinc-900 to-zinc-800 text-white;
}
</style>

<html
lang="en"
class="bg-slate-100 bg-gradient-to-br from-slate-100 to-slate-200 text-black dark:text-white"
class="bg-slate-100 bg-gradient-to-br from-slate-100 to-slate-200 text-black"
>
<head>
<meta charset="UTF-8" />
Expand Down Expand Up @@ -50,6 +44,12 @@ const { title } = Astro.props;
<meta property="twitter:description" content="My personal website" />
<meta property="twitter:image" content="https://alt.ug/images/meta.png" />

<style is:global>
html.dark {
@apply bg-zinc-900 from-zinc-900 to-zinc-800 text-white;
}
</style>

<script is:inline>
let theme = localStorage.getItem("theme");

Expand Down

0 comments on commit 8b8136e

Please sign in to comment.