diff --git a/src/app/auth/signin/page.tsx b/src/app/auth/signin/page.tsx index e54b67beb..88129163f 100644 --- a/src/app/auth/signin/page.tsx +++ b/src/app/auth/signin/page.tsx @@ -2,13 +2,14 @@ import { signIn } from "next-auth/react"; import { useEffect, useRef } from "react"; +import { useTheme } from "@/components/ThemeContext"; -const A = "#818cf8"; const MONO = "var(--font-jetbrains, ui-monospace, monospace)"; const DISP = "var(--font-syne, system-ui, sans-serif)"; function MouseSpotlight() { const ref = useRef(null); + useEffect(() => { const fn = (e: MouseEvent) => { if (ref.current) { @@ -19,23 +20,29 @@ function MouseSpotlight() { window.addEventListener("mousemove", fn, { passive: true }); return () => window.removeEventListener("mousemove", fn); }, []); + return (
); } export default function SignInPage() { + const { theme } = useTheme(); + const isDark = theme === "dark"; + return (
-
- +
-
- +

+ devtrack +

+

- DEVTRACK - + Sign in to continue +

-

- WELCOME
- BACK. -

- -

- Track streaks, PR velocity & coding growth. -

- - -
- MIT License · Self-hostable · Free forever -
); -} +} \ No newline at end of file diff --git a/src/app/providers.tsx b/src/app/providers.tsx index 924730068..4991a14fc 100644 --- a/src/app/providers.tsx +++ b/src/app/providers.tsx @@ -19,4 +19,4 @@ export default function Providers({ children }: { children: ReactNode }) { ); -} +} \ No newline at end of file diff --git a/src/components/ThemeContext.tsx b/src/components/ThemeContext.tsx index be82d74a1..9a833ccb9 100644 --- a/src/components/ThemeContext.tsx +++ b/src/components/ThemeContext.tsx @@ -54,4 +54,4 @@ export const useTheme = () => { throw new Error("useTheme must be used within a ThemeProvider"); } return context; -}; +}; \ No newline at end of file