-
Notifications
You must be signed in to change notification settings - Fork 0
Create screens #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Mariusz-web
wants to merge
2
commits into
master
Choose a base branch
from
issue-49-feat/create-login-register-screen
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Create screens #50
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
29 changes: 29 additions & 0 deletions
29
apps/client/src/app/sceens/ActivateAccount/ActivateAccount.style.ts
This file contains hidden or 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,29 @@ | ||
| import CheckRoundedIcon from '@mui/icons-material/CheckRounded'; | ||
| import Avatar from '@mui/material/Avatar'; | ||
| import Box from '@mui/material/Box'; | ||
| import styled from '@emotion/styled'; | ||
|
|
||
| export const StyledPageBox = styled(Box)` | ||
| margin: 80px 0 0; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| text-align: center; | ||
| `; | ||
| export const StyledAvatar = styled(Avatar)` | ||
| margin-bottom: 30px; | ||
| background-color: #4caf50; | ||
| width: 70px; | ||
| height: 70px; | ||
| @media (max-width: 480px) { | ||
| width: 50px; | ||
| height: 50px; | ||
| } | ||
| `; | ||
| export const StyledAvatarCheck = styled(CheckRoundedIcon)` | ||
| font-size: 48px; | ||
| color: #fff; | ||
| @media (max-width: 480px) { | ||
| font-size: 36px; | ||
| } | ||
| `; |
18 changes: 17 additions & 1 deletion
18
apps/client/src/app/sceens/ActivateAccount/ActivateAccount.tsx
This file contains hidden or 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,3 +1,19 @@ | ||
| import Typography from '@mui/material/Typography'; | ||
| import { | ||
| StyledPageBox, | ||
| StyledAvatar, | ||
| StyledAvatarCheck, | ||
| } from './ActivateAccount.style'; | ||
|
|
||
| export const ActivateAccount = () => { | ||
| return <div>ActivateAccount</div>; | ||
| return ( | ||
| <StyledPageBox> | ||
| <StyledAvatar> | ||
| <StyledAvatarCheck /> | ||
| </StyledAvatar> | ||
| <Typography component='h1' variant='h4'> | ||
| Congrats, successfully confirmation mail | ||
| </Typography> | ||
| </StyledPageBox> | ||
| ); | ||
| }; |
This file contains hidden or 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 RestaurantMenuRoundedIcon from '@mui/icons-material/RestaurantMenuRounded'; | ||
| import { Box, Fab, Typography } from '@mui/material'; | ||
| import Button from '@mui/material/Button'; | ||
| import { NavLink } from 'react-router-dom'; | ||
| import styled from '@emotion/styled'; | ||
|
|
||
| export const StyledPageBox = styled(Box)` | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| margin-top: 40px; | ||
| @media (max-width: 480px) { | ||
| margin-top: 80px; | ||
| } | ||
| `; | ||
| export const StyledLogoBox = styled(Box)` | ||
| display: flex; | ||
| flex-direction: row; | ||
| margin-top: 20px; | ||
| align-items: center; | ||
| `; | ||
| export const StyledFabLogo = styled(Fab)` | ||
| width: 50px; | ||
| height: 50px; | ||
| margin-left: 20px; | ||
| cursor: unset; | ||
| `; | ||
| export const StyledIconLogo = styled(RestaurantMenuRoundedIcon)` | ||
| font-size: 42px; | ||
| color: #fff; | ||
| `; | ||
| export const StyledFirstTypography = styled(Typography)` | ||
| text-align: center; | ||
| margin: 20px auto; | ||
| `; | ||
| export const StyledLinkText = styled(NavLink)` | ||
| text-decoration: none; | ||
| width: 90%; | ||
| `; | ||
| export const StyledNavButton = styled(Button)` | ||
| width: 100%; | ||
| color: #fff; | ||
| `; | ||
| export const StyledSecondTypography = styled(Typography)` | ||
| text-align: center; | ||
| margin: 10px auto; | ||
| `; |
This file contains hidden or 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 hidden or 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,64 @@ | ||
| import Lock from '@mui/icons-material/Lock'; | ||
| import Avatar from '@mui/material/Avatar'; | ||
| import Box from '@mui/material/Box'; | ||
| import Button from '@mui/material/Button'; | ||
| import TextField from '@mui/material/TextField'; | ||
| import Typography from '@mui/material/Typography'; | ||
| import { NavLink } from 'react-router-dom'; | ||
| import styled from '@emotion/styled'; | ||
|
|
||
| export const StyledPageBox = styled(Box)` | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| `; | ||
| export const StyledSectionBox = styled(Box)` | ||
| margin: 80px 0 0; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| text-align: center; | ||
| width: 90%; | ||
| `; | ||
| export const StyledAvatar = styled(Avatar)` | ||
| margin: 8px; | ||
| background-color: #4caf50; | ||
| width: 70px; | ||
| height: 70px; | ||
| @media (max-width: 480px) { | ||
| width: 40px; | ||
| height: 40px; | ||
| } | ||
| `; | ||
| export const StyledAvatarLock = styled(Lock)` | ||
| font-size: 48px; | ||
| color: #fff; | ||
| @media (max-width: 480px) { | ||
| font-size: 24px; | ||
| } | ||
| `; | ||
| export const StyledTypography = styled(Typography)` | ||
| @media (max-width: 480px) { | ||
| font-size: 24px; | ||
| } | ||
| `; | ||
| export const StyledFormTextField = styled(TextField)` | ||
| width: 100%; | ||
| margin: 10px 0; | ||
| `; | ||
| export const StyledErrorDiv = styled(Box)` | ||
| color: #ff0000; | ||
| `; | ||
| export const StyledSignButton = styled(Button)` | ||
| width: 100%; | ||
| color: #fff; | ||
| `; | ||
| export const StyledBottomSection = styled(Box)` | ||
| display: flex; | ||
| justify-content: space-between; | ||
| width: 100%; | ||
| margin-top: 30px; | ||
| `; | ||
| export const StyledNavLink = styled(NavLink)` | ||
| color: #000; | ||
| `; |
This file contains hidden or 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,3 +1,65 @@ | ||
| import { | ||
| StyledPageBox, | ||
| StyledSectionBox, | ||
| StyledAvatar, | ||
| StyledAvatarLock, | ||
| StyledTypography, | ||
| StyledFormTextField, | ||
| StyledErrorDiv, | ||
| StyledSignButton, | ||
| StyledBottomSection, | ||
| StyledNavLink, | ||
| } from './Login.style'; | ||
|
|
||
| import { ROUTES } from '../../routes/Routes'; | ||
| import { useState } from 'react'; | ||
|
|
||
| export const Login = () => { | ||
| return <div>Login</div>; | ||
| const [email, setEmail] = useState(''); | ||
| const [password, setPassword] = useState(''); | ||
|
|
||
| return ( | ||
| <StyledPageBox> | ||
| <StyledSectionBox> | ||
| <StyledAvatar> | ||
| <StyledAvatarLock /> | ||
| </StyledAvatar> | ||
|
|
||
| <StyledTypography variant='h4'>Sign in</StyledTypography> | ||
|
|
||
| <form onSubmit={() => console.log('sent')}> | ||
| <StyledFormTextField | ||
| variant='outlined' | ||
| required | ||
| label='Email' | ||
| value={email} | ||
| onChange={(e) => setEmail(e.target.value)} | ||
| autoComplete='email' | ||
| /> | ||
| <StyledFormTextField | ||
| variant='outlined' | ||
| required | ||
| label='Password' | ||
| value={password} | ||
| onChange={(e) => setPassword(e.target.value)} | ||
| type='password' | ||
| autoComplete='current-password' | ||
| /> | ||
| <StyledErrorDiv className='invalid-feedback'></StyledErrorDiv> | ||
| <StyledSignButton variant='contained' type='submit'> | ||
| Sign In | ||
| </StyledSignButton> | ||
| </form> | ||
|
|
||
| <StyledBottomSection> | ||
| <StyledNavLink to={ROUTES.REQUEST_PASSWORD_RESET}> | ||
| Forgot password? | ||
| </StyledNavLink> | ||
| <StyledNavLink to={ROUTES.REGISTER}> | ||
| Don't have an account? Sign up | ||
| </StyledNavLink> | ||
| </StyledBottomSection> | ||
| </StyledSectionBox> | ||
| </StyledPageBox> | ||
| ); | ||
| }; |
This file contains hidden or 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,71 @@ | ||
| import Lock from '@mui/icons-material/Lock'; | ||
| import Avatar from '@mui/material/Avatar'; | ||
| import Box from '@mui/material/Box'; | ||
| import Button from '@mui/material/Button'; | ||
| import TextField from '@mui/material/TextField'; | ||
| import styled from '@emotion/styled'; | ||
| import { NavLink } from 'react-router-dom'; | ||
|
|
||
| export const StyledPageBox = styled(Box)` | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| `; | ||
| export const StyledSectionBox = styled(Box)` | ||
| margin: 80px 0 0; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| text-align: center; | ||
| width: 90%; | ||
| `; | ||
| export const StyledAvatar = styled(Avatar)` | ||
| margin: 8px; | ||
| background-color: #4caf50; | ||
| width: 70px; | ||
| height: 70px; | ||
| @media (max-width: 480px) { | ||
| width: 40px; | ||
| height: 40px; | ||
| } | ||
| `; | ||
| export const StyledAvatarLock = styled(Lock)` | ||
| font-size: 48px; | ||
| color: #fff; | ||
| @media (max-width: 480px) { | ||
| font-size: 24px; | ||
| } | ||
| `; | ||
| export const StyledInputsName = styled(Box)` | ||
| width: 100%; | ||
| display: ;flex; | ||
| flex-direciotn: row; | ||
| margin: 10px 0; | ||
| `; | ||
| export const StyledFormTextFieldName = styled(TextField)` | ||
| width: 50%; | ||
| `; | ||
| export const StyledFormTextField = styled(TextField)` | ||
| width: 100%; | ||
| margin: 10px 0; | ||
| `; | ||
| export const StyledFormTextFieldBirtday = styled(TextField)` | ||
| width: 100%; | ||
| margin: 10px 0; | ||
| `; | ||
| export const StyledErrorDiv = styled(Box)` | ||
| color: red; | ||
| `; | ||
| export const StyledButtonSign = styled(Button)` | ||
| width: 100%; | ||
| color: #fff; | ||
| `; | ||
| export const StyledSectionBottom = styled(Box)` | ||
| display: flex; | ||
| justify-content: flex-end; | ||
| width: 100%; | ||
| margin-top: 2rem; | ||
| `; | ||
| export const StyledNavLink = styled(NavLink)` | ||
| color: #000; | ||
| `; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it commented? Also the login/register screen shouldn't have header