From 337b1828696f946306460c7a9e3010d396dbf615 Mon Sep 17 00:00:00 2001 From: Anastasia Poupeney Date: Fri, 1 Jun 2018 10:10:12 +0200 Subject: [PATCH] icon adjustment on onboarding init step and removal of decriptions --- src/components/Onboarding/steps/Init.js | 31 ++++++++++++------------- static/i18n/en/onboarding.yml | 2 +- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/src/components/Onboarding/steps/Init.js b/src/components/Onboarding/steps/Init.js index f7ca8ac2..d7812d37 100644 --- a/src/components/Onboarding/steps/Init.js +++ b/src/components/Onboarding/steps/Init.js @@ -3,6 +3,7 @@ import React from 'react' import { shell } from 'electron' import { colors } from 'styles/theme' +import { rgba } from 'styles/helpers' import styled from 'styled-components' import Box, { Card } from 'components/base/Box' @@ -23,28 +24,24 @@ export default (props: StepProps) => { key: 'newDevice', icon: , title: t('onboarding:init.newDevice.title'), - desc: t('onboarding:init.newDevice.desc'), onClick: () => nextStep(), }, { key: 'restoreDevice', icon: , title: t('onboarding:init.restoreDevice.title'), - desc: t('onboarding:init.restoreDevice.desc'), onClick: () => jumpStep('choosePIN'), }, { key: 'initializedDevice', icon: , title: t('onboarding:init.initializedDevice.title'), - desc: t('onboarding:init.initializedDevice.desc'), onClick: () => jumpStep('choosePIN'), }, { key: 'noDevice', icon: , title: t('onboarding:init.noDevice.title'), - desc: t('onboarding:init.noDevice.desc'), onClick: () => shell.openExternal('https://www.ledger.fr/'), }, ] @@ -55,7 +52,7 @@ export default (props: StepProps) => { - + {t('onboarding:init.title')} @@ -68,13 +65,12 @@ export default (props: StepProps) => { type CardType = { icon: any, - desc: any, title: any, onClick: Function, } export function OptionFlowCard({ card }: { card: CardType }) { - const { icon, desc, title, onClick } = card + const { icon, title, onClick } = card return ( - - {icon} + + + {icon} + {title} - {desc} @@ -101,14 +98,16 @@ export function OptionFlowCard({ card }: { card: CardType }) { ) } -export const CardDescription = styled(Box).attrs({ - ff: 'Open Sans|Regular', - fontSize: 4, - textAlign: 'left', - color: 'grey', -})`` export const CardTitle = styled(Box).attrs({ ff: 'Open Sans|SemiBold', fontSize: 4, textAlign: 'left', })`` + +const Container = styled(Box).attrs({})` + width: 40px; + height: 40px; + border-radius: 50%; + background: rgba(100, 144, 241, 0.1); + text-align: -webkit-center; +` diff --git a/static/i18n/en/onboarding.yml b/static/i18n/en/onboarding.yml index 459ec958..9116b162 100644 --- a/static/i18n/en/onboarding.yml +++ b/static/i18n/en/onboarding.yml @@ -2,7 +2,7 @@ start: title: Welcome to the new Ledger Live Desktop app. desc: Let’s get started! init: - title: Welcome to Ledger Live, the computer companion app to your Ledger device. Please select one of the options below + title: Welcome to Ledger Live, the computer companion app to your Ledger device newDevice: title: Initialize your new Ledger device desc: Please replace it with the final wording once it’s done.