BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/aceternity/cards-demo-2

Cards Demo 2

aceternity/cards-demo-2
FreeBlock

Content Card

Install it

npx shadcn@latest add https://ui.aceternity.com/registry/cards-demo-2.json

Source

components/cards-demo-2.tsxui.aceternity.com/registry/cards-demo-2.json
1"use client";
2import { cn } from "@/lib/utils";
3
4
5export default function CardDemo() {
6 return (
7 <div className="max-w-xs w-full group/card">
8 <div
9 className={cn(
10 " cursor-pointer overflow-hidden relative card h-96 rounded-md shadow-xl max-w-sm mx-auto backgroundImage flex flex-col justify-between p-4",
11 "bg-[url(https://images.unsplash.com/photo-1544077960-604201fe74bc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1651&q=80)] bg-cover"
12 )}
13 >
14 <div className="absolute w-full h-full top-0 left-0 transition duration-300 group-hover/card:bg-black opacity-60"></div>
15 <div className="flex flex-row items-center space-x-4 z-10">
16 <img
17 height="100"
18 width="100"
19 alt="Avatar"
20 src="/manu.png"
21 className="h-10 w-10 rounded-full border-2 object-cover"
22 />
23 <div className="flex flex-col">
24 <p className="font-normal text-base text-gray-50 relative z-10">
25 Manu Arora
26 </p>
27 <p className="text-sm text-gray-400">2 min read</p>
28 </div>
29 </div>
30 <div className="text content">
31 <h1 className="font-bold text-xl md:text-2xl text-gray-50 relative z-10">
32 Author Card
33 </h1>
34 <p className="font-normal text-sm text-gray-50 relative z-10 my-4">
35 Card with Author avatar, complete name and time to read - most
36 suitable for blogs.
37 </p>
38 </div>
39 </div>
40 </div>
41 );
42}

Files it writes

  • block/cards-demo-2.tsx

Facts

Registry
aceternity
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

ui.aceternity.com rickhallett/becoming-diamond-nextjs on GitHub Raw registry item This item as JSON

More from aceternity

All 89 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
animated-beam-path-illustrationanimated-beam-path-illustrationaceternityBlocksPaid1 dep
background-dotsbackground-dotsaceternityBlocksPaidno deps
background-dots-maskedbackground-dots-maskedaceternityBlocksPaidno deps
background-dots-masked-verticalbackground-dots-masked-verticalaceternityBlocksPaidno deps
background-grid-with-dotsbackground-grid-with-dotsaceternityBlocksPaidno deps
background-grid-with-dots-and-animationsbackground-grid-with-dots-and-animationsaceternityBlocksPaidno deps
background-noise-gridbackground-noise-gridaceternityBlocksPaidno deps
background-with-full-videobackground-with-full-videoaceternityBlocksPaid1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex