Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: moved images to youtube

Jonathan Summers-Muir7a0278fae476
diff --git a/apps/www/components/Carousels/ImageCarousel.tsx b/apps/www/components/Carousels/ImageCarousel.tsx
index dd8c9183843..c1730d4fe43 100644
--- a/apps/www/components/Carousels/ImageCarousel.tsx
+++ b/apps/www/components/Carousels/ImageCarousel.tsx
@@ -1,5 +1,5 @@
+import { Button, IconCornerRightUp, Tabs } from '@supabase/ui'
import { useRouter } from 'next/router'
-import { Tabs, Button, IconCornerRightUp, IconArrowUpRight } from '@supabase/ui'
import { useState } from 'react'
// Import Swiper React components
@@ -8,19 +8,18 @@ import { Swiper, SwiperSlide } from 'swiper/react'
// Import Swiper styles
import 'swiper/swiper.min.css'
-import ImageCarouselStyles from './ImageCarousel.module.css'
-import Link from 'next/link'
import Image from 'next/image'
import TextLink from '../TextLink'
+import ImageCarouselStyles from './ImageCarousel.module.css'
interface Content {
title: string
label?: string
img_url?: string
- video_url?: string
text?: string
cta?: string
url?: string
+ youtube_id?: string
}
interface ImageCarouselProps {
@@ -116,16 +115,17 @@ function ImageCarousel(props: ImageCarouselProps) {
height="960"
/>
)}
- {content.video_url && (
- <video
- src={`${basePath}/${content.video_url}`}
- autoPlay
- loop
- muted
- playsInline
- >
- Your browser does not support the video tag
- </video>
+ {content.youtube_id && (
+ <div className="relative w-full" style={{ padding: '56.25% 0 0 0' }}>
+ <iframe
+ title="Demo video showcasing Supabase"
+ className="absolute h-full w-full rounded-b-md"
+ src={`https://www.youtube-nocookie.com/embed/${content.youtube_id}?playlist=${content.youtube_id}&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; modestbranding; encrypted-media"
+ />
+ </div>
)}
</SwiperSlide>
)
diff --git a/apps/www/data/home/admin-access.json b/apps/www/data/home/admin-access.json
index 69f94df41b0..9ca4d408f4e 100644
--- a/apps/www/data/home/admin-access.json
+++ b/apps/www/data/home/admin-access.json
@@ -3,7 +3,7 @@
"label": "Table editor",
"title": "Manage your data with the familiarity of a spreadsheet",
"text": "You don’t have to be a database expert to use Supabase. Our table editor makes Postgres easy to use, even for non-techies. You can do everything right in our dashboard.",
- "video_url": "videos/tabTableEditor.mp4",
+ "youtube_id": "xIHjwJgxOmk",
"cta": "Explore Table View",
"url": "/database"
},
@@ -12,6 +12,7 @@
"title": "In-built SQL editor for when you need greater control",
"text": "Write, save, and execute SQL queries directly on our dashboard, with templates to save you time. Run common queries and even build applications using our growing list of templates.",
"video_url": "videos/tabSqlEditor.mp4",
+ "youtube_id": "Hch1mZPZ53A",
"cta": "Explore SQL Editor",
"url": "/database"
},
@@ -20,6 +21,7 @@
"title": "User management as straight-forward as it can be",
"text": "Easily manage your users with Supabase Auth, with email logins, magic links, and third-party logins. Create complex access policies with SQL rules to fit your unique business needs.",
"video_url": "videos/tabAuthRules.mp4",
+ "youtube_id": "vP319FCIZ6Y",
"cta": "Explore Auth",
"url": "/auth"
}