diff --git a/app/views/onboardings/preferences.html.erb b/app/views/onboardings/preferences.html.erb index 87306ae3..1c17023d 100644 --- a/app/views/onboardings/preferences.html.erb +++ b/app/views/onboardings/preferences.html.erb @@ -1,9 +1,9 @@
<%= render "onboardings/header" %> -
+
-
+

<%= t(".title") %>

<%= t(".subtitle") %>

@@ -54,7 +54,7 @@
-

<%= t(".preview") %>

+

<%= t(".preview") %>

<%= styled_form_with model: @user, data: { turbo: false } do |form| %> <%= form.hidden_field :onboarded_at, value: Time.current %> diff --git a/app/views/onboardings/profile.html.erb b/app/views/onboardings/profile.html.erb index 82313e88..cc9c9e53 100644 --- a/app/views/onboardings/profile.html.erb +++ b/app/views/onboardings/profile.html.erb @@ -1,9 +1,9 @@
<%= render "onboardings/header" %> -
+
-
+

<%= t(".title") %>

<%= t(".subtitle") %>

@@ -13,13 +13,16 @@ <%= form.hidden_field :onboarded_at, value: Time.current if @invitation %>
-

<%= t(".profile_image") %>

- <%= render "settings/user_avatar_field", form: form, user: @user %> + <%= render "settings/user_avatar_field", form: form, user: @user %> +
+

<%= t(".upload_profile_photo") %>

+
+
-
- <%= form.text_field :first_name, placeholder: t(".first_name"), label: t(".first_name"), container_class: "bg-white w-1/2", required: true %> - <%= form.text_field :last_name, placeholder: t(".last_name"), label: t(".last_name"), container_class: "bg-white w-1/2", required: true %> +
+ <%= form.text_field :first_name, placeholder: t(".first_name"), label: t(".first_name"), container_class: "bg-white w-full sm:w-1/2", required: true %> + <%= form.text_field :last_name, placeholder: t(".last_name"), label: t(".last_name"), container_class: "bg-white w-full sm:w-1/2", required: true %>
<% unless @invitation %>
diff --git a/app/views/onboardings/show.html.erb b/app/views/onboardings/show.html.erb index aa6639ae..796d1c7f 100644 --- a/app/views/onboardings/show.html.erb +++ b/app/views/onboardings/show.html.erb @@ -1,11 +1,11 @@
-
+
- <%= image_tag "logo-color.png", class: "w-16 mb-6" %> - <%= tag.h1 t(".title"), class: "text-3xl font-medium mb-2" %> - <%= tag.p t(".message"), class: "text-sm text-secondary mb-6" %> + <%= image_tag "logo-color.png", class: "w-12 sm:w-16 mb-4 sm:mb-6" %> + <%= tag.h1 t(".title"), class: "text-2xl sm:text-3xl font-medium mb-2" %> + <%= tag.p t(".message"), class: "text-sm sm:text-base text-secondary mb-4 sm:mb-6" %> - <%= link_to t(".setup"), profile_onboarding_path, class: "block flex justify-center items-center btn btn--primary w-full" %> + <%= link_to t(".setup"), profile_onboarding_path, class: "block flex justify-center items-center btn btn--primary w-full text-sm sm:text-base" %>
diff --git a/config/locales/views/onboardings/en.yml b/config/locales/views/onboardings/en.yml index 04edfd45..380497b9 100644 --- a/config/locales/views/onboardings/en.yml +++ b/config/locales/views/onboardings/en.yml @@ -17,7 +17,7 @@ en: first_name: First Name household_name: Household Name last_name: Last Name - profile_image: Profile Image + upload_profile_photo: Upload profile photo (optional) submit: Continue subtitle: Let's complete your profile. title: Let's set up the basics