feat: get image from tmdb
This commit is contained in:
@@ -9,6 +9,7 @@ export function Card(
|
||||
style={{
|
||||
backgroundImage: `url(${image})`,
|
||||
backgroundSize: "cover",
|
||||
//background: "#2B2930",
|
||||
}}
|
||||
class="text-white rounded-3xl shadow-md p-4 relative overflow-hidden
|
||||
lg:w-56 lg:h-56
|
||||
@@ -23,7 +24,10 @@ export function Card(
|
||||
{title}
|
||||
</div>
|
||||
</div>
|
||||
<div class="absolute inset-x-0 bottom-0 h-3/4 bg-gradient-to-t from-black to-transparent" />
|
||||
<div
|
||||
class="absolute inset-x-0 bottom-0 h-3/4"
|
||||
style={{ background: "linear-gradient(transparent, #000e)" }}
|
||||
/>
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user