[#19176] fix: onboarding illustration design issue (#19800)

This commit is contained in:
Mohsen 2024-04-29 12:43:51 +03:00 committed by GitHub
parent 2ec6a3ed06
commit e8008d0aa9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 18 additions and 9 deletions

View File

@ -13,6 +13,11 @@
{:flex 1
:width width})
(def page-title
{:margin-top 12
:margin-horizontal 20
:margin-bottom 8})
(def page-heading {:z-index 1})
(defn buttons

View File

@ -16,7 +16,7 @@
(defn page-title
[]
[quo/text-combinations
{:container-style {:margin-top 12 :margin-horizontal 20}
{:container-style style/page-title
:title (i18n/label :t/intro-wizard-title6)
:title-accessibility-label :notifications-title
:description (i18n/label :t/enable-notifications-sub-title)

View File

@ -9,9 +9,14 @@
(defn page-illustration
[width]
{:width width
:margin-top 12
:margin-bottom 4})
{:width width
:aspect-ratio 0.7
:height :auto})
(def page-title
{:margin-top 12
:margin-horizontal 20
:margin-bottom 8})
(defn buttons
[insets]

View File

@ -16,7 +16,7 @@
[]
(let [new-account? (rf/sub [:onboarding/new-account?])]
[quo/text-combinations
{:container-style {:margin-top 12 :margin-horizontal 20}
{:container-style style/page-title
:title (i18n/label (if new-account?
:t/welcome-to-web3
:t/welcome-back))
@ -45,10 +45,9 @@
:on-press #(rf/dispatch [:navigate-back])}]
[page-title]
[rn/image
{:style (style/page-illustration (:width window))
:resize-mode :stretch
:resize-method :scale
:source (resources/get-image :welcome-illustration)}]
{:style (style/page-illustration (:width window))
:resize-mode :contain
:source (resources/get-image :welcome-illustration)}]
[rn/view {:style (style/buttons insets)}
(when rn/small-screen?
[linear-gradient/linear-gradient