fixed: spacing between the header and illustration on biometrics page
This commit is contained in:
parent
72d8c4446f
commit
02b8d2140a
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
(def default-margin 20)
|
(def default-margin 20)
|
||||||
|
|
||||||
|
(def title-container
|
||||||
|
{:margin-horizontal 20
|
||||||
|
:padding-vertical 12})
|
||||||
|
|
||||||
(defn page-container
|
(defn page-container
|
||||||
[insets]
|
[insets]
|
||||||
{:flex 1
|
{:flex 1
|
||||||
|
@ -10,8 +14,10 @@
|
||||||
|
|
||||||
(defn page-illustration
|
(defn page-illustration
|
||||||
[width]
|
[width]
|
||||||
{:flex 1
|
{:flex 1
|
||||||
:width width})
|
:padding-top 12
|
||||||
|
:padding-bottom 10
|
||||||
|
:width width})
|
||||||
|
|
||||||
(defn buttons
|
(defn buttons
|
||||||
[insets]
|
[insets]
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
(defn page-title
|
(defn page-title
|
||||||
[]
|
[]
|
||||||
[quo/text-combinations
|
[quo/text-combinations
|
||||||
{:container-style {:margin-top 12 :margin-horizontal 20}
|
{:container-style style/title-container
|
||||||
:title (i18n/label :t/enable-biometrics)
|
:title (i18n/label :t/enable-biometrics)
|
||||||
:title-accessibility-label :enable-biometrics-title
|
:title-accessibility-label :enable-biometrics-title
|
||||||
:description (i18n/label :t/use-biometrics)
|
:description (i18n/label :t/use-biometrics)
|
||||||
|
@ -51,9 +51,12 @@
|
||||||
(defn enable-biometrics-parallax
|
(defn enable-biometrics-parallax
|
||||||
[]
|
[]
|
||||||
(let [stretch (if rn/small-screen? 25 40)]
|
(let [stretch (if rn/small-screen? 25 40)]
|
||||||
[parallax/video
|
[rn/view
|
||||||
{:layers (:biometrics resources/parallax-video)
|
{:position :absolute
|
||||||
:stretch stretch}]))
|
:top 12}
|
||||||
|
[parallax/video
|
||||||
|
{:layers (:biometrics resources/parallax-video)
|
||||||
|
:stretch stretch}]]))
|
||||||
|
|
||||||
(defn enable-biometrics-simple
|
(defn enable-biometrics-simple
|
||||||
[]
|
[]
|
||||||
|
|
Loading…
Reference in New Issue