Sunflower UI
Search
Copy Code
Light Mode
Florianópolis

Florianópolis

Santa Catarina, Brazil

Most of the city sits on an island, with something like forty beaches around its edge. Flat water and mangroves in the north, open Atlantic surf down the east coast.

card-demo.tsx
card.tsx
prompt.md
Collapse
Reset
Copy Code
Download
Run
1
import {
2
Card,
3
CardContent,
4
CardDescription,
5
CardFooter,
6
CardHeader,
7
CardTitle,
8
} from "@/components/ui/card"
9
import { MapPin } from "lucide-react"
10
11
export default function CardDemo() {
12
return (
13
<div className="w-full flex items-center justify-center p-4">
14
<Card className="w-[330px] sm:w-[350px] relative overflow-hidden rounded-2xl">
15
{/* Card Image */}
16
<div className="w-full h-[220px] relative overflow-hidden rounded-t-2xl">
17
<img
18
src="/carousel/1.png"
19
alt="Florianópolis"
20
className="w-full h-full object-cover rounded-t-2xl transition-transform duration-700 hover:scale-105"
21
/>
22
{/* Subtle gradient overlay at bottom of image */}
23
<div className="absolute inset-x-0 bottom-0 h-1/2 bg-gradient-to-t from-black/40 to-transparent pointer-events-none" />
24
</div>
25
26
<CardHeader className="pb-4 px-6 pt-5">
27
<CardTitle className="text-[17px] mb-1.5 text-zinc-900 dark:text-[#F5F5F7] font-semibold tracking-tight">Florianópolis</CardTitle>
28
<CardDescription className="text-[13px] text-zinc-500 dark:text-[#86868B] flex items-center gap-1.5 font-medium font-matter">
29
<MapPin className="w-3.5 h-3.5" />
30
Santa Catarina, Brazil
31
</CardDescription>
32
</CardHeader>
33
34
<CardContent className="px-6 pb-6">
35
<p className="text-[13.5px] leading-[1.6] text-zinc-600 dark:text-[#86868B] font-matter">
36
Most of the city sits on an island, with something like forty beaches
37
around its edge. Flat water and mangroves in the north, open Atlantic
38
surf down the east coast.
39
</p>
40
</CardContent>
41
</Card>
42
</div>
43
)
44
}
45