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
2 changed files with 12 additions and 9 deletions

View File

@@ -48,17 +48,20 @@ const HeroSplitMediaGrid = ({
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">
<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

@@ -46,7 +46,7 @@ const NavbarFloating = ({ logo, navItems, ctaButton }: NavbarFloatingProps) => {
</AnimatePresence>
<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">
<a href="/" className="text-xl font-medium text-foreground">{logo}</a>
@@ -76,7 +76,7 @@ const NavbarFloating = ({ logo, navItems, ctaButton }: NavbarFloatingProps) => {
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="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) => (
<div key={item.name}>
<a