The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: added scroll arrows to homepage twitter section
Jonathan Summers-Muiree72da63da66
diff --git a/www/components/AuthWidget/AuthComponentExample.tsx b/www/components/AuthWidget/AuthComponentExample.tsxindex 690ed397654..106d30c9e9c 100644--- a/www/components/AuthWidget/AuthComponentExample.tsx+++ b/www/components/AuthWidget/AuthComponentExample.tsx@@ -62,7 +62,7 @@ function AuthComponentExample() {initialSlide={0}spaceBetween={0}slidesPerView={1}- speed={400}+ speed={300}autoHeight={true}allowTouchMove={false}>diff --git a/www/components/BuiltWithSupabase/index.tsx b/www/components/BuiltWithSupabase/index.tsxindex 084857f29bc..222ed94f876 100644--- a/www/components/BuiltWithSupabase/index.tsx+++ b/www/components/BuiltWithSupabase/index.tsx@@ -42,34 +42,14 @@ const BuiltExamples = () => {<div className="grid grid-cols-12 gap-5 mt-16">{Examples.slice(0, 6).map((example, i) => {return (- <div className="col-span-12 lg:col-span-6 xl:col-span-4">+ <div+ className={`col-span-12 lg:col-span-6 xl:col-span-4 ${i > 2 && `sm:hidden lg:block`}`}+ ><ExampleCard {...example} /></div>)})}</div>-- {/* <div className="mt-12 max-w-lg mx-auto grid gap-5 lg:grid-cols-3 lg:max-w-none">- {ProjectExamples.map((example: any, idx: number) => (- <a href={example.url}>- <Card- key={`example_${idx}`}- hoverable- cover={<img src={`${basePath}/${example.imgUrl}`} className="h-64 object-cover" />}- >- <Space className="justify-between h-40" direction="vertical">- <div>- <Typography.Text small type="secondary">- Project example- </Typography.Text>- <Typography.Title level={3}>{example.title}</Typography.Title>- </div>- <Typography.Text type="default">{example.description}</Typography.Text>- </Space>- </Card>- </a>- ))}- </div> */}</SectionContainer>)}diff --git a/www/components/Carousels/ImageCarousel.tsx b/www/components/Carousels/ImageCarousel.tsxindex 28f4f23e37e..8f350d2652b 100644--- a/www/components/Carousels/ImageCarousel.tsx+++ b/www/components/Carousels/ImageCarousel.tsx@@ -96,7 +96,7 @@ function ImageCarousel(props: ImageCarouselProps) {initialSlide={0}spaceBetween={0}slidesPerView={1}- speed={400}+ speed={300}autoHeight={true}allowTouchMove={false}>@@ -147,7 +147,7 @@ function ImageCarousel(props: ImageCarouselProps) {// @ts-ignoreonSwiper={setSwiperDetails}initialSlide={0}- speed={400}+ speed={300}allowTouchMove={false}autoHeight={true}>diff --git a/www/components/Carousels/SplitCodeBlockCarousel.tsx b/www/components/Carousels/SplitCodeBlockCarousel.tsxindex 6bebca92e3d..c731adf2f40 100644--- a/www/components/Carousels/SplitCodeBlockCarousel.tsx+++ b/www/components/Carousels/SplitCodeBlockCarousel.tsx@@ -83,7 +83,7 @@ function SplitCodeBlockCarousel(props: SplitCodeBlockCarousel) {initialSlide={apiSwiperActiveIndex}spaceBetween={0}slidesPerView={1}- speed={400}+ speed={300}autoHeight={true}allowTouchMove={false}>@@ -108,7 +108,7 @@ function SplitCodeBlockCarousel(props: SplitCodeBlockCarousel) {slidesPerView={1}direction="horizontal"// style={{ overflow: 'hidden' }}- speed={400}+ speed={300}allowTouchMove={false}>{props.content.map((extension, i) => {diff --git a/www/components/MadeForDevelopers/index.tsx b/www/components/MadeForDevelopers/index.tsxindex 7a230919eb5..086bf0c9892 100644--- a/www/components/MadeForDevelopers/index.tsx+++ b/www/components/MadeForDevelopers/index.tsx@@ -11,6 +11,8 @@ const MadeForDevelopers = () => {return (<SectionContainer className="pb-0"><APISection+ autoHeight={true}+ size="large"title={[<span>Instant APIs@@ -25,7 +27,6 @@ const MadeForDevelopers = () => {]}// @ts-ignorecontent={CodeExamples}- size="small"footer={[<dl className="grid grid-cols-12 gap-8">{DeveloperFeatures.map((feature: any, idx: number) => {diff --git a/www/components/Sections/APISection.tsx b/www/components/Sections/APISection.tsxindex 5be568bc6fc..0ac98cd4883 100644--- a/www/components/Sections/APISection.tsx+++ b/www/components/Sections/APISection.tsx@@ -16,6 +16,7 @@ interface Props {title: string | React.ReactNodefooter?: React.ReactNodetext?: React.ReactNode+ autoHeight?: boolean}function APISection(props: Props) {@@ -60,8 +61,9 @@ function APISection(props: Props) {initialSlide={apiSwiperActiveIndex}spaceBetween={0}slidesPerView={1}- speed={400}+ speed={300}allowTouchMove={false}+ autoHeight={props.autoHeight ? props.autoHeight : false}>{props.content &&props.content.map((content: Example, i) => (diff --git a/www/components/Sections/TwitterSocialProof.tsx b/www/components/Sections/TwitterSocialProof.tsxindex d20531953c3..2f454f91083 100644--- a/www/components/Sections/TwitterSocialProof.tsx+++ b/www/components/Sections/TwitterSocialProof.tsx@@ -1,13 +1,39 @@+import { useRef } from 'react'+import { useRouter } from 'next/router'+import { Swiper, SwiperSlide } from 'swiper/react'-import { Button, Typography, IconMessageCircle, Space } from '@supabase/ui'+// import Swiper core and required modules+import SwiperCore, { Navigation, Pagination } from 'swiper'++import {+ Button,+ Typography,+ IconMessageCircle,+ Space,+ IconAlignLeft,+ IconArrowLeft,+ IconArrowRight,+} from '@supabase/ui'import Examples from '../../data/tweets/Tweets.json'import TweetCard from '../TweetCard'+// Import Swiper styles+import 'swiper/swiper.min.css'+import 'swiper/components/navigation/navigation.min.css'+import 'swiper/components/pagination/pagination.min.css'++// install Swiper modules+SwiperCore.use([Navigation, Pagination])+function TwitterSocialProof() {// base path for imagesconst { basePath } = useRouter()++ const prevRef = useRef(null)+ const nextRef = useRef(null)+return (<><div className="grid grid-cols-12">@@ -28,24 +54,37 @@ function TwitterSocialProof() {</Typography.Text></div></div>-<div className="mt-6">- <div className={'-mr-32 -ml-32'}>+ <div className={'lg:-mr-32 lg:-ml-32'}><Swiperstyle={{ overflow: 'visible' }}initialSlide={3}spaceBetween={0}slidesPerView={4}- autoplay={{- delay: 2400,+ speed={300}+ loop+ navigation={{+ prevEl: prevRef.current ? prevRef.current : undefined,+ nextEl: nextRef.current ? nextRef.current : undefined,+ }}+ onInit={(swiper: any) => {+ swiper.params.navigation.prevEl = prevRef.current+ swiper.params.navigation.nextEl = nextRef.current+ swiper.navigation.update()+ }}+ breakpoints={{+ 320: {+ slidesPerView: 1,+ },+ 991: {+ slidesPerView: 3,+ },}}- loop={true}- speed={2400}>{Examples.map((tweet: any, i: number) => {return (<SwiperSlide>- <div className="mr-3 ml-3 my-8 ">+ <div className="mr-3 ml-3 cursor-move"><TweetCardkey={i}handle={`@${tweet.handle}`}@@ -56,6 +95,18 @@ function TwitterSocialProof() {</SwiperSlide>)})}+ <div className="container mx-auto hidden md:flex flex-row justify-between mt-3">+ <div ref={prevRef} className="cursor-pointer">+ <Typography.Text>+ <IconArrowLeft />+ </Typography.Text>+ </div>+ <div ref={nextRef} className="cursor-pointer">+ <Typography.Text>+ <IconArrowRight />+ </Typography.Text>+ </div>+ </div></Swiper></div></div>diff --git a/www/data/home/api-examples.js b/www/data/home/api-examples.jsindex 1bbf73cd983..2785259c96a 100644--- a/www/data/home/api-examples.js+++ b/www/data/home/api-examples.js@@ -41,7 +41,7 @@ const realtime = supabaselang: 'js',title: 'Read a record',description: 'Get all public rooms and their messages',- code: `m '@supabase/supabase-js'+ code: `import '@supabase/supabase-js'// Initializeconst supabaseUrl = 'https://chat-room.supabase.co'diff --git a/www/pages/database/Database.tsx b/www/pages/database/Database.tsxindex e9c5f7b6857..34469901d24 100644--- a/www/pages/database/Database.tsx+++ b/www/pages/database/Database.tsx@@ -180,7 +180,7 @@ function Database() {initialSlide={0}spaceBetween={0}slidesPerView={1}- speed={400}+ speed={300}allowTouchMove={false}><div className="grid grid-cols-12">