Files
supabase/apps/www/components/Enterprise/Support.tsx
Francesco Sansalvadore e74ea22dff feat: enterprise page (#29555)
* init enterprise page

* security section

* cta form

* support and quote sections

* heading

* add company email validation in request demo form

* add performance section

* remove og atm

* enterprise og

* enterprise og

* enterprise og

* remove full stops on headings

* fix nav

* max w

* update values
2024-09-30 14:31:33 +00:00

61 lines
1.7 KiB
TypeScript

import React, { FC } from 'react'
import { cn } from 'ui'
import SectionContainer from '~/components/Layouts/SectionContainer'
import type { LucideIcon } from 'lucide-react'
interface Props {
id: string
label: string | JSX.Element
heading: string | JSX.Element
features: Feature[]
}
type Feature = {
icon: LucideIcon
heading: string
subheading: string
}
const Support: FC<Props> = (props) => {
return (
<SectionContainer id={props.id} className="flex flex-col gap-4 md:gap-8">
<div className="flex flex-col gap-2">
<span className="label">{props.label}</span>
<h2 className="h2">{props.heading}</h2>
</div>
<ul className="grid grid-cols-1 gap-4 gap-y-10 md:grid-cols-3 md:gap-12 xl:gap-20">
{props.features.map((feature) => (
<FeatureItem feature={feature} key={feature.heading} />
))}
</ul>
</SectionContainer>
)
}
interface FeatureItemProps {
feature: Feature
}
const FeatureItem: FC<FeatureItemProps> = ({ feature }) => {
const Icon: LucideIcon = feature.icon
const iconSize = 7
const iconWidth = `w-${iconSize}`
const iconHeight = `h-${iconSize}`
return (
<li className="flex flex-col gap-2 text-sm">
<Icon className={cn('stroke-1 mb-2 text-foreground-lighter', iconWidth, iconHeight)} />
<div className="w-full h-px overflow-hidden flex items-start bg-border-muted">
<span className={cn('h-full bg-foreground-lighter', iconWidth)} />
</div>
<h4 className="text-foreground text-lg lg:text-xl mt-1">{feature.heading}</h4>
<p className="text-foreground-lighter text-sm">{feature.subheading}</p>
{/* <TextLink hasChevron label="Read story" url={feature.url} className="mt-4" /> */}
</li>
)
}
export default Support