feat: style some shit better
This commit is contained in:
parent
93a4025df7
commit
d475ed7bdc
@ -7,10 +7,20 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="frame" style="--frame: url(/frames/frame_0{int}.png)">
|
<div class="frame" style="--frame: url(/frames/frame_0{int}.png)">
|
||||||
|
<img src="/hang.png" class="hang" />
|
||||||
<img {src} {alt} />
|
<img {src} {alt} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.hang {
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
top: -16%;
|
||||||
|
width: 50%;
|
||||||
|
left: 25%;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
.frame {
|
.frame {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
@ -296,6 +296,16 @@
|
|||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
margin-bottom: 200px;
|
margin-bottom: 200px;
|
||||||
}
|
}
|
||||||
|
button {
|
||||||
|
border: none;
|
||||||
|
border-radius: 9px;
|
||||||
|
padding: 5px 9px;
|
||||||
|
margin-right: 10px;
|
||||||
|
background: #d0a75c;
|
||||||
|
border: solid thin gold;
|
||||||
|
box-shadow: 3px 3px 8px white inset;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
.wrapper {
|
.wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
export let content: string;
|
export let content: string;
|
||||||
const words = content.split(' ');
|
const words = content.split(' ');
|
||||||
export let delay = 0;
|
export let delay = 0;
|
||||||
|
export let center = false;
|
||||||
const delays: number[] = [];
|
const delays: number[] = [];
|
||||||
let total = delay;
|
let total = delay;
|
||||||
for (let i = 0; i < words.length; i++) {
|
for (let i = 0; i < words.length; i++) {
|
||||||
@ -11,7 +12,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="wrapper">
|
<div class="wrapper" style="justify-content: {center ? 'center' : 'left'}">
|
||||||
{#each words as word, i}
|
{#each words as word, i}
|
||||||
<span class="word" style="--delay:{delays[i]}ms">{word}</span>
|
<span class="word" style="--delay:{delays[i]}ms">{word}</span>
|
||||||
{/each}
|
{/each}
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
font-size: var(--font-size, 1em);
|
font-size: var(--font-size, 1em);
|
||||||
color: #ceba51;
|
color: #ceba51;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
padding: 16px 22px;
|
||||||
border-width: 30px;
|
border-width: 30px;
|
||||||
border-image: url(/border_b.svg);
|
border-image: url(/border_b.svg);
|
||||||
border-image-repeat: stretch;
|
border-image-repeat: stretch;
|
||||||
|
@ -55,11 +55,13 @@
|
|||||||
{#if contentVisible}
|
{#if contentVisible}
|
||||||
<div class="einladung" out:fade>
|
<div class="einladung" out:fade>
|
||||||
<TextSplit
|
<TextSplit
|
||||||
|
center
|
||||||
content="Wir laden dich herzlich ein, an unserer exklusiven Silvesterparty teilzunehmen, die dieses Jahr im magischen Ambiente eines Maskenballs stattfindet. Tauche ein in eine Nacht voller Geheimnisse, Eleganz und festlichem Glanz."
|
content="Wir laden dich herzlich ein, an unserer exklusiven Silvesterparty teilzunehmen, die dieses Jahr im magischen Ambiente eines Maskenballs stattfindet. Tauche ein in eine Nacht voller Geheimnisse, Eleganz und festlichem Glanz."
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<span in:fade={{ delay: 8000, duration: 1000 }}>
|
<span in:fade={{ delay: 8000, duration: 1000 }}>
|
||||||
<Button
|
<Button
|
||||||
|
--font-size="0.8em"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
contentVisible = false;
|
contentVisible = false;
|
||||||
questionVisible = true;
|
questionVisible = true;
|
||||||
|
@ -13,9 +13,9 @@
|
|||||||
...item,
|
...item,
|
||||||
y: -5 + Math.random() * 10,
|
y: -5 + Math.random() * 10,
|
||||||
x: -5 + Math.random() * 10,
|
x: -5 + Math.random() * 10,
|
||||||
scale: 0.9 + Math.random() * 0.2,
|
scale: 0.9 + Math.random() * 0.15,
|
||||||
rot: -5 + Math.random() * 10,
|
rot: `${-0.5 + Math.random() * 1}deg`,
|
||||||
marginTop: -10 + Math.random() * 20
|
marginTop: 50 + Math.random() * 30
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.reverse();
|
.reverse();
|
||||||
@ -29,7 +29,7 @@
|
|||||||
<div class="grid">
|
<div class="grid">
|
||||||
{#each items as item}
|
{#each items as item}
|
||||||
<div
|
<div
|
||||||
style="--x: {item.x}%, --y: {item.y}%; --scale: {item.scale}; --rot:{item.rot}; margin-top: {item.marginTop}px"
|
style="--x: {item.x}%; --y: {item.y}%; --scale: {item.scale}; --rot:{item.rot}; margin-top: {item.marginTop}px"
|
||||||
class="item"
|
class="item"
|
||||||
class:active={item.noble_name === last_name}
|
class:active={item.noble_name === last_name}
|
||||||
>
|
>
|
||||||
@ -49,25 +49,42 @@
|
|||||||
padding-bottom: 100px;
|
padding-bottom: 100px;
|
||||||
}
|
}
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 4rem;
|
font-size: 5rem;
|
||||||
font-family: Parisienne, cursive;
|
font-family: Parisienne, cursive;
|
||||||
color: white;
|
color: white;
|
||||||
margin-left: 50px;
|
margin-left: 50px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
color: white;
|
color: white;
|
||||||
font-family: Parisienne, cursive;
|
font-family: Parisienne, cursive;
|
||||||
font-size: 1.2em;
|
font-size: 1.5em;
|
||||||
margin-left: 40px;
|
margin-left: 40px;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
transform: translate(var(--x), var(--y)) scale(var(--scale)) rotate(var(--rot) deg);
|
transform: scale(var(--scale)) rotate(var(--rot)) translate(var(--x), var(--y));
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
filter: drop-shadow(0px 0px 40px #be8630aa) drop-shadow(0px 0px 5px black)
|
filter: drop-shadow(0px 0px 40px #be8630aa);
|
||||||
drop-shadow(0px 0px 5px black) drop-shadow(0px 0px 5px black);
|
animation: glow 5s infinite alternate;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes glow {
|
||||||
|
from {
|
||||||
|
filter: drop-shadow(0px 0px 10px #be8630ff);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
filter: drop-shadow(0px 0px 40px #be86305c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(html) {
|
||||||
|
background-image: url(/pattern.jpg) !important;
|
||||||
|
backdrop-filter: brightness(0.5) !important;
|
||||||
}
|
}
|
||||||
div {
|
div {
|
||||||
max-width: 1300px;
|
max-width: 1300px;
|
||||||
|
@ -18,5 +18,5 @@ html, body {
|
|||||||
html {
|
html {
|
||||||
background: black;
|
background: black;
|
||||||
background-image: url(/pattern_b.jpg);
|
background-image: url(/pattern_b.jpg);
|
||||||
backdrop-filter: brightness(0.3);
|
backdrop-filter: brightness(0.3);
|
||||||
}
|
}
|
||||||
|
BIN
static/hang.png
Normal file
BIN
static/hang.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.6 KiB |
3
static/hang.png:Zone.Identifier
Normal file
3
static/hang.png:Zone.Identifier
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[ZoneTransfer]
|
||||||
|
ZoneId=3
|
||||||
|
HostUrl=about:internet
|
Binary file not shown.
Before Width: | Height: | Size: 245 KiB After Width: | Height: | Size: 163 KiB |
Loading…
Reference in New Issue
Block a user