Add placeholder illustration in jump-to screen (#18229)

This commit is contained in:
Parvesh Monu 2023-12-20 14:56:33 +05:30 committed by GitHub
parent c74461db3a
commit 17c442a373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 19 additions and 25 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -21,8 +21,8 @@
(defn description
[blur?]
(when blur?
{:color colors/white}))
(cond-> {:text-align :center}
blur? (assoc :color colors/white)))
(def button-container {:margin-top 20})

View File

@ -27,8 +27,7 @@
title]
[text/text
{:style (styles/description blur?)
:number-of-lines 1
:text-align :center
:number-of-lines 2
:weight :regular
:size :paragraph-2}
description]]

View File

@ -40,6 +40,8 @@
:keycard-chip
{:light (js/require "../resources/images/ui2/keycard-chip-light.png")
:dark (js/require "../resources/images/ui2/keycard-chip-dark.png")}
:jump-to
{:dark (js/require "../resources/images/ui2/jump-to-dark.png")}
:no-group-chats
{:light (js/require "../resources/images/ui2/no-group-chats-light.png")
:dark (js/require "../resources/images/ui2/no-group-chats-dark.png")}

View File

@ -12,6 +12,7 @@
:right 0
:bottom (utils/bottom-tabs-container-height)
:align-items :center
:justify-content :center
:accessibility-label :shell-placeholder-view})
(def placeholder-image

View File

@ -8,6 +8,7 @@
[react-native.linear-gradient :as linear-gradient]
[react-native.safe-area :as safe-area]
[status-im.common.home.top-nav.view :as common.top-nav]
[status-im.common.resources :as resources]
[status-im.contexts.shell.jump-to.components.bottom-tabs.view :as bottom-tabs]
[status-im.contexts.shell.jump-to.components.jump-to-screen.style :as style]
[status-im.contexts.shell.jump-to.components.switcher-cards.view :as switcher-cards]
@ -19,25 +20,16 @@
(defn placeholder
[]
[linear-gradient/linear-gradient
{:colors [colors/neutral-100-opa-0 colors/neutral-100-opa-100]
:start {:x 0 :y 0}
:end {:x 0 :y 1}
:style (style/placeholder-container (safe-area/get-top))}
[rn/image
{:source nil ;; TODO(parvesh) - add placeholder image
:style style/placeholder-image}]
[quo/text
{:size :paragraph-1
:weight :semi-bold
:style style/placeholder-title}
(i18n/label :t/shell-placeholder-title)]
[quo/text
{:size :paragraph-2
:weight :regular
:align :center
:style style/placeholder-subtitle}
(i18n/label :t/shell-placeholder-subtitle)]])
[rn/view {:style (style/placeholder-container (safe-area/get-top))}
[linear-gradient/linear-gradient
{:colors [colors/neutral-100-opa-0 colors/neutral-100-opa-100]
:start {:x 0 :y 0}
:end {:x 0 :y 1}
:style (style/placeholder-container (safe-area/get-top))}]
[quo/empty-state
{:title (i18n/label :t/shell-placeholder-title)
:description (i18n/label :t/shell-placeholder-subtitle)
:image (resources/get-themed-image :jump-to :dark)}]])
(defn jump-to-text
[]

View File

@ -2020,10 +2020,10 @@
"you-must-hold": "You must hold:",
"you-must-now-hold": "You must now hold:",
"you-must-always-hold": "You must always hold:",
"shell-placeholder-title": "Your apps will run here",
"shell-placeholder-title": "Your open tabs will be here",
"shell-placeholder-subtitle": "Jump between your communities, messages,\nwallet accounts and browser tabs",
"no-pinned-messages-desc": "This chat doesnt have any\npinned messages.",
"no-pinned-messages-community-desc": "This channel doesnt have any\npinned messages.",
"shell-placeholder-subtitle": "Open tabs of your communities, messages,\nwallet account and browser windows",
"invite-friends-to-status": "Invite friends to Status",
"share-invite-link": "Share an invite link",
"pending-requests": "Pending requests",