Compare commits

...

14 Commits

Author SHA1 Message Date
kudinDmitriyUp
dd32fdd16f feat: replace hero carousel with hero scroll 2026-05-07 18:55:49 +00:00
4d17db4411 Merge version_12_1778179386501 into main
Merge version_12_1778179386501 into main
2026-05-07 18:47:12 +00:00
kudinDmitriyUp
c478660d98 feat: Add 3D effect to buttons 2026-05-07 18:46:42 +00:00
14eaacf469 Merge version_11_1778179203177 into main
Merge version_11_1778179203177 into main
2026-05-07 18:42:05 +00:00
kudinDmitriyUp
f65d93dd8a feat: Make carousel images smaller 2026-05-07 18:41:31 +00:00
f8c2be7a03 Merge version_10_1778179084910 into main
Merge version_10_1778179084910 into main
2026-05-07 18:39:18 +00:00
kudinDmitriyUp
b6c3dba134 feat: increase base font weight for thicker text 2026-05-07 18:38:47 +00:00
d4db27a733 Merge version_9_1778175643211 into main
Merge version_9_1778175643211 into main
2026-05-07 17:42:47 +00:00
5f9bd0a9e2 Update src/pages/HomePage.tsx 2026-05-07 17:42:41 +00:00
3acb06b0cf Merge version_9_1778175643211 into main
Merge version_9_1778175643211 into main
2026-05-07 17:42:35 +00:00
kudinDmitriyUp
773deb645a feat: replace hero section with carousel 2026-05-07 17:42:12 +00:00
cfa3dcc918 Merge version_8_1778175521002 into main
Merge version_8_1778175521002 into main
2026-05-07 17:39:45 +00:00
kudinDmitriyUp
82c69bb865 feat: move badge above hero text 2026-05-07 17:39:21 +00:00
d1b534bab2 Merge version_7_1778169270409 into main
Merge version_7_1778169270409 into main
2026-05-07 15:59:09 +00:00
6 changed files with 83 additions and 101 deletions

View File

@@ -56,7 +56,7 @@ const HeroBillboardCarousel = ({
<div className="w-content-width mx-auto overflow-hidden mask-fade-x">
<div className="flex w-max animate-marquee-horizontal" style={{ animationDuration: "60s" }}>
{duplicated.map((item, i) => (
<div key={i} className="shrink-0 w-60 md:w-75 2xl:w-80 aspect-4/5 mr-3 md:mr-5 p-1.5 card rounded-lg overflow-hidden">
<div key={i} className="shrink-0 w-40 md:w-50 2xl:w-60 aspect-4/5 mr-3 md:mr-5 p-1.5 card rounded-lg overflow-hidden">
<ImageOrVideo
imageSrc={item.imageSrc}
videoSrc={item.videoSrc}

View File

@@ -1,79 +1,82 @@
import { useRef } from "react";
import { useScroll, useTransform, motion } from "motion/react";
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 { ArrowDown } from 'lucide-react';
type HeroBillboardScrollProps = {
tag: string;
title: string;
description: string;
primaryButton: { text: string; href: string };
secondaryButton: { text: string; href: string };
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
import { cn } from '@/lib/utils';
import { Button } from '@/components/ui/button';
const HeroBillboardScroll = ({
className,
tag,
title,
description,
primaryButton,
secondaryButton,
imageSrc,
videoSrc,
}: HeroBillboardScrollProps) => {
const containerRef = useRef<HTMLDivElement>(null);
const { scrollYProgress } = useScroll({ target: containerRef });
const rotate = useTransform(scrollYProgress, [0, 1], [20, 0]);
const scale = useTransform(scrollYProgress, [0, 1], [1.05, 1]);
}: {
className?: string;
tag?: string;
title?: string;
description?: string;
primaryButton?: {
text: string;
href: string;
};
secondaryButton?: {
text: string;
href: string;
};
imageSrc?: string;
}) => {
return (
<section aria-label="Hero section" className="relative mb-20">
<HeroBackgroundSlot />
<div
className={cn(
'relative flex h-svh w-full flex-col items-center justify-center overflow-hidden',
className,
)}
>
<div
ref={containerRef}
className="pt-25 pb-20 md:py-30 perspective-distant"
className="absolute inset-0 z-0"
style={{
backgroundImage: `url(${imageSrc})`,
backgroundPosition: 'bottom',
backgroundSize: 'cover',
}}
/>
<div className="absolute inset-0 z-10 bg-gradient-to-t from-black/80 to-transparent" />
<div
className="z-20 flex flex-col items-center justify-center gap-4 p-5 text-center text-white"
>
<div className="w-content-width mx-auto">
<div className="flex flex-col items-center gap-2 text-center">
<span className="px-3 py-1 mb-1 text-sm card rounded">{tag}</span>
<TextAnimation
text={title}
variant="fade"
gradientText={true}
tag="h1"
className="text-6xl font-medium text-balance"
/>
<TextAnimation
text={description}
variant="fade"
gradientText={false}
tag="p"
className="text-base md:text-lg leading-tight text-balance"
/>
<div className="flex flex-wrap justify-center gap-3 mt-3">
<Button text={primaryButton.text} href={primaryButton.href} variant="primary"/>
<Button text={secondaryButton.text} href={secondaryButton.href} variant="secondary"animationDelay={0.1} />
</div>
{tag && (
<div className="inline-block rounded-theme-full bg-white/10 px-3 py-1 text-sm">
{tag}
</div>
)}
{title && (
<h1 className="text-4xl font-bold md:text-6xl">
{title}
</h1>
)}
{description && (
<p className="max-w-prose text-lg text-white/80">{description}</p>
)}
<div className="mt-4 flex gap-2">
{primaryButton && (
<Button as="a" href={primaryButton.href}>
{primaryButton.text}
</Button>
)}
{secondaryButton && (
<Button as="a" href={secondaryButton.href} variant="secondary">
{secondaryButton.text}
</Button>
)}
</div>
<div className="w-content-width mx-auto mt-8 p-3 card rounded overflow-hidden rotate-x-20 md:hidden">
<ImageOrVideo imageSrc={imageSrc} videoSrc={videoSrc} className="aspect-4/5" />
</div>
<motion.div
style={{ rotateX: rotate, scale }}
className="w-content-width mx-auto mt-5 2xl:mt-2 p-3 xl:p-4 2xl:p-5 card rounded overflow-hidden hidden md:block"
>
<ImageOrVideo imageSrc={imageSrc} videoSrc={videoSrc} className="aspect-video" />
</motion.div>
</div>
</section>
<div
className="absolute bottom-5 z-20"
>
<ArrowDown className="animate-bounce text-white" />
</div>
</div>
);
};

View File

@@ -30,7 +30,13 @@ const HeroSplitMediaGrid = ({
<div className="flex flex-col md:flex-row items-center gap-10 md:gap-20 w-content-width mx-auto">
<div className="w-full md:w-1/2">
<div className="flex flex-col items-center md:items-start gap-3">
<span className="px-3 py-1 mb-1 text-sm card rounded">{tag}</span>
<div className="flex items-center gap-3 mb-3 p-3 card rounded-theme">
<div className="relative flex items-center justify-center w-4 h-4">
<div className="absolute w-full h-full bg-green-500 rounded-full animate-ping"></div>
<div className="w-2 h-2 bg-green-500 rounded-full"></div>
</div>
<span className="text-sm">2,345 people active now</span>
</div>
<TextAnimation
text={title}
@@ -52,13 +58,6 @@ const HeroSplitMediaGrid = ({
<Button text={primaryButton.text} href={primaryButton.href} variant="primary"/>
<Button text={secondaryButton.text} href={secondaryButton.href} variant="secondary"animationDelay={0.1} />
</div>
<div className="flex items-center gap-3 mt-5 p-3 card rounded-theme">
<div className="relative flex items-center justify-center w-4 h-4">
<div className="absolute w-full h-full bg-green-500 rounded-full animate-ping"></div>
<div className="w-2 h-2 bg-green-500 rounded-full"></div>
</div>
<span className="text-sm">2,345 people active now</span>
</div>
</div>
</div>

View File

@@ -1,6 +1,5 @@
"use client";
import { motion } from "motion/react";
import { useButtonClick } from "@/hooks/useButtonClick";
import { cls } from "@/lib/utils";
import { useStyle } from "@/components/ui/useStyle";
@@ -23,31 +22,18 @@ interface ButtonProps {
className?: string;
}
const DefaultButton = ({ text, variant = "primary", href = "#", onClick, animate = true, animationDelay = 0, className = "" }: ButtonProps) => {
const DefaultButton = ({ text, variant = "primary", href = "#", onClick, className = "" }: ButtonProps) => {
const handleClick = useButtonClick(href, onClick);
const button = (
return (
<a
href={href}
onClick={handleClick}
className={cls("flex items-center justify-center h-9 px-6 text-sm rounded cursor-pointer", variant === "primary" ? "primary-button text-primary-cta-text" : "secondary-button text-secondary-cta-text", className)}
className={cls("flex items-center justify-center h-9 px-6 text-sm rounded cursor-pointer transform transition-transform duration-200 hover:scale-105 active:scale-95", variant === "primary" ? "primary-button text-primary-cta-text shadow-[0_4px_0_0_rgba(0,0,0,0.2)] hover:shadow-[0_6px_0_0_rgba(0,0,0,0.2)] active:shadow-[0_2px_0_0_rgba(0,0,0,0.2)]" : "secondary-button text-secondary-cta-text shadow-[0_4px_0_0_rgba(0,0,0,0.2)] hover:shadow-[0_6px_0_0_rgba(0,0,0,0.2)] active:shadow-[0_2px_0_0_rgba(0,0,0,0.2)]", className)}
>
{text}
</a>
);
if (!animate) return button;
return (
<motion.div
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.6, delay: animationDelay, ease: "easeOut" }}
>
{button}
</motion.div>
);
};
const Button = (props: ButtonProps) => {

View File

@@ -138,6 +138,7 @@ body {
background-color: var(--background);
color: var(--foreground);
font-family: '${montserrat.variable} ${inter.variable}', sans-serif;
font-weight: 500;
position: relative;
min-height: 100vh;
overscroll-behavior: none;

View File

@@ -1,7 +1,7 @@
import ContactCta from '@/components/sections/contact/ContactCta';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import FeaturesMediaCarousel from '@/components/sections/features/FeaturesMediaCarousel';
import HeroSplitMediaGrid from '@/components/sections/hero/HeroSplitMediaGrid';
import HeroBillboardScroll from '@/components/sections/hero/HeroBillboardScroll';
import MetricsSimpleCards from '@/components/sections/metrics/MetricsSimpleCards';
import PricingMediaCards from '@/components/sections/pricing/PricingMediaCards';
import ProductVariantCards from '@/components/sections/product/ProductVariantCards';
@@ -12,7 +12,7 @@ export default function HomePage() {
return (
<>
<div id="home" data-section="home">
<HeroSplitMediaGrid
<HeroBillboardScroll
tag="Fintech SaaS"
title="Unlock the Future of Financial Management"
description="Finflow provides cutting-edge solutions for businesses to streamline operations, enhance security, and drive growth in the digital economy."
@@ -24,14 +24,7 @@ export default function HomePage() {
text: "Request a Demo",
href: "#contact",
}}
items={[
{
imageSrc: "https://storage.googleapis.com/webild/users/user_3AJoeL1kj3KAGCFdKZaVyRTrBRV/a-futuristic-dark-themed-financial-dashb-1778165802560-ef94d27a.png",
},
{
imageSrc: "https://storage.googleapis.com/webild/users/user_3AJoeL1kj3KAGCFdKZaVyRTrBRV/another-view-of-a-sleek-dark-fintech-das-1778165802942-0ef804ae.png",
},
]}
imageSrc="https://storage.googleapis.com/webild/users/user_3AJoeL1kj3KAGCFdKZaVyRTrBRV/a-futuristic-dark-themed-financial-dashb-1778165802560-ef94d27a.png"
/>
</div>
@@ -49,25 +42,25 @@ export default function HomePage() {
title: "Advanced Data Analytics",
description: "Gain deep insights with real-time analytics and predictive modeling for smarter decisions.",
buttonIcon: "LineChart",
imageSrc: "https://storage.googleapis.com/webild/users/user_3AJoeL1kj3KAGCFdKZaVyRTrBRV/an-abstract-representation-of-complex-fi-1778165803491-13ee1608.png",
imageSrc: "https://storage.googleapis.com/webild/users/user_3AJoeL1kj3KAGCFdKZaVyRTrBRV/an-abstract-representation-of-complex-fi-1778165803491-13ee1608.png?_wi=2",
},
{
title: "Enterprise-Grade Security",
description: "Protect your assets with our multi-layered security protocols and blockchain-backed encryption.",
buttonIcon: "Lock",
imageSrc: "https://storage.googleapis.com/webild/users/user_3AJoeL1kj3KAGCFdKZaVyRTrBRV/a-visual-metaphor-for-advanced-financial-1778165802292-f7d22bff.png",
imageSrc: "https://storage.googleapis.com/webild/users/user_3AJoeL1kj3KAGCFdKZaVyRTrBRV/a-visual-metaphor-for-advanced-financial-1778165802292-f7d22bff.png?_wi=2",
},
{
title: "Automated Workflows",
description: "Streamline operations, reduce manual errors, and free up your team for strategic initiatives.",
buttonIcon: "Zap",
imageSrc: "https://storage.googleapis.com/webild/users/user_3AJoeL1kj3KAGCFdKZaVyRTrBRV/an-illustration-of-financial-process-aut-1778165804096-d3ea01b2.png",
imageSrc: "https://storage.googleapis.com/webild/users/user_3AJoeL1kj3KAGCFdKZaVyRTrBRV/an-illustration-of-financial-process-aut-1778165804096-d3ea01b2.png?_wi=2",
},
{
title: "Global Regulatory Compliance",
description: "Stay compliant with ever-evolving financial regulations through automated monitoring and reporting.",
buttonIcon: "CheckCircle",
imageSrc: "https://storage.googleapis.com/webild/users/user_3AJoeL1kj3KAGCFdKZaVyRTrBRV/a-visual-concept-for-regulatory-complian-1778165802615-1e994baa.png",
imageSrc: "https://storage.googleapis.com/webild/users/user_3AJoeL1kj3KAGCFdKZaVyRTrBRV/a-visual-concept-for-regulatory-complian-1778165802615-1e994baa.png?_wi=2",
},
]}
/>