Skip to content

Commit

Permalink
Dark Mode (Default Theme) + God Rays Css on Header + Adjusted height …
Browse files Browse the repository at this point in the history
…of global css

Dark mode is defaulted and commented out toggle with light mode until fix is found
  • Loading branch information
kmiguel10 committed Oct 30, 2023
1 parent 27eddbc commit 3784d48
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions app/components/ui/nav-bar/nav-bar-desktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import clsx from "clsx";
import { SunMoon } from "lucide-react";

export default function NavbarDesktop({ selected }: NavBarProps) {
const toggleTheme = () => {
if (document.body.classList.contains("dark"))
document.body.classList.remove("dark");
else document.body.classList.add("dark");
};
// const toggleTheme = () => {
// if (document.body.classList.contains("dark"))
// document.body.classList.remove("dark");
// else document.body.classList.add("dark");
// };
return (
<nav className="pointer-events-auto sticky top-0 z-popover hidden h-12 items-center border-b border-gray-6 bg-white px-4 dark:bg-black md:flex">
{/* <Logo /> Can insert picure here or KM logo*/}
Expand All @@ -34,12 +34,12 @@ export default function NavbarDesktop({ selected }: NavBarProps) {
})}
<div className="flex-grow" />
<div className="ml-2">
<button
{/* <button
onClick={toggleTheme}
className="px-3 py-1 border border-stone-200 rounded-full drop-shadow-sm text-sm text-stone-800 dark:text-white bg-white/40 dark:bg-black/40 backdrop-blur-lg hover:border-stone-300 transition-colors dark:border-stone-500 dark:hover:border-stone-400"
>
<SunMoon />
</button>
</button> */}
</div>
</nav>
);
Expand Down
2 changes: 1 addition & 1 deletion app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ body,
main {
@apply bg-gray-1 text-gray-12;
font-weight: 300;
height: 93vh;
height: 100%;
}

* {
Expand Down
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<body className={inter.className}>
<body className={`${inter.className} dark`}>
{children}
<Analytics />
</body>
Expand Down

0 comments on commit 3784d48

Please sign in to comment.