1
1
import React from 'react'
2
2
import { 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'
4
5
import type { Meta } from '@storybook/react'
5
6
6
7
const meta = {
@@ -21,11 +22,11 @@ const meta = {
21
22
children : 'Primary Button' ,
22
23
} ,
23
24
decorators : [ Story => < Story /> ] ,
24
- } satisfies Meta < typeof Button >
25
+ } satisfies Meta < typeof Container >
25
26
26
27
export default meta
27
28
28
- export const Basic = ( args : any ) => (
29
+ export const FirstScreen = ( args : any ) => (
29
30
< >
30
31
< Container >
31
32
< Text . H1 > Create The</ Text . H1 >
@@ -45,10 +46,47 @@ export const Basic = (args: any) => (
45
46
< Spacer />
46
47
< Text . Body > You have to setup a master keyword in order to access your future vauls from one password.</ Text . Body >
47
48
< 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 >
52
90
</ BottonPanel >
53
91
</ >
54
92
)
0 commit comments