Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | 3x | import { Sparkles, PenLine } from "lucide-react";
interface BlogStartChoiceScreenProps {
onStartWithAI: () => void;
onStartFromScratch: () => void;
}
export function BlogStartChoiceScreen({
onStartWithAI,
onStartFromScratch,
}: BlogStartChoiceScreenProps) {
return (
<div className="max-w-2xl mx-auto py-6 sm:py-12 px-4 sm:px-0">
<h1 className="text-3xl font-bold text-center mb-2 hidden sm:block">
Create a New Blog Post
</h1>
<p className="text-foreground-muted text-center mb-6 sm:mb-10 hidden sm:block">
Choose how you'd like to get started
</p>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-6">
<button
type="button"
onClick={onStartWithAI}
className="group flex flex-col items-center gap-4 p-8 rounded-xl border-2 border-border-default hover:border-purple-400 hover:bg-purple-50/50 transition-all"
>
<div className="w-14 h-14 rounded-full bg-purple-100 flex items-center justify-center group-hover:bg-purple-200 transition-colors">
<Sparkles className="h-7 w-7 text-purple-600" />
</div>
<div className="text-center">
<h2 className="text-lg font-semibold mb-1">Start with AI</h2>
<p className="text-sm text-foreground-muted">
Get AI-powered topic suggestions and generate a draft
</p>
</div>
</button>
<button
type="button"
onClick={onStartFromScratch}
className="group flex flex-col items-center gap-4 p-8 rounded-xl border-2 border-border-default hover:border-primary-400 hover:bg-primary-50/50 transition-all"
>
<div className="w-14 h-14 rounded-full bg-primary-100 flex items-center justify-center group-hover:bg-primary-200 transition-colors">
<PenLine className="h-7 w-7 text-primary-600" />
</div>
<div className="text-center">
<h2 className="text-lg font-semibold mb-1">Start from Scratch</h2>
<p className="text-sm text-foreground-muted">
Open a blank editor and write your own content
</p>
</div>
</button>
</div>
</div>
);
}
|