diff --git a/app/assets/stylesheets/base/layout.scss b/app/assets/stylesheets/base/layout.scss index c75a2cd8a..3df8c960d 100644 --- a/app/assets/stylesheets/base/layout.scss +++ b/app/assets/stylesheets/base/layout.scss @@ -73,7 +73,7 @@ } &--limited-xs { - --site-width: 480px; + --site-width: #{$breakpoint-xs}; } &--limited-inner-l { diff --git a/app/assets/stylesheets/config/_import.scss b/app/assets/stylesheets/config/_import.scss index 42efc5d4f..a08a80137 100644 --- a/app/assets/stylesheets/config/_import.scss +++ b/app/assets/stylesheets/config/_import.scss @@ -37,11 +37,13 @@ $colors: ( // List of breakpoints for our responsiveness. // If you modify these breakpoints, ensure you update them in @components/useMediaQuery.js +$breakpoint-xs: 480px; $breakpoint-s: 640px; $breakpoint-m: 768px; $breakpoint-l: 1024px; $breakpoints: ( + 'xs': $breakpoint-xs, 's': $breakpoint-s, 'm': $breakpoint-m, 'l': $breakpoint-l, diff --git a/app/assets/stylesheets/views/confirm-email.scss b/app/assets/stylesheets/views/confirm-email.scss index 6da1921bf..10f736104 100644 --- a/app/assets/stylesheets/views/confirm-email.scss +++ b/app/assets/stylesheets/views/confirm-email.scss @@ -9,18 +9,4 @@ flex: 1; background: white; } - - #main-content { - display: flex; - flex: 1; - @media (max-width: $breakpoint-m) { - padding: 1em 1em 0; - } - } -} - -.forem-background { - @media (max-width: $breakpoint-l) { - display: none; - } } diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb index b7671f102..02d1a595b 100644 --- a/app/views/devise/confirmations/new.html.erb +++ b/app/views/devise/confirmations/new.html.erb @@ -1,42 +1,39 @@ <% title "Confirm your email" %> <% proper_email = params[:email] || (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %> -
+
<% if FeatureFlag.enabled?(:creator_onboarding) %> <%= javascript_packs_with_chunks_tag "confirmationEmail", defer: true %> -
-
- <%= render "devise/shared/error_messages", resource: resource %> +
+ <%= render "devise/shared/error_messages", resource: resource %> + <%= inline_svg_tag("mail.svg", aria: true, title: "Email", class: "mb-6") %> +

Great! Now confirm your email address.

+ <% if proper_email.present? %> +

+ We've sent an email to <%= proper_email %>. + Click the button inside to confirm your email.

+

+ <% end %> +
+
+ if you didn't get the email... +
- <%= inline_svg_tag("mail.svg", aria: true, title: "Email") %> -
Great! Now confirm your email address.
+ <%= inline_svg_tag("forem-background.svg", aria: true, title: "forem background", class: "absolute bottom-0 right-0 hidden m:block") %> - <% if proper_email.present? %> -
-
We've sent an email to <%= proper_email %>
-
Click the button inside to confirm your email
-
- <% end %> -
-
- if you didn't get the email... -
- <%= inline_svg_tag("forem-background.svg", aria: true, title: "forem background", class: "forem-background absolute bottom-0 right-0") %> + <% else %>
diff --git a/app/views/shared/authentication/_forem_creator_signup.html.erb b/app/views/shared/authentication/_forem_creator_signup.html.erb index 5a68ee332..fb7f34cf5 100644 --- a/app/views/shared/authentication/_forem_creator_signup.html.erb +++ b/app/views/shared/authentication/_forem_creator_signup.html.erb @@ -1,97 +1,106 @@ <%= javascript_packs_with_chunks_tag "foremCreatorSignup", defer: true %> -
-
-
- <% if flash[:notice] %> - +
+ <%= f.submit "Create my account", class: "crayons-btn" %> +
+ + <% end %>
+ <%= inline_svg_tag("forem-background.svg", aria: true, title: "forem background", class: "absolute bottom-0 right-0 hidden m:block") %>
diff --git a/cypress/integration/creatorOnboardingFlows/confirmEmail.spec.js b/cypress/integration/creatorOnboardingFlows/confirmEmail.spec.js index 433b9ccbd..951225ef1 100644 --- a/cypress/integration/creatorOnboardingFlows/confirmEmail.spec.js +++ b/cypress/integration/creatorOnboardingFlows/confirmEmail.spec.js @@ -16,7 +16,7 @@ describe('Confirm Email page', () => { it('should display the correct subtext', () => { cy.contains("We've sent an email to user@forem.com").should('be.visible'); - cy.findByText('Click the button inside to confirm your email').should( + cy.findByText(/Click the button inside to confirm your email/).should( 'be.visible', ); });