fixed: spacing between the header and illustration on biometrics page

This commit is contained in:
John Ngei 2024-01-16 22:02:20 +01:00 committed by GitHub
parent 72d8c4446f
commit 02b8d2140a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 6 deletions

View File

@ -2,6 +2,10 @@
(def default-margin 20)
(def title-container
{:margin-horizontal 20
:padding-vertical 12})
(defn page-container
[insets]
{:flex 1
@ -11,6 +15,8 @@
(defn page-illustration
[width]
{:flex 1
:padding-top 12
:padding-bottom 10
:width width})
(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/title-container
:title (i18n/label :t/enable-biometrics)
:title-accessibility-label :enable-biometrics-title
:description (i18n/label :t/use-biometrics)
@ -51,9 +51,12 @@
(defn enable-biometrics-parallax
[]
(let [stretch (if rn/small-screen? 25 40)]
[rn/view
{:position :absolute
:top 12}
[parallax/video
{:layers (:biometrics resources/parallax-video)
:stretch stretch}]))
:stretch stretch}]]))
(defn enable-biometrics-simple
[]