Skip to content

Update page.tsx ✅ #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 42 additions & 40 deletions app/success/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,53 +5,55 @@ import { Card, CardContent, CardFooter } from "@/components/ui/card";
import { Separator } from "@/components/ui/separator";
import { Check } from "lucide-react";
import Link from "next/link";
import { motion } from "framer-motion";

export default function SuccessPage() {
return (

<div className="h-screen w-screen flex items-center justify-center">
<Card className="max-w-[400px] w-full mx-auto">
<CardContent className="p-6 flex flex-col w-full items-center">
<div className="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center">
<Check className="w-8 h-8 text-green-500" />
</div>
<h1 className="text-2xl font-semibold mt-4">
This event is scheduled
</h1>
<p className="text-sm text-muted-foreground text-center mt-1">
We emailed you and the other attendees a calendar invitation with
all the details.
</p>
{/* Card component with modern styling */}
<motion.div
initial={{ scale: 0.95, opacity: 0 }}
animate={{ scale: 1, opacity: 1 }}
transition={{ duration: 0.3 }}
>
<Card className="max-w-[400px] w-full mx-auto bg-white dark:bg-gray-800 shadow-lg rounded-lg">

<CardContent className="p-6 flex flex-col w-full items-center">

<motion.div
initial={{ scale: 0.8 }}
animate={{ scale: 1 }}
transition={{ duration: 0.3 }}
className="w-16 h-16 bg-green-100 dark:bg-green-900 rounded-full flex items-center justify-center"
>
<Check className="w-8 h-8 text-green-500 dark:text-green-400" />
</motion.div>

{/* <Separator className="my-5" />
{/* Title */}
<h1 className="text-2xl font-semibold text-gray-900 dark:text-gray-100 mt-4">
This event is scheduled
</h1>

<div className="grid grid-cols-3 w-full self-start gap-y-4">
<div className="col-span-1">
<h1 className="font-medium">What</h1>
</div>
<div className="col-span-2">
<p className="text-muted-foreground">Design Workshop</p>
</div>
{/* Description */}
<p className="text-sm text-gray-600 dark:text-gray-400 text-center mt-1">
We emailed you and the other attendees a calendar invitation with
all the details.
</p>
</CardContent>

<div className="col-span-1">
<h1 className="font-medium">When</h1>
</div>
<div className="col-span-2">
<p className="text-muted-foreground">10:00 - 12:00</p>
</div>
<div className="col-span-1">
<h1 className="font-medium">Where</h1>
</div>
<div className="col-span-2">
<p className="text-muted-foreground">Online</p>
</div>
</div> */}
</CardContent>
<CardFooter>
<Button className="w-full" asChild>
<Link href="/">Close this Page</Link>
</Button>
</CardFooter>
</Card>
{/* Card footer with close button */}
<CardFooter className="border-t border-gray-200 dark:border-gray-700 px-6 py-4">
<Button
as={Link}
href="/"
className="bg-indigo-600 hover:bg-indigo-700 text-white rounded-md w-full"
>
Close this Page
</Button>
</CardFooter>
</Card>
</motion.div>
</div>
);
}