The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: add css animation
Francesco Sansalvadore97a098693e27
diff --git a/apps/www/components/Hero/Hero.tsx b/apps/www/components/Hero/Hero.tsxindex b355af1ac2c..67c81afc6c9 100644--- a/apps/www/components/Hero/Hero.tsx+++ b/apps/www/components/Hero/Hero.tsx@@ -7,7 +7,7 @@ import { Button, IconBookOpen } from 'ui'import SectionContainer from '~/components/Layouts/SectionContainer'import HeroBackground from './HeroBackground'import FrontendFrameworks from './FrontendFrameworks'-import { LazyMotion, domAnimation, m } from 'framer-motion'+import styles from './hero.module.css'const Hero = () => {const router = useRouter()@@ -22,50 +22,50 @@ const Hero = () => {<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">- <LazyMotion features={domAnimation}>- <m.div- initial={{ y: 10, opacity: 0 }}- animate={{ y: 0, opacity: 1 }}- transition={{ duration: 0.3 }}- 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>- <h1- className="+ <div+ className={[+ 'appear-first 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',+ styles['hero-text'],+ ].join(' ')}+ >+ <div>+ <h1+ className="text-scale-1200text-3xl sm:text-5xl sm:leading-none lg:text-6xlxl:text-7xl"- >- <span className="block">Build in a weekend</span>- <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="pt-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- performant Postgres backends with minimal configuration.- </p>- </div>- <div className="flex items-center gap-2">- <Link href="https://app.supabase.com" as="https://app.supabase.com" passHref>- <a onClick={() => sendTelemetryEvent(gaEvents['www_hp_hero_startProject'])}>- <Button size="small" className="text-white">- Start your project- </Button>- </a>- </Link>- <Link href="/docs" as="/docs" passHref>- <a onClick={() => sendTelemetryEvent(gaEvents['www_hp_hero_documentation'])}>- <Button size="small" type="default" icon={<IconBookOpen />}>- Documentation- </Button>- </a>- </Link>- </div>- <FrontendFrameworks className="mt-4 lg:mt-6" />- </m.div>- </LazyMotion>+ >+ <span className="block text-[#F4FFFA00] bg-clip-text bg-gradient-to-b from-scale-1200 to-scale-1100">+ Build in a weekend+ </span>+ <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="pt-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+ performant Postgres backends with minimal configuration.+ </p>+ </div>+ <div className="flex items-center gap-2">+ <Link href="https://app.supabase.com" as="https://app.supabase.com" passHref>+ <a onClick={() => sendTelemetryEvent(gaEvents['www_hp_hero_startProject'])}>+ <Button size="small" className="text-white">+ Start your project+ </Button>+ </a>+ </Link>+ <Link href="/docs" as="/docs" passHref>+ <a onClick={() => sendTelemetryEvent(gaEvents['www_hp_hero_documentation'])}>+ <Button size="small" type="default" icon={<IconBookOpen />}>+ Documentation+ </Button>+ </a>+ </Link>+ </div>+ <FrontendFrameworks className="mt-4 lg:mt-6" />+ </div></div></div></div>diff --git a/apps/www/components/Hero/hero.module.css b/apps/www/components/Hero/hero.module.cssindex fe834192026..414f97074f7 100644--- a/apps/www/components/Hero/hero.module.css+++ b/apps/www/components/Hero/hero.module.css@@ -3,6 +3,12 @@transition: perspective 3s ease 0s;}+.hero-text {+ opacity: 0;+ transform: translate3d(0, 10px, 0);+ animation: animateText 0.4s cubic-bezier(0.25, 0.25, 0, 1) 0.1s both;+}+.hero-grid-lines {position: absolute;width: 120vw;@@ -28,3 +34,10 @@background: radial-gradient(ellipse 50% 60% at 50% 70%, #3ecf8e, transparent),radial-gradient(ellipse 70% 80% at 50% 50%, #1d7a50, transparent);}++@keyframes animateText {+ to {+ opacity: 1;+ transform: translate3d(0, 0, 0);+ }+}