|
| 1 | +"use client"; |
| 2 | + |
1 | 3 | import { Icons } from "@/components/icons/icons"; |
2 | 4 | import { Section } from "@/components/section"; |
3 | 5 | import { TabbyButton } from "@/components/tabby-items/tabby-button"; |
4 | 6 | import { Button } from "@/components/ui/button"; |
5 | 7 | import { Terminal } from "lucide-react"; |
6 | | -import * as motion from "motion/react-client"; |
7 | | -import Image from "next/image"; |
| 8 | +import { motion } from "motion/react"; |
8 | 9 | import Link from "next/link"; |
9 | | -import tabbyTexture from "../../../../public/images/tabby-texture.png"; |
10 | 10 |
|
11 | 11 | const Hero = () => ( |
12 | | - <Section className="relative w-full overflow-hidden bg-dashed px-4 py-16 sm:px-16 sm:py-24 md:py-32"> |
13 | | - <motion.div |
14 | | - initial={{ opacity: 0 }} |
15 | | - animate={{ opacity: 1 }} |
16 | | - transition={{ |
17 | | - duration: 0.6, |
18 | | - scale: { type: "spring", visualDuration: 0.4, bounce: 0.5 }, |
19 | | - }} |
20 | | - whileInView={{ opacity: 1 }} |
21 | | - viewport={{ once: true }} |
22 | | - className="-z-10 absolute inset-0 h-full w-full overflow-hidden" |
| 12 | + <Section className="relative w-full overflow-hidden bg-dashed px-4 py-20 sm:px-16 sm:py-28 md:py-36"> |
| 13 | + {/* Ambient gradient background - creates depth and warmth */} |
| 14 | + <div className="absolute inset-0 -z-10 overflow-hidden"> |
| 15 | + {/* Primary warm glow - top right, brand-aligned */} |
| 16 | + <motion.div |
| 17 | + initial={{ opacity: 0 }} |
| 18 | + animate={{ opacity: 1 }} |
| 19 | + transition={{ duration: 1.2, ease: "easeOut" }} |
| 20 | + className="absolute -top-[20%] -right-[10%] h-[600px] w-[600px] md:h-[800px] md:w-[800px]" |
| 21 | + > |
| 22 | + <div |
| 23 | + className="absolute inset-0 rounded-full blur-[120px] opacity-[0.15] dark:opacity-[0.08] transition-opacity duration-700" |
| 24 | + style={{ |
| 25 | + background: "radial-gradient(circle, rgba(191, 165, 115, 1) 0%, rgba(191, 165, 115, 0.4) 40%, transparent 70%)", |
| 26 | + }} |
| 27 | + /> |
| 28 | + </motion.div> |
| 29 | + |
| 30 | + {/* Secondary accent glow - bottom left for balance */} |
| 31 | + <motion.div |
| 32 | + initial={{ opacity: 0 }} |
| 33 | + animate={{ opacity: 1 }} |
| 34 | + transition={{ duration: 1.4, delay: 0.2, ease: "easeOut" }} |
| 35 | + className="absolute -bottom-[30%] -left-[15%] h-[500px] w-[500px] md:h-[700px] md:w-[700px]" |
| 36 | + > |
| 37 | + <div |
| 38 | + className="absolute inset-0 rounded-full blur-[100px] opacity-[0.12] dark:opacity-[0.06] transition-opacity duration-700" |
| 39 | + style={{ |
| 40 | + background: "radial-gradient(circle, rgba(161, 135, 95, 1) 0%, rgba(140, 120, 80, 0.3) 50%, transparent 70%)", |
| 41 | + }} |
| 42 | + /> |
| 43 | + </motion.div> |
| 44 | + |
| 45 | + {/* Subtle center ambient - ties the composition together */} |
| 46 | + <motion.div |
| 47 | + initial={{ opacity: 0 }} |
| 48 | + animate={{ opacity: 1 }} |
| 49 | + transition={{ duration: 1.6, delay: 0.4, ease: "easeOut" }} |
| 50 | + className="absolute top-[20%] left-[30%] h-[400px] w-[400px] md:h-[500px] md:w-[500px]" |
| 51 | + > |
| 52 | + <div |
| 53 | + className="absolute inset-0 rounded-full blur-[150px] opacity-[0.08] dark:opacity-[0.04] transition-opacity duration-700" |
| 54 | + style={{ |
| 55 | + background: "radial-gradient(circle, rgba(180, 160, 120, 0.8) 0%, transparent 60%)", |
| 56 | + }} |
| 57 | + /> |
| 58 | + </motion.div> |
| 59 | + </div> |
| 60 | + |
| 61 | + {/* Content */} |
| 62 | + <motion.div |
| 63 | + initial={{ opacity: 0, y: 20 }} |
| 64 | + animate={{ opacity: 1, y: 0 }} |
| 65 | + transition={{ duration: 0.6, delay: 0.1, ease: "easeOut" }} |
| 66 | + className="mx-auto flex flex-col items-center justify-center gap-10" |
23 | 67 | > |
24 | | - <Image |
25 | | - src={tabbyTexture} |
26 | | - alt="Tabby Texture Background" |
27 | | - fill |
28 | | - className="pointer-events-none absolute inset-0 select-none object-cover opacity-60 dark:opacity-40" |
29 | | - priority |
30 | | - /> |
31 | | - {/* Gradient overlay for better text readability */} |
32 | | - <div className="absolute inset-0 bg-gradient-to-t from-background via-background/80 to-transparent" /> |
33 | | - </motion.div> |
34 | | - <div className="mx-auto flex flex-col items-center justify-center gap-8"> |
| 68 | + {/* Badge */} |
35 | 69 | <Button |
36 | 70 | variant="outline" |
37 | 71 | size="sm" |
38 | | - className="group gap-4 bg-muted/70" |
| 72 | + className="group gap-2 border-border/60 bg-background/50 backdrop-blur-sm hover:border-[#BFA573]/40 hover:bg-[#BFA573]/5 transition-all duration-300" |
39 | 73 | asChild |
40 | 74 | > |
41 | 75 | <Link href="/playground"> |
| 76 | + <span className="relative flex h-2 w-2"> |
| 77 | + <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-[#BFA573] opacity-75" /> |
| 78 | + <span className="relative inline-flex h-2 w-2 rounded-full bg-[#BFA573]" /> |
| 79 | + </span> |
42 | 80 | Try the Playground |
43 | | - <Icons.arrowUpRight className="group-hover:-rotate-12 size-4 transition-transform" /> |
| 81 | + <Icons.arrowUpRight className="size-3.5 text-muted-foreground group-hover:text-[#BFA573] transition-colors" /> |
44 | 82 | </Link> |
45 | 83 | </Button> |
46 | | - <div className="flex flex-col items-center gap-6"> |
47 | | - <h1 className="max-w-3xl text-center font-bold text-4xl tracking-tight sm:text-5xl md:text-7xl"> |
48 | | - API Stress Testing |
| 84 | + |
| 85 | + {/* Headline */} |
| 86 | + <div className="flex flex-col items-center gap-5"> |
| 87 | + <h1 className="max-w-4xl text-center font-bold text-4xl tracking-tight sm:text-5xl md:text-6xl lg:text-7xl"> |
| 88 | + <span className="bg-gradient-to-b from-foreground to-foreground/70 bg-clip-text text-transparent"> |
| 89 | + API Stress Testing |
| 90 | + </span> |
49 | 91 | <br /> |
50 | | - <span className="text-muted-foreground/70">Made Simple</span> |
| 92 | + <span className="bg-gradient-to-r from-[#BFA573] via-[#D4BC8E] to-[#BFA573] bg-clip-text text-transparent"> |
| 93 | + Made Simple |
| 94 | + </span> |
51 | 95 | </h1> |
52 | | - <p className="max-w-lg text-center text-muted-foreground leading-relaxed md:text-lg"> |
| 96 | + <p className="max-w-xl text-center text-muted-foreground/90 leading-relaxed text-base md:text-lg"> |
53 | 97 | A powerful terminal-based HTTP testing tool with automated data |
54 | 98 | generation, loop mode for stress testing, and template support. |
55 | 99 | </p> |
56 | 100 | </div> |
57 | | - <div className="flex flex-row gap-3"> |
58 | | - <TabbyButton size="lg" asChild> |
| 101 | + |
| 102 | + {/* CTAs */} |
| 103 | + <div className="flex flex-col sm:flex-row items-center gap-3"> |
| 104 | + <TabbyButton size="lg" className="min-w-[180px]" asChild> |
59 | 105 | <Link href="/docs"> |
60 | | - Documentation |
61 | | - <Icons.arrowUpRight className="size-4 transition-transform group-hover:-rotate-12" /> |
| 106 | + Get Started |
| 107 | + <Icons.arrowRight className="size-4 transition-transform group-hover:translate-x-0.5" /> |
62 | 108 | </Link> |
63 | 109 | </TabbyButton> |
64 | | - <Button size="lg" className="group gap-4" variant="outline" asChild> |
| 110 | + <Button size="lg" className="group min-w-[180px] gap-2" variant="outline" asChild> |
65 | 111 | <Link href="/playground"> |
66 | | - <Terminal className="size-4 transition-transform group-hover:-rotate-12" /> |
67 | | - Try Playground |
| 112 | + <Terminal className="size-4 text-muted-foreground group-hover:text-foreground transition-colors" /> |
| 113 | + Playground |
68 | 114 | </Link> |
69 | 115 | </Button> |
70 | 116 | </div> |
71 | | - </div> |
| 117 | + </motion.div> |
72 | 118 | </Section> |
73 | 119 | ); |
74 | 120 |
|
|
0 commit comments