mirror of
https://github.com/Lapikud/tipilan.git
synced 2026-05-08 10:00:46 +00:00
Ensure dark mode is forced
This commit is contained in:
@@ -24,8 +24,9 @@ export default async function LocaleLayout({
|
|||||||
<NextIntlClientProvider messages={messages}>
|
<NextIntlClientProvider messages={messages}>
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
attribute="class"
|
attribute="class"
|
||||||
defaultTheme="system"
|
defaultTheme="dark"
|
||||||
enableSystem
|
enableSystem={false}
|
||||||
|
forcedTheme="dark"
|
||||||
disableTransitionOnChange
|
disableTransitionOnChange
|
||||||
>
|
>
|
||||||
<div className="min-h-screen flex flex-col">
|
<div className="min-h-screen flex flex-col">
|
||||||
|
|||||||
@@ -5,8 +5,9 @@ export default function NotFound() {
|
|||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
attribute="class"
|
attribute="class"
|
||||||
defaultTheme="system"
|
defaultTheme="dark"
|
||||||
enableSystem
|
enableSystem={false}
|
||||||
|
forcedTheme="dark"
|
||||||
disableTransitionOnChange
|
disableTransitionOnChange
|
||||||
>
|
>
|
||||||
<div className="flex flex-col min-h-[90vh] p-12 justify-center items-center">
|
<div className="flex flex-col min-h-[90vh] p-12 justify-center items-center">
|
||||||
|
|||||||
@@ -113,7 +113,13 @@ const Header = ({ navItems }: HeaderProps) => {
|
|||||||
<span className="flex items-center gap-2">
|
<span className="flex items-center gap-2">
|
||||||
<span>{item.label}</span>
|
<span>{item.label}</span>
|
||||||
{navIconByHref[item.href] ? (
|
{navIconByHref[item.href] ? (
|
||||||
<span className="material-symbols-outlined text-[1.4rem]! leading-none text-[#00A3E0] group-hover:text-[#EEE5E5]">
|
<span
|
||||||
|
className={`material-symbols-outlined text-[1.4rem]! leading-none ${
|
||||||
|
isActive
|
||||||
|
? "text-black"
|
||||||
|
: "text-[#00A3E0] group-hover:text-[#EEE5E5]"
|
||||||
|
}`}
|
||||||
|
>
|
||||||
{navIconByHref[item.href]}
|
{navIconByHref[item.href]}
|
||||||
</span>
|
</span>
|
||||||
) : null}
|
) : null}
|
||||||
|
|||||||
Reference in New Issue
Block a user