mirror of
https://github.com/0xShay/ticketchain.git
synced 2026-01-11 21:23:24 +00:00
102 lines
3.0 KiB
TypeScript
102 lines
3.0 KiB
TypeScript
'use client';
|
|
import * as React from 'react';
|
|
import { Button } from '@/components/ui/button';
|
|
import {
|
|
Card,
|
|
CardContent,
|
|
CardDescription,
|
|
CardFooter,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from '@/components/ui/card';
|
|
import { Input } from '@/components/ui/input';
|
|
import { Label } from '@/components/ui/label';
|
|
import {
|
|
Select,
|
|
SelectContent,
|
|
SelectItem,
|
|
SelectTrigger,
|
|
SelectValue,
|
|
} from '@/components/ui/select';
|
|
import { motion } from 'framer-motion';
|
|
|
|
// Dark theme and animation setup
|
|
const cardVariants = {
|
|
hidden: { opacity: 0, y: 10 },
|
|
visible: { opacity: 1, y: 0 },
|
|
};
|
|
|
|
const Profile = () => {
|
|
return (
|
|
<motion.div
|
|
initial="hidden"
|
|
animate="visible"
|
|
variants={cardVariants}
|
|
transition={{ duration: 0.5, ease: 'easeOut' }}
|
|
>
|
|
<Card className="w-[350px] bg-[#1e2a3a] text-white shadow-lg">
|
|
<CardHeader>
|
|
<motion.div
|
|
initial={{ opacity: 0, y: -10 }}
|
|
animate={{ opacity: 1, y: 0 }}
|
|
transition={{ delay: 0.1, duration: 0.5 }}
|
|
>
|
|
<CardTitle className="text-lg font-semibold">Profile</CardTitle>
|
|
</motion.div>
|
|
</CardHeader>
|
|
<CardContent>
|
|
<form>
|
|
<div className="grid w-full items-center gap-4">
|
|
<motion.div
|
|
className="flex flex-col space-y-1.5"
|
|
initial={{ opacity: 0, x: -10 }}
|
|
animate={{ opacity: 1, x: 0 }}
|
|
transition={{ delay: 0.2, duration: 0.4 }}
|
|
>
|
|
<Label htmlFor="name" className="text-gray-300">
|
|
Name
|
|
</Label>
|
|
<Input
|
|
id="name"
|
|
placeholder="Name"
|
|
className="bg-[#2b3a4a] text-white placeholder-gray-400"
|
|
/>
|
|
</motion.div>
|
|
<motion.div
|
|
className="flex flex-col space-y-1.5"
|
|
initial={{ opacity: 0, x: -10 }}
|
|
animate={{ opacity: 1, x: 0 }}
|
|
transition={{ delay: 0.3, duration: 0.4 }}
|
|
>
|
|
<Label htmlFor="framework" className="text-gray-300">
|
|
MetaMask Public Key
|
|
</Label>
|
|
<Input
|
|
id="name"
|
|
placeholder="Key"
|
|
className="bg-[#2b3a4a] text-white placeholder-gray-400"
|
|
/>
|
|
</motion.div>
|
|
</div>
|
|
</form>
|
|
</CardContent>
|
|
<CardFooter className="flex justify-between">
|
|
<motion.div
|
|
initial={{ opacity: 0, y: 10 }}
|
|
animate={{ opacity: 1, y: 0 }}
|
|
transition={{ delay: 0.4, duration: 0.4 }}
|
|
>
|
|
<Button className="bg-[#365b85] text-white hover:bg-[#2b4a70]">
|
|
Save
|
|
</Button>
|
|
</motion.div>
|
|
</CardFooter>
|
|
</Card>
|
|
</motion.div>
|
|
);
|
|
};
|
|
export default Profile;
|
|
// return <EventDescription/>
|
|
// return <ConfirmationTicket ticketTitle='taylor swift' ticketID='2' eventDate='27th september'/>;
|
|
// return <Profile/>;
|