mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55:05 +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>
61 lines
2.0 KiB
TypeScript
61 lines
2.0 KiB
TypeScript
import React from 'react'
|
|
import Image from 'next/image'
|
|
import { range } from 'lib/helpers'
|
|
import { cn } from 'ui'
|
|
|
|
interface Props {
|
|
className?: string
|
|
}
|
|
|
|
const DataAPIsVisual: React.FC<Props> = ({ className }) => (
|
|
<figure className={cn('absolute inset-0 overflow-hidden', className)}>
|
|
<div className="absolute z-0 inset-0 flex flex-nowrap">
|
|
{range(0, 3).map((_, idx1: number) => (
|
|
<div
|
|
key={`row-${idx1}`}
|
|
className="relative h-full aspect-330/430! -right-10 -left-10 items-end pb-2 z-10 flex pause animate-[marquee-reverse_30000ms_linear_both_infinite] motion-safe:group-hover:run will-change-transform"
|
|
>
|
|
<Image
|
|
draggable={false}
|
|
src="/images/index/products/data-apis-lines-dark.svg"
|
|
alt="Supabase restful DataAPIs"
|
|
width={330}
|
|
height={430}
|
|
quality={100}
|
|
className="hidden dark:block h-full! object-contain aspect-330/430!"
|
|
/>
|
|
<Image
|
|
draggable={false}
|
|
src="/images/index/products/data-apis-lines-light.svg"
|
|
alt="Supabase restful DataAPIs"
|
|
width={330}
|
|
height={430}
|
|
quality={100}
|
|
className="dark:block h-full! aspect-330/430! not-sr-only"
|
|
/>
|
|
</div>
|
|
))}
|
|
<Image
|
|
draggable={false}
|
|
src="/images/index/products/data-apis-dark.svg"
|
|
alt="Supabase restful DataAPIs"
|
|
fill
|
|
sizes="100%"
|
|
quality={100}
|
|
className="hidden dark:block absolute h-full! aspect-330/430 inset-0 z-10 object-contain -mt-1.5 object-center bottom-0"
|
|
/>
|
|
<Image
|
|
draggable={false}
|
|
src="/images/index/products/data-apis-light.svg"
|
|
alt="Supabase restful DataAPIs"
|
|
fill
|
|
sizes="100%"
|
|
quality={100}
|
|
className="dark:hidden absolute h-full aspect-330/430 inset-0 z-10 object-contain -mt-1.5 object-center bottom-0"
|
|
/>
|
|
</div>
|
|
</figure>
|
|
)
|
|
|
|
export default DataAPIsVisual
|