-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from Superlight-Labs/38-finish-welcome-page-sl…
…ider feat(app): create basic welcome slider screens (#38)
- Loading branch information
Showing
11 changed files
with
149 additions
and
15 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.
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.
47 changes: 47 additions & 0 deletions
47
apps/mobile/src/components/shared/icons/logo.component.tsx
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,47 @@ | ||
import React from 'react'; | ||
import { G, Path, Svg } from 'react-native-svg'; | ||
import { View } from 'utils/wrappers/styled-react-native'; | ||
|
||
type Props = { | ||
style: string; | ||
stroke: string; | ||
}; | ||
|
||
function LogoIcon({ style, stroke = '#000' }: Props) { | ||
return ( | ||
<View className={style + ' pb-3 pl-3 pr-1.5 pt-1.5 '}> | ||
<Svg width="48" height="48" fill="none" viewBox="0 0 18 14"> | ||
<Path | ||
stroke={stroke} | ||
strokeLinecap="round" | ||
strokeWidth="1.19" | ||
d="M3.633 6.962a3.863 3.863 0 01.088-2.105A3.914 3.914 0 016.825 2.22a3.892 3.892 0 012.098.25 3.856 3.856 0 011.651 1.307c.418.58.323.673.323.673"></Path> | ||
<Path | ||
stroke={stroke} | ||
strokeLinecap="round" | ||
strokeWidth="1.19" | ||
d="M10.133 4.705c.933-.425 2.151-.38 2.842-.18a3.915 3.915 0 012.752 3.002 3.86 3.86 0 01-.175 2.1"></Path> | ||
<G filter="url(#filter0_d_503_17)"> | ||
<Path | ||
stroke={stroke} | ||
strokeLinecap="round" | ||
strokeWidth="1.19" | ||
d="M1.92 7.804a3.097 3.097 0 013.21-.595"></Path> | ||
</G> | ||
<Path | ||
stroke={stroke} | ||
strokeLinecap="round" | ||
strokeWidth="1.19" | ||
d="M5.062 13.094a3.097 3.097 0 01-3.196-.67 3.164 3.164 0 01.054-4.62 3.097 3.097 0 013.21-.595 3.12 3.12 0 011.356 1.027"></Path> | ||
<Path | ||
stroke={stroke} | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="1.19" | ||
d="M7.623 13.082c.137-.232.56-.694 1.15-.694.74 0 .411.347 1.315.173.904-.173.74-.694 1.643-1.04.904-.348.575.346 1.315.173.591-.14 1.122-.52 1.314-.694"></Path> | ||
</Svg> | ||
</View> | ||
); | ||
} | ||
|
||
export default LogoIcon; |
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
24 changes: 9 additions & 15 deletions
24
apps/mobile/src/components/welcome-screen/welcome-carousel.component.tsx
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
17 changes: 17 additions & 0 deletions
17
apps/mobile/src/components/welcome-screen/welcome-slide-1.component.tsx
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,17 @@ | ||
import LogoIcon from 'components/shared/icons/logo.component'; | ||
import Title from 'components/shared/title/title.component'; | ||
import { Image, Text, View } from 'utils/wrappers/styled-react-native'; | ||
|
||
const WelcomeSlide1 = () => { | ||
return ( | ||
<View className="flex w-full flex-1 flex-col items-center"> | ||
<LogoIcon stroke="#fff" style="absolute top-20 z-10 bg-black rounded-xl shadow-black" /> | ||
<Image className="h-72 w-screen" source={require('../../../assets/images/lines-1.png')} /> | ||
|
||
<Title style="text-4xl text-slate-400 font-manrope-bold mt-16">Not a bank.</Title> | ||
<Text className="mt-2 text-center font-manrope-bold text-4xl">But feeling like one.</Text> | ||
</View> | ||
); | ||
}; | ||
|
||
export default WelcomeSlide1; |
23 changes: 23 additions & 0 deletions
23
apps/mobile/src/components/welcome-screen/welcome-slide-2.componen.tsx
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,23 @@ | ||
import MonoIcon from 'components/shared/mono-icon/mono-icon.component'; | ||
import Title from 'components/shared/title/title.component'; | ||
import { Image, Text, View } from 'utils/wrappers/styled-react-native'; | ||
|
||
const WelcomeSlide2 = () => { | ||
return ( | ||
<View className="flex w-full flex-1 flex-col items-center"> | ||
<MonoIcon | ||
color="white" | ||
iconName="UserCheck" | ||
height={30} | ||
width={30} | ||
style="p-4 absolute -top-6 z-10 bg-black rounded-xl shadow-black " | ||
/> | ||
<Image className="h-72 w-screen" source={require('../../../assets/images/lines-2.png')} /> | ||
|
||
<Title style="text-4xl text-slate-400 font-manrope-bold mt-16">Non custodial.</Title> | ||
<Text className="mt-2 text-center font-manrope-bold text-4xl">You are in control.</Text> | ||
</View> | ||
); | ||
}; | ||
|
||
export default WelcomeSlide2; |
25 changes: 25 additions & 0 deletions
25
apps/mobile/src/components/welcome-screen/welcome-slide-3component.tsx
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,25 @@ | ||
import MonoIcon from 'components/shared/mono-icon/mono-icon.component'; | ||
import Title from 'components/shared/title/title.component'; | ||
import { Image, Text, View } from 'utils/wrappers/styled-react-native'; | ||
|
||
const WelcomeSlide3 = () => { | ||
return ( | ||
<View className="flex w-full flex-1 flex-col items-center"> | ||
<MonoIcon | ||
color="white" | ||
iconName="Lock" | ||
height={30} | ||
width={30} | ||
style="p-4 absolute top-16 z-10 bg-black rounded-xl shadow-black " | ||
/> | ||
<Image className="h-72 w-screen" source={require('../../../assets/images/lines-3.png')} /> | ||
|
||
<Title style="text-4xl text-slate-400 font-manrope-bold mt-16">Secure.</Title> | ||
<Text className="mt-4 text-center font-manrope-bold text-4xl"> | ||
No single point of failure. | ||
</Text> | ||
</View> | ||
); | ||
}; | ||
|
||
export default WelcomeSlide3; |
26 changes: 26 additions & 0 deletions
26
apps/mobile/src/components/welcome-screen/welcome-slide-4.component.tsx
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,26 @@ | ||
import MonoIcon from 'components/shared/mono-icon/mono-icon.component'; | ||
import Title from 'components/shared/title/title.component'; | ||
import { Image, Text, View } from 'utils/wrappers/styled-react-native'; | ||
|
||
const WelcomeSlide4 = () => { | ||
return ( | ||
<View className="flex w-full flex-1 flex-col items-center"> | ||
<MonoIcon | ||
color="white" | ||
iconName="Github" | ||
height={30} | ||
width={30} | ||
style="p-4 absolute top-36 z-10 bg-black rounded-xl shadow-black " | ||
/> | ||
<Image | ||
className="h-72 w-screen pb-4" | ||
source={require('../../../assets/images/lines-4.png')} | ||
/> | ||
|
||
<Title style="text-4xl text-slate-400 font-manrope-bold mt-16">Open Source.</Title> | ||
<Text className="mt-4 text-center font-manrope-bold text-4xl">You can participate.</Text> | ||
</View> | ||
); | ||
}; | ||
|
||
export default WelcomeSlide4; |