The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
more interactive storage card
Francesco Sansalvadoref68d750dd77e
diff --git a/apps/www/components/Products/StorageVisual.tsx b/apps/www/components/Products/StorageVisual.tsxindex c7857bd04bc..5a6c1285cbc 100644--- a/apps/www/components/Products/StorageVisual.tsx+++ b/apps/www/components/Products/StorageVisual.tsx@@ -1,49 +1,29 @@-import Image from 'next/image'import React from 'react'+import { range } from 'lodash'+import { IconFile, IconImage, IconVideo } from 'ui'const StorageVisual = () => {+ const cols = [+ <IconImage className="w-6 h-6 md:w-4 md:h-4" />,+ <IconFile className="w-6 h-6 md:w-4 md:h-4" />,+ <IconVideo className="w-6 h-6 md:w-4 md:h-4" />,+ ]+return (- <div className="absolute inset-0 overflow-hidden flex nowrap">- <div className="relative h-full left-0 w-auto items-center z-0 flex pause animate-marquee group-hover:run will-change-transform transition-transform">- <div className="relative h-full aspect-[1/1.44]">- <Image- src="/images/index/products/storage.svg"- alt="Supabase Storage"- layout="fill"- objectFit="cover"- className="antialiased"- />- </div>- <div className="relative h-full aspect-[1/1.44]">- <Image- src="/images/index/products/storage.svg"- alt="Supabase Storage"- layout="fill"- objectFit="cover"- className="antialiased"- />- </div>- </div>- <div className="relative h-full left-0 w-auto items-center z-0 flex pause animate-marquee group-hover:run will-change-transform transition-transform">- <div className="relative h-full aspect-[1/1.44]">- <Image- src="/images/index/products/storage.svg"- alt="Supabase Storage"- layout="fill"- objectFit="cover"- className="antialiased"- />- </div>- <div className="relative h-full aspect-[1/1.44]">- <Image- src="/images/index/products/storage.svg"- alt="Supabase Storage"- layout="fill"- objectFit="cover"- className="antialiased"- />+ <div className="absolute inset-0 overflow-hidden flex gap-2 nowrap">+ {range(0, 2).map((_rangeCol) => (+ <div className="relative h-full left-0 w-auto items-end pb-3 z-10 flex gap-2 md:gap-2 pause animate-marquee group-hover:run will-change-transform transition-transform">+ {range(0, 10).map((_rangeCol) => (+ <div className="flex flex-col gap-2 md:gap-2">+ {cols.map((col: any) => (+ <div className=" w-[70px] h-[70px] md:min-w-14 md:w-14 md:h-14 flex items-center justify-center rounded-lg border bg-alternative hover:border-brand">+ {col}+ </div>+ ))}+ </div>+ ))}</div>- </div>+ ))}</div>)}diff --git a/apps/www/components/Products/index.tsx b/apps/www/components/Products/index.tsxindex b5c30f1012b..ada06ac7c20 100644--- a/apps/www/components/Products/index.tsx+++ b/apps/www/components/Products/index.tsx@@ -142,7 +142,12 @@ const Products = (props: any) => {url={props.products['storage'].url}icon={props.products['storage'].icon}title={props.products['storage'].name}- subtitle={<>Store, organize, and serve large files, from videos to images.</>}+ subtitle={+ <>+ Store, organize, and serve large files,+ <br className="inline-block xl:hidden 2xl:inline-block" /> from videos to images.+ </>+ }image={<StorageVisual />}className="col-span-6 xl:col-span-3"onClick={() => sendTelemetryEvent(PRODUCT_SHORTNAMES.STORAGE)}@@ -154,7 +159,7 @@ const Products = (props: any) => {subtitle={<>Build multiplayer experiences- <br className="inline-block sm:hidden lg:inline-block" /> with realtime data+ <br className="inline-block md:hidden 2xl:inline-block" /> with realtime datasynchronization.</>}@@ -167,7 +172,12 @@ const Products = (props: any) => {url={props.products['vector'].url}icon={props.products['vector'].icon}title={props.products['vector'].name}- subtitle={props.products['vector'].description}+ subtitle={+ <>+ Integrate your favorite ML-models to store,+ <br className="inline-block md:hidden" /> index and search vector embeddings.+ </>+ }highlights={<ul className="flex flex-col gap-1 text-sm"><li className="flex items-center gap-2">