Dhileep Kumar GM

ReferAndWinBanner

Heroes 29

About

A customizable, animated banner component featuring floating paper airplanes and decorative checkmarks—ideal for referral, promotional, or announcement sections.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds ReferAndWinBanner to your project and fits it to your theme.

Code

How ReferAndWinBanner is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import React, { useEffect } from 'react';
import ReferAndWinBanner from '@/components/ui/refer-and-win-banner';

export default function App() {
  // Sync dark mode with user system preference
  useEffect(() => {
    const root = document.documentElement;
    const media = window.matchMedia('(prefers-color-scheme: dark)');
    const applyTheme = (e) => {
      if (e.matches) root.classList.add('dark');
      else root.classList.remove('dark');
    };
    applyTheme(media);
    media.addListener(applyTheme);
    return () => media.removeListener(applyTheme);
  }, []);

  return (
    <main
      className="
        min-h-screen
        bg-[hsl(var(--background))]
        text-[hsl(var(--foreground))]
        flex
        items-center
        justify-center
        overflow-hidden
      "
    >
      <ReferAndWinBanner title="Refer & Win" />
    </main>
  );
}

More by Dhileep Kumar GM

View all
  • Aether Flow Hero

    Aether Flow Hero

    1.9K
  • Woven Light Hero

    Woven Light Hero

    1.6K
  • AnomalousMatterHero

    AnomalousMatterHero

    1.5K
  • PulseFit hero

    PulseFit hero

    947
  • Mountain Scene

    Mountain Scene

    864
  • HolographicCard

    HolographicCard

    819
  • 3D Animation

    3D Animation

    781
  • Cybernetic Bento Grid

    Cybernetic Bento Grid

    557

More in Heroes

View all
  • SaaS Template

    SaaS Template

    2.5K
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • Hero

    Hero

    1.3K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    976
  • Aero Hero-3

    Aero Hero-3

    580
  • Editorial Collage Hero

    Editorial Collage Hero

    460
  • Glass Fold

    Glass Fold

    306
  • HeroSectionWithGradient

    HeroSectionWithGradient

    351