The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add hero video yt embed
Joshen Lim428887bc829f
diff --git a/www/components/hero.tsx b/www/components/hero.tsxindex 20256a211f7..edcb2d0d1fb 100644--- a/www/components/hero.tsx+++ b/www/components/hero.tsx@@ -63,18 +63,23 @@ const Hero = () => {</div><div className="mt-16 sm:mt-24 lg:mt-0 lg:col-span-6">- {/* <div className="bg-white sm:max-w-md sm:w-full sm:mx-auto sm:rounded-lg sm:overflow-hidden"></div> */}- {/* <img src="images/hero.png" className="relative" style={{ right: -20 }} /> */}- <div className="shadow-lg rounded-md" style={{ height: 'fit-content'}}>+ <div className="shadow-lg relative w-full rounded-md hero-iframe"><div className="w-full rounded-t-md h-5 bg-dark-400 flex items-center justify-start px-2"><div className="h-2 w-2 mr-2 rounded-full bg-dark-500"/><div className="h-2 w-2 mr-2 rounded-full bg-dark-500"/><div className="h-2 w-2 mr-2 rounded-full bg-dark-500"/></div>- {/* Joshen: Preload all videos to prevent the flickering of video when changing tabs */}- <video className="rounded-b-md" src={`videos/hero.mp4`} autoPlay loop muted>+ {/* <video className="rounded-b-md" src={`videos/hero.mp4`} autoPlay loop muted>Your browser does not support the video tag- </video>+ </video> */}+ <iframe+ className="rounded-b-md position inset-0 w-full h-full"+ width="560"+ height="315"+ src={`https://www.youtube.com/embed/dBOSUER_5T4?playlist=dBOSUER_5T4&autoplay=1&loop=1&controls=0&modestbranding=1&rel=0&disablekb=1&mute=1`}+ frameBorder="0"+ allow="autoplay"+ /></div></div></div>diff --git a/www/public/videos/hero.mp4 b/www/public/videos/hero.mp4deleted file mode 100644index 079117d450b..00000000000Binary files a/www/public/videos/hero.mp4 and /dev/null differdiff --git a/www/styles/index.css b/www/styles/index.cssindex 719e6c05b0d..5d5e862f522 100644--- a/www/styles/index.css+++ b/www/styles/index.css@@ -7,6 +7,20 @@/* Stop purging. *//* Write you own custom component styles here */+.hero-iframe { height: 174.94px; }++@media (min-width: 768px) {+ .hero-iframe { height: 360px; }+}+@media (min-width: 1024px) {+ .hero-iframe { height: 234px; }+}+@media (min-width: 1280px) {+ .hero-iframe { height: 297px; }+}+@media (min-width: 1536px) {+ .hero-iframe { height: 342px; }+}/* Start purging... */@tailwind utilities;