The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: add triangle shape to hero
Francesco Sansalvadorebc175b24527f
diff --git a/apps/www/components/Features/FeaturesOld.tsx b/apps/www/components/Features/FeaturesOld.tsxnew file mode 100644index 00000000000..812df2ce624--- /dev/null+++ b/apps/www/components/Features/FeaturesOld.tsx@@ -0,0 +1,42 @@+import { Button, Badge, IconArrowRight } from 'ui'+import SectionHeader from 'components/UI/SectionHeader'+import Solutions from 'data/Solutions.json'+import Link from 'next/link'+import SectionContainer from '../Layouts/SectionContainer'+import ProductIcon from '../ProductIcon'+import TextLink from '../TextLink'++const FeaturesOld = () => {+ const IconSections = Object.values(Solutions).map((solution: any) => {+ const { name, description, icon, label, url } = solution+ if (solution.name === 'Realtime') return null+ return (+ <div key={name} className="mb-10 space-y-4 md:mb-0">+ <div className="flex items-center">+ <ProductIcon icon={icon} />+ <dt className="text-scale-1200 ml-4 flex flex-row xl:flex-col">{name}</dt>+ </div>++ <p className="p">{description}</p>++ {label && (+ <div>+ <Badge dot>{label}</Badge>+ </div>+ )}+ {url && <TextLink label={label ? 'Get notified' : 'Learn more'} url={url} />}+ </div>+ )+ })++ return (+ <SectionContainer className="space-y-16 pb-0">+ <h3 className="h3">Build faster and focus on your products</h3>+ <dl className="grid grid-cols-1 gap-y-4 sm:grid-cols-2 md:grid-cols-2 md:gap-16 lg:grid-cols-4 lg:gap-x-8 xl:gap-x-24">+ {IconSections}+ </dl>+ </SectionContainer>+ )+}++export default FeaturesOlddiff --git a/apps/www/components/Features/index.tsx b/apps/www/components/Features/index.tsxindex ab6510718e5..e7af6b31037 100644--- a/apps/www/components/Features/index.tsx+++ b/apps/www/components/Features/index.tsx@@ -3,11 +3,42 @@ import Solutions from 'data/Solutions.json'import Telemetry from '~/lib/telemetry'import gaEvents from '~/lib/gaEvents'import SectionContainer from '../Layouts/SectionContainer'-import ProductIcon from '../ProductIcon'-import TextLink from '../TextLink'import { useTelemetryProps } from 'common/hooks/useTelemetryProps'import { useRouter } from 'next/router'+const Card = ({+ classname,+ title,+ subtitle,+ image,+ onClick,+}: {+ title: string+ subtitle: string+ image: any+ onClick: any+ classname?: string+}) => (+ <div+ className={[+ 'col-span-1 lg:col-span-4 h-[400px] flex flex-col gap-5 lg:flex-row',+ classname,+ ].join(' ')}+ onClick={onClick}+ >+ <div+ className={`relative overflow-hidden group/2 flex-1 flex flex-col items-center gap-5 lg:items-start justify-between bg-slate-100+ w-full border border-[#232323] rounded-xl h-full px-2 sm:px-6 py-14 shadow-lg`}+ >+ <div className="flex flex-col items-center mx-auto max-w-xs text-center gap-2 text-white">+ <h3 className="z-0 relative xs:text-2xl text-xl">{title}</h3>+ <p className="text-sm sm:text-base text-slate-1000">{subtitle}</p>+ {image}+ </div>+ </div>+ </div>+)+const Features = () => {const router = useRouter()const telemetryProps = useTelemetryProps()@@ -47,39 +78,35 @@ const Features = () => {}}- const IconSections = Object.values(Solutions).map((solution: any) => {- const { name, description, icon, label, url } = solution- if (solution.name === 'Realtime') return null- return (- <div key={name} className="mb-10 space-y-4 md:mb-0">- <div className="flex items-center">- <ProductIcon icon={icon} />- <dt className="text-scale-1200 ml-4 flex flex-row xl:flex-col">{name}</dt>- </div>-- <p className="p">{description}</p>-- {label && (- <div>- <Badge dot>{label}</Badge>- </div>- )}- {url && (- <TextLink- label={label ? 'Get notified' : 'Learn more'}- url={url}- onClick={() => sendTelemetryEvent(name)}- />- )}- </div>- )- })-return (- <SectionContainer className="space-y-16 pb-0">- <h3 className="h3">Build faster and focus on your products</h3>- <dl className="grid grid-cols-1 gap-y-4 sm:grid-cols-2 md:grid-cols-2 md:gap-16 lg:grid-cols-4 lg:gap-x-8 xl:gap-x-24">- {IconSections}+ <SectionContainer className="space-y-8 max-w-7xl pb-0 pt-0 md:!pt-0">+ <dl className="grid grid-cols-1 gap-2 sm:grid-cols-2 md:gap-6 lg:grid-cols-6">+ <Card+ title={'PostgreSQL Database'}+ subtitle="Every project is a full Postgres database, the world's most trusted relational database."+ image={null}+ onClick={() => sendTelemetryEvent(name)}+ />+ <Card+ title={Solutions['authentication'].name}+ subtitle={Solutions['authentication'].description}+ image={null}+ classname="lg:!col-span-2"+ onClick={() => sendTelemetryEvent(name)}+ />+ <Card+ title={Solutions['storage'].name}+ subtitle={Solutions['storage'].description}+ image={null}+ classname="lg:!col-span-2"+ onClick={() => sendTelemetryEvent(name)}+ />+ <Card+ title={Solutions['edge-functions'].name}+ subtitle={Solutions['edge-functions'].description}+ image={null}+ onClick={() => sendTelemetryEvent(name)}+ /></dl></SectionContainer>)diff --git a/apps/www/components/Hero/Hero.tsx b/apps/www/components/Hero/Hero.tsxindex ead9ef2fc66..81cd2d1ce49 100644--- a/apps/www/components/Hero/Hero.tsx+++ b/apps/www/components/Hero/Hero.tsx@@ -9,11 +9,11 @@ const Hero = () => {return (<div className="relative">- <SectionContainer className="pb-0 pt-24">+ <SectionContainer className=""><div className="relative"><div className="mx-auto"><div className="mx-auto max-w-2xl lg:col-span-6 lg:flex lg:items-center justify-center text-center">- <div className="flex flex-col items-center sm:mx-auto md:w-3/4 lg:mx-0 lg:w-full gap-4 lg:gap-8">+ <div className="md:h-[40vh] md:min-h-[300px] md:max-h-[400px] md:py-4 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><h1className="@@ -23,11 +23,11 @@ const Hero = () => {"><span className="block">Build in a weekend.</span>- <span className="text-transparent bg-clip-text bg-gradient-to-br from-[#3ECF8E] to-[#3E9BCF] block md:ml-0">+ <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></h1>- <p className="p !mb-0 mt-1.5 text-sm sm:mt-5 sm:text-base lg:text-lg">+ <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 andperformant Postgres backends with minimal configuration.</p>@@ -82,10 +82,36 @@ const Hero = () => {</SectionContainer><divclassName={[- 'absolute top-0 left-0 w-full h-screen overflow-hidden pointer-events-none',+ 'absolute z-[-4] flex flex-col top-0 left-0 w-screen h-screen overflow-hidden pointer-events-none',+ ].join(' ')}+ >+ <div className="absolute w-screen h-screen">+ <div className="w-full h-[200px] md:h-[250px] lg:h-[150px] xl:h-[50px] 2xl:h-0 bg-[#171717]" />+ <div className={['2xl:-mt-48'].join(' ')}>+ <svg+ className={['', styles['triangle-svg']].join(' ')}+ preserveAspectRatio="none"+ width="100%"+ height="100%"+ viewBox="0 0 1680 915"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d="M2.16005e-05 -0.000998163L1680 0.129286V234L834.197 1068.2L-0.000248139 234.001L2.16005e-05 -0.000998163Z"+ fill="#171717"+ />+ </svg>+ </div>+ </div>+ </div>+ <div+ className={[+ 'absolute top-0 left-0 w-full h-[600px] md:h-[800px] overflow-hidden pointer-events-none',styles['hero-container'],].join(' ')}>+ <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" /><divclassName={[diff --git a/apps/www/components/Hero/hero.module.css b/apps/www/components/Hero/hero.module.cssindex 0056c4a6b17..4445296ccd9 100644--- a/apps/www/components/Hero/hero.module.css+++ b/apps/www/components/Hero/hero.module.css@@ -12,13 +12,13 @@height: 200vh;margin-left: -50%;transform: translateY(0);- background-image: linear-gradient(to right, #07edfc20 45%, #07edfc20 50%, #07edfc20 55%);+ background-image: linear-gradient(to right, #07edfc 45%, transparent 50%, #07edfc 55%);-webkit-mask-image: linear-gradient(90deg, #000 0.3px, transparent 0),linear-gradient(180deg, #000 0.3px, transparent 0);mask-image: linear-gradient(90deg, #000 0.3px, #000 0),linear-gradient(180deg, #000 0.3px, #000 0);- -webkit-mask-size: 40px 40px;- mask-size: 40px 40px;+ -webkit-mask-size: 30px 30px;+ mask-size: 30px 30px;overflow: hidden;-webkit-mask-repeat: repeat;mask-repeat: repeat;@@ -32,6 +32,29 @@animation: animate-grid 30s linear infinite;}+.gradient {+ position: absolute;+ user-select: none;+ pointer-events: none;+ inset: 0px;+ z-index: -3;+ opacity: 0.6;+ filter: blur(140px);+ transform: translateZ(0px);+ background: radial-gradient(ellipse 50% 45% at 50% 40%, #3ecf8e, rgba(0, 0, 0, 0));+}++.triangle-shape {+ width: 200vw;+ height: 200vw;+ transform: rotate(45deg) translate3d(-100vw, -100vw, 0);+ background: radial-gradient(+ ellipse 64% 64% at 40% 40%,+ var(--colors-brand1),+ var(--colors-scale1)+ );+}+@media (min-width: 1024px) {.hero-grid-lines {animation-duration: 30s;