Skip to content

A platform for community discussion. Free, open, simple.

UX: Wizard static confetti (#23973)

Ella E7af291b40dcf
diff --git a/app/assets/images/bubbles-bg.png b/app/assets/images/bubbles-bg.png
new file mode 100644
index 00000000000..b988705d4f1
Binary files /dev/null and b/app/assets/images/bubbles-bg.png differ
diff --git a/app/assets/javascripts/wizard/addon/components/wizard-canvas.js b/app/assets/javascripts/wizard/addon/components/wizard-canvas.js
index 5df9dbb6a24..1ec71360c3d 100644
--- a/app/assets/javascripts/wizard/addon/components/wizard-canvas.js
+++ b/app/assets/javascripts/wizard/addon/components/wizard-canvas.js
@@ -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;
diff --git a/app/assets/stylesheets/wizard.scss b/app/assets/stylesheets/wizard.scss
index 7647c3f2905..9a56817e709 100644
--- a/app/assets/stylesheets/wizard.scss
+++ b/app/assets/stylesheets/wizard.scss
@@ -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 {