diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx index 7ef016a..7443e17 100644 --- a/src/app/login/page.tsx +++ b/src/app/login/page.tsx @@ -1,20 +1,13 @@ "use client"; -import { signIn } from "next-auth/react"; -import { useState } from "react"; import { useRouter } from "next/navigation"; export default function LoginPage() { const router = useRouter(); - const [status, setStatus] = useState<"idle" | "loading">("idle"); - const handleLogin = async () => { - setStatus("loading"); - // Demo: auto-login with test user - await signIn("email", { - email: "manohar6839@gmail.com", - redirect: false - }); + const handleLogin = () => { + // For demo: just go to home + // In real app, this connects to auth router.push("/"); }; @@ -23,13 +16,11 @@ export default function LoginPage() {

Tia

Your baby tracking companion

-
diff --git a/src/app/page.tsx b/src/app/page.tsx index c3c853f..6773edc 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,5 +1,35 @@ -import NextResponse from "next/server"; +export default function HomePage() { + return ( +
+
+
+

Welcome to Tia 👶

+

Your baby tracking companion

+
-export async function GET() { - return NextResponse.redirect(new URL("/login", "https://tia.manohargupta.com")); +
+ + + + +
+ +
+

Baby: Tia (2 years old)

+
+
+
+ ); } \ No newline at end of file diff --git a/src/middleware.ts b/src/middleware.ts index 96de7bb..0338397 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -1,11 +1,7 @@ -import { NextResponse } from "next/server"; -import type { NextRequest } from "next/server"; - -export function middleware(request: NextRequest) { - // For now, just log and continue - auth setup comes later - return NextResponse.next(); +export function middleware() { + return; } export const config = { - matcher: ["/((?!login|verify|api/auth|_next|static|favicon.ico).*)"], + matcher: ["/((?!api).*)"], }; \ No newline at end of file