Files
supabase/apps/www/components/Enterprise/Security.tsx
Francesco Sansalvadore c62c2752a8 solutions pages (#36628)
* solutions: supabse for beginner

* solutions: supabse for beginner

* solutions: supabse for beginner

* solutions: supabse for beginner

* solutions: supabase for developers

* solutions: supabase for postgres developers

* solutions: supabase for no-coders

* solutions: no code builders

* solutions: sticky nav

* solutions pages

* fix metadata

* add ai prompts to no code page

* prerify

* Solutions dropdown nav

* update footer

* update mobile menu

* fix visual

* chore: add startups solution page

* chore: startups page

* chore: metadata

* chore: update solutions labels

* chore: remove old export

* fix footer links
2025-06-30 11:24:40 +02:00

69 lines
1.9 KiB
TypeScript

import React, { FC } from 'react'
import { TextLink } from 'ui'
import SectionContainer from '~/components/Layouts/SectionContainer'
import type { LucideIcon } from 'lucide-react'
export interface SecuritySectionProps {
id: string
label: string | JSX.Element
heading: string | JSX.Element
subheading: string | JSX.Element
features: FeatureProps[]
cta: {
label: string
url: string
}
}
export type Story = {
url: string
heading: string
subheading: string | JSX.Element
}
type FeatureProps = {
icon: LucideIcon
heading: string
}
const EnterpriseSecurity: FC<SecuritySectionProps> = (props) => {
return (
<SectionContainer
id={props.id}
className="flex flex-col xl:flex-row justify-between gap-4 md:gap-8"
>
<div className="flex flex-col gap-2 max-w-xl">
<span className="label">{props.label}</span>
<h2 className="h2 !m-0">{props.heading}</h2>
<p className="p !text-foreground-lighter">{props.subheading}</p>
<TextLink hasChevron label={props.cta.label} url={props.cta.url} className="mt-2" />
</div>
<ul className="grid grid-cols-2 sm:grid-cols-2 gap-4 md:gap-x-20 h-fit xl:grid-cols-2 mt-4 xl:mt-8">
{props.features.map((feature) => (
<FeatureItem feature={feature} key={feature.heading} />
))}
</ul>
</SectionContainer>
)
}
interface FeatureItemProps {
feature: FeatureProps
}
const FeatureItem: FC<FeatureItemProps> = ({ feature }) => {
const Icon: LucideIcon = feature.icon
return (
<li className="flex flex-nowrap items-center h-fit gap-2 sm:gap-4 text-foreground-light text-xs sm:text-sm">
<figure className="border not-prose bg-surface-100 flex h-8 w-8 items-center justify-center rounded-md">
<Icon className="w-4 h-4 stroke-1" />
</figure>
<p>{feature.heading}</p>
</li>
)
}
export default EnterpriseSecurity