Repository navigation
Expand file tree
/
Copy pathBanner.tsx
More file actions
78 lines (75 loc) · 1.58 KB
/
Copy pathBanner.tsx
File metadata and controls
78 lines (75 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import Avatar from '@components/banner/Avatar';
import { Box, Typography } from '@mui/material';
/** The banner at the top of the page */
export default function Banner() {
return (
<Box
component='div'
sx={{
alignItems: 'center',
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
margin: '3rem auto',
minHeight: '60vh',
position: 'relative',
width: 'fit-content',
}}
>
<Avatar />
<Typography
aria-label='Name'
component='h1'
sx={{
fontSize: 'clamp(1.5rem, 2.5rem, 2.5rem)',
fontWeight: 'bold',
marginTop: '1rem',
textAlign: 'center',
textTransform: 'uppercase',
zIndex: 1,
}}
>
{['Alexander ', 'Joo-Hyun', ' Sullivan'].map((part, i) => (
<Box
key={i}
component='span'
sx={{
whiteSpace: i === 1 ? 'nowrap' : undefined,
display: 'inline-block',
p: '0 0.5rem',
m: 0,
}}
>
{part.split('').map((char, j) => (
<Box
key={j}
component='span'
sx={{
cursor: 'default',
textShadow: '1px 2px 3px #666',
transition: 'all 1s ease',
'&:hover': {
color: 'rgb(43, 255, 0)',
transition: 'all 0.5s ease',
},
}}
>
{char}
</Box>
))}
</Box>
))}
</Typography>
<Typography
sx={{
fontSize: 'clamp(1.5rem, 2rem, 3rem)',
marginTop: '1.5rem',
textAlign: 'center',
textShadow: '1px 2px 3px #000',
}}
>
Software Developer & Bioinformatician
</Typography>
</Box>
);
}