Kateryna Tkachuk

Lamp

Heroes 25

About

Ambient lamp glow with a bright edge line for hero sections.

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

Code

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

Usage.tsx

"use client"

import { motion } from "framer-motion"

import { LampContainer } from "@/components/ui/lamp"

const settings = {
  reverse: false,
  color: "#9EFF96",
  headline:
    "Some ideas sit quietly in the dark, waiting, unfinished, unsure of their own shape, until one light finds them, holds them still, and lets them speak for themselves.",
}

export default function LampDemo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props }

  return (
    <LampContainer reverse={s.reverse} color={s.color}>
      <motion.h1
        initial={{ opacity: 0.08, x: s.reverse ? -60 : 600 }}
        whileInView={{ opacity: 1, x: 0 }}
        transition={{
          delay: 0.2,
          duration: 1.6,
          ease: [0.16, 1, 0.3, 1],
        }}
        className={
          "max-w-[400px] bg-gradient-to-br from-slate-300 to-slate-500 py-4 bg-clip-text text-lg font-medium leading-snug tracking-tight text-transparent md:text-2xl " +
          (s.reverse ? "text-right" : "text-left")
        }
      >
        {s.headline}
      </motion.h1>
    </LampContainer>
  )
}

Dependencies

More by Kateryna Tkachuk

View all
  • Digit Stream

    Digit Stream

    128
  • ScatterClock

    ScatterClock

  • Mixtape Hero

    Mixtape Hero

  • Soft Focus Clock

    Soft Focus Clock

More in Heroes

View all
  • SaaS Template

    SaaS Template

    2.4K
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • Hero

    Hero

    1.2K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    931
  • Editorial Collage Hero

    Editorial Collage Hero

    430
  • Glass Fold

    Glass Fold

    212
  • Minimalist Hero Fashion

    Minimalist Hero Fashion

    285
  • HeroSectionWithGradient

    HeroSectionWithGradient

    336