-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add input validation for user creation on SignIn page
- Loading branch information
1 parent
c979e5a
commit 2d64c7a
Showing
9 changed files
with
276 additions
and
124 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { IoMdCloseCircleOutline } from 'react-icons/io'; | ||
import { Box, Typography } from '@mui/material'; | ||
|
||
const ErrorMessage = ({ errText }) => { | ||
return ( | ||
errText && ( | ||
<Box | ||
sx={{ | ||
mt: '8px', | ||
display: 'flex', | ||
alignItems: 'center', | ||
gap: '8px', | ||
color: '#EF5364', | ||
bgcolor: '#FFEFF1', | ||
borderRadius: '4px', | ||
padding: '4px 8px', | ||
fontSize: '14px', | ||
}} | ||
> | ||
<IoMdCloseCircleOutline size={20} /> | ||
<Typography as="p">{errText}</Typography> | ||
</Box> | ||
) | ||
); | ||
}; | ||
|
||
export default ErrorMessage; |
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,43 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
export const HomePageWrapper = styled.div` | ||
--section-height: calc(100vh - 80px); | ||
--section-height-offset: 80px; | ||
background: linear-gradient(0deg, #f3fcfc, #f3fcfc), #f7f8fa; | ||
`; | ||
|
||
export const StyledContentWrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: #fff; | ||
border-radius: 16px; | ||
margin: 60px auto; | ||
max-width: 50%; | ||
width: 100%; | ||
@media (max-width: 767px) { | ||
max-width: 80%; | ||
.title { | ||
text-overflow: ellipsis; | ||
width: 100%; | ||
} | ||
} | ||
h2 { | ||
font-weight: 700; | ||
font-size: 22px; | ||
line-height: 140%; | ||
text-align: center; | ||
color: #536166; | ||
margin-top: 40px; | ||
} | ||
`; | ||
|
||
export const StyledQuestionInput = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: flex-start; | ||
margin-top: 20px; | ||
`; |
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
Oops, something went wrong.