The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
import { range } from 'lib/helpers'
import { File, Image, Video } from 'lucide-react'
import { cn } from 'ui'
interface Props {
className?: string
}
const StorageVisual: React.FC<Props> = ({ className }) => {
const cols = [
<Image className="w-6 h-6 md:w-6 md:h-6" />,
<File className="w-6 h-6 md:w-6 md:h-6" />,
<Video className="w-6 h-6 md:w-6 md:h-6" />,
]
return (
<figure
className={cn('absolute inset-0 overflow-hidden flex nowrap', className)}
role="img"
aria-label="Supabase Storage supports images, documents and videos"
>
{range(0, 2).map((_, idx1: number) => (
<div
key={`row-${idx1}`}
className="relative h-full left-0 w-auto items-end pb-4 z-10 flex pause animate-marquee motion-safe:group-hover:run will-change-transform transition-transform"
>
{range(0, 10).map((_, idx2: number) => (
<div key={`col-${idx2}`} className="flex flex-col ml-2 gap-2 md:gap-2">
{cols.map((col: any, idx3: number) => (
<div
key={`icon-${idx3}`}
className="w-[60px] h-[60px] md:min-w-[62px] md:w-[62px] md:h-[62px] flex items-center justify-center rounded-lg border bg hover:border-foreground-lighter text-muted hover:text-foreground-light hover:bg-surface-200"
>
{col}
</div>
))}
</div>
))}
</div>
))}
</figure>
)
}
export default StorageVisual