Add background image and styling improvements for artist cards
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
@@ -16,4 +16,11 @@ const { runningOrder, country, artist, title, flag, artistID } = defineProps(['r
|
|||||||
<img class="w-1/4" src="https://placehold.co/100" alt="{{ flag }}">
|
<img class="w-1/4" src="https://placehold.co/100" alt="{{ flag }}">
|
||||||
</div>
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.ArtistCard {
|
||||||
|
background-color: rgba(255, 255, 255, 0.2);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
+12
-2
@@ -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>
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 150 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 596 KiB |
Reference in New Issue
Block a user