-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
137 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { cn } from "@/lib/utils"; | ||
import React from "react"; | ||
import brackets from "../svg/brackets"; | ||
|
||
type Props = { | ||
className?: string; | ||
children: React.ReactNode; | ||
}; | ||
|
||
const TagLine = ({ className, children }: Props) => { | ||
return ( | ||
<div className={cn("tagline flex items-center", className)}> | ||
{brackets("left")} | ||
<div className="mx-3 text-n-3">{children}</div> | ||
{brackets("right")} | ||
</div> | ||
); | ||
}; | ||
|
||
export default TagLine; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import Heading from "@/components/atoms/heading"; | ||
import Section from "@/components/layout/section"; | ||
import { images } from "@/constants"; | ||
import Image from "next/image"; | ||
import React from "react"; | ||
import PricingList from "./pricing-list"; | ||
import { LeftLine, RightLine } from "@/components/design/pricing"; | ||
import Link from "next/link"; | ||
|
||
type Props = {}; | ||
|
||
const Pricing = (props: Props) => { | ||
return ( | ||
<Section id="pricing" className="overflow-hidden"> | ||
<div className="container relative z-2"> | ||
<div className="relative mb-[6.5rem] hidden justify-center lg:flex"> | ||
<Image | ||
src={images.smallSphere} | ||
className="relative z-1" | ||
width={255} | ||
height={255} | ||
alt="small sphere" | ||
/> | ||
|
||
<div className="pointer-events-none absolute left-1/2 top-1/2 w-[60rem] -translate-x-1/2 -translate-y-1/2"> | ||
<Image src={images.stars} className="w-full" width={950} height={400} alt="stars" /> | ||
</div> | ||
</div> | ||
|
||
<Heading tag="Get started with Brainwave" title="Pay once, use forever" /> | ||
|
||
<div className="relative"> | ||
<PricingList /> | ||
<LeftLine /> | ||
<RightLine /> | ||
</div> | ||
|
||
<div className="mt-10 flex justify-center"> | ||
<Link | ||
className="border-b font-code text-xs font-bold uppercase tracking-wider" | ||
href="#pricing" | ||
> | ||
See the full details | ||
</Link> | ||
</div> | ||
</div> | ||
</Section> | ||
); | ||
}; | ||
|
||
export default Pricing; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import Button from "@/components/atoms/button"; | ||
import { images, pricing } from "@/constants"; | ||
import React from "react"; | ||
import Image from "next/image"; | ||
|
||
type Props = {}; | ||
|
||
const PricingList = (props: Props) => { | ||
return ( | ||
<div className="flex gap-4 max-lg:flex-wrap"> | ||
{pricing.map((item) => ( | ||
<div | ||
key={item.id} | ||
className="h-full w-[19rem] rounded-[2rem] border border-n-6 bg-n-8 px-6 odd:my-4 odd:py-8 even:py-14 max-lg:w-full lg:w-auto [&>h4]:first:text-color-2 [&>h4]:last:text-color-3 [&>h4]:even:text-color-1" | ||
> | ||
<h4 className="h4 mb-4">{item.title}</h4> | ||
<p className="body-2 mb-3 min-h-16 text-n-1/50">{item.description}</p> | ||
|
||
<div className="mb-6 flex h-[5.5rem] items-center"> | ||
{item.price && ( | ||
<> | ||
<span className="h3">$</span> | ||
<span className="text-[5.5rem] font-bold leading-none">{item.price}</span> | ||
</> | ||
)} | ||
</div> | ||
|
||
<Button | ||
className="mb-6 w-full" | ||
href={item.price ? "/pricing" : "mailto:contact@brainwave.ai"} | ||
white={!!item.price} | ||
> | ||
{item.price ? "Get started" : "Contact us"} | ||
</Button> | ||
|
||
<ul> | ||
{item.features.map((feature, index) => ( | ||
<li key={index} className="flex items-start border-t border-n-6 py-5"> | ||
<Image src={images.check} width={24} height={24} alt="check" /> | ||
<p className="body-2 ml-4">{feature}</p> | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
))} | ||
</div> | ||
); | ||
}; | ||
|
||
export default PricingList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters