Skip to content

Commit

Permalink
feat: add roadmap section
Browse files Browse the repository at this point in the history
  • Loading branch information
ladunjexa committed May 16, 2024
1 parent c02da2c commit 7104621
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import Footer from "@/components/layout/footer";
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 Pricing from "@/components/sections/pricing";
import Roadmap from "@/components/sections/roadmap";
import Services from "@/components/sections/services";
import ButtonGradient from "@/components/svg/button-gradient";
import { cn } from "@/lib/utils";
Expand All @@ -17,6 +19,7 @@ export default function Home() {
<Collaboration />
<Services />
<Pricing />
<Roadmap />
</div>
<ButtonGradient />
</main>
Expand Down
86 changes: 86 additions & 0 deletions components/sections/roadmap/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import Button from "@/components/atoms/button";
import Heading from "@/components/atoms/heading";
import TagLine from "@/components/atoms/tag-line";
import { Gradient } from "@/components/design/roadmap";
import Section from "@/components/layout/section";
import { images, roadmap } from "@/constants";
import { cn } from "@/lib/utils";
import Image from "next/image";
import React from "react";

type Props = {};

const Roadmap = (props: Props) => {
return (
<Section id="roadmap" className="overflow-hidden">
<div className="container md:pb-10">
<Heading tag="Ready to get started" title="What we're working on" />

<div className="relative grid gap-6 md:grid-cols-2 md:gap-4 md:pb-28">
{roadmap.map((item) => {
const status = item.status === "done" ? "Done" : "In progress";

return (
<div
key={item.id}
className={cn(
"md:flex even:md:translate-y-[7rem] p-0.25 rounded-[2.5rem]",
item.colorful ? "bg-conic-gradient" : "bg-n-6"
)}
>
<div className="relative overflow-hidden rounded-[2.4375rem] bg-n-8 p-8 xl:p-15">
<div className="absolute left-0 top-0 max-w-full">
<Image
src={images.grid}
alt="grid"
width={550}
height={550}
className="w-full"
/>
</div>
<div className="relative z-1">
<div className="mb-8 flex max-w-[27rem] items-center justify-between md:mb-20">
<TagLine>{item.date}</TagLine>

<div className="flex items-center rounded bg-n-1 px-4 py-1 text-n-8">
<Image
src={item.status === "done" ? images.done : images.loading1}
width={16}
height={16}
alt={status}
className="mr-2.5"
/>
<div className="tagline">{status}</div>
</div>
</div>

<div className="-mx-15 -my-10 mb-10">
<Image
src={item.imageUrl}
className="w-full"
width={630}
height={420}
alt={item.title}
/>
</div>

<h4 className="h4 mb-4">{item.title}</h4>
<p className="body-2 text-n-4">{item.text}</p>
</div>
</div>
</div>
);
})}

<Gradient />
</div>

<div className="mt-12 flex justify-center md:mt-15 xl:mt-20">
<Button href="#roadmap">Our roadmap</Button>
</div>
</div>
</Section>
);
};

export default Roadmap;
8 changes: 6 additions & 2 deletions components/sections/services/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ 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 {
PhotoChatMessage,
VideoBar,
VideoChatMessage,
Gradient,
} from "@/components/design/services";
import { cn } from "@/lib/utils";
import { Gradient } from "@/components/design/hero";

type Props = {};

Expand Down

0 comments on commit 7104621

Please sign in to comment.