Skip to content

Commit

Permalink
Disable dark mode (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
RajatRajdeep authored Jan 7, 2025
1 parent 31b7b1a commit f9924f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/app/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export default function RootLayout({ children }) {
<html lang="en" className="scroll-smooth">
<body className="flex flex-col min-h-screen bg-background-light dark:bg-background-dark text-gray-900 dark:text-gray-100">
<ThemeProvider>
<Header themeToggle={<ThemeToggle />} />
{/* <Header themeToggle={<ThemeToggle />} /> */}
<Header themeToggle={<></>} />
<main className="flex-grow">{children}</main>
<Footer />
</ThemeProvider>
Expand Down
3 changes: 2 additions & 1 deletion src/components/ThemeContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export const ThemeProvider = ({ children }) => {
'(prefers-color-scheme: dark)'
).matches;

const initialTheme = savedTheme || (prefersDark ? 'dark' : 'light');
// const initialTheme = savedTheme || (prefersDark ? 'dark' : 'light');
const initialTheme = 'light';
setTheme(initialTheme);
document.documentElement.classList.toggle('dark', initialTheme === 'dark');
}, []);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tickets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Tickets() {
>
Tickets
</Heading>
<Paragraph level={3}>
<Paragraph level={3} className='mb-2'>
You can book your tickets directly on the
<Link
className="text-gray-950 dark:text-gray-50 underline mx-1"
Expand Down

0 comments on commit f9924f0

Please sign in to comment.