banner-11-block
stackzero/banner-11-blockFreeBlock
stackzero publishes no description for this item.
Install it
npx shadcn@latest add https://ui.stackzero.co/r/banner-11-block.jsonSource
1"use client";23import React, { useState } from "react";45function Banner_11() {6 const [isVisible, setIsVisible] = useState(true);78 // Payment options data - removed icons and using text only9 const paymentOptions = [10 { name: "Credit Cards" },11 { name: "PayPal" },12 { name: "Apple Pay" },13 { name: "Google Pay" },14 { name: "Bank Transfer" },15 { name: "Crypto" },16 ];1718 // Hide banner when user dismisses it19 const dismissBanner = () => {20 setIsVisible(false);21 };2223 if (!isVisible) return null;2425 return (26 <div className="relative overflow-hidden rounded-xl bg-gradient-to-br from-white to-gray-50 p-6 shadow-xl transition-all duration-300">27 {/* Top gradient accent - enhanced with animation */}28 <div className="animate-gradient absolute inset-x-0 top-0 h-2 bg-gradient-to-r from-blue-600 via-purple-600 to-pink-600"></div>2930 <div className="mb-5 flex items-center justify-between">31 <h3 className="text-xl font-bold tracking-tight text-gray-800">32 Multiple Payment Options Available33 </h3>3435 <button36 className="rounded-full p-1.5 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600"37 onClick={dismissBanner}38 aria-label="Dismiss"39 >40 <svg41 xmlns="http://www.w3.org/2000/svg"42 className="h-5 w-5"43 fill="none"44 viewBox="0 0 24 24"45 stroke="currentColor"46 >47 <path48 strokeLinecap="round"49 strokeLinejoin="round"50 strokeWidth={2}51 d="M6 18L18 6M6 6l12 12"52 />53 </svg>54 </button>55 </div>5657 <p className="mb-6 max-w-3xl text-gray-600">58 Checkout made easy with flexible payment methods. Choose what works best59 for you.60 </p>6162 <div className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-6">63 {paymentOptions.map((option, index) => (64 <div65 key={index}66 className="group flex items-center justify-center rounded-lg border border-gray-200 bg-white p-4 shadow-sm transition-all duration-200 hover:scale-[1.02] hover:transform hover:border-blue-300 hover:bg-blue-50 hover:shadow-md"67 >68 <span className="text-sm font-medium text-gray-700 group-hover:text-blue-700">69 {option.name}70 </span>71 </div>72 ))}73 </div>7475 <div className="mt-6 text-center">76 <a77// … 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-01-blockbanner-01-block | stackzero | Blocks | Free | no 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 |
