Compare commits

..

1 Commits

Author SHA1 Message Date
kudinDmitriyUp
d5b2bff7f2 feat: add active now card to hero section 2026-05-07 15:01:14 +00:00
14 changed files with 40 additions and 74 deletions

View File

@@ -1,24 +1,12 @@
import { Routes, Route } from 'react-router-dom'; import { Routes, Route } from 'react-router-dom';
import Layout from './components/Layout'; import Layout from './components/Layout';
import HomePage from './pages/HomePage'; import HomePage from './pages/HomePage';
import FeaturesPage from './pages/Features';
import SolutionsPage from './pages/Solutions';
import PricingPage from './pages/Pricing';
import ClientsPage from './pages/Clients';
import FaqPage from './pages/Faq';
import MetricsPage from './pages/Metrics';
export default function App() { export default function App() {
return ( return (
<Routes> <Routes>
<Route element={<Layout />}> <Route element={<Layout />}>
<Route path="/" element={<HomePage />} /> <Route path="/" element={<HomePage />} />
<Route path="/features" element={<FeaturesPage />} />
<Route path="/solutions" element={<SolutionsPage />} />
<Route path="/pricing" element={<PricingPage />} />
<Route path="/clients" element={<ClientsPage />} />
<Route path="/faq" element={<FaqPage />} />
<Route path="/metrics" element={<MetricsPage />} />
</Route> </Route>
</Routes> </Routes>
); );

View File

@@ -8,31 +8,31 @@ export default function Layout() {
const navItems = [ const navItems = [
{ {
"name": "Home", "name": "Home",
"href": "/" "href": "#home"
}, },
{ {
"name": "Features", "name": "Features",
"href": "/features" "href": "#features"
}, },
{ {
"name": "Solutions", "name": "Solutions",
"href": "/solutions" "href": "#solutions"
}, },
{ {
"name": "Pricing", "name": "Pricing",
"href": "/pricing" "href": "#pricing"
}, },
{ {
"name": "Clients", "name": "Clients",
"href": "/clients" "href": "#clients"
}, },
{ {
"name": "FAQ", "name": "FAQ",
"href": "/faq" "href": "#faq"
}, },
{ {
"name": "Metrics", "name": "Metrics",
"href": "/metrics" "href": "#metrics"
} }
]; ];

View File

@@ -56,7 +56,7 @@ const HeroBillboardCarousel = ({
<div className="w-content-width mx-auto overflow-hidden mask-fade-x"> <div className="w-content-width mx-auto overflow-hidden mask-fade-x">
<div className="flex w-max animate-marquee-horizontal" style={{ animationDuration: "60s" }}> <div className="flex w-max animate-marquee-horizontal" style={{ animationDuration: "60s" }}>
{duplicated.map((item, i) => ( {duplicated.map((item, i) => (
<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"> <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">
<ImageOrVideo <ImageOrVideo
imageSrc={item.imageSrc} imageSrc={item.imageSrc}
videoSrc={item.videoSrc} videoSrc={item.videoSrc}

View File

@@ -30,13 +30,7 @@ const HeroSplitMediaGrid = ({
<div className="flex flex-col md:flex-row items-center gap-10 md:gap-20 w-content-width mx-auto"> <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="w-full md:w-1/2">
<div className="flex flex-col items-center md:items-start gap-3"> <div className="flex flex-col items-center md:items-start gap-3">
<div className="flex items-center gap-3 mb-3 p-3 card rounded-theme"> <span className="px-3 py-1 mb-1 text-sm card rounded">{tag}</span>
<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 <TextAnimation
text={title} text={title}
@@ -54,6 +48,16 @@ const HeroSplitMediaGrid = ({
className="max-w-8/10 text-lg md:text-xl leading-tight text-center md:text-left" className="max-w-8/10 text-lg md:text-xl leading-tight text-center md:text-left"
/> />
<div className="mt-4 flex items-center gap-3 rounded-theme border border-white/10 bg-white/5 p-3 backdrop-blur-sm">
<div className="relative flex h-3 w-3">
<div className="absolute inline-flex h-full w-full animate-ping rounded-full bg-green-400 opacity-75"></div>
<div className="relative inline-flex h-3 w-3 rounded-full bg-green-500"></div>
</div>
<p className="text-sm text-white/80">
<span className="font-semibold text-white">1,337</span> active users right now
</p>
</div>
<div className="flex flex-wrap max-md:justify-center gap-3 mt-3"> <div className="flex flex-wrap max-md:justify-center gap-3 mt-3">
<Button text={primaryButton.text} href={primaryButton.href} variant="primary"/> <Button text={primaryButton.text} href={primaryButton.href} variant="primary"/>
<Button text={secondaryButton.text} href={secondaryButton.href} variant="secondary"animationDelay={0.1} /> <Button text={secondaryButton.text} href={secondaryButton.href} variant="secondary"animationDelay={0.1} />

View File

@@ -3,7 +3,6 @@ import { motion, AnimatePresence } from "motion/react";
import { Plus, ArrowUpRight } from "lucide-react"; import { Plus, ArrowUpRight } from "lucide-react";
import { cls } from "@/lib/utils"; import { cls } from "@/lib/utils";
import Button from "@/components/ui/Button"; import Button from "@/components/ui/Button";
import { Link } from "react-router-dom";
interface NavbarFloatingProps { interface NavbarFloatingProps {
logo: string; logo: string;
@@ -11,6 +10,15 @@ interface NavbarFloatingProps {
ctaButton: { text: string; href: string }; ctaButton: { text: string; href: string };
} }
const handleNavClick = (e: React.MouseEvent<HTMLAnchorElement>, href: string, onClose?: () => void) => {
if (href.startsWith("#")) {
e.preventDefault();
const element = document.getElementById(href.slice(1));
element?.scrollIntoView({ behavior: "smooth", block: "start" });
}
onClose?.();
};
const NavbarFloating = ({ logo, navItems, ctaButton }: NavbarFloatingProps) => { const NavbarFloating = ({ logo, navItems, ctaButton }: NavbarFloatingProps) => {
const [menuOpen, setMenuOpen] = useState(false); const [menuOpen, setMenuOpen] = useState(false);
@@ -38,7 +46,7 @@ const NavbarFloating = ({ logo, navItems, ctaButton }: NavbarFloatingProps) => {
</AnimatePresence> </AnimatePresence>
<nav className="fixed z-1000 top-5 left-1/2 -translate-x-1/2 w-content-width"> <nav className="fixed z-1000 top-5 left-1/2 -translate-x-1/2 w-content-width">
<div className="mx-auto w-full md:w-1/2 overflow-hidden rounded-theme-capped bg-white/10 backdrop-blur-lg border border-white/20 shadow-lg"> <div className="mx-auto w-full md:w-1/2 overflow-hidden rounded backdrop-blur-sm card">
<div className="relative z-10 flex items-center justify-between gap-3 xl:gap-4 2xl:gap-5 p-3 xl:p-4 2xl:p-5"> <div className="relative z-10 flex items-center justify-between gap-3 xl:gap-4 2xl:gap-5 p-3 xl:p-4 2xl:p-5">
<a href="/" className="text-xl font-medium text-foreground">{logo}</a> <a href="/" className="text-xl font-medium text-foreground">{logo}</a>
@@ -68,12 +76,12 @@ const NavbarFloating = ({ logo, navItems, ctaButton }: NavbarFloatingProps) => {
className="overflow-hidden" className="overflow-hidden"
> >
<div className="flex flex-col gap-3 xl:gap-4 2xl:gap-5 p-3 xl:p-4 2xl:p-5 pt-0 xl:pt-0 2xl:pt-0"> <div className="flex flex-col gap-3 xl:gap-4 2xl:gap-5 p-3 xl:p-4 2xl:p-5 pt-0 xl:pt-0 2xl:pt-0">
<div className="px-3 xl:px-4 2xl:px-5 py-0 md:py-1 2xl:py-2 rounded-theme-capped bg-white/10"> <div className="px-3 xl:px-4 2xl:px-5 py-0 md:py-1 2xl:py-2 rounded card">
{navItems.map((item, index) => ( {navItems.map((item, index) => (
<div key={item.name}> <div key={item.name}>
<Link <a
to={item.href} href={item.href}
onClick={() => setMenuOpen(false)} onClick={(e) => handleNavClick(e, item.href, () => setMenuOpen(false))}
className="group flex items-center justify-between py-3 w-full" className="group flex items-center justify-between py-3 w-full"
> >
<span className="text-xl md:text-2xl font-medium text-foreground group-hover:ml-3 transition-[margin] duration-300"> <span className="text-xl md:text-2xl font-medium text-foreground group-hover:ml-3 transition-[margin] duration-300">
@@ -83,7 +91,7 @@ const NavbarFloating = ({ logo, navItems, ctaButton }: NavbarFloatingProps) => {
className="h-(--text-xl) md:h-(--text-2xl) w-auto text-foreground group-hover:rotate-45 group-hover:mr-3 transition-all duration-300" className="h-(--text-xl) md:h-(--text-2xl) w-auto text-foreground group-hover:rotate-45 group-hover:mr-3 transition-all duration-300"
strokeWidth={2} strokeWidth={2}
/> />
</Link> </a>
{index < navItems.length - 1 && ( {index < navItems.length - 1 && (
<div className="h-px bg-accent/50" /> <div className="h-px bg-accent/50" />
)} )}

View File

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

View File

@@ -1,3 +0,0 @@
export default function ClientsPage() {
return <h1>Clients Page</h1>;
}

View File

@@ -1,3 +0,0 @@
export default function FaqPage() {
return <h1>FAQ Page</h1>;
}

View File

@@ -1,3 +0,0 @@
export default function FeaturesPage() {
return <h1>Features Page</h1>;
}

View File

@@ -1,3 +0,0 @@
export default function HomePage() {
return <h1>Home Page</h1>;
}

View File

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

View File

@@ -1,3 +0,0 @@
export default function MetricsPage() {
return <h1>Metrics Page</h1>;
}

View File

@@ -1,3 +0,0 @@
export default function PricingPage() {
return <h1>Pricing Page</h1>;
}

View File

@@ -1,3 +0,0 @@
export default function SolutionsPage() {
return <h1>Solutions Page</h1>;
}