From 27e5f1e7c0a5895f2545e7f072486d6f90e7fe7b Mon Sep 17 00:00:00 2001 From: neus <02mayolneus@gmail.com> Date: Tue, 1 Sep 2026 13:24:25 +0200 Subject: [PATCH 1/3] Refreshes UI --- src/app/components/Hero.tsx | 69 +++++++++++++--- src/app/components/PresentationCards.tsx | 24 +++--- src/app/components/Socials.tsx | 16 ++++ src/app/data/hero_data.ts | 2 +- src/app/genericComponents/EmblaCarousel.tsx | 52 +++--------- src/app/genericComponents/General.ts | 43 ++++++---- src/app/globals.css | 90 ++++++++------------- src/app/page.tsx | 2 +- 8 files changed, 164 insertions(+), 134 deletions(-) diff --git a/src/app/components/Hero.tsx b/src/app/components/Hero.tsx index 14fb61f..c17d651 100644 --- a/src/app/components/Hero.tsx +++ b/src/app/components/Hero.tsx @@ -8,23 +8,26 @@ import { 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 +55,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 +74,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 +122,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}