banner-01-block
stackzero/banner-01-blockFreeBlock
stackzero publishes no description for this item.
Install it
npx shadcn@latest add https://ui.stackzero.co/r/banner-01-block.jsonSource
1"use client";23import React, { useState, useEffect } from "react";45function Banner_01() {6 const [isLoaded, setIsLoaded] = useState(false);78 useEffect(() => {9 const timer = setTimeout(() => {10 setIsLoaded(true);11 }, 100);1213 return () => clearTimeout(timer);14 }, []);1516 return (17 <div className="relative w-full overflow-hidden rounded-lg bg-gradient-to-r from-blue-600 to-violet-600 p-8 text-white shadow-xl">18 {/* Animated background elements */}19 <div className="absolute inset-0 overflow-hidden">20 <div className="absolute -top-16 -left-16 h-32 w-32 animate-pulse rounded-full bg-white opacity-10"></div>21 <div className="absolute top-5 right-10 h-12 w-12 rounded-full bg-white opacity-10"></div>22 <div className="absolute -right-8 -bottom-8 h-32 w-32 animate-pulse rounded-full bg-blue-400 opacity-20 delay-300"></div>23 </div>2425 <div className="relative z-10 flex flex-col items-center justify-between space-y-6 md:flex-row md:space-y-0">26 <div27 className={`transition-all duration-700 ${isLoaded ? "translate-y-0 opacity-100" : "translate-y-4 opacity-0"}`}28 >29 <p className="mb-2 inline-block rounded-full bg-white/20 px-3 py-1 text-sm font-semibold tracking-wider backdrop-blur-sm">30 JUST RELEASED31 </p>32 <h1 className="text-3xl font-bold tracking-tight md:text-4xl lg:text-5xl">33 New Collection <span className="text-blue-200">Launch</span>34 </h1>35 <p className="mt-3 max-w-md text-sm text-blue-100 md:text-base">36 Exclusive designs at special introductory prices. Limited time offer37 ending soon. Don't miss out.38 </p>39 </div>4041 <div42 className={`transition-all delay-300 duration-700 ${isLoaded ? "translate-y-0 opacity-100" : "translate-y-4 opacity-0"}`}43 >44 <button className="group relative overflow-hidden rounded-full bg-white px-8 py-3 font-medium text-blue-600 shadow-md transition-all hover:shadow-lg">45 <span className="absolute inset-0 h-full w-1/2 -translate-x-full transform bg-gradient-to-r from-blue-400/20 via-transparent to-transparent transition-transform duration-300 group-hover:translate-x-full"></span>46 Shop Now47 <span className="ml-2 inline-block transition-transform group-hover:translate-x-1">48 →49 </span>50 </button>51 </div>52 </div>53 </div>54 );55}5657// … truncated
Files it writes
More from stackzero
All 112 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| address-01-blockaddress-01-block | stackzero | Blocks | Free | 4 deps | |
| address-02-blockaddress-02-block | stackzero | Blocks | Free | 4 deps | |
| address-03-blockaddress-03-block | stackzero | Blocks | Free | 4 deps | |
| banner-02-blockbanner-02-block | stackzero | Blocks | Free | no deps | |
| banner-03-blockbanner-03-block | stackzero | Blocks | Free | no deps | |
| banner-04-blockbanner-04-block | stackzero | Blocks | Free | no deps | |
| banner-05-blockbanner-05-block | stackzero | Blocks | Free | no deps | |
| banner-06-blockbanner-06-block | stackzero | Blocks | Free | no deps |
