-
Notifications
You must be signed in to change notification settings - Fork 987
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28d29ed
commit 69cb8d9
Showing
9 changed files
with
67 additions
and
3 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/status_im/contexts/onboarding/preparing_status/style.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(ns status-im.contexts.onboarding.preparing-status.style) | ||
|
||
(defn page-container | ||
[insets] | ||
{:flex 1 | ||
:padding-top (:top insets)}) | ||
|
||
(defn page-illustration | ||
[width] | ||
{:flex 1 | ||
:width width}) |
36 changes: 36 additions & 0 deletions
36
src/status_im/contexts/onboarding/preparing_status/view.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
(ns status-im.contexts.onboarding.preparing-status.view | ||
(:require | ||
[quo.core :as quo] | ||
[react-native.core :as rn] | ||
[react-native.safe-area :as safe-area] | ||
[status-im.common.resources :as resources] | ||
[status-im.contexts.onboarding.generating-keys.style :as style] | ||
[utils.i18n :as i18n])) | ||
|
||
(defn title | ||
[] | ||
[rn/view | ||
{:style {:margin-top 56 | ||
:height 56 | ||
:margin-bottom 10}} | ||
[quo/text-combinations | ||
{:container-style {:margin-horizontal 20 | ||
:margin-vertical 12} | ||
:title (i18n/label :t/preparing-status-for-you) | ||
:description (i18n/label :t/hang-in-there)}]]) | ||
|
||
(defn content | ||
[] | ||
(let [width (:width (rn/get-window))] | ||
[rn/image | ||
{:resize-mode :stretch | ||
:style (style/page-illustration width) | ||
:source (resources/get-image :preparing-status)}])) | ||
|
||
(defn view | ||
[] | ||
(let [insets (safe-area/get-insets)] | ||
[rn/view {:style (style/page-container insets)} | ||
[:<> | ||
[title] | ||
[content]]])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters