The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: improve performance and accessibility
Francesco Sansalvadore6e2bc9c9b459
diff --git a/apps/www/components/BackedBy.tsx b/apps/www/components/BackedBy.tsxindex 37f014667f3..c1fc1eec81a 100644--- a/apps/www/components/BackedBy.tsx+++ b/apps/www/components/BackedBy.tsx@@ -24,22 +24,22 @@ const BackedBy = ({<div className="w-full sm:max-w-lg mt-4 md:mt-3 lg:ml-0"><div className="flex flex-wrap items-center justify-center gap-y-8 sm:flex-nowrap"><img- className="h-8 pr-5 sm:h-8 md:pr-10"+ className="h-8 w-auto pr-5 sm:h-8 md:pr-10"src={`${basePath}/images/logos/yc--grey.png`}alt="Y Combinator"/><img- className="relative h-5 pr-5 sm:h-5 md:pr-10"+ className="relative w-auto h-5 pr-5 sm:h-5 md:pr-10"src={`${basePath}/images/logos/mozilla--grey.png`}alt="Mozilla"/><img- className="relative h-5 pr-5 sm:h-5 md:pr-10"+ className="relative w-auto h-5 pr-5 sm:h-5 md:pr-10"src={`${basePath}/images/logos/coatue.png`}alt="Coatue"/><img- className="relative h-6 sm:h-6"+ className="relative w-auto h-6 sm:h-6"src={`${basePath}/images/logos/felicis.png`}alt="Felicis"/>diff --git a/apps/www/components/Carousels/ImageCarousel.tsx b/apps/www/components/Carousels/ImageCarousel.tsxindex a9b45a5597e..ef544266da7 100644--- a/apps/www/components/Carousels/ImageCarousel.tsx+++ b/apps/www/components/Carousels/ImageCarousel.tsx@@ -125,6 +125,7 @@ function ImageCarousel(props: ImageCarouselProps) {style={{ top: 0, left: 0 }}frameBorder="0"allow="autoplay; modestbranding; encrypted-media"+ loading="lazy"/></div>)}diff --git a/apps/www/components/CodeBlock/CodeBlock.tsx b/apps/www/components/CodeBlock/CodeBlock.tsxindex 7b40664cea9..732f558354e 100644--- a/apps/www/components/CodeBlock/CodeBlock.tsx+++ b/apps/www/components/CodeBlock/CodeBlock.tsx@@ -126,6 +126,7 @@ function CodeBlock(props: CodeBlockProps) {)}onClick={() => handleCopy()}+ aria-label="Copy">{/* {copied ? 'Copied' : 'Copy'} */}</Button>diff --git a/apps/www/components/ExampleCard.tsx b/apps/www/components/ExampleCard.tsxindex 247eb9b8fa8..ad265e46fed 100644--- a/apps/www/components/ExampleCard.tsx+++ b/apps/www/components/ExampleCard.tsx@@ -23,7 +23,7 @@ function ExampleCard(props: any) {<imgsrc={props.author_img}alt={props.author + ' GitHub profile picture'}- className="border-scale-500 inline w-6 rounded-full"+ className="border-scale-500 inline w-6 h-6 rounded-full"/><span className="text-scale-1200 ml-2 text-sm">{props.author}</span></div>@@ -56,7 +56,7 @@ function ExampleCard(props: any) {<div className="mt-3 flex items-center gap-2">{props.vercel_deploy_url && (<a target="_blank" href={props.vercel_deploy_url}>- <img className="h-6" src="https://vercel.com/button" alt="vercel button" />+ <img className="h-6 w-auto" src="https://vercel.com/button" alt="vercel button" /></a>)}{props.demo_url && (diff --git a/apps/www/components/Features/FeatureCard.tsx b/apps/www/components/Features/FeatureCard.tsxnew file mode 100644index 00000000000..9c6b8058178--- /dev/null+++ b/apps/www/components/Features/FeatureCard.tsx@@ -0,0 +1,49 @@+import React from 'react'+import { motion } from 'framer-motion'+import Link from 'next/link'++const FeatureCard = ({+ classname,+ title,+ subtitle,+ image,+ url,+ onClick,+}: {+ title: string+ subtitle: string | React.ReactNode+ url: string+ image: any+ classname?: string+ onClick?: any+}) => (+ <Link href={url}>+ <a+ className={[+ 'relative col-span-1 lg:col-span-4 h-[360px] md:h-[460px] flex flex-col gap-5 lg:flex-row',+ classname,+ ].join(' ')}+ onClick={onClick}+ >+ <motion.div+ className={`relative overflow-hidden group/2 flex-1 flex flex-col items-center gap-5 lg:items-start justify-between bg-scale-100+ w-full border dark:border-scale-300 border-scale-400 rounded-xl h-full px-6 py-12 shadow-lg`}+ initial="default"+ animate="default"+ whileHover="hover"+ >+ <div className="relative z-10 flex flex-col items-center mx-auto text-center gap-2 text-scale-1200">+ <dt>+ <h3 className="text-xl">{title}</h3>+ </dt>+ <dd>+ <p className="text-sm text-scale-900">{subtitle}</p>+ </dd>+ </div>+ {image}+ </motion.div>+ </a>+ </Link>+)++export default FeatureCarddiff --git a/apps/www/components/Features/index.tsx b/apps/www/components/Features/index.tsxindex b102f9b2513..ec64f057537 100644--- a/apps/www/components/Features/index.tsx+++ b/apps/www/components/Features/index.tsx@@ -1,54 +1,18 @@import Solutions from 'data/Solutions.json'+<<<<<<< HEADimport Telemetry from '~/lib/telemetry'import gaEvents from '~/lib/gaEvents'import { useTelemetryProps } from 'common/hooks/useTelemetryProps'import { useRouter } from 'next/router'import Link from 'next/link'+=======+>>>>>>> 57f0cd67d (chore: improve performance and accessibility)import Image from 'next/image'import SectionContainer from '../Layouts/SectionContainer'import { motion } from 'framer-motion'import BackedBy from '../BackedBy'import { useBreakpoint } from 'common'--const Card = ({- classname,- title,- subtitle,- image,- onClick,- url,-}: {- title: string- subtitle: string | React.ReactNode- url: string- image: any- onClick: any- classname?: string-}) => (- <Link href={url}>- <a- className={[- 'relative col-span-1 lg:col-span-4 h-[360px] md:h-[460px] flex flex-col gap-5 lg:flex-row',- classname,- ].join(' ')}- onClick={onClick}- >- <motion.div- className={`relative overflow-hidden group/2 flex-1 flex flex-col items-center gap-5 lg:items-start justify-between bg-scale-100- w-full border dark:border-scale-300 border-scale-400 rounded-xl h-full px-6 py-12 shadow-lg`}- initial="default"- animate="default"- whileHover="hover"- >- <div className="relative z-10 flex flex-col items-center mx-auto text-center gap-2 text-scale-1200">- <h3 className="text-xl">{title}</h3>- <p className="text-sm text-scale-900">{subtitle}</p>- </div>- {image}- </motion.div>- </a>- </Link>-)+import FeatureCard from './FeatureCard'const opacityVariant = {default: { opacity: 0 },@@ -100,14 +64,14 @@ const Features = () => {return (<SectionContainer className="space-y-8 max-w-7xl mt-24 lg:mt-0 !pt-0">- <dl className="grid grid-cols-1 gap-4 sm:grid-cols-2 md:gap-6 lg:grid-cols-6">- <Card+ <dl className="grid grid-cols-1 gap-4 sm:grid-cols-2 md:gap-4 lg:gap-6 md:grid-cols-6">+ <FeatureCardurl={Solutions['database'].url}title={Solutions['database'].name}subtitle={<>Every project is a full Postgres database,- <br className="inline-block sm:hidden md:inline-block" /> the world's most trusted+ <br className="inline-block sm:hidden lg:inline-block" /> the world's most trustedrelational database.</>}@@ -121,7 +85,7 @@ const Features = () => {layout="fill"objectPosition={isSm ? 'bottom' : '50% 50%'}objectFit={isSm ? 'contain' : 'cover'}- quality={100}+ quality={95}/></motion.div><Image@@ -130,18 +94,19 @@ const Features = () => {layout="fill"objectPosition={isSm ? 'bottom' : '50% 50%'}objectFit={isSm ? 'contain' : 'cover'}- quality={100}+ quality={95}/></div>}+ classname="col-span-full md:col-span-3"/>- <Card+ <FeatureCardurl={Solutions['authentication'].url}title={Solutions['authentication'].name}subtitle={<>Add user sign ups and logins,- <br className="inline-block sm:hidden md:inline-block" /> securing your data with Row+ <br className="inline-block sm:hidden lg:inline-block" /> securing your data with RowLevel Security.</>}@@ -154,7 +119,6 @@ const Features = () => {layout="fill"objectPosition="50% 50%"objectFit="cover"- quality={100}/></motion.div><Image@@ -162,20 +126,19 @@ const Features = () => {layout="fill"objectPosition="50% 50%"objectFit="cover"- quality={100}/></div>}- classname="lg:!col-span-2"+ classname="md:col-span-3 lg:!col-span-2"onClick={() => sendTelemetryEvent(name)}/>- <Card+ <FeatureCardurl={Solutions['storage'].url}title={Solutions['storage'].name}subtitle={<>Store, organize, and serve large files.- <br className="inline-block sm:hidden md:inline-block" /> Any media, including videos+ <br className="inline-block sm:hidden lg:inline-block" /> Any media, including videosand images.</>}@@ -188,7 +151,7 @@ const Features = () => {layout="fill"objectPosition="50% 50%"objectFit="cover"- quality={100}+ quality={95}/></motion.div><Image@@ -197,17 +160,21 @@ const Features = () => {layout="fill"objectPosition="50% 50%"objectFit="cover"- quality={100}/></div>}- classname="lg:!col-span-2"+ classname="md:!col-span-2"onClick={() => sendTelemetryEvent(name)}/>- <Card+ <FeatureCardurl={Solutions['edge-functions'].url}title={Solutions['edge-functions'].name}- subtitle={Solutions['edge-functions'].description}+ subtitle={+ <>+ Write custom code without deploying+ <br className="inline-block sm:hidden lg:inline-block" /> or scaling servers.+ </>+ }onClick={() => sendTelemetryEvent(name)}image={<div className="absolute inset-0 z-0">@@ -218,7 +185,7 @@ const Features = () => {layout="fill"objectPosition={isSm ? 'bottom' : '50% 50%'}objectFit={isSm ? 'contain' : 'cover'}- quality={100}+ quality={90}/></motion.div><Image@@ -227,10 +194,38 @@ const Features = () => {layout="fill"objectPosition={isSm ? 'bottom' : '50% 50%'}objectFit={isSm ? 'contain' : 'cover'}- quality={100}+ quality={90}+ />+ </div>+ }+ classname="md:!col-span-2"+ />+ <FeatureCard+ url={Solutions['realtime'].url}+ title={Solutions['realtime'].name}+ subtitle={Solutions['realtime'].description}+ image={+ <div className="absolute inset-0 z-0">+ <motion.div className="absolute inset-0 z-10" variants={opacityVariant}>+ <Image+ src="/images/index/realtime-dark-hover.jpg"+ alt="Supabase Edge Functions feature, hover image with glow"+ layout="fill"+ objectPosition={isSm ? 'bottom' : '50% 50%'}+ objectFit={isSm ? 'contain' : 'cover'}+ />+ </motion.div>+ <Image+ src="/images/index/realtime-dark.jpg"+ alt="Supabase Edge Functions feature"+ layout="fill"+ objectPosition={isSm ? 'bottom' : '50% 50%'}+ objectFit={isSm ? 'contain' : 'cover'}+ quality={95}/></div>}+ classname="md:!col-span-2"/></dl><BackedBy className="pt-8" layout="horizontal" />diff --git a/apps/www/components/Hero/Hero.tsx b/apps/www/components/Hero/Hero.tsxindex 9db4d261bd1..eef50aef3b5 100644--- a/apps/www/components/Hero/Hero.tsx+++ b/apps/www/components/Hero/Hero.tsx@@ -12,10 +12,7 @@ const Hero = () => (<div className="mx-auto max-w-2xl lg:col-span-6 lg:flex lg:items-center justify-center text-center"><div className="lg:h-[50vh] lg:min-h-[300px] lg:max-h-[450px] flex flex-col items-center justify-center sm:mx-auto md:w-3/4 lg:mx-0 lg:w-full gap-4 lg:gap-8"><div>- <motion.h1- initial={{ y: 10, opacity: 0 }}- animate={{ y: 0, opacity: 1 }}- transition={{ duration: 1, ease: [0.5, 0.01, 0.28, 1], delay: 0.2 }}+ <h1className="text-scale-1200text-3xl sm:text-5xl sm:leading-none lg:text-6xl@@ -26,7 +23,7 @@ const Hero = () => (<span className="text-transparent bg-clip-text bg-gradient-to-br from-[#3ECF8E] via-[#3ECF8E] to-[#3E9BCF] block md:ml-0">Scale to millions.</span>- </motion.h1>+ </h1><p className="py-2 text-scale-1200 !mb-0 mt-1.5 text-sm sm:mt-5 sm:text-base lg:text-lg">Supabase is an open source Firebase alternative for building secure and performantPostgres backends with minimal configuration.diff --git a/apps/www/components/Hero/HeroBackground.tsx b/apps/www/components/Hero/HeroBackground.tsxindex 716bb8cf952..0f026d77cc8 100644--- a/apps/www/components/Hero/HeroBackground.tsx+++ b/apps/www/components/Hero/HeroBackground.tsx@@ -1,12 +1,14 @@import React, { useEffect, useRef } from 'react'-import styles from './hero.module.css'+import dynamic from 'next/dynamic'import { useWindowSize } from 'react-use'-import { useBreakpoint, useTheme } from 'common'-import { motion } from 'framer-motion'+import { useBreakpoint } from 'common'++import styles from './hero.module.css'++const HeroGrid = dynamic(() => import('./HeroGrid'))const HeroBackground = () => {const spacerRef = useRef(null)- const { isDarkMode } = useTheme()const { width } = useWindowSize()const isSm = useBreakpoint(640)@@ -24,144 +26,6 @@ const HeroBackground = () => {const svgPath ='M2.16005e-05 -0.000998163L1680 0.129286V234L890.763 1012.41C859.46 1043.28 809.108 1043.11 778.018 1012.02L-0.000248139 234.001L2.16005e-05 -0.000998163Z'- const svgGridOptions = {- color: isDarkMode ? '#00c6d4' : '#005359',- boxWidth: width ? width * 7 : 7500,- boxHeight: width ? width * 5 : 6000,- xLines: isSm ? 20 : 50,- yLines: isSm ? 65 : 130,- strokeWidth: 1,- }-- const GridSVG = () => (- <svg- preserveAspectRatio="none"- width="100%"- height="100%"- viewBox={`0 0 ${svgGridOptions.boxWidth} ${svgGridOptions.boxHeight}`}- fill="none"- xmlns="http://www.w3.org/2000/svg"- >- {[...new Array(svgGridOptions.yLines)].map((_: any, i: number) => {- const y = (svgGridOptions.boxWidth * i) / svgGridOptions.yLines- return (- <line- key={`y-${i}`}- x1={svgGridOptions.boxHeight}- y1={y}- x2="0"- y2={y}- stroke={svgGridOptions.color}- strokeWidth={svgGridOptions.strokeWidth}- />- )- })}- {[...new Array(svgGridOptions.xLines)].map((_: any, i: number) => {- const x = (svgGridOptions.boxHeight * i) / svgGridOptions.xLines- return (- <>- <line- key={`x-${i}`}- x1={x}- y1={svgGridOptions.boxWidth}- x2={x}- y2="0"- stroke={svgGridOptions.color}- strokeWidth={svgGridOptions.strokeWidth}- />- {isSm- ? i === 9 && (- <line- x1={x}- y1={svgGridOptions.boxWidth}- x2={x}- y2="0"- stroke="url(#electric-pulse)"- strokeLinecap="round"- strokeWidth={4}- />- )- : i === 25 && (- <line- x1={x}- y1={svgGridOptions.boxWidth}- x2={x}- y2="0"- stroke="url(#electric-pulse)"- strokeLinecap="round"- strokeWidth={4}- />- )}- {isSm- ? i === 14 && (- <line- x1={x}- y1={svgGridOptions.boxWidth}- x2={x}- y2="0"- stroke="url(#electric-pulse-2)"- strokeLinecap="round"- strokeWidth={4}- />- )- : i === 33 && (- <line- x1={x}- y1={svgGridOptions.boxWidth}- x2={x}- y2="0"- stroke="url(#electric-pulse-2)"- strokeLinecap="round"- strokeWidth={4}- />- )}- </>- )- })}- <defs>- <motion.linearGradient- animate={{- x2: [svgGridOptions.boxWidth / 2, 0, svgGridOptions.boxWidth / 2],- x1: [svgGridOptions.boxWidth / 2, 0, svgGridOptions.boxWidth / 2],- y1: [svgGridOptions.boxHeight, svgGridOptions.boxHeight / 3, 0],- y2: [svgGridOptions.boxHeight, svgGridOptions.boxHeight / 2, 0],- }}- transition={{- duration: isSm ? 3 : 5,- repeat: Infinity,- ease: 'linear',- }}- id="electric-pulse"- gradientUnits="userSpaceOnUse"- >- <stop stopColor={svgGridOptions.color} stopOpacity="0" />- <stop stopColor={svgGridOptions.color} stopOpacity="0.8" />- <stop offset="1" stopColor="#3E9BCF" stopOpacity="0" />- </motion.linearGradient>- <motion.linearGradient- animate={{- x2: [svgGridOptions.boxWidth / 2, 0, svgGridOptions.boxWidth / 2],- x1: [svgGridOptions.boxWidth / 2, 0, svgGridOptions.boxWidth / 2],- y1: [svgGridOptions.boxHeight, svgGridOptions.boxHeight / 3, 0],- y2: [svgGridOptions.boxHeight, svgGridOptions.boxHeight / 2, 0],- }}- transition={{- duration: isSm ? 3 : 5,- repeat: Infinity,- ease: 'linear',- delay: 2,- }}- id="electric-pulse-2"- gradientUnits="userSpaceOnUse"- >- <stop stopColor={svgGridOptions.color} stopOpacity="0" />- <stop stopColor={svgGridOptions.color} stopOpacity="0.8" />- <stop offset="1" stopColor="#3E9BCF" stopOpacity="0" />- </motion.linearGradient>- </defs>- </svg>- )-return (<><div@@ -236,32 +100,7 @@ const HeroBackground = () => {><div className={['w-full h-full', styles['gradient']].join(' ')} /><div className="absolute bottom-0 z-[-2] w-full h-full bg-gradient-to-t from-scale-100 to-transparent" />- <div- className={[- 'relative -z-10 ![perspective:1200px] sm:![perspective:1200px] md:![perspective:1200px] lg:![perspective:1200px]',- ].join(' ')}- >- <div- className="z-[100] absolute inset-0"- style={{- background: 'linear-gradient(to top, rgba(0,0,0,0) 0px, #000000 50%)',- }}- />- <div- style={{- transform: 'rotateX(85deg)',- position: 'absolute',- top: 0,- bottom: 0,- left: 0,- right: 0,- }}- >- <div className={[styles['hero-grid-lines']].join(' ')}>- <GridSVG />- </div>- </div>- </div>+ <HeroGrid /></div></>)diff --git a/apps/www/components/Hero/HeroGrid.tsx b/apps/www/components/Hero/HeroGrid.tsxnew file mode 100644index 00000000000..04f54b0dcce--- /dev/null+++ b/apps/www/components/Hero/HeroGrid.tsx@@ -0,0 +1,181 @@+import React from 'react'+import { useBreakpoint, useTheme } from 'common'+import { motion } from 'framer-motion'++import styles from './hero.module.css'+import { useWindowSize } from 'react-use'++const HeroGrid = () => {+ const { isDarkMode } = useTheme()+ const { width } = useWindowSize()+ const isSm = useBreakpoint(640)++ const svgGridOptions = {+ color: isDarkMode ? '#00c6d4' : '#005359',+ boxWidth: width ? width * 7 : 7500,+ boxHeight: width ? width * 5 : 6000,+ xLines: isSm ? 20 : 50,+ yLines: isSm ? 65 : 130,+ strokeWidth: 1,+ }++ const GridSVG = () => (+ <svg+ preserveAspectRatio="none"+ width="100%"+ height="100%"+ viewBox={`0 0 ${svgGridOptions.boxWidth} ${svgGridOptions.boxHeight}`}+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ {[...new Array(svgGridOptions.yLines)].map((_: any, i: number) => {+ const y = (svgGridOptions.boxWidth * i) / svgGridOptions.yLines+ return (+ <line+ key={`y-${i}`}+ x1={svgGridOptions.boxHeight}+ y1={y}+ x2="0"+ y2={y}+ stroke={svgGridOptions.color}+ strokeWidth={svgGridOptions.strokeWidth}+ />+ )+ })}+ {[...new Array(svgGridOptions.xLines)].map((_: any, i: number) => {+ const x = (svgGridOptions.boxHeight * i) / svgGridOptions.xLines+ return (+ <>+ <line+ key={`x-${i}`}+ x1={x}+ y1={svgGridOptions.boxWidth}+ x2={x}+ y2="0"+ stroke={svgGridOptions.color}+ strokeWidth={svgGridOptions.strokeWidth}+ />+ {isSm+ ? i === 9 && (+ <line+ x1={x}+ y1={svgGridOptions.boxWidth}+ x2={x}+ y2="0"+ stroke="url(#electric-pulse)"+ strokeLinecap="round"+ strokeWidth={4}+ />+ )+ : i === 25 && (+ <line+ x1={x}+ y1={svgGridOptions.boxWidth}+ x2={x}+ y2="0"+ stroke="url(#electric-pulse)"+ strokeLinecap="round"+ strokeWidth={4}+ />+ )}+ {isSm+ ? i === 14 && (+ <line+ x1={x}+ y1={svgGridOptions.boxWidth}+ x2={x}+ y2="0"+ stroke="url(#electric-pulse-2)"+ strokeLinecap="round"+ strokeWidth={4}+ />+ )+ : i === 33 && (+ <line+ x1={x}+ y1={svgGridOptions.boxWidth}+ x2={x}+ y2="0"+ stroke="url(#electric-pulse-2)"+ strokeLinecap="round"+ strokeWidth={4}+ />+ )}+ </>+ )+ })}+ <defs>+ <motion.linearGradient+ animate={{+ x2: [svgGridOptions.boxWidth / 2, 0, svgGridOptions.boxWidth / 2],+ x1: [svgGridOptions.boxWidth / 2, 0, svgGridOptions.boxWidth / 2],+ y1: [svgGridOptions.boxHeight, svgGridOptions.boxHeight / 3, 0],+ y2: [svgGridOptions.boxHeight, svgGridOptions.boxHeight / 2, 0],+ }}+ transition={{+ duration: isSm ? 3 : 5,+ repeat: Infinity,+ ease: 'linear',+ }}+ id="electric-pulse"+ gradientUnits="userSpaceOnUse"+ >+ <stop stopColor={svgGridOptions.color} stopOpacity="0" />+ <stop stopColor={svgGridOptions.color} stopOpacity="0.8" />+ <stop offset="1" stopColor="#3E9BCF" stopOpacity="0" />+ </motion.linearGradient>+ <motion.linearGradient+ animate={{+ x2: [svgGridOptions.boxWidth / 2, 0, svgGridOptions.boxWidth / 2],+ x1: [svgGridOptions.boxWidth / 2, 0, svgGridOptions.boxWidth / 2],+ y1: [svgGridOptions.boxHeight, svgGridOptions.boxHeight / 3, 0],+ y2: [svgGridOptions.boxHeight, svgGridOptions.boxHeight / 2, 0],+ }}+ transition={{+ duration: isSm ? 3 : 5,+ repeat: Infinity,+ ease: 'linear',+ delay: 2,+ }}+ id="electric-pulse-2"+ gradientUnits="userSpaceOnUse"+ >+ <stop stopColor={svgGridOptions.color} stopOpacity="0" />+ <stop stopColor={svgGridOptions.color} stopOpacity="0.8" />+ <stop offset="1" stopColor="#3E9BCF" stopOpacity="0" />+ </motion.linearGradient>+ </defs>+ </svg>+ )++ return (+ <div+ className={[+ 'relative -z-10 ![perspective:1200px] sm:![perspective:1200px] md:![perspective:1200px] lg:![perspective:1200px]',+ ].join(' ')}+ >+ <div+ className="z-[100] absolute inset-0"+ style={{+ background: 'linear-gradient(to top, rgba(0,0,0,0) 0px, #000000 50%)',+ }}+ />+ <div+ style={{+ transform: 'rotateX(85deg)',+ position: 'absolute',+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ }}+ >+ <div className={[styles['hero-grid-lines']].join(' ')}>+ <GridSVG />+ </div>+ </div>+ </div>+ )+}++export default HeroGriddiff --git a/apps/www/pages/index.tsx b/apps/www/pages/index.tsxindex ad787444df3..845ba95cf16 100644--- a/apps/www/pages/index.tsx+++ b/apps/www/pages/index.tsx@@ -1,20 +1,21 @@-import { getSortedPosts, getAllCategories } from '~/lib/posts'+import dynamic from 'next/dynamic'+import { getSortedPosts } from '~/lib/posts'import PostTypes from '~/types/post'-import Container from 'components/Container'+import Container from '~/components/Container'import Layout from '~/components/Layouts/Default'-import Hero from 'components/Hero/Hero'--import Features from 'components/Features/index'-import BuiltExamples from 'components/BuiltWithSupabase/index'-import MadeForDevelopers from 'components/MadeForDevelopers/index'-import AdminAccess from 'components/AdminAccess/index'-import CTABanner from 'components/CTABanner/index'-import CustomerStories from 'components/CustomerStories'-import TwitterSocialSection from '~/components/TwitterSocialSection'+import Hero from '~/components/Hero/Hero'// Import Swiper styles if swiper used on pageimport 'swiper/swiper.min.css'+const Features = dynamic(() => import('components/Features/index'))+const BuiltExamples = dynamic(() => import('components/BuiltWithSupabase/index'))+const MadeForDevelopers = dynamic(() => import('components/MadeForDevelopers/index'))+const AdminAccess = dynamic(() => import('components/AdminAccess/index'))+const CTABanner = dynamic(() => import('components/CTABanner/index'))+const CustomerStories = dynamic(() => import('components/CustomerStories'))+const TwitterSocialSection = dynamic(() => import('~/components/TwitterSocialSection'))+type Props = { customerStories: PostTypes[] }const Index = ({ customerStories }: Props) => {diff --git a/apps/www/public/images/index/realtime-dark-hover.jpg b/apps/www/public/images/index/realtime-dark-hover.jpgnew file mode 100644index 00000000000..a64b36ee926Binary files /dev/null and b/apps/www/public/images/index/realtime-dark-hover.jpg differdiff --git a/apps/www/public/images/index/realtime-dark.jpg b/apps/www/public/images/index/realtime-dark.jpgnew file mode 100644index 00000000000..2626d971a18Binary files /dev/null and b/apps/www/public/images/index/realtime-dark.jpg differdiff --git a/apps/www/styles/index.css b/apps/www/styles/index.cssindex 6daab1de006..3eea30763a2 100644--- a/apps/www/styles/index.css+++ b/apps/www/styles/index.css@@ -10,6 +10,7 @@url(../../../packages/common/assets/fonts/CustomFont-Book.woff) format('woff');font-weight: 400;font-style: normal;+ font-display: swap;}@font-face {@@ -18,6 +19,7 @@url(../../../packages/common/assets/fonts/CustomFont-Medium.woff) format('woff');font-weight: 500;font-style: normal;+ font-display: swap;}html {