Skip to content

Commit

Permalink
square theme toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshay committed Sep 27, 2023
1 parent 13962c7 commit 9323f94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/MobileNav.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const links = {
<div class="font-medium text-sm text-slate-800 w-[100px] float-right flex">
<div class="relative">
<button
class="w-full dark:border-slate-800 dark:shadow-slate-900 dark:bg-slate-900 dark:text-slate-300 hover:text-cyan-400 border border-slate-900/5 shadow-slate-800/5 shadow-lg rounded-full text-center px-3 py-2 bg-white bg-opacity-95 flex justify-between items-center"
class="w-full dark:border-slate-800 dark:bg-slate-900 dark:text-slate-300 hover:text-cyan-400 border border-slate-900/5 text-center px-4 py-2 bg-white bg-opacity-95 flex justify-between items-center space-x-1 rounded-lg"
id="menuToggle"
>
<span id="active">{links[Astro.url.pathname] ?? "Home"}</span>
Expand All @@ -22,7 +22,7 @@ const links = {

<ul
id="menu"
class="w-full hidden absolute dark:border-slate-800 dark:shadow-slate-900 dark:bg-slate-900 dark:text-slate-300 bg-white rounded-lg border border-slate-900/5 shadow-slate-800/5 shadow-lg ease-in-out duration-200"
class="w-full hidden absolute dark:border-slate-800 dark:bg-slate-900 dark:text-slate-300 bg-white rounded-lg border border-slate-900/5 ease-in-out duration-200"
>
<NavbarLink href="/">Home</NavbarLink>
<NavbarLink href="/projects">Projects</NavbarLink>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import NavbarLink from "./NavbarLink.astro"
class="sticky pointer-events-auto hidden md:flex items-center top-2 pr-4"
>
<ul
class="flex border dark:border-slate-800 dark:bg-slate-900/95 dark:text-slate-300 border-slate-900/5 text-slate-800 w-fit rounded-lg px-3 mx-auto bg-white/95 py-1 text-sm"
class="flex border dark:border-slate-800 dark:bg-slate-900/95 dark:text-slate-300 border-slate-900/5 text-slate-800 w-fit rounded-lg px-1 mx-auto bg-white/95 text-sm"
>
<NavbarLink href="/">Home</NavbarLink>
<NavbarLink href="/projects">Projects</NavbarLink>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ThemeToggle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { class: className = "" } = Astro.props
---

<button
class={`themeToggle bg-white dark:border-slate-800 dark:shadow-slate-900 dark:bg-slate-900 dark:text-slate-300 border border-slate-900/5 font-medium shadow-slate-800/5 shadow-lg text-sm text-slate-800 rounded-full px-3 py-1.5 hover:text-cyan-400 ${className}`}
class={`themeToggle bg-white dark:border-slate-800 dark:shadow-slate-900 dark:bg-slate-900 dark:text-slate-300 border border-slate-900/5 font-medium text-sm text-slate-800 rounded-lg px-3 py-1.5 hover:text-cyan-400 ${className}`}
type="button"
>
<Moon class="mx-auto dark:block hidden" />
Expand Down

1 comment on commit 9323f94

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 9323f94 Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Module not found "file:///src/main.ts".

Please sign in to comment.