diff --git a/src/components/molecules/Hero/Hero.tsx b/src/components/molecules/Hero/Hero.tsx index c65fb64..bdf0552 100644 --- a/src/components/molecules/Hero/Hero.tsx +++ b/src/components/molecules/Hero/Hero.tsx @@ -42,14 +42,24 @@ const Hero = (props: { scrollTarget?: React.ForwardedRef }) = }, })}> - Robotics Engineer - - See some of my works below. Send a message to get in touch. + + Robotics +
Engineer
- - - - + + Discover some of my works below. +
Send a message to get in touch. +
+ + + +
{ }, }}>
- + {props.title} diff --git a/src/components/templates/Page/Page.tsx b/src/components/templates/Page/Page.tsx index 875af51..fdaa53f 100644 --- a/src/components/templates/Page/Page.tsx +++ b/src/components/templates/Page/Page.tsx @@ -24,26 +24,31 @@ const Page: React.FC = ({ title, children, showCookieConsent, ...prop {title && ( <> {title} ({ 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 = ({ title, children, showCookieConsent, ...prop component="main" maxWidth={false} sx={{ - mt: 12, + mt: { xs: 8, md: 12 }, mb: 4, minHeight: '80vh', mx: 'auto',