From 3e73ec35e630d25f91f0421eeabf737b47bb68e6 Mon Sep 17 00:00:00 2001 From: m-tartari <37861893+m-tartari@users.noreply.github.com> Date: Fri, 23 May 2025 13:37:37 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(Hero):=20fix=20deformed=20sc?= =?UTF-8?q?roll=20button=20shape?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/molecules/Hero/Hero.tsx | 22 ++++--------------- .../ProjectSpotlight/ProjectSpotlight.tsx | 2 +- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/src/components/molecules/Hero/Hero.tsx b/src/components/molecules/Hero/Hero.tsx index bf19bd4..31c1161 100644 --- a/src/components/molecules/Hero/Hero.tsx +++ b/src/components/molecules/Hero/Hero.tsx @@ -44,22 +44,8 @@ const Hero = (props: { scrollTarget?: React.ForwardedRef }) = }, })}> - {/* -

Michele Tartari

-

Robotics Engineer

- */} - - Robotics Engineer - - + Robotics Engineer + See some of my works below. Send a message to get in touch. @@ -83,8 +69,8 @@ const Hero = (props: { scrollTarget?: React.ForwardedRef }) = {props.scrollTarget && ( (props.scrollTarget as React.RefObject).current?.scrollIntoView()} - sx={{ display: { xs: 'none', md: 'block' }, position: 'absolute', p: 1, bottom: 3 }}> + onClick={() => (props.scrollTarget as React.RefObject).current?.scrollIntoView()} + sx={{ position: 'absolute', p: 1, bottom: 2, left: '50%', transform: 'translate(-50%, 0)' }}> )} diff --git a/src/components/molecules/ProjectSpotlight/ProjectSpotlight.tsx b/src/components/molecules/ProjectSpotlight/ProjectSpotlight.tsx index 89c69f7..05d2d3c 100644 --- a/src/components/molecules/ProjectSpotlight/ProjectSpotlight.tsx +++ b/src/components/molecules/ProjectSpotlight/ProjectSpotlight.tsx @@ -153,7 +153,7 @@ const DesktopComponent = React.forwardRef((props, ref) {props.scrollTarget && ( (props.scrollTarget as React.MutableRefObject).current?.scrollIntoView()} + onClick={() => (props.scrollTarget as React.RefObject).current?.scrollIntoView()} sx={{ position: 'absolute', p: 1, bottom: 2, left: '50%', transform: 'translate(-50%, 0)' }}>