a
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
import { Card } from "@/components/retroui/Card";
|
||||
import { Badge } from "@/components/retroui/Badge";
|
||||
import { Text } from "@/components/retroui/Text";
|
||||
import { Button } from "@/components/retroui/Button";
|
||||
|
||||
const CourseCard = () => {
|
||||
return (
|
||||
<div className="flex justify-center">
|
||||
<Card className="w-[400px] mx-auto border-2 shadow-none">
|
||||
{/* Course Content */}
|
||||
<Card.Content>
|
||||
{/* Title & Price */}
|
||||
<div className="flex justify-between items-start mb-2 gap-6">
|
||||
<Card.Title className="font-sans">
|
||||
Advanced React Patterns
|
||||
</Card.Title>
|
||||
<div>
|
||||
<Badge className="font-medium">
|
||||
$49.99
|
||||
</Badge>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Description */}
|
||||
<Text className="text-sm font-normal text-muted-foreground mb-4">
|
||||
Master advanced React patterns and build scalable applications with
|
||||
best practices.
|
||||
</Text>
|
||||
|
||||
{/* Stats */}
|
||||
<div className="flex text-sm justify-between gap-4 py-4 border-y-2 border-black/10 mb-4">
|
||||
<div className="flex items-center gap-1">
|
||||
<span>📚</span>
|
||||
<span className="font-medium">12 Modules</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-1">
|
||||
<span>⭐</span>
|
||||
<span className="font-medium">4.9/5</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-1">
|
||||
<span>👥</span>
|
||||
<span className="font-medium">2.1k enrolled</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Button className="w-full font-bold font-sans justify-center">
|
||||
Enroll Now →
|
||||
</Button>
|
||||
</Card.Content>
|
||||
</Card>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default CourseCard;
|
||||
@@ -0,0 +1,111 @@
|
||||
import { Button } from "@/components/retroui/Button";
|
||||
import { Text } from "@/components/retroui/Text";
|
||||
|
||||
import { Checkbox } from "@/components/retroui/Checkbox";
|
||||
import { Input } from "@/components/retroui/Input";
|
||||
import { Label } from "@/components/retroui/Label";
|
||||
import { Eye, EyeOff, Github, Mail } from "lucide-react";
|
||||
import { useState } from "react";
|
||||
|
||||
export default function SignInBlock() {
|
||||
const [showPassword, setShowPassword] = useState(false);
|
||||
|
||||
return (
|
||||
<div className="mx-auto w-full max-w-lg overflow-hidden rounded border-2 bg-card">
|
||||
<div className="bg-accent p-6">
|
||||
<Text as="h3" className="text-accent-foreground">Sign In</Text>
|
||||
<Text className="text-sm text-accent-foreground">
|
||||
Welcome back! Enter your details to access your account.
|
||||
</Text>
|
||||
</div>
|
||||
<div className="p-6">
|
||||
<div className="space-y-4">
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="email">Email</Label>
|
||||
<Input id="email" type="email" placeholder="you@example.com" />
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<div className="flex items-center justify-between">
|
||||
<Label htmlFor="password">Password</Label>
|
||||
<a
|
||||
href="/forgot-password"
|
||||
className="text-sm font-medium underline underline-offset-4"
|
||||
>
|
||||
Forgot password?
|
||||
</a>
|
||||
</div>
|
||||
<div className="relative">
|
||||
<Input
|
||||
id="password"
|
||||
type={showPassword ? "text" : "password"}
|
||||
placeholder="••••••••"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
className="absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent"
|
||||
onClick={() => setShowPassword(!showPassword)}
|
||||
>
|
||||
{showPassword ? (
|
||||
<EyeOff className="h-4 w-4" />
|
||||
) : (
|
||||
<Eye className="h-4 w-4" />
|
||||
)}
|
||||
<span className="sr-only">
|
||||
{showPassword ? "Hide password" : "Show password"}
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center space-x-2">
|
||||
<Checkbox id="remember" />
|
||||
<label
|
||||
htmlFor="remember"
|
||||
className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
||||
>
|
||||
Remember me
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div className="mt-8 space-y-6">
|
||||
<Button className="w-full justify-center">Sign In</Button>
|
||||
<div className="relative">
|
||||
<div className="absolute inset-0 flex items-center">
|
||||
<span className="w-full border-t border-gray-300" />
|
||||
</div>
|
||||
<div className="relative flex justify-center text-xs uppercase">
|
||||
<span className="bg-white px-2 text-gray-500">
|
||||
Or continue with
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
<Button
|
||||
variant="secondary"
|
||||
className="flex items-center justify-center"
|
||||
>
|
||||
<Github className="mr-2 h-5 w-5" />
|
||||
Github
|
||||
</Button>
|
||||
<Button
|
||||
variant="secondary"
|
||||
className="flex items-center justify-center"
|
||||
>
|
||||
<Mail className="mr-2 h-5 w-5" />
|
||||
Google
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<div className="mt-6 text-center text-sm">
|
||||
Don't have an account?{" "}
|
||||
<a
|
||||
href="/sign-up"
|
||||
className="font-bold underline underline-offset-4"
|
||||
>
|
||||
Sign up
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
import { Avatar } from "@/components/retroui/Avatar";
|
||||
import { Badge } from "@/components/retroui/Badge";
|
||||
import { Text } from "@/components/retroui/Text";
|
||||
import { Clock, User } from "lucide-react";
|
||||
|
||||
export default function TeamMembersBlock() {
|
||||
return (
|
||||
<div className="flex flex-col gap-3">
|
||||
<div
|
||||
className="border-2 p-4 flex items-center justify-between gap-3 bg-card rounded"
|
||||
>
|
||||
<div className="flex items-center gap-3">
|
||||
<Avatar className="w-10 h-10">
|
||||
<Avatar.Image
|
||||
src="https://pub-5f7cbdfd9ffa4c838e386788f395f0c4.r2.dev/people/person_a.png"
|
||||
alt="Person A"
|
||||
/>
|
||||
<Avatar.Fallback>
|
||||
<User className="h-5 w-5 text-muted-foreground" />
|
||||
</Avatar.Fallback>
|
||||
</Avatar>
|
||||
<div>
|
||||
<Text className="font-semibold">Alex Johnson</Text>
|
||||
<span className="text-sm text-muted-foreground">alex@example.com</span>
|
||||
</div>
|
||||
</div>
|
||||
<Badge variant="solid" size="sm">
|
||||
Admin
|
||||
</Badge>
|
||||
</div>
|
||||
|
||||
<div className="border-2 p-4 flex items-center justify-between gap-3 bg-card rounded">
|
||||
<div className="flex items-center gap-3">
|
||||
<Avatar className="w-10 h-10">
|
||||
<Avatar.Image
|
||||
src="https://pub-5f7cbdfd9ffa4c838e386788f395f0c4.r2.dev/people/person_b.png"
|
||||
alt="Person B"
|
||||
/>
|
||||
<Avatar.Fallback>
|
||||
<User className="h-5 w-5 text-muted-foreground" />
|
||||
</Avatar.Fallback>
|
||||
</Avatar>
|
||||
<div>
|
||||
<Text className="font-semibold">John Doe</Text>
|
||||
<span className="text-sm text-muted-foreground">john@example.com</span>
|
||||
</div>
|
||||
</div>
|
||||
<Badge variant="solid" size="sm">
|
||||
Member
|
||||
</Badge>
|
||||
</div>
|
||||
|
||||
<div className="border-2 p-4 flex items-center justify-between gap-3 bg-card rounded">
|
||||
<div className="flex items-center gap-3">
|
||||
<Avatar className="w-10 h-10">
|
||||
<Avatar.Image
|
||||
src="https://pub-5f7cbdfd9ffa4c838e386788f395f0c4.r2.dev/people/person_c.png"
|
||||
alt="Person C"
|
||||
/>
|
||||
<Avatar.Fallback>
|
||||
<User className="h-5 w-5 text-muted-foreground" />
|
||||
</Avatar.Fallback>
|
||||
</Avatar>
|
||||
<div>
|
||||
<Text className="font-semibold">Jane Smith</Text>
|
||||
<span className="text-sm text-muted-foreground">jane@example.com</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<Badge variant="surface" size="sm">
|
||||
Pending
|
||||
</Badge>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user