Tailwind CSS Required
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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
interface StudioWelcomeProps { title?: string; highlight?: string; subtitle?: string; badge?: string; } export default function StudioWelcome({ title = "Build something", highlight = "people will use", subtitle = "Replace this sample with your own component, then submit it so other developers can copy it and use it.", badge = "Open to everyone", }: StudioWelcomeProps) { const css = "@keyframes studioShine{0%{background-position:0% 50%}100%{background-position:200% 50%}}" + "@keyframes studioPing{0%{transform:scale(1);opacity:.7}100%{transform:scale(2.6);opacity:0}}" + "@keyframes studioRise{0%{opacity:0;transform:translateY(14px)}100%{opacity:1;transform:translateY(0)}}"; const steps = ["Build", "Preview", "Submit"]; const waves = [ { id: "studioWaveTl", className: "left-0 top-0" }, { id: "studioWaveBr", className: "bottom-0 right-0 rotate-180" }, ]; return ( <section className="relative flex min-h-screen w-full items-center justify-center overflow-hidden bg-[#050505] px-4 py-10"> <style>{css}</style> {/* Soft curved shapes, very low contrast */} {waves.map((wave) => ( <svg key={wave.id} aria-hidden="true" viewBox="0 0 800 520" preserveAspectRatio="xMinYMin slice" className={"pointer-events-none absolute h-[55%] w-[70%] md:w-[48%] " + wave.className} > <defs> <linearGradient id={wave.id} x1="0" y1="0" x2="1" y2="1"> <stop offset="0" stopColor="#ffffff" stopOpacity="0.07" /> <stop offset="1" stopColor="#ffffff" stopOpacity="0" /> </linearGradient> </defs> <path d="M0 0 H600 C560 110 470 200 330 250 C220 290 90 296 0 380 Z" fill={"url(#" + wave.id + ")"} stroke="rgba(255,255,255,0.04)" strokeWidth="1" /> <path d="M0 0 H400 C370 90 300 160 200 195 C120 222 50 226 0 270 Z" fill={"url(#" + wave.id + ")"} stroke="rgba(255,255,255,0.05)" strokeWidth="1" /> </svg> ))} {/* Dotted grid, faded toward the edges */} <div className="pointer-events-none absolute inset-0" style={{ backgroundImage: "radial-gradient(#252525 1px, transparent 1.2px)", backgroundSize: "22px 22px", WebkitMaskImage: "radial-gradient(ellipse at center, black 30%, transparent 80%)", maskImage: "radial-gradient(ellipse at center, black 30%, transparent 80%)", }} /> {/* Card */} <div className="relative w-full max-w-2xl animate-[studioRise_0.8s_ease-out_both] rounded-3xl border border-[#1f1f1f] bg-[#0a0a0a]/80 px-6 py-9 text-center shadow-[0_30px_80px_-20px_rgba(0,0,0,0.9)] backdrop-blur-xl sm:px-12 sm:py-11"> <div className="mx-auto inline-flex items-center gap-2 rounded-full border border-[#262626] bg-[#111111] px-3.5 py-1.5 text-xs font-medium text-zinc-300"> <span className="relative flex h-2 w-2"> <span className="absolute inline-flex h-full w-full animate-[studioPing_1.8s_ease-out_infinite] rounded-full bg-[#2F6BFF]" /> <span className="relative inline-flex h-2 w-2 rounded-full bg-[#2F6BFF]" /> </span> {badge} </div> <h1 className="mt-5 text-3xl font-extrabold tracking-tight text-white sm:text-5xl"> {title}{" "} <span className="animate-[studioShine_6s_linear_infinite] bg-gradient-to-r from-[#7aa2ff] via-[#2F6BFF] to-[#7aa2ff] bg-[length:200%_auto] bg-clip-text text-transparent"> {highlight} </span> </h1> <div className="mx-auto mt-3 h-[2px] w-14 rounded-full bg-[#2F6BFF]" /> <p className="mx-auto mt-3 max-w-md text-sm leading-relaxed text-[#A1A1AA] sm:text-base"> {subtitle} </p> <div className="mt-6 flex flex-wrap items-center justify-center gap-2"> {steps.map((name, i) => { const last = i === steps.length - 1; return ( <div key={name} className="flex items-center gap-2"> <span className={ "inline-flex items-center gap-2 rounded-full border py-1 pl-1.5 pr-3.5 text-xs font-semibold " + (last ? "border-white bg-white text-[#050505]" : "border-[#262626] bg-[#111111] text-white") } > <span className={ "flex h-5 w-5 items-center justify-center rounded-full text-[10px] font-bold " + (last ? "bg-[#050505] text-white" : "bg-white text-[#050505]") } > {i + 1} </span> {name} </span> {!last && ( <svg aria-hidden="true" viewBox="0 0 16 16" className="h-3.5 w-3.5 text-zinc-600"> <path d="M6 3l5 5-5 5" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" /> </svg> )} </div> ); })} </div> </div> </section> ); }
Preview
100%