Skip to content

Commit

Permalink
feat(branding): Add CornerAccents component for consistent branding a…
Browse files Browse the repository at this point in the history
…cross pages
  • Loading branch information
AlbinoGeek committed Dec 10, 2023
1 parent d6f5073 commit 1a4ffe5
Showing 1 changed file with 108 additions and 0 deletions.
108 changes: 108 additions & 0 deletions src/components/branding/CornerAccents.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
import Box from '@mui/material/Box'

export default function CornerAccents(): JSX.Element {
const longDimension = 'clamp(0.5rem, 5vw, 8rem)'
const shortDimension = 'clamp(0.5rem, 0.75vw, 4rem)'

return <>
<Box
sx={{
background: 'var(--accent)',
height: longDimension,
position: 'absolute',
left: '1rem',
top: '1rem',
width: shortDimension,
opacity: 0.2,
zIndex: 2,
}}
/>
<Box
sx={{
background: 'var(--accent)',
height: shortDimension,
position: 'absolute',
left: '1.75rem',
top: '1rem',
width: longDimension,
opacity: 0.2,
zIndex: 2,
}}
/>

<Box
sx={{
background: 'var(--accent)',
height: longDimension,
position: 'absolute',
right: '1rem',
top: '1rem',
width: shortDimension,
opacity: 0.2,
zIndex: 2,
}}
/>
<Box
sx={{
background: 'var(--accent)',
height: shortDimension,
position: 'absolute',
right: '1.75rem',
top: '1rem',
width: longDimension,
opacity: 0.2,
zIndex: 2,
}}
/>

<Box
sx={{
background: 'var(--accent)',
height: longDimension,
position: 'absolute',
left: '1rem',
bottom: '1rem',
width: shortDimension,
opacity: 0.2,
zIndex: 2,
}}
/>
<Box
sx={{
background: 'var(--accent)',
height: shortDimension,
position: 'absolute',
left: '1.75rem',
bottom: '1rem',
width: longDimension,
opacity: 0.2,
zIndex: 2,
}}
/>

<Box
sx={{
background: 'var(--accent)',
height: longDimension,
position: 'absolute',
right: '1rem',
bottom: '1rem',
width: shortDimension,
opacity: 0.2,
zIndex: 2,
}}
/>
<Box
sx={{
background: 'var(--accent)',
height: shortDimension,
position: 'absolute',
right: '1.75rem',
bottom: '1rem',
width: longDimension,
opacity: 0.2,
zIndex: 2,
}}
/>
</>
}

0 comments on commit 1a4ffe5

Please sign in to comment.