-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Polish Safenet UI for Security Checks
- Loading branch information
Showing
6 changed files
with
145 additions
and
42 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,58 @@ | ||
import { Box, SvgIcon, Typography } from '@mui/material' | ||
import SafenetIcon from '@/public/images/safenet.svg' | ||
import { type CSSProperties, type ReactNode } from 'react' | ||
|
||
const GradientBoxSafenet = ({ | ||
heading, | ||
children, | ||
className, | ||
style, | ||
}: { | ||
heading?: string | ||
children?: ReactNode | ||
className?: string | ||
style?: CSSProperties | ||
}) => { | ||
return ( | ||
<Box | ||
className={className} | ||
style={{ | ||
background: 'linear-gradient(90deg, #32f970 0%, #eed509 100%)', | ||
borderRadius: 'calc(var(--space-1) - 1px)', | ||
display: 'flex', | ||
alignItems: 'stretch', | ||
flexDirection: 'column', | ||
justifyContent: 'space-between', | ||
...style, | ||
}} | ||
> | ||
<Box | ||
style={{ | ||
color: 'var(--color-static-main)', | ||
padding: 'calc(var(--space-1) / 2) var(--space-1)', | ||
display: 'flex', | ||
flexDirection: 'row', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
}} | ||
> | ||
<SvgIcon component={SafenetIcon} inheritViewBox fontSize="small" /> | ||
<Typography variant="h5" fontSize="small"> | ||
{heading ?? 'Safenet'} | ||
</Typography> | ||
</Box> | ||
<Box | ||
className="GradientBoxSafenet-content" | ||
style={{ | ||
background: 'var(--color-background-paper)', | ||
borderRadius: '0 0 var(--space-1) var(--space-1)', | ||
margin: '1px', | ||
}} | ||
> | ||
{children} | ||
</Box> | ||
</Box> | ||
) | ||
} | ||
|
||
export default GradientBoxSafenet |
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
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