-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(styles): add
style.module.css
and move styles from tsx (#146)
* feat(styles): add style.module.css and move styles from tsx created new style.module.css files to maintain tsx component styles separately. Styles previously located in tsx files were moved to improve modularity and code organization. * fix(style): fix formatting in boxContentCenter bug fixed to comply with prettier formatting rules.
- Loading branch information
Showing
10 changed files
with
58 additions
and
65 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
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,8 @@ | ||
.liveness_conditions { | ||
background: #eff7ff; | ||
border-radius: 6px; | ||
padding: 30px 20px; | ||
display: flex; | ||
align-items: center; | ||
flex-direction: row; | ||
} |
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
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,7 @@ | ||
.liveness_container { | ||
width: 100%; | ||
height: 55vh; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} |
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,19 +1,11 @@ | ||
import Box from '@mui/material/Box'; | ||
|
||
import styles from './styles.module.css'; | ||
|
||
export default function BoxContentCenter({ children }: any) { | ||
return ( | ||
<Box | ||
sx={{ | ||
width: '100%', | ||
minHeight: `calc(100vh - 630px)`, | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}} | ||
> | ||
<Box sx={{ width: '100%', maxWidth: '560px', padding: '0 10px' }}> | ||
{children} | ||
</Box> | ||
<Box className={styles.box_container}> | ||
<Box className={styles.box_content}>{children}</Box> | ||
</Box> | ||
); | ||
} |
13 changes: 13 additions & 0 deletions
13
src/components/elements/boxContentCenter/styles.module.css
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 @@ | ||
.box_container { | ||
width: 100%; | ||
min-height: calc(100vh - 630px); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.box_content { | ||
width: 100%; | ||
max-width: 560px; | ||
padding: 0 10px; | ||
} |
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