From e415bf4a0d488c5f252e91841076a7688d3d0095 Mon Sep 17 00:00:00 2001 From: ladunjexa <110838700+ladunjexa@users.noreply.github.com> Date: Thu, 16 May 2024 14:42:35 +0300 Subject: [PATCH] feat: add services section --- app/page.tsx | 2 + .../{sections/hero => atoms}/generating.tsx | 0 .../{sections/benefits => atoms}/heading.tsx | 4 +- components/design/hero.tsx | 2 + components/design/services.tsx | 10 +- components/sections/benefits/index.tsx | 2 +- components/sections/hero/index.tsx | 2 +- components/sections/services/index.tsx | 127 ++++++++++++++++++ 8 files changed, 141 insertions(+), 8 deletions(-) rename components/{sections/hero => atoms}/generating.tsx (100%) rename components/{sections/benefits => atoms}/heading.tsx (68%) create mode 100644 components/sections/services/index.tsx diff --git a/app/page.tsx b/app/page.tsx index 76c090d..6b5c8d0 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -2,6 +2,7 @@ import Navbar from "@/components/layout/navbar"; import Benefits from "@/components/sections/benefits"; import Collaboration from "@/components/sections/collaboration"; import Hero from "@/components/sections/hero"; +import Services from "@/components/sections/services"; import ButtonGradient from "@/components/svg/button-gradient"; import { cn } from "@/lib/utils"; @@ -13,6 +14,7 @@ export default function Home() { + diff --git a/components/sections/hero/generating.tsx b/components/atoms/generating.tsx similarity index 100% rename from components/sections/hero/generating.tsx rename to components/atoms/generating.tsx diff --git a/components/sections/benefits/heading.tsx b/components/atoms/heading.tsx similarity index 68% rename from components/sections/benefits/heading.tsx rename to components/atoms/heading.tsx index 4e8e0bc..2663d47 100644 --- a/components/sections/benefits/heading.tsx +++ b/components/atoms/heading.tsx @@ -4,12 +4,14 @@ import React from "react"; type Props = { className?: string; title: string; + text: string; }; -const Heading = ({ className, title }: Props) => { +const Heading = ({ className, title, text }: Props) => { return (
{title &&

{title}

} + {text &&

{text}

}
); }; diff --git a/components/design/hero.tsx b/components/design/hero.tsx index 5fa3fc6..6e7006a 100644 --- a/components/design/hero.tsx +++ b/components/design/hero.tsx @@ -1,3 +1,5 @@ +"use client"; + import { useEffect, useState } from "react"; import { MouseParallax } from "react-just-parallax"; diff --git a/components/design/services.tsx b/components/design/services.tsx index cf5ebce..42f9e47 100644 --- a/components/design/services.tsx +++ b/components/design/services.tsx @@ -1,12 +1,12 @@ -import { brainwaveWhiteSymbol, gradient, play } from "@/public/assets/index"; import ChatBubbleWing from "@/components/svg/chat-bubble-wing"; +import { images } from "@/constants"; export const Gradient = () => { return (
Gradient { ); }; -export const PhotChatMessage = () => { +export const PhotoChatMessage = () => { return (
Hey Brainwave, enhance this photo @@ -29,7 +29,7 @@ export const VideoChatMessage = () => {
Video generated!
- Brainwave + Brainwave

just now @@ -45,7 +45,7 @@ export const VideoChatMessage = () => { export const VideoBar = () => { return (

- Play + Play
diff --git a/components/sections/benefits/index.tsx b/components/sections/benefits/index.tsx index 3f5350c..7d1acd6 100644 --- a/components/sections/benefits/index.tsx +++ b/components/sections/benefits/index.tsx @@ -1,6 +1,6 @@ import React from "react"; import Section from "@/components/layout/section"; -import Heading from "./heading"; +import Heading from "../../atoms/heading"; import { benefits } from "@/constants"; import Image from "next/image"; import Arrow from "@/components/svg/arrow"; diff --git a/components/sections/hero/index.tsx b/components/sections/hero/index.tsx index 81b83a8..8684b0f 100644 --- a/components/sections/hero/index.tsx +++ b/components/sections/hero/index.tsx @@ -8,7 +8,7 @@ import { images, heroIcons } from "@/constants"; import Button from "../../atoms/button"; import { BackgroundCircles, BottomLine, Gradient } from "../../design/hero"; import { ScrollParallax } from "react-just-parallax"; -import Generating from "./generating"; +import Generating from "../../atoms/generating"; import Notification from "./notification"; import CompanyLogos from "./company-logos"; diff --git a/components/sections/services/index.tsx b/components/sections/services/index.tsx new file mode 100644 index 0000000..21ac3d3 --- /dev/null +++ b/components/sections/services/index.tsx @@ -0,0 +1,127 @@ +import React from "react"; +import Section from "@/components/layout/section"; +import Heading from "../../atoms/heading"; +import { brainwaveServices, brainwaveServicesIcons, images } from "@/constants"; +import Image from "next/image"; +import Generating from "../../atoms/generating"; +import { PhotoChatMessage, VideoBar, VideoChatMessage } from "@/components/design/services"; +import { cn } from "@/lib/utils"; +import { Gradient } from "@/components/design/hero"; + +type Props = {}; + +const Services = (props: Props) => { + return ( +
+
+ + +
+
+
+ smartest ai +
+ +
+

Smartest AI

+

+ Brainwave unlocks the potential of AI-powered applications +

+
    + {brainwaveServices.map((service, index) => ( +
  • + check +

    {service}

    +
  • + ))} +
+
+ +
+ +
+
+
+ robot +
+
+

Photo editing

+

+ Automatically enhance your photos using our AI app's photo editing feature. + Try it now! +

+
+ + +
+ +
+
+

Video generation

+

+ The world’s most powerful AI photo and video art generation engine. What will you + create? +

+ +
    + {brainwaveServicesIcons.map((item, index) => ( +
  • +
    + icon +
    +
  • + ))} +
+
+ +
+ scary robot + + + +
+
+
+ + +
+
+
+ ); +}; + +export default Services;