mirror of
https://github.com/Lapikud/tipilan.git
synced 2026-05-08 10:00:46 +00:00
Small mobile responsiveness changes, few lines in translation changed for better CTA
This commit is contained in:
@@ -5,7 +5,7 @@ import Image from "next/image";
|
|||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
import { SLIDES, type CarouselSlide } from "./constants";
|
import { SLIDES, type CarouselSlide } from "./constants";
|
||||||
import { BLUR_PLACEHOLDERS } from "@/lib/blurPlaceholders";
|
import { BLUR_PLACEHOLDERS } from "@/lib/blurPlaceholders";
|
||||||
import {gray} from "next/dist/lib/picocolors";
|
import { gray } from "next/dist/lib/picocolors";
|
||||||
|
|
||||||
function blurKey(src: string) {
|
function blurKey(src: string) {
|
||||||
return src.replace('/images/', '').replace(/\.\w+$/, '');
|
return src.replace('/images/', '').replace(/\.\w+$/, '');
|
||||||
@@ -116,7 +116,7 @@ export default function CarouselSection({ sectionRef }: CarouselSectionProps) {
|
|||||||
{/* Mobile: stacked slides, no hero images, no transitions */}
|
{/* Mobile: stacked slides, no hero images, no transitions */}
|
||||||
<div className="lg:hidden">
|
<div className="lg:hidden">
|
||||||
{SLIDES.map((slide, i) => (
|
{SLIDES.map((slide, i) => (
|
||||||
<div key={i} className="relative w-full h-[60vw] min-h-[320px] overflow-hidden border-t-4 border-primary-50">
|
<div key={i} className="relative w-full overflow-hidden border-t-4 border-primary-50">
|
||||||
<Image
|
<Image
|
||||||
src={slide.bgImage}
|
src={slide.bgImage}
|
||||||
alt=""
|
alt=""
|
||||||
@@ -127,7 +127,7 @@ export default function CarouselSection({ sectionRef }: CarouselSectionProps) {
|
|||||||
sizes="100vw"
|
sizes="100vw"
|
||||||
className="object-cover pointer-events-none"
|
className="object-cover pointer-events-none"
|
||||||
/>
|
/>
|
||||||
<div className="relative z-1 flex flex-col gap-4 justify-end h-full p-6 pb-12">
|
<div className="relative z-1 flex flex-col gap-4 py-16 px-6">
|
||||||
<h3 className="text-h1 text-text-light text-shadow-teaser">{t(slide.titleKey)}</h3>
|
<h3 className="text-h1 text-text-light text-shadow-teaser">{t(slide.titleKey)}</h3>
|
||||||
<p className="text-p-lg text-text-light max-w-[500px]">{t(slide.descKey)}</p>
|
<p className="text-p-lg text-text-light max-w-[500px]">{t(slide.descKey)}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export default function EndSection() {
|
|||||||
/>
|
/>
|
||||||
<div className="relative z-1 flex flex-col items-center justify-center h-full gap-8 xl:gap-16 2xl:gap-32 p-6 lg:p-12 xl:p-16">
|
<div className="relative z-1 flex flex-col items-center justify-center h-full gap-8 xl:gap-16 2xl:gap-32 p-6 lg:p-12 xl:p-16">
|
||||||
{/* Ticket stats */}
|
{/* Ticket stats */}
|
||||||
<div className="flex gap-6 xl:gap-12 text-center text-text-light">
|
<div className="flex flex-col xl:flex-row gap-6 xl:gap-12 text-center text-text-light">
|
||||||
<CountUpStat end={0} suffix="€" label={t("teaser.tickets.earlyVisitor")} />
|
<CountUpStat end={0} suffix="€" label={t("teaser.tickets.earlyVisitor")} />
|
||||||
<CountUpStat end={0} suffix="€" label={t("teaser.tickets.supporter")} />
|
<CountUpStat end={0} suffix="€" label={t("teaser.tickets.supporter")} />
|
||||||
</div>
|
</div>
|
||||||
@@ -95,7 +95,7 @@ export default function EndSection() {
|
|||||||
/>
|
/>
|
||||||
<div className="relative z-1 flex flex-col items-center justify-center h-full gap-8 xl:gap-16 2xl:gap-32 p-6 lg:p-12 xl:p-16">
|
<div className="relative z-1 flex flex-col items-center justify-center h-full gap-8 xl:gap-16 2xl:gap-32 p-6 lg:p-12 xl:p-16">
|
||||||
{/* Sponsor stats */}
|
{/* Sponsor stats */}
|
||||||
<div className="flex gap-6 xl:gap-12 text-center text-text-light">
|
<div className="flex flex-col xl:flex-row gap-6 xl:gap-12 text-center text-text-light">
|
||||||
<CountUpStat end={900} suffix="+" label={t("teaser.sponsors.visitors")} />
|
<CountUpStat end={900} suffix="+" label={t("teaser.sponsors.visitors")} />
|
||||||
<CountUpStat end={10000} suffix="+" label={t("teaser.sponsors.streamViewers")} format={formatK} />
|
<CountUpStat end={10000} suffix="+" label={t("teaser.sponsors.streamViewers")} format={formatK} />
|
||||||
</div>
|
</div>
|
||||||
@@ -104,7 +104,7 @@ export default function EndSection() {
|
|||||||
<h2 className="text-h1 text-text-light text-center text-shadow-teaser">
|
<h2 className="text-h1 text-text-light text-center text-shadow-teaser">
|
||||||
{t("teaser.sponsors.cta")}
|
{t("teaser.sponsors.cta")}
|
||||||
</h2>
|
</h2>
|
||||||
<a href="mailto:tipilan@ituk.ee" className="btn-primary-lg text-btn-lg hover:opacity-80">
|
<a href="mailto:tipilan@ituk.ee" className="btn-primary-lg text-btn-lg hover:opacity-80" style={{ backgroundColor: "#FFAB00", color: "#1a1a1a" }}>
|
||||||
{t("teaser.sponsors.contactButton")}
|
{t("teaser.sponsors.contactButton")}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ export default function HeroSection({ onScrollDown }: HeroSectionProps) {
|
|||||||
<a
|
<a
|
||||||
href="mailto:tipilan@ituk.ee"
|
href="mailto:tipilan@ituk.ee"
|
||||||
className="btn-primary-lg text-btn-lg hover:opacity-80 text-center"
|
className="btn-primary-lg text-btn-lg hover:opacity-80 text-center"
|
||||||
|
style={{ backgroundColor: "#FFAB00", color: "#1a1a1a" }}
|
||||||
>
|
>
|
||||||
{t("teaser.sponsors.contactButton")}
|
{t("teaser.sponsors.contactButton")}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
"visitors": "TipiLAN 2025\nvisitor count",
|
"visitors": "TipiLAN 2025\nvisitor count",
|
||||||
"streamViewers": "2025 livestream\nviewer count",
|
"streamViewers": "2025 livestream\nviewer count",
|
||||||
"cta": "Bring your booth to our expo area!",
|
"cta": "Bring your booth to our expo area!",
|
||||||
"contactButton": "Write to us"
|
"contactButton": "Partner with us"
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
"organization": "MTÜ FOR Tsükkel",
|
"organization": "MTÜ FOR Tsükkel",
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
"visitors": "TipiLAN 2025\nkülastajate arv",
|
"visitors": "TipiLAN 2025\nkülastajate arv",
|
||||||
"streamViewers": "2025 otseülekande\nvaatajate arv",
|
"streamViewers": "2025 otseülekande\nvaatajate arv",
|
||||||
"cta": "Tule oma boksiga meie messialale!",
|
"cta": "Tule oma boksiga meie messialale!",
|
||||||
"contactButton": "Kirjuta meile"
|
"contactButton": "Tule partneriks"
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
"organization": "MTÜ FOR Tsükkel",
|
"organization": "MTÜ FOR Tsükkel",
|
||||||
|
|||||||
Reference in New Issue
Block a user