Skip to content

Commit

Permalink
Light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 2, 2023
1 parent 7be6d86 commit 020d602
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
7 changes: 6 additions & 1 deletion apps/dashboard/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export default function Layout({ children }: { children: ReactElement }) {
return (
<html lang="en" suppressHydrationWarning>
<body className={cn(fontSans.variable, "bg-background")}>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
{children}
<Toaster />
</ThemeProvider>
Expand Down
7 changes: 6 additions & 1 deletion apps/website/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ export default function Layout({ children }: { children: ReactElement }) {
return (
<html lang="en" className="dark whitespace-pre-line">
<body className={cn(fontSans.variable, "bg-background")}>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
{children}
</ThemeProvider>
<Analytics />
Expand Down
6 changes: 3 additions & 3 deletions apps/website/src/components/startpage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export function StartPage() {
alt="Midday | Search"
width={638}
height={260}
className="absolute left-[50%] -ml-[319px] z-10 bottom-0 hidden dark:md:block dark:block"
className="absolute left-[50%] -ml-[319px] z-10 bottom-0 hidden dark:md:block"
/>

<Image
Expand All @@ -254,7 +254,7 @@ export function StartPage() {
alt="Midday | Tracking"
width={360}
height={268}
className="absolute right-[20%] z-10 bottom-[240px] hidden dark:md:block dark:block"
className="absolute right-[20%] z-10 bottom-[240px] hidden dark:md:block"
/>

<Image
Expand All @@ -268,7 +268,7 @@ export function StartPage() {

<Image
quality={100}
className="absolute right-0 bottom-0 hidden dark:md:block dark:block"
className="absolute right-0 bottom-0 hidden dark:md:block"
src={transactions}
alt="Midday | Transactions"
width={993}
Expand Down

0 comments on commit 020d602

Please sign in to comment.