mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00: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>
55 lines
1.4 KiB
TypeScript
55 lines
1.4 KiB
TypeScript
'use client'
|
|
|
|
import React from 'react'
|
|
import { range } from 'lib/helpers'
|
|
import { cn } from 'ui'
|
|
|
|
import { CompositionCol } from '.'
|
|
import type { CompositionColType } from '.'
|
|
|
|
interface Props {
|
|
className?: string
|
|
columns: CompositionColType[]
|
|
}
|
|
|
|
const compositionGap = 'gap-4'
|
|
|
|
const CutomsersSliderDesktop: React.FC<Props> = ({ columns, className }) => (
|
|
<div
|
|
className={cn(
|
|
'group/tw-marquee w-full items-stretch h-[300px] min-w-[300px] nowrap mb-16 md:mb-24 lg:mb-24',
|
|
compositionGap,
|
|
className
|
|
)}
|
|
>
|
|
{range(0, 2).map((_, idx1: number) => (
|
|
<div
|
|
key={`row-${idx1}`}
|
|
className={cn(
|
|
'relative',
|
|
'left-0 z-10',
|
|
'w-auto h-full',
|
|
'flex gap-4 items-end',
|
|
'motion-safe:run motion-safe:animate-[marquee_50000ms_linear_both_infinite] group-hover/tw-marquee:pause',
|
|
'will-change-transform transition-transform',
|
|
compositionGap
|
|
)}
|
|
>
|
|
{columns.map((column, idx2) => (
|
|
<CompositionCol
|
|
key={`customers-col-${idx1}-${idx2}`}
|
|
className={cn(
|
|
'flex flex-col h-full!',
|
|
compositionGap,
|
|
column.type === 'expanded' ? 'w-[450px]' : 'w-[250px]'
|
|
)}
|
|
column={column}
|
|
/>
|
|
))}
|
|
</div>
|
|
))}
|
|
</div>
|
|
)
|
|
|
|
export default CutomsersSliderDesktop
|