mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
This PR migrates the whole monorepo to use Tailwind v4: - Removed `@tailwindcss/container-queries` plugin since it's included by default in v4, - Bump all instances of Tailwind to v4. Made minimal changes to the shared config to remove non-supported features (`alpha` mentions), - Migrate all apps to be compatible with v4 configs, - Fix the `typography.css` import in 3 apps, - Add missing rules which were included by default in v3, - Run `pnpm dlx @tailwindcss/upgrade` on all apps, which renames a lot of classes - Rename all misnamed classes according to https://tailwindcss.com/docs/upgrade-guide#renamed-utilities in all apps. --------- Co-authored-by: Jordi Enric <jordi.err@gmail.com>
51 lines
1.5 KiB
TypeScript
51 lines
1.5 KiB
TypeScript
import SectionContainer from '~/components/Layouts/SectionContainer'
|
|
import UsersGrowthChart from '~/components/UsersGrowthChart'
|
|
import React, { type FC, type ReactNode } from 'react'
|
|
|
|
export interface ResultsSectionProps {
|
|
id: string
|
|
heading: ReactNode
|
|
subheading: ReactNode
|
|
highlights: Highlight[]
|
|
}
|
|
|
|
type Highlight = {
|
|
heading: string
|
|
subheading: string
|
|
}
|
|
|
|
const ResultsSection: FC<ResultsSectionProps> = (props) => {
|
|
return (
|
|
<SectionContainer id={props.id} className="relative">
|
|
<div className="relative z-10 flex flex-col gap-4 md:gap-8 pb-20">
|
|
<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>
|
|
</div>
|
|
<div className="flex flex-wrap gap-4 md:gap-12">
|
|
{props.highlights.map((highlight) => (
|
|
<HighlightItem key={highlight.heading} highlight={highlight} />
|
|
))}
|
|
</div>
|
|
</div>
|
|
<UsersGrowthChart />
|
|
</SectionContainer>
|
|
)
|
|
}
|
|
|
|
interface HighlightItemProps {
|
|
highlight: Highlight
|
|
}
|
|
|
|
const HighlightItem: FC<HighlightItemProps> = ({ highlight }) => {
|
|
return (
|
|
<li className="flex flex-col gap-2 text-sm">
|
|
<span className="label">{highlight.heading}</span>
|
|
<p className="text-foreground text-xl md:text-3xl">{highlight.subheading}</p>
|
|
</li>
|
|
)
|
|
}
|
|
|
|
export default ResultsSection
|