The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
improve iframe responsivity and dropped alt vimeo url for hero video
Joshen Lim37a32d2a85d2
diff --git a/www/components/Hero.tsx b/www/components/Hero.tsxindex edcb2d0d1fb..02f1339911f 100644--- a/www/components/Hero.tsx+++ b/www/components/Hero.tsx@@ -63,23 +63,26 @@ const Hero = () => {</div><div className="mt-16 sm:mt-24 lg:mt-0 lg:col-span-6">- <div className="shadow-lg relative w-full rounded-md hero-iframe">+ <div className="shadow-lg relative w-full rounded-md"><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>- {/* <video className="rounded-b-md" src={`videos/hero.mp4`} autoPlay loop muted>- Your browser does not support the video tag- </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 className="relative bg-red" style={{ padding: '56.25% 0 0 0' }}>+ <iframe+ className="absolute w-full h-full"+ 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&muted=1"+ style={{ top: 0, left: 0 }}+ frameBorder="0"+ allow="autoplay"+ />+ </div>+ {/*+ Replace src with the following if have preference:+ Vimeo: https://player.vimeo.com/video/485959063?loop=1&autoplay=1+ Youtube: https://www.youtube.com/embed/dBOSUER_5T4?playlist=dBOSUER_5T4&autoplay=1&loop=1&controls=0&modestbranding=1&rel=0&disablekb=1&mute=1&muted=1+ */}</div></div></div>diff --git a/www/styles/index.css b/www/styles/index.cssindex 5d5e862f522..719e6c05b0d 100644--- a/www/styles/index.css+++ b/www/styles/index.css@@ -7,20 +7,6 @@/* 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;