-
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.
Merge pull request #373 from BinaryStudioAcademy/task/OV-368-create-c…
…onsent-component OV-368: Create consent component
- Loading branch information
Showing
4 changed files
with
75 additions
and
0 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
38 changes: 38 additions & 0 deletions
38
frontend/src/bundles/create-avatar/components/consent/consent.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,38 @@ | ||
import { | ||
Box, | ||
Button, | ||
Flex, | ||
Icon, | ||
Text, | ||
} from '~/bundles/common/components/components.js'; | ||
import { IconName } from '~/bundles/common/icons/icons.js'; | ||
|
||
import styles from './styles.module.css'; | ||
|
||
const Consent: React.FC = () => { | ||
return ( | ||
<Flex className={styles['flex-container']}> | ||
<Text variant={'title'} color={'background.600'} marginTop={'2vh'}> | ||
Concent | ||
</Text> | ||
<Text variant={'body1'} color="typography.600" mb={3}> | ||
To prevent misuse of technology, we just need to confirm the | ||
person in the video is you. | ||
</Text> | ||
<Box | ||
className={styles['recordSection']} | ||
borderColor={'background.50'} | ||
> | ||
<Icon | ||
as={IconName.VIDEO_CAMERA} | ||
boxSize={100} | ||
color={'background.600'} | ||
/> | ||
<Button label="Record a consent" width="220px" /> | ||
</Box> | ||
<Button label="Generate Avatar" width="220px" /> | ||
</Flex> | ||
); | ||
}; | ||
|
||
export { Consent }; |
32 changes: 32 additions & 0 deletions
32
frontend/src/bundles/create-avatar/components/consent/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,32 @@ | ||
.flex-container { | ||
flex-direction: column; | ||
background-color: white; | ||
padding: 30px; | ||
border-radius: 10px; | ||
align-items: center; | ||
padding-bottom: 80px; | ||
} | ||
|
||
.inner-flex { | ||
color: var(--chakra-colors-typography-600); | ||
font-size: 14px; | ||
justify-content: center; | ||
gap: 40px; | ||
} | ||
|
||
.recordSection { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
border-width: 2px; | ||
border-radius: 11px; | ||
padding: 8vh; | ||
padding-left: 20vh; | ||
padding-right: 20vh; | ||
justify-content: center; | ||
margin-bottom: 5vh; | ||
} | ||
|
||
.icon { | ||
margin-bottom: 16px; | ||
} |