-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tela de login ✨ (precisa de leves modificações)
- Loading branch information
1 parent
00602f1
commit 0b43ed2
Showing
24 changed files
with
5,158 additions
and
6,709 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import AppProvider from '@hooks/index'; | ||
import Home from '@screens/Home'; | ||
// import Home from '@screens/Home'; | ||
import Cadastro1 from '@screens/Cadastro1'; | ||
// import Cadastro2 from '@screens/Cadastro2'; | ||
import React from 'react'; | ||
|
||
export default function App() { | ||
return ( | ||
<AppProvider> | ||
<Home /> | ||
<Cadastro1 /> | ||
</AppProvider> | ||
); | ||
} |
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,13 @@ | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
import pluginReact from "eslint-plugin-react"; | ||
|
||
|
||
export default [ | ||
{files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"]}, | ||
{languageOptions: { globals: globals.browser }}, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
pluginReact.configs.flat.recommended, | ||
]; |
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
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.
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
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,19 @@ | ||
import * as S from './styles'; | ||
import React from 'react'; | ||
|
||
type BolaProps = { | ||
num: string; | ||
width: string; | ||
height: string; | ||
}; | ||
|
||
|
||
const BolaNumero: React.FC<BolaProps> = ({ num, width, height }) => { | ||
return ( | ||
<S.Container height={height} width={width}> | ||
<S.StyledText color='#ebebeb'>{num}</S.StyledText> | ||
</S.Container> | ||
); | ||
}; | ||
|
||
export default BolaNumero; |
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,38 @@ | ||
import { Text, ImageBackground, View } from 'react-native'; | ||
import styled, { css } from 'styled-components/native'; | ||
|
||
interface StyledProps { | ||
height: string; | ||
width: string; | ||
}; | ||
|
||
export const Container = styled(View)<StyledProps>` | ||
display: flex; | ||
height: ${({height}) => height}; | ||
width: ${({width}) => width}; | ||
margin-top: 32px; | ||
border-radius: ${({height}) => height}/2; | ||
background-color: #ffa800; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
`; | ||
|
||
export const StyledText = styled(Text)<{ color?: string }>` | ||
${({ theme, color }) => css` | ||
font-size: 32px; | ||
font-weight: 600; | ||
filter: drop-shadow(red 0rem 1rem 10px); | ||
color: ${color || `${theme.colors.black}`}; | ||
`} | ||
`; | ||
|
||
export const StyledImage = styled(ImageBackground)` | ||
margin-top: 8px; | ||
margin-left: 36px; | ||
flex: 1; | ||
width: 60%; | ||
height: 82%; | ||
gap: 0px; | ||
`; |
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,33 @@ | ||
import * as S from './styles'; | ||
import React from 'react'; | ||
|
||
type ButtonProps = { | ||
color?: string; | ||
image?: string; | ||
text?: string; | ||
height: string; | ||
width: string; | ||
}; | ||
|
||
|
||
const ButtonComponent: React.FC<ButtonProps> = ({ color, text, width, height, image }) => { | ||
// eslint-disable-next-line @typescript-eslint/no-require-imports | ||
const imageSource = image ? require('public/assets/images/Vector.png') : null; | ||
|
||
return ( | ||
<S.Container height={height} width={width} color={color}> | ||
{imageSource ? ( | ||
<S.StyledImage | ||
source={imageSource} | ||
> | ||
</S.StyledImage> | ||
) : ( | ||
<S.Container height={height} color={color} width='80%'> | ||
<S.StyledText color='#ebebeb'>{text}</S.StyledText> | ||
</S.Container> | ||
)} | ||
</S.Container> | ||
); | ||
}; | ||
|
||
export default ButtonComponent; |
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,39 @@ | ||
import { Text, ImageBackground, TouchableOpacity } from 'react-native'; | ||
import styled, { css } from 'styled-components/native'; | ||
|
||
interface StyledProps { | ||
height: string; | ||
color: string; | ||
width: string; | ||
}; | ||
|
||
export const Container = styled(TouchableOpacity)<StyledProps>` | ||
display: flex; | ||
height: ${({height}) => height}; | ||
width: ${({width}) => width};; | ||
margin-top: 32px; | ||
border-radius: 32px; | ||
background-color: ${({color}) => color}; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
`; | ||
|
||
export const StyledText = styled(Text)<{ color?: string }>` | ||
${({ theme, color }) => css` | ||
font-size: 20px; | ||
font-weight: 400; | ||
filter: drop-shadow(red 0rem 1rem 10px); | ||
color: ${color || `${theme.colors.black}`}; | ||
`} | ||
`; | ||
|
||
export const StyledImage = styled(ImageBackground)` | ||
margin-top: 8px; | ||
margin-left: 36px; | ||
flex: 1; | ||
width: 60%; | ||
height: 82%; | ||
gap: 0px; | ||
`; |
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
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,18 @@ | ||
import * as S from './styles'; | ||
import React from 'react'; | ||
|
||
type InputProps = { | ||
color?: string; | ||
password: boolean; | ||
text: string; | ||
height: string; | ||
}; | ||
|
||
const LoginInputs: React.FC<InputProps> = ({ password, text, height }) => ( | ||
<S.Container height={height}> | ||
<S.StyledText color='#ffa800'>{text}</S.StyledText> | ||
<S.StyledInput secureTextEntry={password}></S.StyledInput> | ||
</S.Container> | ||
); | ||
|
||
export default LoginInputs; |
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,33 @@ | ||
import { Text, View, TextInput } from 'react-native'; | ||
import styled, { css } from 'styled-components/native'; | ||
|
||
interface StyledProps { | ||
height: string; | ||
}; | ||
|
||
export const Container = styled(View)<StyledProps>` | ||
display: flex; | ||
height: ${({height}) => height}; | ||
width: 100%; | ||
margin-left: 80px; | ||
align-items: normal; | ||
justify-content: normal; | ||
flex-direction: column; | ||
`; | ||
|
||
export const StyledText = styled(Text)<{ color?: string }>` | ||
margin-left: 8px; | ||
${({ theme, color }) => css` | ||
font-size: 20px; | ||
font-weight: 200; | ||
color: ${color || `${theme.colors.black}`}; | ||
`} | ||
`; | ||
|
||
export const StyledInput = styled(TextInput)` | ||
margin-top: 8px; | ||
width: 80%; | ||
height: 80%; | ||
border-radius: 4px; | ||
background-color: #ebebeb; | ||
`; |
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
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,21 @@ | ||
import * as S from './styles'; | ||
import LoginInputs from '@components/LoginInputs'; | ||
import ButtonComponent from "@components/ButtonComponent"; | ||
import BolaNumero from "@components/BolaNumero"; | ||
import { StatusBar } from 'expo-status-bar'; | ||
import React from 'react'; | ||
|
||
const Cadastro1 = () => ( | ||
<S.Wrapper> | ||
<StatusBar style="light" /> | ||
<BolaNumero num='1' width='48px' height='48px'/> | ||
<S.InputsDiv> | ||
<LoginInputs password={false} text='Nome:' height='60px'/> | ||
<LoginInputs password={false} text='Email:' height='60px'/> | ||
<LoginInputs password={false} text='CPF:' height='60px'/> | ||
</S.InputsDiv> | ||
<ButtonComponent height='60px' color='#ffa800' width='36%' text='text' image='public/assets/images/Vector.png'/> | ||
</S.Wrapper> | ||
); | ||
|
||
export default Cadastro1; |
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,45 @@ | ||
import { Text, View, Image } from 'react-native'; | ||
import styled from 'styled-components/native'; | ||
|
||
export const Wrapper = styled(View)` | ||
display: flex; | ||
align-items: center; | ||
justify-content: normal; | ||
flex-direction: column; | ||
padding-top: 80px; | ||
height: 100%; | ||
width: 100%; | ||
background-color: #1c0f13; | ||
`; | ||
|
||
export const Logo = styled(Image)` | ||
background-color: transparent; | ||
height: 7.5%; | ||
width: 14%; | ||
margin-bottom: 0px; | ||
`; | ||
|
||
export const StyledText = styled(Text)` | ||
color: #ebebeb; | ||
margin-top: 32px; | ||
`; | ||
|
||
export const InputsDiv = styled(View)` | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
flex-direction: column; | ||
height: 40%; | ||
width: 100%; | ||
margin-top: 100px; | ||
margin-bottom: 80px; | ||
`; | ||
|
||
export const TextDivs = styled(View)` | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
flex-direction: row; | ||
height: 60px; | ||
width: 80%; | ||
`; |
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,20 @@ | ||
import * as S from './styles'; | ||
import LoginInputs from '@components/LoginInputs'; | ||
import ButtonComponent from "@components/ButtonComponent"; | ||
import BolaNumero from '@components/BolaNumero'; | ||
import { StatusBar } from 'expo-status-bar'; | ||
import React from 'react'; | ||
|
||
const Cadastro2 = () => ( | ||
<S.Wrapper> | ||
<StatusBar style="light" /> | ||
<BolaNumero num='1' width='48px' height='48px'/> | ||
<S.InputsDiv> | ||
<LoginInputs password={true} text='Senha:' height='60px'/> | ||
<LoginInputs password={true} text='Confirme a Senha:' height='60px'/> | ||
</S.InputsDiv> | ||
<ButtonComponent height='60px' color='#ffa800' width='36%' text='text' image='public/assets/images/Vector.png'/> | ||
</S.Wrapper> | ||
); | ||
|
||
export default Cadastro2; |
Oops, something went wrong.