Skip to content

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

update carousel images and use Next/Image

Jonathan Summers-Muirffb96c78c785
diff --git a/www/components/Carousels/ImageCarousel.tsx b/www/components/Carousels/ImageCarousel.tsx
index 8f6c1481371..81e2d14fd0b 100644
--- a/www/components/Carousels/ImageCarousel.tsx
+++ b/www/components/Carousels/ImageCarousel.tsx
@@ -10,6 +10,7 @@ import 'swiper/swiper.min.css'
import ImageCarouselStyles from './ImageCarousel.module.css'
import Link from 'next/link'
+import Image from 'next/image'
interface Content {
title: string
@@ -106,7 +107,14 @@ function ImageCarousel(props: ImageCarouselProps) {
{props.content.map((content: Content, i: number) => {
return (
<SwiperSlide key={i}>
- {content.img_url && <img src={`${basePath}${content.img_url}`} />}
+ {content.img_url && (
+ <Image
+ src={`${basePath}${content.img_url}`}
+ layout="responsive"
+ width="1460"
+ height="960"
+ />
+ )}
{content.video_url && (
<video
src={`${basePath}/${content.video_url}`}
diff --git a/www/pages/database/Database.tsx b/www/pages/database/Database.tsx
index 818a28c6858..8dd36da1925 100644
--- a/www/pages/database/Database.tsx
+++ b/www/pages/database/Database.tsx
@@ -15,6 +15,7 @@ import SqlViewCarouselData from 'data/products/database/sql-view-carousel.json'
import TableViewCarouselData from 'data/products/database/table-view-carousel.json'
import Solutions from 'data/Solutions.json'
import { NextSeo } from 'next-seo'
+import Image from 'next/image'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useState } from 'react'
@@ -84,16 +85,24 @@ function Database() {
'PostgreSQL is one of the worlds most scalable databases.',
]}
image={[
- <img
- key={'database-header-img--light'}
- className="w-full header--light block"
- src={`${basePath}/images/product/database/header--light-2.png`}
- />,
- <img
- key={'database-header-img--dark'}
- className="w-full header--dark mr-0 dark:block"
- src={`${basePath}/images/product/database/header--dark-2.png`}
- />,
+ <div className="w-full header--light block">
+ <Image
+ src={`${basePath}/images/product/database/header--light-2.png`}
+ alt="database header"
+ layout="responsive"
+ width="720"
+ height="520"
+ />
+ </div>,
+ <div className="w-full header--dark mr-0 dark:block">
+ <Image
+ src={`${basePath}/images/product/database/header--dark-2.png`}
+ alt="database header"
+ layout="responsive"
+ width="720"
+ height="520"
+ />
+ </div>,
]}
/>
@@ -212,7 +221,7 @@ function Database() {
footer={[
<TweetCard
handle="@Elsolo244"
- img_url="https://pbs.twimg.com/profile_images/2486328968/v6citnk33y2wpeyzrq05_400x400.jpeg"
+ img_url={`${basePath}/images/twitter-profiles/v6citnk33y2wpeyzrq05_400x400.jpeg`}
quote="Where has
@supabase_io
been all my life? 😍"
@@ -228,7 +237,7 @@ function Database() {
footer={[
<TweetCard
handle="@jim_bisenius"
- img_url="https://pbs.twimg.com/profile_images/1372987165869760513/rLgwUZSB_400x400.jpg"
+ img_url={`${basePath}/images/twitter-profiles/rLgwUZSB_400x400.jpg`}
quote="@MongoDB or @MySQL?!?! Please, let me introduce you to @supabase_io and the wonderful world of @PostgreSQL before it's too late!!"
/>,
]}
@@ -271,13 +280,13 @@ function Database() {
</Space>
</div>
<div className="col-span-12 lg:col-span-6 xl:col-span-10 hidden xl:block">
- <TweetCard
+ {/* <TweetCard
handle="@eunjae_lee"
img_url="https://pbs.twimg.com/profile_images/1188191474401320965/eGjSYbQd_400x400.jpg"
quote="So they just help me use @PostgreSQL better. They don't try to invent a wheel and trap me
in it. Whereas they provide a good abstraction overall, they also provide a raw access to
the database."
- />
+ /> */}
</div>
</div>,
]}
diff --git a/www/public/images/product/database/sql-view/export.png b/www/public/images/product/database/sql-view/export.png
index 7015d4d2628..d4fb4275889 100644
Binary files a/www/public/images/product/database/sql-view/export.png and b/www/public/images/product/database/sql-view/export.png differ
diff --git a/www/public/images/product/database/sql-view/favourites.png b/www/public/images/product/database/sql-view/favourites.png
index 6b71fa63d6b..180e90f58e3 100644
Binary files a/www/public/images/product/database/sql-view/favourites.png and b/www/public/images/product/database/sql-view/favourites.png differ
diff --git a/www/public/images/product/database/sql-view/manaco-editor.png b/www/public/images/product/database/sql-view/manaco-editor.png
index 7958a10f06f..7079e06c895 100644
Binary files a/www/public/images/product/database/sql-view/manaco-editor.png and b/www/public/images/product/database/sql-view/manaco-editor.png differ
diff --git a/www/public/images/product/database/sql-view/sql-editor.png b/www/public/images/product/database/sql-view/sql-editor.png
index 47382ceb993..afef41ce8bb 100644
Binary files a/www/public/images/product/database/sql-view/sql-editor.png and b/www/public/images/product/database/sql-view/sql-editor.png differ
diff --git a/www/public/images/product/database/table-view/create-table.png b/www/public/images/product/database/table-view/create-table.png
index 49877a12c18..d959294d972 100644
Binary files a/www/public/images/product/database/table-view/create-table.png and b/www/public/images/product/database/table-view/create-table.png differ
diff --git a/www/public/images/product/database/table-view/export.png b/www/public/images/product/database/table-view/export.png
index 8c991839519..e8d87d59924 100644
Binary files a/www/public/images/product/database/table-view/export.png and b/www/public/images/product/database/table-view/export.png differ
diff --git a/www/public/images/product/database/table-view/foreign-keys.png b/www/public/images/product/database/table-view/foreign-keys.png
index ca5b82aba22..bc508524e53 100644
Binary files a/www/public/images/product/database/table-view/foreign-keys.png and b/www/public/images/product/database/table-view/foreign-keys.png differ
diff --git a/www/public/images/product/database/table-view/spreadsheet-interface.png b/www/public/images/product/database/table-view/spreadsheet-interface.png
index a5e23ad7be2..f9d520ce402 100644
Binary files a/www/public/images/product/database/table-view/spreadsheet-interface.png and b/www/public/images/product/database/table-view/spreadsheet-interface.png differ
diff --git a/www/public/images/product/database/table-view/test.png b/www/public/images/product/database/table-view/test.png
deleted file mode 100644
index 8cf8c26a2c0..00000000000
Binary files a/www/public/images/product/database/table-view/test.png and /dev/null differ