From 093546d0177fa4c07b63c0a7492e637ec7dc3cd1 Mon Sep 17 00:00:00 2001 From: sasha-astiadi Date: Thu, 16 Oct 2025 17:39:56 +0200 Subject: [PATCH] refactor: move BackgroundIllustration to separate component and add new gradient styles --- src/app/(main)/about/page.tsx | 2 + src/components/AboutSolutions.tsx | 71 +++++++++++++++++++++++ src/components/BackgroundIllustration.tsx | 70 ++++++++++++++++++++++ src/components/Hero.tsx | 70 +--------------------- src/styles/tailwind.css | 3 + 5 files changed, 147 insertions(+), 69 deletions(-) create mode 100644 src/components/AboutSolutions.tsx create mode 100644 src/components/BackgroundIllustration.tsx diff --git a/src/app/(main)/about/page.tsx b/src/app/(main)/about/page.tsx index 03ead54..5cf9c5e 100644 --- a/src/app/(main)/about/page.tsx +++ b/src/app/(main)/about/page.tsx @@ -1,10 +1,12 @@ import { AboutHero } from "@/components/AboutHero" +import { AboutSolutions } from "@/components/AboutSolutions" export default function About() { return (
+
) } diff --git a/src/components/AboutSolutions.tsx b/src/components/AboutSolutions.tsx new file mode 100644 index 0000000..f2a83f8 --- /dev/null +++ b/src/components/AboutSolutions.tsx @@ -0,0 +1,71 @@ +"use client"; + +export function AboutSolutions() { + return ( +
+ {/* Square grid background */} +
+ ); +} diff --git a/src/components/BackgroundIllustration.tsx b/src/components/BackgroundIllustration.tsx new file mode 100644 index 0000000..54ebc44 --- /dev/null +++ b/src/components/BackgroundIllustration.tsx @@ -0,0 +1,70 @@ +import { useId } from 'react' + +export function BackgroundIllustration(props: React.ComponentPropsWithoutRef<'div'>) { + let id = useId() + + return ( +
+ + +
+ ) +} diff --git a/src/components/Hero.tsx b/src/components/Hero.tsx index 7a5f5b6..972b830 100644 --- a/src/components/Hero.tsx +++ b/src/components/Hero.tsx @@ -6,6 +6,7 @@ import { AppDemo } from '@/components/AppDemo' import { AppStoreLink } from '@/components/AppStoreLink' import HeroHome from './HeroHome' import { Button } from '@/components/Button' +import { BackgroundIllustration } from '@/components/BackgroundIllustration' import { Container } from '@/components/Container' import { PhoneFrame } from '@/components/PhoneFrame' import logoBbc from '@/images/logos/bbc.svg' @@ -17,75 +18,6 @@ import logoHuffpost from '@/images/logos/huffpost.svg' import logoTechcrunch from '@/images/logos/techcrunch.svg' import logoWired from '@/images/logos/wired.svg' -function BackgroundIllustration(props: React.ComponentPropsWithoutRef<'div'>) { - let id = useId() - - return ( -
- - -
- ) -} - function PlayIcon(props: React.ComponentPropsWithoutRef<'svg'>) { return (