Spaces:
Build error
Build error
Update themes to use system preference
Browse files- frontend/app/page.tsx +2 -1
- frontend/app/providers.tsx +1 -1
frontend/app/page.tsx
CHANGED
@@ -5,6 +5,7 @@ import Image from 'next/image';
|
|
5 |
import Link from 'next/link';
|
6 |
import * as React from 'react'
|
7 |
import { IconSpinner } from '@/app/components/ui/icons'
|
|
|
8 |
|
9 |
export default function Home() {
|
10 |
const [isLoading, setIsLoading] = React.useState(false);
|
@@ -17,7 +18,7 @@ export default function Home() {
|
|
17 |
<div className="flex flex-col items-center mb-4 bg-gradient-to-r from-blue-500 to-indigo-500 text-white p-8 rounded-lg shadow-lg">
|
18 |
<div className="flex flex-col md:flex-row items-center md:items-start">
|
19 |
<Image
|
20 |
-
src=
|
21 |
alt="Smart Retrieval Logo"
|
22 |
width={150}
|
23 |
height={150}
|
|
|
5 |
import Link from 'next/link';
|
6 |
import * as React from 'react'
|
7 |
import { IconSpinner } from '@/app/components/ui/icons'
|
8 |
+
import logo from '../public/smart-retrieval-logo.webp'
|
9 |
|
10 |
export default function Home() {
|
11 |
const [isLoading, setIsLoading] = React.useState(false);
|
|
|
18 |
<div className="flex flex-col items-center mb-4 bg-gradient-to-r from-blue-500 to-indigo-500 text-white p-8 rounded-lg shadow-lg">
|
19 |
<div className="flex flex-col md:flex-row items-center md:items-start">
|
20 |
<Image
|
21 |
+
src={logo}
|
22 |
alt="Smart Retrieval Logo"
|
23 |
width={150}
|
24 |
height={150}
|
frontend/app/providers.tsx
CHANGED
@@ -6,7 +6,7 @@ import { ThemeProvider as NextThemesProvider } from "next-themes";
|
|
6 |
export function Providers({ children }: { children: React.ReactNode }) {
|
7 |
return (
|
8 |
<NextUIProvider>
|
9 |
-
<NextThemesProvider attribute="class" defaultTheme="
|
10 |
{children}
|
11 |
</NextThemesProvider>
|
12 |
</NextUIProvider>
|
|
|
6 |
export function Providers({ children }: { children: React.ReactNode }) {
|
7 |
return (
|
8 |
<NextUIProvider>
|
9 |
+
<NextThemesProvider attribute="class" defaultTheme="system" enableSystem={true}>
|
10 |
{children}
|
11 |
</NextThemesProvider>
|
12 |
</NextUIProvider>
|