The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore(www): add Native runtime hero images, hide hero on Parallel local projects (#51813)
shaziya780846e449ab
diff --git a/apps/www/data/features.tsx b/apps/www/data/features.tsxindex 9fd91b65f40..e183cafc9c0 100644--- a/apps/www/data/features.tsx+++ b/apps/www/data/features.tsx@@ -94,6 +94,10 @@ export type FeatureType = {* light-mode version image, if heroImage is not a video*/heroImageLight?: string+ /**+ * omit the hero block (image, video, or icon placeholder) from the feature page+ */+ hideHero?: boolean/*** url to docs or blog page for this feature*/@@ -2206,6 +2210,7 @@ Running several local projects is experimental and needs CLI v2.119.0 or later.icon: Terminal,products: [ADDITIONAL_PRODUCTS.PLATFORM],heroImage: '',+ hideHero: true,docsUrl: 'https://supabase.com/docs/guides/local-development/running-multiple-local-projects',slug: 'parallel-local-projects',status: {@@ -2234,7 +2239,8 @@ The native runtime supports Linux on amd64 and arm64 with glibc 2.35 or later, a`,icon: Terminal,products: [ADDITIONAL_PRODUCTS.PLATFORM],- heroImage: '',+ heroImage: '/images/features/local-development.png',+ heroImageLight: '/images/features/local-development-light.png',docsUrl: 'https://supabase.com/docs/guides/local-development/docker-and-native-runtimes',slug: 'native-local-runtime',status: {diff --git a/apps/www/pages/features/[slug].tsx b/apps/www/pages/features/[slug].tsxindex 8950f551759..0625ebcc8f2 100644--- a/apps/www/pages/features/[slug].tsx+++ b/apps/www/pages/features/[slug].tsx@@ -130,70 +130,72 @@ const FeaturePage: React.FC<FeaturePageProps> = ({ feature, prevFeature, nextFea<h1 className="h1 m-0!">{feature.title}</h1><p>{feature.subtitle}</p></div>- <div- className={cn(- 'relative w-full bg-brand-default',- 'border rounded-lg overflow-hidden',- 'mx-auto max-w-3xl',- 'flex items-center justify-center',- feature.heroImage.includes('.mp4') ? 'h-fit' : 'aspect-video'- )}- >- {!!feature.heroImage ? (- feature.heroImage.includes('.mp4') ? (- <video- width="100%"- muted- autoPlay- playsInline- controls- loop- className="relative inset-0"- >- <source src={feature.heroImage} type="video/mp4" />- </video>- ) : feature.heroImage.includes('.youtube') ? (- <div className="video-container rounded-none! border-none!">- <iframe- className="w-full"- src={feature.heroImage}- title="YouTube video player"- allow="accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture; web-share"- />- </div>- ) : (- <>- <Image- src={feature.heroImage}- fill- sizes="(max-width: 768px) 200vw, (max-width: 1200px) 120vw, 300vw"- quality={100}- zoomable- priority- alt={`${feature.title} thumbnail`}- containerClassName={cn(- 'absolute inset-0 object-cover object-center',- feature.heroImageLight && 'hidden dark:block'- )}- />- {feature.heroImageLight && (+ {!feature.hideHero && (+ <div+ className={cn(+ 'relative w-full bg-brand-default',+ 'border rounded-lg overflow-hidden',+ 'mx-auto max-w-3xl',+ 'flex items-center justify-center',+ feature.heroImage.includes('.mp4') ? 'h-fit' : 'aspect-video'+ )}+ >+ {!!feature.heroImage ? (+ feature.heroImage.includes('.mp4') ? (+ <video+ width="100%"+ muted+ autoPlay+ playsInline+ controls+ loop+ className="relative inset-0"+ >+ <source src={feature.heroImage} type="video/mp4" />+ </video>+ ) : feature.heroImage.includes('.youtube') ? (+ <div className="video-container rounded-none! border-none!">+ <iframe+ className="w-full"+ src={feature.heroImage}+ title="YouTube video player"+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture; web-share"+ />+ </div>+ ) : (+ <><Image- src={feature.heroImageLight}+ src={feature.heroImage}fillsizes="(max-width: 768px) 200vw, (max-width: 1200px) 120vw, 300vw"quality={100}- priorityzoomable+ priorityalt={`${feature.title} thumbnail`}- containerClassName="absolute inset-0 object-cover object-center dark:hidden"+ containerClassName={cn(+ 'absolute inset-0 object-cover object-center',+ feature.heroImageLight && 'hidden dark:block'+ )}/>- )}- </>- )- ) : (- <Icon className="w-8 h-8 md:w-10 md:h-10 text-background" />- )}- </div>+ {feature.heroImageLight && (+ <Image+ src={feature.heroImageLight}+ fill+ sizes="(max-width: 768px) 200vw, (max-width: 1200px) 120vw, 300vw"+ quality={100}+ priority+ zoomable+ alt={`${feature.title} thumbnail`}+ containerClassName="absolute inset-0 object-cover object-center dark:hidden"+ />+ )}+ </>+ )+ ) : (+ <Icon className="w-8 h-8 md:w-10 md:h-10 text-background" />+ )}+ </div>+ )}</SectionContainer></header><SectionContainer className="pt-0!">