Fixes for "I'm new to Status" screen (#16199)

Various fixes related to spacing in the "I'm new to Status" screen. Fixes
https://github.com/status-im/status-mobile/issues/16064

Out of scope:

- Bottom sheet in Android doesn't occupy the full available height. This problem
  exists in develop.
- Bottom sheet blur.
This commit is contained in:
Icaro Motta 2023-06-06 10:36:48 -03:00 committed by GitHub
parent 68da5175c0
commit 33999ad7cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 26 deletions

View File

@ -1,10 +1,9 @@
(ns quo2.components.drawers.documentation-drawers.style) (ns quo2.components.drawers.documentation-drawers.style)
(def container (def container
{:align-items :flex-start {:align-items :flex-start
:padding 20}) :padding-horizontal 20})
(def content (def content
{:margin-top 12 {:margin-top 8
:margin-bottom 16}) :margin-bottom 16})

View File

@ -1,8 +1,6 @@
(ns status-im2.contexts.onboarding.new-to-status.style (ns status-im2.contexts.onboarding.new-to-status.style
(:require [quo2.foundations.colors :as colors])) (:require [quo2.foundations.colors :as colors]))
(def full-screen {:flex 1})
(def content-container (def content-container
{:position :absolute {:position :absolute
:top 0 :top 0
@ -18,16 +16,22 @@
{:color colors/white {:color colors/white
:margin-bottom 20}) :margin-bottom 20})
(def subtitle
{:margin-bottom 12
:color colors/white-opa-70})
(def subtitle-container (def subtitle-container
{:height 20 {:margin-top 16})
:margin-top 16
(def doc-main-content
{:color colors/white
:margin-bottom 4}) :margin-bottom 4})
(def subtitle (def doc-subtitle
{:margin-top 20
:margin-bottom 4})
(def doc-content
{:color colors/white-opa-70}) {:color colors/white-opa-70})
(def suboptions
{:padding-top 4
:padding-bottom 8})
(def space-between-suboptions {:height 12}) (def space-between-suboptions {:height 12})

View File

@ -20,7 +20,6 @@
:size :heading-1 :size :heading-1
:weight :semi-bold} :weight :semi-bold}
(i18n/label :t/new-to-status)] (i18n/label :t/new-to-status)]
[quo/small-option-card [quo/small-option-card
{:variant :main {:variant :main
:title (i18n/label :t/generate-keys) :title (i18n/label :t/generate-keys)
@ -31,15 +30,13 @@
(* 2 16) ;; spacing between items (* 2 16) ;; spacing between items
220) ;; extra spacing (top bar) 220) ;; extra spacing (top bar)
:on-press #(rf/dispatch [:onboarding-2/navigate-to-create-profile])}] :on-press #(rf/dispatch [:onboarding-2/navigate-to-create-profile])}]
[rn/view {:style style/subtitle-container} [rn/view {:style style/subtitle-container}
[quo/text [quo/text
{:style style/subtitle {:style style/subtitle
:size :paragraph-2 :size :paragraph-2
:weight :medium} :weight :medium}
(i18n/label :t/experienced-web3)]] (i18n/label :t/experienced-web3)]]
[rn/view
[rn/view {:style style/suboptions}
[quo/small-option-card [quo/small-option-card
{:variant :icon {:variant :icon
:title (i18n/label :t/use-recovery-phrase) :title (i18n/label :t/use-recovery-phrase)
@ -59,35 +56,37 @@
[quo/documentation-drawers [quo/documentation-drawers
{:title (i18n/label :t/getting-started-with-status) {:title (i18n/label :t/getting-started-with-status)
:shell? true} :shell? true}
[rn/view [:<>
[quo/text [quo/text
{:size :paragraph-2 {:size :paragraph-2
:style style/title} :style style/doc-main-content}
(i18n/label (i18n/label :t/getting-started-description)]
:t/getting-started-description)]
[quo/text [quo/text
{:size :paragraph-1 {:size :paragraph-1
:style style/doc-subtitle
:weight :semi-bold} :weight :semi-bold}
(i18n/label :t/generate-keys)] (i18n/label :t/generate-keys)]
[quo/text [quo/text
{:size :paragraph-2 {:size :paragraph-2
:style style/subtitle} :style style/doc-content}
(i18n/label :t/getting-started-generate-keys-description)] (i18n/label :t/getting-started-generate-keys-description)]
[quo/text [quo/text
{:size :paragraph-1 {:size :paragraph-1
:style style/doc-subtitle
:weight :semi-bold} :weight :semi-bold}
(i18n/label :t/getting-started-generate-keys-from-recovery-phrase)] (i18n/label :t/getting-started-generate-keys-from-recovery-phrase)]
[quo/text [quo/text
{:size :paragraph-2 {:size :paragraph-2
:style style/subtitle} :style style/doc-content}
(i18n/label :t/getting-started-generate-keys-from-recovery-phrase-description)] (i18n/label :t/getting-started-generate-keys-from-recovery-phrase-description)]
[quo/text [quo/text
{:size :paragraph-1 {:size :paragraph-1
:style style/doc-subtitle
:weight :semi-bold} :weight :semi-bold}
(i18n/label :t/getting-started-generate-keys-on-keycard)] (i18n/label :t/getting-started-generate-keys-on-keycard)]
[quo/text [quo/text
{:size :paragraph-2 {:size :paragraph-2
:style style/subtitle} :style style/doc-content}
(i18n/label :t/getting-started-generate-keys-on-keycard-description)]]]) (i18n/label :t/getting-started-generate-keys-on-keycard-description)]]])
(defn new-to-status (defn new-to-status

View File

@ -106,7 +106,8 @@
[preview/customizer state descriptor] [preview/customizer state descriptor]
[rn/view {:padding-vertical 60} [rn/view {:padding-vertical 60}
[quo/button [quo/button
{:style {:margin-horizontal 40} {:style {:margin-horizontal 40
:margin-bottom 20}
:on-press #(rf/dispatch [:show-bottom-sheet :on-press #(rf/dispatch [:show-bottom-sheet
{:content (constantly [render-documenation-drawer @title {:content (constantly [render-documenation-drawer @title
@show-button? @show-button?
@ -129,4 +130,3 @@
:keyboard-should-persist-taps :always :keyboard-should-persist-taps :always
:header [cool-preview] :header [cool-preview]
:key-fn str}]]) :key-fn str}]])