From e84bb904ce9d30f06e3a8e7a81a2fc6eb389f3bd Mon Sep 17 00:00:00 2001 From: ErnestaP Date: Fri, 27 Oct 2023 17:12:34 +0200 Subject: [PATCH] responsive Carousel --- src/pages/index.tsx | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 5177726..f880d49 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -21,7 +21,6 @@ const Home: NextPage = ({ lectures }) => { useEffect(() => { document.title = "Home | CERN Academic Training"; }, []); - // window.scrollTo(0, 0); const AcademicTrainingCaption = styled(Link)` color: #fff !important; font: normal normal normal 14px Abolition; @@ -51,11 +50,13 @@ const Home: NextPage = ({ lectures }) => { margin-top: 0; object-fit: cover; object-position: 50% 50%; - background-repeat: no-repeat; + background-repeat: repeat-x; opacity: 0.9; + height: calc(100vh - 40px); } `; + const CaptionFrame = styled.div` margin: 0% 15% 0% 15%; width: 70%; /*small screens*/ @@ -100,7 +101,6 @@ const Home: NextPage = ({ lectures }) => { display: flex; background: transparent; height: 100%; - zindex: 1; `; const AcademicTrainingDecoration = styled.div` // margin-top: 25%; @@ -130,7 +130,7 @@ const Home: NextPage = ({ lectures }) => { <AcademicTrainingCaption href="/"> - ACADEMIC TRAINING{" "} + ACADEMIC TRAINING!{" "} </AcademicTrainingCaption> @@ -138,24 +138,17 @@ const Home: NextPage = ({ lectures }) => { {photos.map((photo) => { return ( -
-
- -
-
+ ); })}
-
+
MOST RECENT