feat: get image from tmdb

This commit is contained in:
2023-07-31 17:21:17 +02:00
parent 79975905d1
commit 3a5c5b4404
12 changed files with 148 additions and 29 deletions

View File

@@ -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>
);
}