Skip to content

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

UX: Wizard page improvements (#37294)

Derek Rushforth6aada5a68f0e
diff --git a/app/assets/stylesheets/wizard.scss b/app/assets/stylesheets/wizard.scss
index 9fa0417739e..f02da454c69 100644
--- a/app/assets/stylesheets/wizard.scss
+++ b/app/assets/stylesheets/wizard.scss
@@ -8,6 +8,7 @@
--wizard-bg-color: #f9f8fc;
--wizard-bg-color-2: #e1d5ff;
--wizard-input-radius: 8px;
+ --wizard-button-radius: 6.25em;
}
@keyframes bump {
@@ -397,17 +398,22 @@ body.wizard {
}
}
- .row:not(.finish-installation-image) {
- margin-right: auto;
+ h1 {
+ margin: 0 auto 0.5em;
+ font-weight: 900;
}
- h1 {
- margin: 0 auto 1em 0;
+ p {
+ margin-bottom: 1.5em;
+
+ &:last-child {
+ margin-bottom: 0;
+ }
}
.tada {
- height: 15vw;
- max-height: 9em;
+ max-height: 3em;
+ margin-bottom: 1em;
}
.help-text {
@@ -420,7 +426,19 @@ body.wizard {
// /finish-installation and /finish-installation/register
.wizard-container-contents.finish-installation {
font-family: var(--font-family);
- max-width: min(800px, 90vh);
+ max-width: 500px;
+
+ a {
+ color: var(--wizard-primary);
+
+ &:hover {
+ color: var(--wizard-primary-400);
+ }
+ }
+
+ form {
+ margin-bottom: 0;
+ }
.wizard-container__combobox {
background: var(--secondary);
@@ -451,19 +469,25 @@ body.wizard {
cursor: pointer;
&.btn-primary {
- background-color: var(--tertiary);
+ background-color: var(--wizard-primary);
color: var(--secondary);
display: inline-block;
+ padding: 0.75em 2em;
+ border-radius: var(--wizard-button-radius);
+ width: auto;
+ font-size: 1rem;
- @include viewport.until(sm) {
- order: 1;
- margin-left: 0;
+ &:hover {
+ background-color: var(--wizard-primary-400);
+ }
+
+ &:focus {
+ background-color: var(--wizard-primary-300);
}
- }
- &:hover,
- &:focus {
- background-color: var(--tertiary-hover);
+ &:active {
+ background-color: var(--wizard-primary);
+ }
}
&primary:active {
diff --git a/app/views/finish_installation/index.html.erb b/app/views/finish_installation/index.html.erb
index f6bd32bc365..69581e46503 100644
--- a/app/views/finish_installation/index.html.erb
+++ b/app/views/finish_installation/index.html.erb
@@ -1,5 +1,6 @@
<div class="wizard-congratulations-wrap">
<div class='row'>
+ <img src="<%= Discourse.base_path + '/images/wizard/tada.svg' %>" alt="tada emoji" class="tada">
<h1><%= t 'finish_installation.congratulations' %></h1>
<% if @setting_up_discourse_id && @discourse_id_enabled %>
@@ -25,8 +26,4 @@
<% end %>
<% end %>
</div>
-
- <div class='row finish-installation-image'>
- <img src="<%= Discourse.base_path + '/images/wizard/tada.svg' %>" alt="tada emoji" class="tada">
- </div>
</div>
diff --git a/app/views/finish_installation/setup_discourse_id.html.erb b/app/views/finish_installation/setup_discourse_id.html.erb
index 01cc4278763..9f40b929260 100644
--- a/app/views/finish_installation/setup_discourse_id.html.erb
+++ b/app/views/finish_installation/setup_discourse_id.html.erb
@@ -1,9 +1,7 @@
<div class="wizard-congratulations-wrap">
<div class='row'>
+ <img src="<%= Discourse.base_path + '/images/wizard/tada.svg' %>" alt="tada emoji" class="tada">
<h1><%= t 'finish_installation.congratulations' %></h1>
<p><%= t 'finish_installation.discourse_id.help' %></p>
-
- <div class='row finish-installation-image'>
- <img src="<%= Discourse.base_path + '/images/wizard/tada.svg' %>" alt="tada emoji" class="tada">
</div>
</div>