UX: Wizard static confetti (#23973)

* UX: add static confetti bacgkround image on wizard steps

* DEV: slow down speed animation for confetti

* DEV: compress image file size

* UX: use an image that has transparent background

* DEV: use correct image file name
This commit is contained in:
Ella E 2023-10-18 15:19:00 -06:00 committed by GitHub
parent a125c9e63e
commit 7af291b40d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -22,7 +22,7 @@ class Particle {
reset() {
this.y = -SIZE;
this.origX = Math.random() * (width + SIZE);
this.speed = 1 + Math.random();
this.speed = 0.5 + Math.random();
this.ang = Math.random() * 2 * Math.PI;
this.scale = Math.random() * 0.4 + 0.2;
this.radius = Math.random() * 25 + 25;

View File

@ -12,6 +12,10 @@
}
}
:root {
--d-max-width: 100%;
}
body.wizard {
background-color: var(--primary-50);
color: var(--primary-very-high);
@ -22,13 +26,14 @@ body.wizard {
display: flex;
flex-direction: column;
align-items: center;
padding-top: 1.5em;
background-image: url(../assets/bubbles-bg.png);
height: 100%;
}
@media screen and (max-height: 900px) {
.desktop-view & {
#main-outlet {
padding-top: 0;
}
.desktop-view & {
#main-outlet {
padding-top: 0;
}
}
@ -103,7 +108,8 @@ body.wizard {
&__step-counter {
text-align: center;
font-weight: 700;
color: var(--primary-medium);
color: var(--primary-high);
text-shadow: 1px 1px 12px var(--secondary);
}
&__step-description {