diff --git a/src/app/auth/error/page.tsx b/src/app/auth/error/page.tsx index 31b49e4..a779658 100644 --- a/src/app/auth/error/page.tsx +++ b/src/app/auth/error/page.tsx @@ -1,12 +1,12 @@ "use client"; +import { AlertTriangle } from "lucide-react"; import Link from "next/link"; import { useSearchParams } from "next/navigation"; import { Suspense } from "react"; import { Button } from "@/components/ui/button"; -import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; -function Search() { +function ErrorMessage() { const searchParams = useSearchParams(); const errorMessage = searchParams.get("error"); @@ -16,7 +16,7 @@ function Search() { : "An authentication error occurred"; return ( -
+
{sanitizedError}
); @@ -24,22 +24,24 @@ function Search() { export default function AuthErrorPage() { return ( -
- - - Error - - - - - -
- -
-
-
+
+
+
+ +

Authentication Error

+

+ Something went wrong during sign in +

+
+ + + + + + +
); } diff --git a/src/app/auth/signin/page.tsx b/src/app/auth/signin/page.tsx index 43f44a0..0e2225a 100644 --- a/src/app/auth/signin/page.tsx +++ b/src/app/auth/signin/page.tsx @@ -1,17 +1,12 @@ "use client"; +import { motion } from "framer-motion"; +import { CalendarDays, Loader2 } from "lucide-react"; import Link from "next/link"; import { useRouter } from "next/navigation"; import { useEffect, useState } from "react"; import { toast } from "sonner"; import { Button } from "@/components/ui/button"; -import { - Card, - CardContent, - CardDescription, - CardHeader, - CardTitle, -} from "@/components/ui/card"; import { signIn, useSession } from "@/lib/auth-client"; export default function SignInPage() { @@ -39,43 +34,46 @@ export default function SignInPage() { } }; - if (isPending) { - return null; - } - - if (session?.user) { + if (isPending || session?.user) { return null; } return ( -
- - - Welcome - - Sign in to access AI-powered calendar features - - - - +
+ +
+ +

Local iCal

+
-
- - Continue without signing in - -
- - +

+ Sign in to unlock AI-powered event creation +

+ + + +
+ + Continue without signing in + +
+
); } diff --git a/src/app/auth/signout/page.tsx b/src/app/auth/signout/page.tsx index 862c39b..5ef5b6e 100644 --- a/src/app/auth/signout/page.tsx +++ b/src/app/auth/signout/page.tsx @@ -1,16 +1,10 @@ "use client"; +import { LogOut } from "lucide-react"; import Link from "next/link"; import { useRouter } from "next/navigation"; import { useEffect } from "react"; import { Button } from "@/components/ui/button"; -import { - Card, - CardContent, - CardDescription, - CardHeader, - CardTitle, -} from "@/components/ui/card"; import { signOut, useSession } from "@/lib/auth-client"; export default function SignOutPage() { @@ -33,37 +27,38 @@ export default function SignOutPage() { } return ( -
- - - Sign Out - Are you sure you want to sign out? - - -
-
- Currently signed in as -
-
- {session.user?.name || session.user?.email} -
-
+
+
+
+ +

Sign Out

+

+ Are you sure you want to sign out? +

+
-
- - - +
+
+ Signed in as
- - +
+ {session.user?.name || session.user?.email} +
+
+ +
+ + +
+
); }