create new styling for desktops
Build / Build-image (push) Successful in 40s

This commit is contained in:
2026-09-26 11:08:31 +02:00
parent 53c2fc14f5
commit 52c069aca4
4 changed files with 61 additions and 16 deletions
+4
View File
@@ -10,6 +10,10 @@
img { img {
z-index: 100; z-index: 100;
padding: 0; padding: 0;
max-width: 553px;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
background: var(--background-color); background: var(--background-color);
background: linear-gradient(0deg, var(--background-color) 0%, var(--background-color) 80%, rgba(255, 255, 255, 0) 100%); background: linear-gradient(0deg, var(--background-color) 0%, var(--background-color) 80%, rgba(255, 255, 255, 0) 100%);
} }
+5
View File
@@ -15,9 +15,14 @@
} }
div { div {
width: 100%; width: 100%;
max-width: 662px;
padding: 15px; padding: 15px;
position: sticky; position: sticky;
top: 0; top: 0;
margin-left: auto;
margin-right: auto;
margin-bottom: 20px;
background: var(--background-color); background: var(--background-color);
z-index: 100; z-index: 100;
background: linear-gradient(180deg, var(--background-color) 0%, var(--background-color) 80%, rgba(255, 255, 255, 0) 100%); background: linear-gradient(180deg, var(--background-color) 0%, var(--background-color) 80%, rgba(255, 255, 255, 0) 100%);
+4 -2
View File
@@ -55,7 +55,7 @@ function openWish() {
<div class="large-text-title z-index-normal" :style="'color: hsl(' + wish.color + ', 20%, 50%);'"> <div class="large-text-title z-index-normal" :style="'color: hsl(' + wish.color + ', 20%, 50%);'">
Lorem Ipsum Lorem Ipsum
</div> </div>
<div class="z-index-normal"> <div class="z-index-normal" style="text-align: left;">
{{ wish.title }} {{ wish.title }}
</div> </div>
</div> </div>
@@ -101,7 +101,7 @@ img.cursor{
.large-container { .large-container {
display: absolute; display: absolute;
height: 100px; height: 100px;
margin: 10px; margin: 20px;
} }
.large-absolute { .large-absolute {
display: absolute; display: absolute;
@@ -109,6 +109,7 @@ img.cursor{
} }
.large-text-title { .large-text-title {
text-transform: uppercase; text-transform: uppercase;
text-align: left;
font-size: 2.3vh; font-size: 2.3vh;
margin-top: 15px; margin-top: 15px;
} }
@@ -124,6 +125,7 @@ img.cursor{
.large-text { .large-text {
display: flex; display: flex;
font-size: 2vh; font-size: 2vh;
text-align: center;
flex-direction: column; flex-direction: column;
margin-left: 15px; margin-left: 15px;
margin-bottom: 15px; margin-bottom: 15px;
+34
View File
@@ -11,6 +11,7 @@ let interval;
const wishes = ref([]); const wishes = ref([]);
const selected = ref(-1); const selected = ref(-1);
const mobile = ref(screen.width < 760);
const call = () => { const call = () => {
axios axios
@@ -34,6 +35,7 @@ onMounted(() => {
<template> <template>
<body> <body>
<Header></Header> <Header></Header>
<template v-if="mobile">
<TopFleur/> <TopFleur/>
<div class="wrapper"> <div class="wrapper">
<Transition> <Transition>
@@ -53,6 +55,32 @@ onMounted(() => {
</div> </div>
<div class="push"></div> <div class="push"></div>
<BottomFleur/> <BottomFleur/>
</template>
<div v-else style="text-align: center;">
<TopFleur/>
<div class="desktop-container">
<div>
<template v-if="wishes.length>0">
<template v-for="i in 5">
<Wish :wish="wishes[i-1]" :selected="i-1 == selected" :index="i-1" @selectedWish="selectedWish" v-if="wishes.length>=i"/>
</template>
</template>
</div>
<div>
<template v-if="wishes.length>5">
<template v-for="i in 5">
<Wish :wish="wishes[i + 4]" :selected="i + 4 == selected" :index="i + 4" @selectedWish="selectedWish" v-if="wishes.length>=(i+5)"/>
</template>
</template>
</div>
<div>
<WishPanel :wish="wishes[selected]" @closeWish="selected = -1" v-if="selected != -1"/>
</div>
</div>
<BottomFleur/>
</div>
</body> </body>
</template> </template>
@@ -71,4 +99,10 @@ onMounted(() => {
.v-enter-from { .v-enter-from {
opacity: 0; opacity: 0;
} }
.desktop-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
</style> </style>