A new spotlight component with left and right spotlight, configurable and customizable.
"use client"; import React from "react"; import { Spotlight, GridBackground } from "@/components/blocks/spotlight-new"; export function SpotlightNewDemo() { return ( <div className="h-[40rem] w-full rounded-md flex md:items-center md:justify-center bg-black/[0.96] antialiased bg-grid-white/[0.02] relative overflow-hidden"> <GridBackground /> <Spotlight /> <div className=" p-4 max-w-7xl mx-auto relative z-10 w-full pt-20 md:pt-0"> <h1 className="text-4xl md:text-7xl font-bold text-center bg-clip-text text-transparent bg-gradient-to-b from-neutral-50 to-neutral-400 bg-opacity-50"> Spotlight <br /> which is not overused. </h1> <p className="mt-4 font-normal text-base text-neutral-300 max-w-lg text-center mx-auto"> A subtle yet effective spotlight effect, because the previous version is used a bit too much these days. </p> </div> </div> ); }
Part of Aceternity UI — browse the full library on 21st.dev.