|
| 1 | +import Title from 'apps/web/src/components/base-org/typography/Title'; |
| 2 | +import { TitleLevel } from 'apps/web/src/components/base-org/typography/Title/types'; |
| 3 | +import Image, { type StaticImageData } from 'next/image'; |
| 4 | +import integration from 'apps/web/src/components/Developers/WhyBase/integration.svg'; |
| 5 | +import support from 'apps/web/src/components/Developers/WhyBase/support.svg'; |
| 6 | +import megaphone from 'apps/web/src/components/Developers/WhyBase/megaphone.svg'; |
| 7 | +import security from 'apps/web/src/components/Developers/WhyBase/security.svg'; |
| 8 | + |
| 9 | +type ValuePropProps = { |
| 10 | + title: string; |
| 11 | + description: string; |
| 12 | + icon: StaticImageData; |
| 13 | +}; |
| 14 | + |
| 15 | +export function WhyBase() { |
| 16 | + return ( |
| 17 | + <section className="h-full w-full py-20"> |
| 18 | + <div className="flex flex-col gap-9"> |
| 19 | + <div className="flex flex-col gap-1 pr-4"> |
| 20 | + <Title level={TitleLevel.Title1} as="h2"> |
| 21 | + Built by Base with the Coinbase connection. |
| 22 | + </Title> |
| 23 | + <Title level={TitleLevel.Title1} as="h2" className="text-dark-palette-foregroundMuted"> |
| 24 | + Grow faster with distribution through Base's social graph and integrations with |
| 25 | + Coinbase products. |
| 26 | + </Title> |
| 27 | + </div> |
| 28 | + |
| 29 | + <div className="flex flex-col gap-3"> |
| 30 | + <ValueProp |
| 31 | + title="Distribution & Growth" |
| 32 | + description="Reach millions of unique users" |
| 33 | + icon={megaphone as StaticImageData} |
| 34 | + /> |
| 35 | + <ValueProp |
| 36 | + title="Trust & Security" |
| 37 | + description="The most trusted brand in crypto" |
| 38 | + icon={security as StaticImageData} |
| 39 | + /> |
| 40 | + <ValueProp |
| 41 | + title="Integrations" |
| 42 | + description="Seamless integration with Coinbase products and ecosystem" |
| 43 | + icon={integration as StaticImageData} |
| 44 | + /> |
| 45 | + <ValueProp |
| 46 | + title="Enterprise Support" |
| 47 | + description="Developer documentation" |
| 48 | + icon={support as StaticImageData} |
| 49 | + /> |
| 50 | + </div> |
| 51 | + </div> |
| 52 | + </section> |
| 53 | + ); |
| 54 | +} |
| 55 | + |
| 56 | +function ValueProp({ title, description, icon }: ValuePropProps) { |
| 57 | + return ( |
| 58 | + <div className="rounded-xl bg-dark-palette-backgroundAlternate px-6 py-4"> |
| 59 | + <div className="flex items-center gap-64"> |
| 60 | + <div className="flex min-w-[280px] items-center"> |
| 61 | + <Image src={icon} alt={title} width={32} height={32} className="h-5 w-5" /> |
| 62 | + <Title level={TitleLevel.Title3} className="ml-14"> |
| 63 | + {title} |
| 64 | + </Title> |
| 65 | + </div> |
| 66 | + <Title level={TitleLevel.Title4} className="text-dark-palette-foreground"> |
| 67 | + {description} |
| 68 | + </Title> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + ); |
| 72 | +} |
0 commit comments