diff --git a/src/app/components/Hero.tsx b/src/app/components/Hero.tsx index 14fb61f..5dc72c4 100644 --- a/src/app/components/Hero.tsx +++ b/src/app/components/Hero.tsx @@ -2,29 +2,30 @@ import styled from "styled-components"; import { SmallMobileBreakpoint, MobileBreakpoint, - MobileTitleXL, - MobileTitleL, SpacingS, SpacingM, SpacingXXL, TitleXL, - Primary300, } from "@/app/genericComponents/tokens"; import { hero_data } from "@data/hero_data"; import { PrimaryButton } from "@/app/genericComponents/General"; const Container = styled.div` position: relative; - margin-top: 5%; - margin-right: 10%; - margin-left: 10%; + display: flex; + flex-direction: column; + justify-content: center; + min-height: 80vh; padding: ${SpacingXXL}; - border-radius: 20px; - border: 0.3333rem solid ${Primary300}; overflow: hidden; @media (max-width: ${MobileBreakpoint}) { + min-height: 72vh; padding: ${SpacingS}; + padding-top: 5rem; + padding-bottom: 3.5rem; + justify-content: center; + align-items: center; } &::before { @@ -52,11 +53,18 @@ const Title = styled.h1` text-shadow: 0 2px 6px rgba(0, 0, 0, 0); @media (max-width: ${MobileBreakpoint}) { - font-size: ${MobileTitleXL}; + font-size: 3.2rem; + line-height: 1.08; + width: 100%; + margin: 0 auto; + display: flex; + align-items: center; + justify-content: center; + text-align: center; } @media (max-width: ${SmallMobileBreakpoint}) { - font-size: ${MobileTitleL}; + font-size: 2.7rem; } `; @@ -64,9 +72,45 @@ const ButtonContainer = styled.div` display: flex; justify-content: center; margin-top: ${SpacingM}; + + @media (max-width: ${MobileBreakpoint}) { + width: 100%; + justify-content: center; + } +`; + +const ClosedMessage = styled.p` + margin: 0; + font-style: italic; + text-align: center; + color: #ffffff; + font-size: 1rem; +`; + +const DiscoverMoreButton = styled.button` + display: none; + margin: auto auto 0; + border: none; + background: transparent; + color: #ffffff; + font-size: 0.95rem; + font-weight: 600; + letter-spacing: 0.08em; + text-transform: uppercase; + cursor: pointer; + padding: 0.5rem 0; + + @media (max-width: ${MobileBreakpoint}) { + display: block; + } `; export default function Hero() { + const handleScrollToNextSection = () => { + const nextSection = document.getElementById("presentation-cards"); + nextSection?.scrollIntoView({ behavior: "smooth", block: "start" }); + }; + return ( {hero_data.title} @@ -76,11 +120,12 @@ export default function Hero() { {hero_data.applicationsOpenTextButton} ) : ( - - {hero_data.applicationsClosedTextButton} - + {hero_data.applicationsClosedTextButton} )} + + Discover more + ); } diff --git a/src/app/components/PresentationCards.tsx b/src/app/components/PresentationCards.tsx index fb71274..afcb5df 100644 --- a/src/app/components/PresentationCards.tsx +++ b/src/app/components/PresentationCards.tsx @@ -18,22 +18,24 @@ const OPTIONS: EmblaOptionsType = { loop: true }; export default function PresentationCards() { return ( - + - + {about_joining_data_card.title} - {about_joining_data_card.description} - + {about_joining_data_card.description} +
+ +
- + {talk_data_card.title} - {talk_data_card.description} + {talk_data_card.description} - + {trailer_data_card.title} - {trailer_data_card.description} + {trailer_data_card.description}