From f7baa343bd7279a1a0156fbbbc552f9bb5d5a541 Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Mon, 22 Jun 2026 20:38:43 +0000 Subject: [PATCH] Bob AI: Fix primary CTA contrast to match glassmorphism theme --- src/index.css | 4 +- src/pages/HomePage/sections/Hero.tsx | 113 +++------------------------ 2 files changed, 13 insertions(+), 104 deletions(-) diff --git a/src/index.css b/src/index.css index 2580bf1..de0648d 100644 --- a/src/index.css +++ b/src/index.css @@ -8,8 +8,8 @@ --background: #0a0a0a; --card: rgba(255, 255, 255, 0.05); --foreground: #ffffffe6; - --primary-cta: #e6e6e6; - --primary-cta-text: #0a0a0a; + --primary-cta: rgba(255, 255, 255, 0.1); + --primary-cta-text: #ffffff; --secondary-cta: rgba(255, 255, 255, 0.05); --secondary-cta-text: #ffffffe6; --accent: #737373; diff --git a/src/pages/HomePage/sections/Hero.tsx b/src/pages/HomePage/sections/Hero.tsx index a6390e6..b046a23 100644 --- a/src/pages/HomePage/sections/Hero.tsx +++ b/src/pages/HomePage/sections/Hero.tsx @@ -1,109 +1,18 @@ -/* 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 ScrollReveal from "@/components/ui/ScrollReveal"; -import { motion, useScroll, useTransform } from "motion/react"; -import { useRef } from "react"; +// Created by add_section_from_catalog (HeroBrand). -const primaryButton = { - text: "Start Your Project", - href: "#contact" -}; -const secondaryButton = { - text: "Learn More", - href: "#about" -}; +import React from 'react'; +import HeroBrand from '@/components/sections/hero/HeroBrand'; -type HeroSplitProps = { - tag: string; - title: string; - description: string; - primaryButton: { text: string; href: string }; - secondaryButton: { text: string; href: string }; -} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); - -const HeroInline = () => { - const containerRef = useRef(null); - const { scrollYProgress } = useScroll({ - target: containerRef, - offset: ["start start", "end start"] - }); - - const y1 = useTransform(scrollYProgress, [0, 1], [0, 300]); - const rotate1 = useTransform(scrollYProgress, [0, 1], [0, 90]); - const scale1 = useTransform(scrollYProgress, [0, 1], [1, 1.5]); - - const y2 = useTransform(scrollYProgress, [0, 1], [0, -200]); - const rotate2 = useTransform(scrollYProgress, [0, 1], [0, -120]); - const scale2 = useTransform(scrollYProgress, [0, 1], [1, 0.8]); - - const y3 = useTransform(scrollYProgress, [0, 1], [0, 400]); - const rotate3 = useTransform(scrollYProgress, [0, 1], [0, 180]); - const scale3 = useTransform(scrollYProgress, [0, 1], [1, 1.2]); - - return ( -
- - - {/* Glassmorphic 3D-like Objects */} - - - - -
-
-
-
-

{"Innovation Hub"}

-
- - - - - -
-
-
-
- - - - -
-
- ); -}; - -export default function HeroSection() { +export default function HeroSection(): React.JSX.Element { return (
- +
); } -- 2.49.1