Merge version_4_1782101246563 into main #3
@@ -14,10 +14,12 @@ import PricingSection from './HomePage/sections/Pricing';
|
||||
import FaqSection from './HomePage/sections/Faq';
|
||||
import ContactSection from './HomePage/sections/Contact';
|
||||
|
||||
export default function HomePage(): React.JSX.Element {
|
||||
|
||||
import HeroCinematicSection from './HomePage/sections/HeroCinematic';export default function HomePage(): React.JSX.Element {
|
||||
return (
|
||||
<>
|
||||
<HeroSection />
|
||||
<HeroCinematicSection />
|
||||
|
||||
<AboutSection />
|
||||
|
||||
|
||||
@@ -1,28 +1,62 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "hero" section.
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body
|
||||
import Button from "@/components/ui/Button";
|
||||
import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot";
|
||||
import TextAnimation from "@/components/ui/TextAnimation";
|
||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||
import AutoFillText from "@/components/ui/AutoFillText";
|
||||
import ScrollReveal from "@/components/ui/ScrollReveal";
|
||||
|
||||
import React from 'react';
|
||||
import HeroBillboardBrand from '@/components/sections/hero/HeroBillboardBrand';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
const primaryButton = {
|
||||
text: "Explore Live",
|
||||
href: "#explore"
|
||||
};
|
||||
const secondaryButton = {
|
||||
text: "Ask GARDAS AI",
|
||||
href: "#ai"
|
||||
};
|
||||
|
||||
export default function HeroSection(): React.JSX.Element {
|
||||
type HeroBillboardBrandProps = {
|
||||
brand: string;
|
||||
description: string;
|
||||
primaryButton: { text: string; href: string };
|
||||
secondaryButton: { text: string; href: string };
|
||||
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
|
||||
|
||||
const HeroInline = () => {
|
||||
return (
|
||||
<div id="hero" data-section="hero">
|
||||
<SectionErrorBoundary name="hero">
|
||||
<HeroBillboardBrand
|
||||
brand="GARDAS North Cyprus"
|
||||
description="Discover the hidden pulse of North Cyprus. Our platform brings together local secrets, trending events, and AI-powered recommendations in a real-time, immersive digital experience."
|
||||
primaryButton={{
|
||||
text: "Explore Live",
|
||||
href: "#explore",
|
||||
}}
|
||||
secondaryButton={{
|
||||
text: "Ask GARDAS AI",
|
||||
href: "#ai",
|
||||
}}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/wireframe-terrain_1048-11813.jpg"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
<section aria-label="Hero section" className="relative pt-25 pb-20 md:pt-30">
|
||||
<HeroBackgroundSlot />
|
||||
<div className="flex flex-col gap-10 md:gap-12 w-content-width mx-auto">
|
||||
<div className="flex flex-col items-end gap-5">
|
||||
<AutoFillText className="w-full font-semibold" paddingY="">{"GARDAS North Cyprus"}</AutoFillText>
|
||||
|
||||
<TextAnimation
|
||||
text={"Discover the hidden pulse of North Cyprus. Our platform brings together local secrets, trending events, and AI-powered recommendations in a real-time, immersive digital experience."}
|
||||
variant="slide-up"
|
||||
gradientText={false}
|
||||
tag="p"
|
||||
className="w-full md:w-1/2 text-lg md:text-2xl leading-snug text-balance text-right"
|
||||
/>
|
||||
|
||||
<div className="flex flex-wrap justify-end gap-3 mt-1 md:mt-2">
|
||||
<Button text={primaryButton.text} href={primaryButton.href} variant="primary"/>
|
||||
<Button text={secondaryButton.text} href={secondaryButton.href} variant="secondary"animationDelay={0.1} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ScrollReveal variant="slide-up" delay={0.2} className="w-full p-2 xl:p-3 2xl:p-4 card rounded overflow-hidden">
|
||||
<ImageOrVideo imageSrc={"http://img.b2bpic.net/free-photo/wireframe-terrain_1048-11813.jpg"} className="aspect-4/5 md:aspect-video" />
|
||||
</ScrollReveal>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default function HeroSection() {
|
||||
return (
|
||||
<div data-webild-section="hero" id="hero">
|
||||
<HeroInline />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
138
src/pages/HomePage/sections/HeroCinematic.tsx
Normal file
138
src/pages/HomePage/sections/HeroCinematic.tsx
Normal file
@@ -0,0 +1,138 @@
|
||||
import { useState, useEffect } from "react";
|
||||
import { motion, AnimatePresence } from "motion/react";
|
||||
import Button from "@/components/ui/Button";
|
||||
|
||||
export default function HeroCinematicSection() {
|
||||
const [scene, setScene] = useState(1);
|
||||
|
||||
useEffect(() => {
|
||||
// Scene 1 -> 2: Logo splits after 2.5 seconds
|
||||
const timer1 = setTimeout(() => setScene(2), 2500);
|
||||
// Scene 2 -> 3: Expressions fade out, Get Access Now appears after 8 seconds
|
||||
const timer2 = setTimeout(() => setScene(3), 8000);
|
||||
|
||||
return () => {
|
||||
clearTimeout(timer1);
|
||||
clearTimeout(timer2);
|
||||
};
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div data-webild-section="hero-cinematic" id="hero-cinematic" className="relative w-full h-screen min-h-[600px] bg-background flex items-center justify-center overflow-hidden">
|
||||
<AnimatePresence>
|
||||
{scene < 3 && (
|
||||
<motion.div
|
||||
key="logo-container"
|
||||
exit={{ opacity: 0, scale: 1.1, filter: "blur(20px)" }}
|
||||
transition={{ duration: 1.5, ease: "easeInOut" }}
|
||||
className="absolute inset-0 flex flex-col items-center justify-center"
|
||||
>
|
||||
<div className="relative flex items-center justify-center w-full h-full">
|
||||
<motion.div
|
||||
initial={{ x: 0, opacity: 0, scale: 0.9, filter: "blur(10px)" }}
|
||||
animate={{
|
||||
x: scene === 2 ? "-20vw" : 0,
|
||||
opacity: scene === 2 ? 0.03 : 1,
|
||||
scale: scene === 2 ? 1.2 : 1,
|
||||
filter: "blur(0px)"
|
||||
}}
|
||||
transition={{ duration: scene === 1 ? 1.5 : 2, ease: [0.25, 1, 0.5, 1] }}
|
||||
className="absolute text-7xl md:text-9xl lg:text-[12rem] font-bold text-primary-cta tracking-tighter leading-none"
|
||||
style={{ clipPath: "polygon(0 0, 50% 0, 50% 100%, 0 100%)" }}
|
||||
>
|
||||
GARDAŞ
|
||||
</motion.div>
|
||||
|
||||
<motion.div
|
||||
initial={{ x: 0, opacity: 0, scale: 0.9, filter: "blur(10px)" }}
|
||||
animate={{
|
||||
x: scene === 2 ? "20vw" : 0,
|
||||
opacity: scene === 2 ? 0.03 : 1,
|
||||
scale: scene === 2 ? 1.2 : 1,
|
||||
filter: "blur(0px)"
|
||||
}}
|
||||
transition={{ duration: scene === 1 ? 1.5 : 2, ease: [0.25, 1, 0.5, 1] }}
|
||||
className="absolute text-7xl md:text-9xl lg:text-[12rem] font-bold text-primary-cta tracking-tighter leading-none"
|
||||
style={{ clipPath: "polygon(50% 0, 100% 0, 100% 100%, 50% 100%)" }}
|
||||
>
|
||||
GARDAŞ
|
||||
</motion.div>
|
||||
|
||||
<AnimatePresence>
|
||||
{scene === 2 && (
|
||||
<motion.div
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
exit={{ opacity: 0 }}
|
||||
transition={{ duration: 1 }}
|
||||
className="absolute flex flex-col items-center justify-center gap-6 md:gap-10 z-10"
|
||||
>
|
||||
<motion.span
|
||||
initial={{ opacity: 0, y: 30, filter: "blur(10px)" }}
|
||||
animate={{ opacity: 1, y: 0, filter: "blur(0px)" }}
|
||||
transition={{ delay: 0.5, duration: 1.2, ease: "easeOut" }}
|
||||
className="text-5xl md:text-7xl lg:text-8xl font-medium text-foreground tracking-tight"
|
||||
>
|
||||
Napan?
|
||||
</motion.span>
|
||||
<motion.span
|
||||
initial={{ opacity: 0, y: 30, filter: "blur(10px)" }}
|
||||
animate={{ opacity: 1, y: 0, filter: "blur(0px)" }}
|
||||
transition={{ delay: 1.8, duration: 1.2, ease: "easeOut" }}
|
||||
className="text-5xl md:text-7xl lg:text-8xl font-medium text-accent tracking-tight"
|
||||
>
|
||||
Sağol
|
||||
</motion.span>
|
||||
<motion.span
|
||||
initial={{ opacity: 0, y: 30, filter: "blur(10px)" }}
|
||||
animate={{ opacity: 1, y: 0, filter: "blur(0px)" }}
|
||||
transition={{ delay: 3.1, duration: 1.2, ease: "easeOut" }}
|
||||
className="text-5xl md:text-7xl lg:text-8xl font-medium text-foreground tracking-tight"
|
||||
>
|
||||
İyisin?
|
||||
</motion.span>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
|
||||
<AnimatePresence>
|
||||
{scene === 3 && (
|
||||
<motion.div
|
||||
key="scene3"
|
||||
initial={{ opacity: 0, scale: 0.95, filter: "blur(20px)" }}
|
||||
animate={{ opacity: 1, scale: 1, filter: "blur(0px)" }}
|
||||
transition={{ duration: 1.5, delay: 0.5, ease: "easeOut" }}
|
||||
className="absolute flex flex-col items-center justify-center gap-8 text-center px-6 w-content-width mx-auto z-20"
|
||||
>
|
||||
<motion.div
|
||||
initial={{ y: -20, opacity: 0 }}
|
||||
animate={{ y: 0, opacity: 1 }}
|
||||
transition={{ duration: 1, delay: 1.5 }}
|
||||
className="text-3xl md:text-4xl font-bold text-primary-cta tracking-tighter mb-2"
|
||||
>
|
||||
GARDAŞ
|
||||
</motion.div>
|
||||
<h2 className="text-5xl md:text-7xl lg:text-8xl font-bold text-foreground max-w-5xl text-balance leading-tight tracking-tight">
|
||||
Get access now
|
||||
</h2>
|
||||
<p className="text-xl md:text-3xl text-accent max-w-3xl mt-4">
|
||||
Join the community and discover the hidden pulse of the island.
|
||||
</p>
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 1, delay: 2.2 }}
|
||||
className="flex flex-wrap justify-center gap-4 mt-8"
|
||||
>
|
||||
<Button text="Download App" href="#download" variant="primary" className="text-xl px-10 py-5" />
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user