ExamCraftAI / Frontend /src /pages /Public /HowItWorks.jsx
Hkoradiya123
Initial commit
5463318
Raw History Blame Contribute Delete
5.02 kB
import React from "react";
import { UploadCloud, SlidersHorizontal, DownloadCloud, Clock } from "lucide-react";
import { motion } from "framer-motion";
export default function HowItWorks() {
return (
<div className="py-24 px-6 max-w-4xl mx-auto">
<motion.div initial={{ opacity: 0, y: 20 }} animate={{ opacity: 1, y: 0 }} className="text-center mb-16">
<h1 className="text-4xl md:text-5xl font-extrabold mb-6 tracking-tight text-foreground">
From Study Material to Structured Exam in <span className="text-primary">3 Simple Steps</span>
</h1>
<p className="text-xl text-muted-foreground mx-auto max-w-2xl">
Our intelligent orchestration abstracts away all the complexity of manual exam creation.
</p>
</motion.div>
<div className="space-y-12">
{/* Step 1 */}
<div className="flex flex-col md:flex-row gap-8 items-center bg-card p-8 border border-border rounded-2xl glass shadow-sm">
<div className="w-20 h-20 shrink-0 bg-blue-500/20 rounded-full flex items-center justify-center text-blue-500 font-black text-2xl border border-blue-500/50">
1
</div>
<div>
<h3 className="text-2xl font-bold mb-2 flex items-center gap-3"><UploadCloud className="text-blue-400" /> Step 1: Upload Material</h3>
<p className="text-lg text-muted-foreground">
Upload your syllabus document or textbook PDF. Our AI securely processes and understands your content structure, capturing learning points seamlessly.
</p>
</div>
</div>
{/* Step 2 */}
<div className="flex flex-col md:flex-row gap-8 items-center bg-card p-8 border border-border rounded-2xl glass shadow-sm">
<div className="w-20 h-20 shrink-0 bg-amber-500/20 rounded-full flex items-center justify-center text-amber-500 font-black text-2xl border border-amber-500/50">
2
</div>
<div>
<h3 className="text-2xl font-bold mb-2 flex items-center gap-3"><SlidersHorizontal className="text-amber-400" /> Step 2: Customize Your Exam</h3>
<p className="text-lg text-muted-foreground mb-2">
Dial in the exact specifications for your paper:
</p>
<div className="flex flex-wrap gap-2 text-sm font-semibold mt-4">
<span className="bg-muted px-4 py-1.5 rounded-full text-foreground/80">Question Types</span>
<span className="bg-muted px-4 py-1.5 rounded-full text-foreground/80">Difficulty Level</span>
<span className="bg-muted px-4 py-1.5 rounded-full text-foreground/80">Marks Distribution</span>
<span className="bg-muted px-4 py-1.5 rounded-full text-foreground/80">Sections</span>
<span className="bg-muted px-4 py-1.5 rounded-full text-foreground/80">Bloom’s Levels</span>
</div>
</div>
</div>
{/* Step 3 */}
<div className="flex flex-col md:flex-row gap-8 items-center bg-card p-8 border border-border rounded-2xl glass shadow-sm">
<div className="w-20 h-20 shrink-0 bg-green-500/20 rounded-full flex items-center justify-center text-green-500 font-black text-2xl border border-green-500/50">
3
</div>
<div>
<h3 className="text-2xl font-bold mb-2 flex items-center gap-3"><DownloadCloud className="text-green-400" /> Step 3: Generate & Download</h3>
<p className="text-lg text-muted-foreground">
Instantly generate your exam paper using our fine-tuned LLMs.
<br /><br />
<span className="font-bold text-foreground">Preview ➝ Edit manually if needed ➝ Download as a pristine PDF.</span>
</p>
</div>
</div>
</div>
<div className="mt-16 flex flex-col md:flex-row items-center justify-center gap-8 p-6 bg-gradient-to-r from-primary/10 to-transparent border border-primary/20 rounded-2xl text-center">
<Clock className="w-12 h-12 text-primary" />
<div className="text-left">
<h4 className="text-xl font-bold">Average generation time: Under 30 seconds</h4>
<p className="text-muted-foreground">Absolutely no manual formatting required to get institution-ready output.</p>
</div>
</div>
</div>
);
}