11import React from 'react'
22import { View } from 'react-native'
3- import { Button , Container , Text , TextField , BottonPanel , Spacer , ErrorBox } from '@berty/ui-components'
3+ import { Button , Container , Text , TextField , BottonPanel , Spacer , ErrorBox , AppBar , ButtonIcon } from '@berty/ui-components'
4+ import FontAwesome6 from '@expo/vector-icons/FontAwesome6'
45import type { Meta } from '@storybook/react'
56
67const meta = {
@@ -21,11 +22,11 @@ const meta = {
2122 children : 'Primary Button' ,
2223 } ,
2324 decorators : [ Story => < Story /> ] ,
24- } satisfies Meta < typeof Button >
25+ } satisfies Meta < typeof Container >
2526
2627export default meta
2728
28- export const Basic = ( args : any ) => (
29+ export const FirstScreen = ( args : any ) => (
2930 < >
3031 < Container >
3132 < Text . H1 > Create The</ Text . H1 >
@@ -45,10 +46,47 @@ export const Basic = (args: any) => (
4546 < Spacer />
4647 < Text . Body > You have to setup a master keyword in order to access your future vauls from one password.</ Text . Body >
4748 < Spacer />
48- { /* <View style={{ flexDirection:'row', height: 16, backgroundColor:'red', flex: 1, width: '100%', justifyContent: 'space-between' }}>
49- <Button>Restore</Button>
50- <Button>Import</Button>
51- </View> */ }
49+ </ BottonPanel >
50+ </ >
51+ )
52+
53+ export const SecondScreen = ( args : any ) => (
54+ < >
55+ < AppBar >
56+ < ButtonIcon size = { 40 } color = 'tertirary' >
57+ < FontAwesome6 name = 'user' size = { 20 } color = 'black' />
58+ </ ButtonIcon >
59+
60+ < Button color = 'tertirary' endIcon = { < FontAwesome6 name = 'add' size = { 16 } color = 'black' /> } >
61+ New Vault
62+ </ Button >
63+ </ AppBar >
64+ < Container >
65+ < Text . H1 > Check</ Text . H1 >
66+ < Text . H1 > Your Safe</ Text . H1 >
67+ < Text . H1 > Keys List</ Text . H1 >
68+ < View style = { { flexDirection : 'row' , alignItems : 'center' , width : '50%' , paddingTop : 24 } } >
69+ < View style = { { flexDirection : 'row' , alignItems : 'baseline' , paddingRight : 24 } } >
70+ < Text . H1 > 0</ Text . H1 >
71+ < Text . Body > Key</ Text . Body >
72+ </ View >
73+ < View style = { { flexDirection : 'row' , alignItems : 'baseline' } } >
74+ < Text . H1 > 0</ Text . H1 >
75+ < Text . Body > User</ Text . Body >
76+ </ View >
77+ </ View >
78+ </ Container >
79+ < BottonPanel >
80+ < Text . H2 > New User</ Text . H2 >
81+ < Spacer />
82+ < Text . Body style = { { textAlign : 'center' } } >
83+ As a new user, your first step is to create a new Vault in the app to securely store your data.
84+ </ Text . Body >
85+ < Spacer style = { { height : 56 } } />
86+ < View style = { { flexDirection : 'row' , flex : 1 , width : '100%' , justifyContent : 'space-between' } } >
87+ < Button color = 'secondary' > Import Vault</ Button >
88+ < Button endIcon = { < FontAwesome6 name = 'add' size = { 16 } color = 'white' /> } > New Vault</ Button >
89+ </ View >
5290 </ BottonPanel >
5391 </ >
5492)
0 commit comments