♻️ refactor: update components proportions for new fonts

This commit is contained in:
2025-06-16 13:18:41 +00:00
parent 612853cc86
commit 15216d12af
3 changed files with 29 additions and 14 deletions
+17 -7
View File
@@ -42,14 +42,24 @@ const Hero = (props: { scrollTarget?: React.ForwardedRef<HTMLSelectElement> }) =
},
})}>
<Box>
<Typography variant="h3">Robotics Engineer</Typography>
<Typography color="text.secondary" sx={{ margin: '0.5em 0 0 0', top: 0 }}>
See some of my works below. Send a message to get in touch.
<Typography variant="h1">
Robotics
<br /> Engineer
</Typography>
<Stack direction="row" gap={2} mt={2} justifyContent={{ xs: 'center', sm: 'end' }}>
<LinkedInIconLink sx={{ color: 'text.secondary' }} fontSize="large" href="https://www.linkedin.com/in/m-tartari/" />
<GitHubIconLink sx={{ color: 'text.secondary' }} fontSize="large" href="https://www.github.com/m-tartari/" />
<EmailIconLink sx={{ color: 'text.secondary' }} fontSize="large" href="mailto:info@m-tartari.eu" />
<Typography
variant="h6"
color="text.secondary"
sx={{
margin: '0.5em 0 0 0',
pt: 1,
}}>
Discover some of my works below.
<br /> Send a message to get in touch.
</Typography>
<Stack direction="row" gap={2} mt={2} justifyContent={{ xs: 'center', md: 'end' }} color="text.secondary">
<LinkedInIconLink fontSize="large" href="https://www.linkedin.com/in/m-tartari/" />
<GitHubIconLink fontSize="large" href="https://www.github.com/m-tartari/" />
<EmailIconLink fontSize="large" href="mailto:info@m-tartari.eu" />
</Stack>
</Box>
<Avatar
+1 -1
View File
@@ -51,7 +51,7 @@ const Project = (props: ProjectProps) => {
},
}}>
<div style={{ flex: 1 }}>
<Typography variant="h6">
<Typography variant="h5">
<b>{props.title}</b>
</Typography>
<Stack direction="row" gap={1} alignItems="center">
+11 -6
View File
@@ -24,26 +24,31 @@ const Page: React.FC<PageProps> = ({ title, children, showCookieConsent, ...prop
{title && (
<>
<Typography
variant="h2"
variant="h1"
aria-label="page-title"
textAlign="center"
sx={{
mt: 6,
p: 6,
py: 6,
}}>
{title}
</Typography>
<Divider
variant="middle"
sx={{
sx={theme => ({
borderColor: 'primary.main',
borderStyle: 'solid',
borderWidth: 2,
mx: 'auto',
mb: 4,
width: '30em',
maxWidth: 'calc(60% - 2.5em)',
}}
[theme.breakpoints.up('md')]: {
width: theme => theme.breakpoints.values.sm,
},
[theme.breakpoints.down('sm')]: {
maxWidth: '75vw',
},
})}
/>
</>
)}
@@ -51,7 +56,7 @@ const Page: React.FC<PageProps> = ({ title, children, showCookieConsent, ...prop
component="main"
maxWidth={false}
sx={{
mt: 12,
mt: { xs: 8, md: 12 },
mb: 4,
minHeight: '80vh',
mx: 'auto',