The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
realtime card animation
Francesco Sansalvadore3ee0f08ba094
diff --git a/apps/www/components/Products/ProductCard.tsx b/apps/www/components/Products/ProductCard.tsxindex daef1b20bcb..d5aa3c8c3e0 100644--- a/apps/www/components/Products/ProductCard.tsx+++ b/apps/www/components/Products/ProductCard.tsx@@ -26,7 +26,7 @@ const ProductCard = ({<Link href={url}><aclassName={[- 'relative w-full aspect-square sm:aspect-auto sm:h-[400px] flex flex-col gap-5 lg:flex-row',+ 'group relative w-full aspect-square sm:aspect-auto sm:h-[400px] flex flex-col gap-5 lg:flex-row',className,].join(' ')}onClick={onClick}@@ -34,9 +34,8 @@ const ProductCard = ({<Panel// hasShimmerhasActiveOnHover- outerClassName="relative w-full h-full group shadow-lg p-0"- innerClassName="relative overflow-hidden flex-1 flex flex-col items-center gap-5 lg:items-start justify-between- w-full rounded-xl h-full bg"+ outerClassName="relative w-full h-full shadow-lg p-0"+ innerClassName="relative overflow-hidden flex-1 flex flex-col items-center gap-5 lg:items-start justify-between w-full rounded-xl h-full bg"><divclassName={[diff --git a/apps/www/components/Products/RealtimeVisual.tsx b/apps/www/components/Products/RealtimeVisual.tsxnew file mode 100644index 00000000000..b0f18d195fa--- /dev/null+++ b/apps/www/components/Products/RealtimeVisual.tsx@@ -0,0 +1,28 @@+import Image from 'next/image'+import React from 'react'++const RealtimeVisual = () => {+ return (+ <div className="absolute inset-0 z-0 overflow-hidden">+ <img+ src="/images/index/products/realtime-user-cursor.svg"+ className="absolute w-6 h-6 z-10 left-14 bottom-[100px] transition translate-x-8 translate-y-2 group-hover:translate-x-0 group-hover:translate-y-0 !duration-300"+ />+ <img+ src="/images/index/products/realtime-user-cursor.svg"+ className="absolute w-6 h-6 z-10 right-[40%] bottom-3 transition translate-x-80 group-hover:translate-x-0 !duration-700"+ />+ <Image+ src="/images/index/products/realtime.svg"+ alt="Supabase Realtime"+ layout="fill"+ objectPosition="50% 50%"+ objectFit="cover"+ className="antialiased"+ quality={100}+ />+ </div>+ )+}++export default RealtimeVisualdiff --git a/apps/www/components/Products/index.tsx b/apps/www/components/Products/index.tsxindex ad7162fde93..dae1bfbafa4 100644--- a/apps/www/components/Products/index.tsx+++ b/apps/www/components/Products/index.tsx@@ -9,6 +9,7 @@ import { PRODUCT_SHORTNAMES } from 'shared-data/products'import SectionContainer from '~/components/Layouts/SectionContainer'import ProductCard from './ProductCard'+import RealtimeVisual from './RealtimeVisual'const Products = (props: any) => {const router = useRouter()@@ -215,20 +216,8 @@ const Products = (props: any) => {</>}onClick={() => sendTelemetryEvent(PRODUCT_SHORTNAMES.REALTIME)}- image={- <div className="absolute inset-0 z-0">- <Image- src="/images/index/products/realtime.svg"- alt="Supabase Realtime"- layout="fill"- objectPosition="50% 50%"- objectFit="cover"- className="antialiased"- quality={100}- />- </div>- }- className="col-span-6 xl:col-span-3"+ image={<RealtimeVisual />}+ className="col-span-6 xl:col-span-3 hover:!cursor-[url('/images/index/products/realtime-cursor.svg'),_auto]"/><ProductCardalignLeftdiff --git a/apps/www/public/images/index/products/realtime-cursor.svg b/apps/www/public/images/index/products/realtime-cursor.svgnew file mode 100644index 00000000000..e7c0a53c71c--- /dev/null+++ b/apps/www/public/images/index/products/realtime-cursor.svg@@ -0,0 +1,17 @@+<svg width="38" height="38" viewBox="0 0 38 38" fill="none" xmlns="http://www.w3.org/2000/svg">+<g filter="url(#filter0_d_410_1851)">+<path d="M16.0052 29.2546L8.53538 9.62803C8.35311 9.15192 8.79719 8.67924 9.26115 8.84708L28.8769 15.9476C29.3773 16.1291 29.3972 16.8518 28.9067 17.0608L20.8404 20.4929C20.7012 20.5511 20.5885 20.6676 20.5288 20.8114L17.0723 29.2683C16.8702 29.7615 16.1941 29.7513 16.0052 29.2546Z" fill="#3FCF8E"/>+</g>+<defs>+<filter id="filter0_d_410_1851" x="0.4935" y="0.8125" width="36.7701" height="36.8203" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feOffset/>+<feGaussianBlur stdDeviation="4"/>+<feComposite in2="hardAlpha" operator="out"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_410_1851"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_410_1851" result="shape"/>+</filter>+</defs>+</svg>diff --git a/apps/www/public/images/index/products/realtime-user-cursor.svg b/apps/www/public/images/index/products/realtime-user-cursor.svgnew file mode 100644index 00000000000..113f87515ce--- /dev/null+++ b/apps/www/public/images/index/products/realtime-user-cursor.svg@@ -0,0 +1,3 @@+<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M7.86954 20.9851L0.39973 1.3585C0.217458 0.882392 0.661538 0.409711 1.1255 0.577547L20.7412 7.67805C21.2416 7.85959 21.2615 8.58232 20.771 8.79125L12.7047 12.2233C12.5655 12.2816 12.4528 12.398 12.3932 12.5419L8.93666 20.9988C8.7345 21.492 8.05844 21.4817 7.86954 20.9851Z" fill="#15593B"/>+</svg>diff --git a/apps/www/public/images/index/products/realtime.svg b/apps/www/public/images/index/products/realtime.svgindex 498d836f441..68879049986 100644--- a/apps/www/public/images/index/products/realtime.svg+++ b/apps/www/public/images/index/products/realtime.svg@@ -37,10 +37,6 @@<rect x="150.286" y="308.466" width="43.0015" height="43.0012" rx="21.5006" fill="#3FCF8E"/><path d="M168.917 327.799H166.035V335.236H164.246V327.799H161.364V326.114H168.917V327.799ZM180.344 335.236H178.594V328.842L175.97 335.236H174.49L171.865 328.893V335.236H170.167V326.114H172.508L175.249 332.702L177.925 326.114H180.344V335.236Z" fill="#1C1C1C"/></g>-<path d="M74.8695 296.985L67.3997 277.358C67.2175 276.882 67.6615 276.41 68.1255 276.578L87.7412 283.678C88.2416 283.86 88.2615 284.582 87.771 284.791L79.7047 288.223C79.5655 288.282 79.4528 288.398 79.3932 288.542L75.9367 296.999C75.7345 297.492 75.0584 297.482 74.8695 296.985Z" fill="#15593B"/>-<g filter="url(#filter3_d_410_1821)">-<path d="M112.005 392.255L104.535 372.628C104.353 372.152 104.797 371.679 105.261 371.847L124.877 378.948C125.377 379.129 125.397 379.852 124.907 380.061L116.84 383.493C116.701 383.551 116.588 383.668 116.529 383.811L113.072 392.268C112.87 392.762 112.194 392.751 112.005 392.255Z" fill="#3FCF8E"/>-</g></g><defs><filter id="filter0_f_410_1821" x="-218.209" y="109.254" width="566.739" height="561.792" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">@@ -59,16 +55,6 @@<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation="37.8787" result="effect1_foregroundBlur_410_1821"/></filter>-<filter id="filter3_d_410_1821" x="96.4935" y="363.812" width="36.7701" height="36.8203" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">-<feFlood flood-opacity="0" result="BackgroundImageFix"/>-<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>-<feOffset/>-<feGaussianBlur stdDeviation="4"/>-<feComposite in2="hardAlpha" operator="out"/>-<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>-<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_410_1821"/>-<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_410_1821" result="shape"/>-</filter><clipPath id="clip0_410_1821"><rect width="298" height="430" fill="white" transform="translate(0 0.046875)"/></clipPath>