Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
fix: removed old theming implementatin
Browse files Browse the repository at this point in the history
  • Loading branch information
IncognitoTGT committed Feb 11, 2024
1 parent 398a4b3 commit 46253c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
13 changes: 1 addition & 12 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,11 @@ import {
NavigationMenuList,
navigationMenuTriggerStyle,
} from "@/components/ui/navigation-menu";
const theme = localStorage.getItem("theme") || "";
export default function Navbar() {
return (
<>
<div
className={`absolute left-1 -translate-y-2 justify-end p-5 text-2xl font-bold ${
theme === "mocha"
? "text-[#cdd6f4]"
: theme === "macchiato"
? "text-[#cad3f5]"
: theme === "frappe"
? "text-[#c6d0f5]"
: theme === "latte"
? "text-[#4c4f69]"
: "text-slate-300"
}`}
className={`absolute left-1 -translate-y-2 justify-end p-5 text-2xl font-bold text-slate-300`}
>
<div className="flex items-center">
<div className="ml-2">Ephemeral</div>
Expand Down
16 changes: 1 addition & 15 deletions src/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,14 @@ import { Toaster } from "@/components/ui/toaster";
type LayoutProps = {
children: ReactNode;
};
const theme = localStorage.getItem("theme") || "";
const Layout = ({ children }: LayoutProps) => {
return (
<>
{window.location.origin === "https://ephemeral.incognitotgt.me" && (
<Meta />
)}
{window.location.origin === "http://localhost:8080" && <Meta />}
<div
className={`${theme} ${
theme === "mocha"
? "!bg-[#1e1e2e]"
: theme === "macchiato"
? "!bg-[#24273a]"
: theme === "frappe"
? "!bg-[#303446]"
: theme === "latte"
? "!bg-[#eff1f5]"
: "!bg-slate-950"
}
`}
>
<div className="bg-slate-950">
<Toaster />
{children}
</div>
Expand Down

0 comments on commit 46253c1

Please sign in to comment.