The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
more links
Jonathan Summers-Muireac59951aa5d
diff --git a/www/components/BuiltWithSupabase/index.tsx b/www/components/BuiltWithSupabase/index.tsxindex c6cc498ae74..f77d715387a 100644--- a/www/components/BuiltWithSupabase/index.tsx+++ b/www/components/BuiltWithSupabase/index.tsx@@ -23,7 +23,7 @@ const BuiltExamples = () => {as="https://supabase.io/docs/guides/examples"><a>- <Button type="outline">View all examples</Button>+ <Button type="default">View all examples</Button></a></Link><Link@@ -31,7 +31,7 @@ const BuiltExamples = () => {as="https://github.com/supabase/supabase/tree/master/examples"><a>- <Button type="outline" icon={<IconGitHub />}>+ <Button type="default" icon={<IconGitHub />}>Official github library</Button></a>diff --git a/www/components/Sections/APISection.tsx b/www/components/Sections/APISection.tsxindex 0ac98cd4883..2508aa36a59 100644--- a/www/components/Sections/APISection.tsx+++ b/www/components/Sections/APISection.tsx@@ -3,6 +3,7 @@ import { useState } from 'react'import { Button, IconArrowUpRight, Tabs, Typography } from '@supabase/ui'import { Swiper, SwiperSlide } from 'swiper/react'import CodeBlock from '../CodeBlock/CodeBlock'+import Link from 'next/link'interface Example {lang: 'js' | 'py' | 'sql'@@ -17,6 +18,7 @@ interface Props {footer?: React.ReactNodetext?: React.ReactNodeautoHeight?: boolean+ documentation_link?: string}function APISection(props: Props) {@@ -35,9 +37,15 @@ function APISection(props: Props) {<div className="col-span-12 lg:col-span-5 xl:col-span-5 pb-8"><Typography.Title level={2}>{props.title}</Typography.Title>{props.text}- <Button size="small" className="mt-4" type="default" icon={<IconArrowUpRight />}>- Expore documentation- </Button>+ {props.documentation_link && (+ <Link href={props.documentation_link} as={props.documentation_link}>+ <a>+ <Button size="small" className="mt-4" type="default" icon={<IconArrowUpRight />}>+ Expore documentation+ </Button>+ </a>+ </Link>+ )}{props.footer && <div className="py-8">{props.footer}</div>}</div><div className="col-span-12 lg:col-span-7 xl:col-span-6 xl:col-start-7 sbui-tabs--alt">diff --git a/www/components/Sections/GithubExamples.tsx b/www/components/Sections/GithubExamples.tsxindex 87fc1682d44..517b9bcafdc 100644--- a/www/components/Sections/GithubExamples.tsx+++ b/www/components/Sections/GithubExamples.tsx@@ -1,15 +1,35 @@+import { useRef } from 'react'+import { useRouter } from 'next/router'+import { Swiper, SwiperSlide } from 'swiper/react'+// import Swiper core and required modules+import SwiperCore, { Navigation, Pagination } from 'swiper'-import SectionContainer from '../Layouts/SectionContainer'-import { Typography, IconGitHub } from '@supabase/ui'+import Link from 'next/link'+import {+ Button,+ Typography,+ IconGitHub,+ IconArrowLeft,+ IconArrowRight,+ Space,+ IconBookOpen,+} from '@supabase/ui'import Examples from '../../data/Examples.json'import ExampleCard from '../ExampleCard'+// install Swiper modules+SwiperCore.use([Navigation, Pagination])+function GithubExamples() {// base path for imagesconst { basePath } = useRouter()++ const prevRef = useRef(null)+ const nextRef = useRef(null)+return (<><div className="grid grid-cols-12">@@ -18,12 +38,47 @@ function GithubExamples() {Community driven examples, libaries and guides</Typography.Title><Typography.Text>- <p className="text-lg">Type definitions for both server side and client side </p>+ <p className="text-lg">+ The supabase team is overwhelmed with the support from early advocates, contributors,+ and champions.+ <br />+ Supabase would not be possible without them.+ </p></Typography.Text>+ <Space className="justify-center">+ <Link+ href="https://supabase.io/docs/guides/examples#guides"+ as="https://supabase.io/docs/guides/examples#guides"+ >+ <a>+ <Button type="default" icon={<IconBookOpen />}>+ View guides+ </Button>+ </a>+ </Link>+ <Link+ href="https://supabase.io/docs/guides/examples"+ as="https://supabase.io/docs/guides/examples"+ >+ <a>+ <Button type="default">View all examples</Button>+ </a>+ </Link>+ <Link+ href="https://github.com/supabase/supabase/tree/master/examples"+ as="https://github.com/supabase/supabase/tree/master/examples"+ >+ <a>+ <Button type="default" icon={<IconGitHub />}>+ Official GitHub library+ </Button>+ </a>+ </Link>+ </Space></div></div>- <div className="mt-16">+ <div className="mt-4"><div className={'-mr-32 -ml-32'}><Swiperstyle={{ overflow: 'visible' }}@@ -34,7 +89,26 @@ function GithubExamples() {delay: 2400,}}loop={true}- speed={2400}+ speed={300}+ navigation={{+ prevEl: prevRef.current,+ nextEl: nextRef.current,+ // 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,+ },+ }}>{Object.values(Examples).map((example: any, i: number) => {return (@@ -45,6 +119,18 @@ function GithubExamples() {</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/components/Sections/ProductHeader.tsx b/www/components/Sections/ProductHeader.tsxindex b350d25240f..847d91bbed6 100644--- a/www/components/Sections/ProductHeader.tsx+++ b/www/components/Sections/ProductHeader.tsx@@ -1,4 +1,5 @@import { Button, IconBookOpen, IconKey, Space, Typography } from '@supabase/ui'+import Link from 'next/link'import ProductIcon from '../ProductIcon'type subheader = string@@ -9,6 +10,7 @@ interface Types {title?: stringimage?: React.ReactNodefooter?: React.ReactNode+ documentation_url?: string}const ProductHeader = (props: Types) => (@@ -34,10 +36,20 @@ const ProductHeader = (props: Types) => (</Typography.Text>)}<Space className="mt-12">- <Button size="medium">Start a project</Button>- <Button type="text" size="medium" icon={<IconBookOpen />}>- See documentation- </Button>+ <Link href="https://app.supabase.io/api/login" as="https://app.supabase.io/api/login">+ <a>+ <Button size="medium">Start a project</Button>+ </a>+ </Link>+ {props.documentation_url && (+ <Link href={props.documentation_url} as={props.documentation_url}>+ <a>+ <Button type="text" size="medium" icon={<IconBookOpen />}>+ See documentation+ </Button>+ </a>+ </Link>+ )}</Space>{props.footer && <div className="mb-4">{props.footer}</div>}</div>diff --git a/www/components/Sections/TwitterSocialProof.tsx b/www/components/Sections/TwitterSocialProof.tsxindex 9a09d35ef6a..12e52439900 100644--- a/www/components/Sections/TwitterSocialProof.tsx+++ b/www/components/Sections/TwitterSocialProof.tsx@@ -42,7 +42,7 @@ function TwitterSocialProof() {<Typography.Title level={2}>Join the community</Typography.Title><Typography.Text><p className="text-lg">- The Supabase team is overwhelmed with the support from early advocates, contributors,+ The supabase team is overwhelmed with the support from early advocates, contributors,and champions.<br />Supabase would not be possible without them.diff --git a/www/pages/auth/Auth.tsx b/www/pages/auth/Auth.tsxindex c437aa316ae..8ed61443f8e 100644--- a/www/pages/auth/Auth.tsx+++ b/www/pages/auth/Auth.tsx@@ -75,6 +75,7 @@ function AuthPage() {src={`${basePath}/images/product/auth/header--dark.png`}/>,]}+ documentation_url={'https://supabase.io/docs/guides/auth'}/><SectionContainer>@@ -177,6 +178,7 @@ function AuthPage() {</div></div>,]}+ documentation_link={'https://supabase.io/docs/guides/auth'}/></SectionContainer>