Add background image and styling improvements for artist cards

This commit is contained in:
Esa Kataja
2025-05-04 17:10:57 +03:00
parent 1a20721cbb
commit 1b403c3d2b
5 changed files with 31 additions and 6 deletions
+8
View File
@@ -1,5 +1,13 @@
@import "tailwindcss"; @import "tailwindcss";
body {
font-family: 'Poppins';
}
.container {
@apply max-w-4/5 mx-auto;
}
.btn-primary { .btn-primary {
@apply bg-blue-600 text-white px-4 py-2 rounded; @apply bg-blue-600 text-white px-4 py-2 rounded;
} }
+10 -3
View File
@@ -4,11 +4,11 @@ const { runningOrder, country, artist, title, flag, artistID } = defineProps(['r
<template> <template>
<NuxtLink :to="`/review/${artistID}`"> <NuxtLink :to="`/review/${artistID}`">
<div class="flex gap-4 border border-slate-200 justify-between overflow-clip items-center rounded-2xl"> <div class="flex gap-4 border border-slate-200 justify-between overflow-clip items-center rounded-2xl ArtistCard">
<h2 class="w-1/4 text-center">{{ runningOrder }}</h2> <h2 class="w-1/4 text-center text-slate-300 text-6xl">{{ runningOrder }}</h2>
<div class="flex flex-col w-1/2"> <div class="flex flex-col w-1/2">
<h2>{{ country }}</h2> <h2>{{ country }}</h2>
<p class="flex gap-2 text-sm"> <p class="flex md:gap-2 text-sm flex-col md:flex-row">
<span class="font-bold">{{ artist }}</span> <span class="font-bold">{{ artist }}</span>
<span class="italic">{{ title }}</span> <span class="italic">{{ title }}</span>
</p> </p>
@@ -17,3 +17,10 @@ const { runningOrder, country, artist, title, flag, artistID } = defineProps(['r
</div> </div>
</NuxtLink> </NuxtLink>
</template> </template>
<style>
.ArtistCard {
background-color: rgba(255, 255, 255, 0.2);
}
</style>
+12 -2
View File
@@ -1,13 +1,23 @@
<template> <template>
<title>Eurovision 2025</title> <title>Eurovision 2025</title>
<Header /> <Header />
<div class="container mx-auto pt-6 p-4 bg-slate-400"> <div class="container mx-auto pt-6 p-4">
<slot /> <slot />
</div> </div>
</template> </template>
<style> <style>
body { body {
background-color: #aaa; background-image: url('/bg.webp');
background-position: center;
background-repeat: no-repeat;
background-size: auto 100%;
} }
.container {
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
height: 100dvh;
}
</style> </style>
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 596 KiB