From 76d1de45b325a407a30a819bc10198f900d6ac27 Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Sat, 18 Apr 2026 11:52:29 +0000 Subject: [PATCH] Bob AI: Replace the current hero section with the 'Hero Billboard Sc --- src/App.tsx | 4 +- .../sections/hero/HeroBillboardScroll.tsx | 78 +++++++++++++++++++ src/index.css | 4 + src/styles/animations.css | 9 +++ 4 files changed, 93 insertions(+), 2 deletions(-) create mode 100644 src/components/sections/hero/HeroBillboardScroll.tsx diff --git a/src/App.tsx b/src/App.tsx index be8bff4..6ffd665 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,7 +3,7 @@ import ContactCta from '@/components/sections/contact/ContactCta'; import FaqSimple from '@/components/sections/faq/FaqSimple'; import FeaturesComparison from '@/components/sections/features/FeaturesComparison'; import FooterSimpleMedia from '@/components/sections/footer/FooterSimpleMedia'; -import HeroBillboardGallery from '@/components/sections/hero/HeroBillboardGallery'; +import HeroBillboardScroll from '@/components/sections/hero/HeroBillboardScroll'; import MetricsFeatureCards from '@/components/sections/metrics/MetricsFeatureCards'; import NavbarCentered from '@/components/ui/NavbarCentered'; import PricingMediaCards from '@/components/sections/pricing/PricingMediaCards'; @@ -42,7 +42,7 @@ export default function App() {
- { + const scrollItems = [...items, ...items]; + + return ( +
+
+
+ {tag} + + + + + +
+
+
+ +
+
+ {scrollItems.map((item, index) => ( +
+
+ +
+
+ ))} +
+
+
+
+ ); +}; + +export default HeroBillboardScroll; \ No newline at end of file diff --git a/src/index.css b/src/index.css index c9d6791..452093a 100644 --- a/src/index.css +++ b/src/index.css @@ -179,3 +179,7 @@ h6 { 2.10837px 3.16256px 9.48767px color-mix(in srgb, var(--color-accent) 10%, transparent); border: 1px solid var(--color-secondary-cta); } + +.hero-billboard-scroll .hero-billboard-scroll-track { + animation: scroll-x 60s linear infinite; +} diff --git a/src/styles/animations.css b/src/styles/animations.css index c10b577..8a5a8fa 100644 --- a/src/styles/animations.css +++ b/src/styles/animations.css @@ -95,6 +95,15 @@ } } +@keyframes scroll-x { + from { + transform: translateX(0); + } + to { + transform: translateX(-50%); + } +} + @keyframes orbit { from { transform: rotate(var(--initial-position, 0deg)) translateX(var(--translate-position, 120px)) -- 2.49.1