|
1 | 1 | "use client" |
2 | 2 |
|
| 3 | +import { useState } from "react" |
3 | 4 | import { motion } from "framer-motion" |
4 | 5 | import { Button } from "@/components/ui/button" |
5 | 6 | import { Badge } from "@/components/ui/badge" |
6 | 7 | import { Card, CardContent } from "@/components/ui/card" |
7 | 8 | import { ArrowRight } from "lucide-react" |
8 | 9 | import { FluentEmoji } from "@lobehub/fluent-emoji" |
| 10 | +import { GetStartedDialog } from "@/components/dialogs/get-started-dialog" |
9 | 11 |
|
10 | 12 | const containerVariants = { |
11 | 13 | hidden: { opacity: 0 }, |
@@ -72,6 +74,8 @@ const statsVariants = { |
72 | 74 | } |
73 | 75 |
|
74 | 76 | export function HeroSection() { |
| 77 | + const [getStartedOpen, setGetStartedOpen] = useState(false) |
| 78 | + |
75 | 79 | return ( |
76 | 80 | <section |
77 | 81 | className="border-b border-border -mt-14 pt-20 sm:pt-14 overflow-hidden relative" |
@@ -267,7 +271,12 @@ export function HeroSection() { |
267 | 271 | className="mt-6 sm:mt-8 flex flex-col sm:flex-row flex-wrap gap-3 sm:gap-4 justify-center lg:justify-start" |
268 | 272 | variants={itemVariants} |
269 | 273 | > |
270 | | - <Button size="lg" variant="gradient" className="w-full sm:w-auto"> |
| 274 | + <Button |
| 275 | + size="lg" |
| 276 | + variant="gradient" |
| 277 | + className="w-full sm:w-auto" |
| 278 | + onClick={() => setGetStartedOpen(true)} |
| 279 | + > |
271 | 280 | Get Started |
272 | 281 | <ArrowRight className="ml-2 h-4 w-4" /> |
273 | 282 | </Button> |
@@ -444,6 +453,9 @@ export function HeroSection() { |
444 | 453 | </motion.div> |
445 | 454 | </motion.div> |
446 | 455 | </div> |
| 456 | + |
| 457 | + {/* Get Started Dialog */} |
| 458 | + <GetStartedDialog open={getStartedOpen} onOpenChange={setGetStartedOpen} /> |
447 | 459 | </section> |
448 | 460 | ) |
449 | 461 | } |
|
0 commit comments