The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: mobile fixes
Jonathan Summers-Muir6f47846dcdd4
diff --git a/www/components/AuthWidget/AuthComponentExample.tsx b/www/components/AuthWidget/AuthComponentExample.tsxindex 106d30c9e9c..51e64d286aa 100644--- a/www/components/AuthWidget/AuthComponentExample.tsx+++ b/www/components/AuthWidget/AuthComponentExample.tsx@@ -95,7 +95,6 @@ function AuthComponentExample() {<SwiperSlide key={2}><div className="p-8"><CodeBlock- hideCopychildren={`import React, { useState } from 'react'import { Auth, Typography, Button } from '@supabase/ui'import { createClient } from '@supabase/supabase-js'diff --git a/www/components/BuiltWithSupabase/index.tsx b/www/components/BuiltWithSupabase/index.tsxindex f77d715387a..ddae873af7a 100644--- a/www/components/BuiltWithSupabase/index.tsx+++ b/www/components/BuiltWithSupabase/index.tsx@@ -12,11 +12,11 @@ import Link from 'next/link'const BuiltExamples = () => {const { basePath } = useRouter()return (- <SectionContainer className="pb-16">+ <SectionContainer className="xl:pt-32"><div className="text-center"><Typography.Title level={2}>What can you build with supabase?</Typography.Title><Typography.Text>- <p className="text-lg">There's many example apps and starter projects to get going</p>+ <p className="lg:text-lg">There's many example apps and starter projects to get going</p><Space className="justify-center"><Linkhref="https://supabase.io/docs/guides/examples"diff --git a/www/components/Carousels/ImageCarousel.tsx b/www/components/Carousels/ImageCarousel.tsxindex 5ba5b1f262c..f5cfd6b64fb 100644--- a/www/components/Carousels/ImageCarousel.tsx+++ b/www/components/Carousels/ImageCarousel.tsx@@ -159,11 +159,11 @@ function ImageCarousel(props: ImageCarouselProps) {<SwiperSlide key={i}><div className="bg-white dark:bg-gray-800"><Typography.Title level={4}>{content.title}</Typography.Title>+ <p className="text-base">{content.text}</p>{content.url && (<Typography.Text><Link href={content.url} as={content.url}><a>- <p className="text-base">{content.text}</p><ButtonclassName="mb-8"type="outline"diff --git a/www/components/Carousels/SplitCodeBlockCarousel.tsx b/www/components/Carousels/SplitCodeBlockCarousel.tsxindex c731adf2f40..a31c0e91b83 100644--- a/www/components/Carousels/SplitCodeBlockCarousel.tsx+++ b/www/components/Carousels/SplitCodeBlockCarousel.tsx@@ -8,6 +8,7 @@ import CodeBlock from '../CodeBlock/CodeBlock'// Import Swiper stylesimport 'swiper/swiper.min.css'import Badge from '../Badge'+import Link from 'next/link'interface Content {lang: 'js' | 'py' | 'sql'@@ -124,9 +125,15 @@ function SplitCodeBlockCarousel(props: SplitCodeBlockCarousel) {<p>{extension.detail_text}</p></Typography.Text><Space className="justify-between">- <Typography.Text>- <Button type="outline">View documentation</Button>- </Typography.Text>+ {extension.url && (+ <Link href={extension.url} as={extension.url}>+ <a>+ <Typography.Text>+ <Button type="outline">View documentation</Button>+ </Typography.Text>+ </a>+ </Link>+ )}<div><Typography.Text type="secondary" className="mr-4">{extension.badges_label}diff --git a/www/components/CodeBlock/CodeBlock.tsx b/www/components/CodeBlock/CodeBlock.tsxindex ebc153a05e2..c18b804d6be 100644--- a/www/components/CodeBlock/CodeBlock.tsx+++ b/www/components/CodeBlock/CodeBlock.tsx@@ -30,7 +30,8 @@ function CodeBlock(props: Props) {SyntaxHighlighter.registerLanguage('py', py)SyntaxHighlighter.registerLanguage('sql', sql)- const large = props.size === 'large' ? true : false+ // const large = props.size === 'large' ? true : false+ const large = falsereturn (<div className="relative">diff --git a/www/components/Features/index.tsx b/www/components/Features/index.tsxindex fb5dc7d85df..034a2be6fa0 100644--- a/www/components/Features/index.tsx+++ b/www/components/Features/index.tsx@@ -10,7 +10,7 @@ const Features = () => {const IconSections = Object.values(Solutions).map((solution: any) => {const { name, description, icon, label, url } = solutionreturn (- <div key={name} className="mb-16">+ <div key={name} className="mb-10 md:mb-0"><div className="flex items-center"><ProductIcon icon={icon} /><dt className="flex flex-row xl:flex-col ml-4">@@ -37,7 +37,7 @@ const Features = () => {<Typography.Title level={2} className="mb-16">Build faster and focus on your products</Typography.Title>- <dl className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 md:gap-16 lg:gap-x-8 xl:gap-x-24">+ <dl className="grid grid-cols-1 sm:grid-cols-2 gap-y-4 md:grid-cols-2 lg:grid-cols-4 md:gap-16 lg:gap-x-8 xl:gap-x-24">{IconSections}</dl></SectionContainer>diff --git a/www/components/FloatingIcons/FloatingIcons.tsx b/www/components/FloatingIcons/FloatingIcons.tsxindex e7bda55ec36..d5d95f60697 100644--- a/www/components/FloatingIcons/FloatingIcons.tsx+++ b/www/components/FloatingIcons/FloatingIcons.tsx@@ -7,7 +7,7 @@ function FloatingIcons() {const { basePath } = useRouter()return (- <div className="absolute w-full h-full">+ <div className="absolute w-full h-full hidden lg:block"><div className="container max-w-screen-2xl h-full relative mx-auto"><imgclassName={`${Styles['icon-react-one']}`}diff --git a/www/components/Hero.tsx b/www/components/Hero.tsxindex f590868a5b0..81e51b5c273 100644--- a/www/components/Hero.tsx+++ b/www/components/Hero.tsx@@ -7,7 +7,7 @@ const Hero = () => {const { basePath } = useRouter()return (- <div className="">+ <div className="overflow-hidden"><SectionContainer className="pb-0 pt-24"><div className="relative"><main className="">diff --git a/www/components/Layouts/SectionContainer.tsx b/www/components/Layouts/SectionContainer.tsxindex 93807d0bfe7..4f681f5bc05 100644--- a/www/components/Layouts/SectionContainer.tsx+++ b/www/components/Layouts/SectionContainer.tsx@@ -4,7 +4,9 @@ interface Props {}const SectionContainer = ({ children, className }: Props) => (- <div className={`container mx-auto px-8 sm:px-16 xl:px-20 relative py-32 ${className}`}>+ <div+ className={`container mx-auto px-6 lg:px-16 xl:px-20 relative py-16 sm:py-18 md:py-24 lg:py-24 ${className}`}+ >{children}</div>)diff --git a/www/components/MadeForDevelopers/index.tsx b/www/components/MadeForDevelopers/index.tsxindex cf14c7b2e14..5761183d99b 100644--- a/www/components/MadeForDevelopers/index.tsx+++ b/www/components/MadeForDevelopers/index.tsx@@ -10,7 +10,7 @@ import TextLink from '../TextLink'const MadeForDevelopers = () => {return (- <SectionContainer className="pb-0">+ <SectionContainer><APISectionautoHeight={true}size="large"@@ -21,7 +21,7 @@ const MadeForDevelopers = () => {</span>,]}text={[- <p className="text-lg">+ <p className="lg:text-lg">We introspect your database to provide APIs instantly. Stop building repetitive CRUDendpoints and focus on your product.</p>,@@ -29,10 +29,10 @@ const MadeForDevelopers = () => {// @ts-ignorecontent={CodeExamples}footer={[- <dl className="grid grid-cols-12 gap-8">+ <dl className="grid gap-y-4 grid-cols-12 md:gap-8">{DeveloperFeatures.map((feature: any, idx: number) => {return (- <div className={'col-span-6 lg:col-span-6'} key={`dev_feature_${idx}`}>+ <div className="col-span-12 md:col-span-6 lg:col-span-6" key={`dev_feature_${idx}`}><div className="lg:mt-5"><dt><FeatureColumn title={feature.name} text={feature.description} />diff --git a/www/components/Nav/index.tsx b/www/components/Nav/index.tsxindex e16402c9654..591fbfd079f 100644--- a/www/components/Nav/index.tsx+++ b/www/components/Nav/index.tsx@@ -237,7 +237,7 @@ const Nav = (props: Props) => {</a></div></div>- <div className="flex items-center sm:space-x-4">+ <div className="hidden lg:flex items-center sm:space-x-4"><a href="https://app.supabase.io/api/login"><Button>Start your project</Button></a>diff --git a/www/components/ProductIcon.tsx b/www/components/ProductIcon.tsxindex 9233c5b8c0d..2ba6ce62f1a 100644--- a/www/components/ProductIcon.tsx+++ b/www/components/ProductIcon.tsx@@ -4,7 +4,7 @@ interface ProductIcon {function ProductIcon({ icon }: ProductIcon) {return (- <div className="inline-flex items-center justify-center rounded-md bg-gray-800 dark:bg-white text-white sm:h-8 sm:w-8">+ <div className="inline-flex items-center justify-center rounded-md bg-gray-800 dark:bg-white text-white h-8 w-8"><svgclassName="h-4 w-4 stroke-white dark:stroke-black"xmlns="http://www.w3.org/2000/svg"diff --git a/www/components/Sections/FeatureSection.tsx b/www/components/Sections/FeatureSection.tsxindex 04c477313ca..87625232fec 100644--- a/www/components/Sections/FeatureSection.tsx+++ b/www/components/Sections/FeatureSection.tsx@@ -9,7 +9,7 @@ const FeatureSection = (props: any) => {</p><Typography.Title level={4}>Write less code</Typography.Title><Typography.Text>- <p className="text-lg">+ <p className="lg:text-lg">Use media in your project without needing to reply on external services or learn newframeworks.</p>@@ -25,7 +25,7 @@ const FeatureSection = (props: any) => {</p><Typography.Title level={4}>Blazing fast</Typography.Title><Typography.Text>- <p className="text-lg">+ <p className="lg:text-lg">Use media in your project without needing to reply on external services or learn newframeworks.</p>@@ -41,7 +41,7 @@ const FeatureSection = (props: any) => {</p><Typography.Title level={4}>Dependable</Typography.Title><Typography.Text>- <p className="text-lg">+ <p className="lg:text-lg">Use media in your project without needing to reply on external services or learn newframeworks.</p>diff --git a/www/components/Sections/GithubExamples.tsx b/www/components/Sections/GithubExamples.tsxindex a1f35a14a76..092ad4caf9a 100644--- a/www/components/Sections/GithubExamples.tsx+++ b/www/components/Sections/GithubExamples.tsx@@ -37,15 +37,14 @@ function GithubExamples() {<Typography.Title level={2}>Community driven examples, libaries and guides</Typography.Title>- <Typography.Text>- <p className="text-lg">+ <Typography.Text className="block mb-6">+ <p className="text-base lg: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>+ <p>Supabase would not be possible without them.</p></Typography.Text>- <Space className="justify-center">+ <div className="flex space-y-1.5 flex-col lg:space-y-0 lg:space-x-1.5 lg:flex-row justify-center"><Linkhref="https://supabase.io/docs/guides/examples#guides"as="https://supabase.io/docs/guides/examples#guides"@@ -74,12 +73,12 @@ function GithubExamples() {</Button></a></Link>- </Space>+ </div></div></div><div className="mt-4">- <div className={'-mr-32 -ml-32'}>+ <div className={'lg:-mr-32 lg:-ml-32'}><Swiperstyle={{ overflow: 'visible' }}initialSlide={3}@@ -105,11 +104,14 @@ function GithubExamples() {320: {slidesPerView: 1,},+ 720: {+ slidesPerView: 2,+ },920: {slidesPerView: 3,},1024: {- slidesPerView: 3,+ slidesPerView: 4,},}}>diff --git a/www/components/Sections/ProductHeader.tsx b/www/components/Sections/ProductHeader.tsxindex 847d91bbed6..266ffea5b35 100644--- a/www/components/Sections/ProductHeader.tsx+++ b/www/components/Sections/ProductHeader.tsx@@ -14,7 +14,7 @@ interface Types {}const ProductHeader = (props: Types) => (- <div className="container mx-auto px-8 sm:px-16 xl:px-20 relative pt-32 pb-0">+ <div className="container mx-auto px-6 sm:px-16 xl:px-20 relative pt-16 lg:pt-32 pb-0"><div className="grid grid-cols-12"><div className="col-span-12 lg:col-span-5">{props.icon || props.title ? (@@ -31,11 +31,11 @@ const ProductHeader = (props: Types) => ({props.subheader && (<Typography.Text>{props.subheader.map((subheader) => {- return <p className="text-lg">{subheader}</p>+ return <p className="lg:text-lg">{subheader}</p>})}</Typography.Text>)}- <Space className="mt-12">+ <div className="mt-12 flex flex-row md:flex-row md:items-center"><Link href="https://app.supabase.io/api/login" as="https://app.supabase.io/api/login"><a><Button size="medium">Start a project</Button>@@ -50,7 +50,7 @@ const ProductHeader = (props: Types) => (</a></Link>)}- </Space>+ </div>{props.footer && <div className="mb-4">{props.footer}</div>}</div>{props.image && (diff --git a/www/components/Sections/TwitterSocialProof.tsx b/www/components/Sections/TwitterSocialProof.tsxindex a4606d6872d..5a6e1977880 100644--- a/www/components/Sections/TwitterSocialProof.tsx+++ b/www/components/Sections/TwitterSocialProof.tsx@@ -41,13 +41,13 @@ function TwitterSocialProof() {<div className="col-span-12 text-center"><Typography.Title level={2}>Join the community</Typography.Title><Typography.Text>- <p className="text-lg">+ <p className="lg: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>- <Space className="justify-center my-4">+ <div className="my-4"><Linkhref={'https://github.com/supabase/supabase/discussions'}as={'https://github.com/supabase/supabase/discussions'}@@ -58,7 +58,7 @@ function TwitterSocialProof() {</Button></a></Link>- </Space>+ </div></Typography.Text></div></div>@@ -87,11 +87,17 @@ function TwitterSocialProof() {320: {slidesPerView: 1,},+ 720: {+ slidesPerView: 2,+ },920: {slidesPerView: 3,},1024: {- slidesPerView: 3,+ slidesPerView: 4,+ },+ 1208: {+ slidesPerView: 5,},}}>diff --git a/www/data/products/auth/auth-sql-rules-examples.js b/www/data/products/auth/auth-sql-rules-examples.jsindex d9c75c0ef32..04d24daecf0 100644--- a/www/data/products/auth/auth-sql-rules-examples.js+++ b/www/data/products/auth/auth-sql-rules-examples.js@@ -1,13 +1,12 @@export default [{lang: 'sql',- title: 'Allow anyone to view',- detail_title: 'Spatial and Geographic objects for PostgreSQL',- detail_text:- 'PostGIS is a spatial database extender for PostgreSQL object-relational database. It adds support for geographic objects allowing location queries to be run in SQL.',- badges_label: 'Extensions used:',- badges: ['PostGIS'],- url: '',+ title: 'Allow read access',+ detail_title: 'Public profiles are viewable by everyone',+ detail_text: 'Create a policy that allows public access to a table',+ badges_label: '',+ badges: [],+ url: 'https://supabase.io/docs/guides/auth#allow-read-access',code: `create table profiles (id serial primary key,username text unique,@@ -24,37 +23,38 @@ create policy "Public profiles are viewable by everyone."},{lang: 'sql',- title: 'Users can only update their own profiles',- detail_title: 'Spatial and Geographic objects for PostgreSQL',+ title: 'Restrict updates',+ detail_title: 'Users can update their own profiles',detail_text:- 'PostGIS is a spatial database extender for PostgreSQL object-relational database. It adds support for geographic objects allowing location queries to be run in SQL.',- badges_label: 'Extensions used:',- badges: ['PostGIS'],- url: '',- code: `create table profiles (- id serial primary key,- username text unique,- avatar_url-);--alter table profiles- enable row level security;--create policy "Users can update their own profiles."- on profiles for update using (- auth.uid() = id- );`,+ 'Create a policy that only allows a user to update rows that match their unique ID',+ badges_label: '',+ badges: [],+ url: 'https://supabase.io/docs/guides/auth#restrict-updates',+ code: `-- 1. Create table+ create table profiles (+ id uuid references auth.users,+ avatar_url text+ );++ -- 2. Enable RLS+ alter table profiles+ enable row level security;++ -- 3. Create Policy+ create policy "Users can update their own profiles."+ on profiles for update using (+ auth.uid() = id+ );`,},{lang: 'sql',- title: 'Detailed joins',- detail_title:- 'Advance joins with many to many tables Allow any team member to update the team name',+ title: 'Policies with joins',+ detail_title: 'Team members can update team details',detail_text:- 'PostGIS is a spatial database extender for PostgreSQL object-relational database. It adds support for geographic objects allowing location queries to be run in SQL.',- badges_label: 'Extensions used:',- badges: ['PostGIS'],- url: '',+ 'Create a policy that allows for team members to update only rows which match their team ID.',+ badges_label: '',+ badges: [],+ url: 'https://supabase.io/docs/guides/auth#policies-with-joins',code: `create table teams (id serial primary key,namediff --git a/www/data/products/database/sql-view-carousel.json b/www/data/products/database/sql-view-carousel.jsonindex 2c5d72ff5cd..06c25ad6b19 100644--- a/www/data/products/database/sql-view-carousel.json+++ b/www/data/products/database/sql-view-carousel.json@@ -3,24 +3,28 @@"title": "Full SQL","label": "SQL Editor built in","img_url": "/images/product/database/sql-view/sql-editor.png",- "text": "Create tables, functions, join tables - A full SQL editor built into the dashboard"+ "text": "Create tables, functions, join tables - A full SQL editor built into the dashboard",+ "url": ""},{"title": "Monaco editor","label": "Monaco editor","img_url": "/images/product/database/sql-view/manaco-editor.png",- "text": "Built in manaco editor, with rich validation and autocomplete."+ "text": "Built in manaco editor, with rich validation and autocomplete.",+ "url": ""},{"title": "Favourite queries","label": "Favourite queries","img_url": "/images/product/database/sql-view/favourites.png",- "text": "Save your favourite queries to use again and again."+ "text": "Save your favourite queries to use again and again.",+ "url": ""},{"title": "Export to CSV","label": "Select and Export","img_url": "/images/product/database/sql-view/export.png",- "text": "Any output can be exported into a CSV"+ "text": "Any output can be exported into a CSV",+ "url": ""}]diff --git a/www/data/products/database/table-view-carousel.json b/www/data/products/database/table-view-carousel.jsonindex 86d4b8e9995..0052c051c23 100644--- a/www/data/products/database/table-view-carousel.json+++ b/www/data/products/database/table-view-carousel.json@@ -3,24 +3,28 @@"title": "Edit in the table","label": "Spreadsheet like editing","img_url": "/images/product/database/table-view/spreadsheet-interface.png",- "text": "You can edit your database just like you edit a spreadsheet. Update rows easily by just typing in new data."+ "text": "You can edit your database just like you edit a spreadsheet. Update rows easily by just typing in new data.",+ "url": ""},{"title": "Create table","label": "Create a table","img_url": "/images/product/database/table-view/create-table.png",- "text": "Create tables, columns and rows right in the dashboard. Without the need to use SQL."+ "text": "Create tables, columns and rows right in the dashboard. Without the need to use SQL.",+ "url": ""},{"title": "Foreign keys","label": "Set up foreign keys","img_url": "/images/product/database/table-view/foreign-keys.png",- "text": "Set up columns to use foreign keys, joining your tables together with meaning."+ "text": "Set up columns to use foreign keys, joining your tables together with meaning.",+ "url": ""},{"title": "Export to CSV","label": "Select and Export","img_url": "/images/product/database/table-view/export.png",- "text": "Just pick the rows you want and you can export them into a CSV"+ "text": "Just pick the rows you want and you can export them into a CSV",+ "url": ""}]diff --git a/www/pages/auth/Auth.tsx b/www/pages/auth/Auth.tsxindex 8ed61443f8e..ec7d4357304 100644--- a/www/pages/auth/Auth.tsx+++ b/www/pages/auth/Auth.tsx@@ -39,6 +39,7 @@ import CTABanner from '~/components/CTABanner'import Solutions from 'data/Solutions.json'import AuthComponentExample from '~/components/AuthWidget/AuthComponentExample'+import Link from 'next/link'function AuthPage() {// base path for images@@ -80,7 +81,7 @@ function AuthPage() {<SectionContainer><div className="grid grid-cols-12">- <div className="col-span-3">+ <div className="mb-10 lg:mb-0 col-span-12 lg:col-span-3"><p className="mb-4"><Space><img src={`${basePath}/images/product/auth/google-icon.svg`} width={21} />@@ -104,7 +105,7 @@ function AuthPage() {</p><Typography.Title level={4}>All the social providers</Typography.Title><Typography.Text>- <p className="text-lg">+ <p className="text-base lg:text-lg">We provide all the popular social logins you expect. Google, Facebook, Github,Azure, Gitlab and Bitbucket.</p>@@ -116,25 +117,25 @@ function AuthPage() {</Space></Typography.Text></div>- <div className="col-span-3 col-start-5">+ <div className="mb-10 lg:mb-0 col-span-12 lg:col-span-3 lg:col-start-5"><p className="mb-4"><IconLink /></p><Typography.Title level={4}>Fully integrated</Typography.Title><Typography.Text>- <p className="text-lg">+ <p className="text-base lg:text-lg">Auth built into your project, with no need for external authentication services.</p><p>Use your own custom domains with SMTP settings.</p></Typography.Text></div>- <div className="col-span-3 col-start-9">+ <div className="col-span-12 lg:col-span-3 lg:col-start-9"><p className="mb-4"><IconShield /></p><Typography.Title level={4}>Own your data</Typography.Title><Typography.Text>- <p className="text-lg">+ <p className="text-base lg:text-lg">Keep all your user data in your supabase project so you never have to worry about3rd party privacy issues.</p>@@ -151,25 +152,27 @@ function AuthPage() {content={ApiExamples}size="large"text={[- <p>- An API built from the groud up for server and client side authentication that is fast- to implement.- </p>,- <p>- With powerful library clients coming soon that allow for asset optimasation and image- transformation- </p>,+ <Typography.Text>+ <p className="text-base lg:text-lg">+ An API built from the groud up for server and client side authentication that is+ fast to implement.+ </p>+ <p>+ With powerful library clients coming soon that allow for asset optimasation and+ image transformation+ </p>+ </Typography.Text>,]}footer={[- <div className="grid grid-cols-12 gap-8 lg:gap-0 xl:gap-16 mt-8">- <div className="col-span-6 lg:col-span-12 xl:col-span-4">+ <div className="grid grid-cols-12 md:gap-8 lg:gap-0 xl:gap-16 mt-8">+ <div className="col-span-12 sm:col-span-6 lg:col-span-12 xl:col-span-4"><FeatureColumnicon={<IconBriefcase />}title="Enterprise logins"text="Type definitions for both server side and client side"/></div>- <div className="col-span-6 lg:col-span-12 xl:col-span-4">+ <div className="col-span-12 sm:col-span-6 lg:col-span-12 xl:col-span-4"><FeatureColumnicon={<IconEye />}title="Social login scopes"@@ -202,17 +205,23 @@ function AuthPage() {<div className="grid grid-cols-12 lg:gap-16"><div className="col-span-12 lg:col-span-5 mb-8"><Typography.Title level={2}>No middleware user permission</Typography.Title>- <p className="text-lg">- Restrict user access with row level security, even without prior knowledge of SQL.- Control who can create, edit and delete specific rows in your database.- </p>- <p>- Set up user profiles in your app using methods such as auth.user() so you can spend- more time building an app, rather than user profile forms.- </p>- <Button size="small" type="default" className="mt-4" icon={<IconArrowUpRight />}>- Expore documentation- </Button>+ <Typography.Text>+ <p className="text-base lg:text-lg">+ Restrict user access with row level security, even without prior knowledge of SQL.+ Control who can create, edit and delete specific rows in your database.+ </p>+ <p>+ Set up user profiles in your app using methods such as auth.user() so you can spend+ more time building an app, rather than user profile forms.+ </p>+ </Typography.Text>+ <Link href="https://supabase.io/docs/guides/auth#policy-examples">+ <a>+ <Button size="small" type="default" className="mt-4" icon={<IconArrowUpRight />}>+ Expore documentation+ </Button>+ </a>+ </Link></div><div className="col-span-12 lg:col-span-6 lg:col-start-7"><SplitCodeBlockCarousel@@ -223,7 +232,7 @@ function AuthPage() {</div></SectionContainer>- <div className="container mx-auto px-8 sm:px-16 xl:px-20 relative py-32">+ <SectionContainer><div className="grid grid-cols-12 lg:gap-16"><div className="order-last col-span-12 lg:order-first lg:col-span-6 mt-8 lg:mt-0"><AuthComponentExample />@@ -243,27 +252,34 @@ function AuthPage() {ReactJS Auth Widget</Typography.Title><Typography.Text>- <p className="text-lg">+ <p className="text-base lg:text-lg">Bring authentication to your ReactJS app without coding a single form.</p>- <p className="text-base">+ <p>We provide a ReactJS component that handles all the usual needs for logging in,signing up, magic link and forgot password forms.</p></Typography.Text>- <Button size="small" type="default" className="mt-4" icon={<IconArrowUpRight />}>- Explore documentation- </Button>+ <Link+ href="https://github.com/supabase/ui#using-supabase-ui-auth"+ as="https://github.com/supabase/ui#using-supabase-ui-auth"+ >+ <a>+ <Button size="small" type="default" className="mt-4" icon={<IconArrowUpRight />}>+ Explore documentation+ </Button>+ </a>+ </Link>- <div className="grid grid-cols-12 gap-8 lg:gap-0 xl:gap-16 mt-8">- <div className="col-span-6 lg:col-span-12 xl:col-span-4">+ <div className="grid grid-cols-12 md:gap-8 lg:gap-0 xl:gap-16 mt-8">+ <div className="col-span-12 lg:col-span-12 xl:col-span-4"><FeatureColumnicon={<IconBriefcase />}title="Social login support"text="Support for Social logins are built in and the component "/></div>- <div className="col-span-6 lg:col-span-12 xl:col-span-4">+ <div className="col-span-12 lg:col-span-12 xl:col-span-4"><FeatureColumnicon={<IconEye />}title="User context"@@ -273,7 +289,7 @@ function AuthPage() {</div></div></div>- </div>+ </SectionContainer>><CTABanner /></DefaultLayout>)diff --git a/www/pages/database/Database.tsx b/www/pages/database/Database.tsxindex 34469901d24..580f534689e 100644--- a/www/pages/database/Database.tsx+++ b/www/pages/database/Database.tsx@@ -87,7 +87,7 @@ function Database() {<SectionContainer><div className="grid grid-cols-12">- <div className="mb-8 lg:mb-0 col-span-12 lg:col-span-3">+ <div className="mb-10 lg:mb-0 col-span-12 lg:col-span-3"><p className="mb-4"><Space><ProductIcon icon={Solutions['database'].icon} />@@ -97,7 +97,7 @@ function Database() {</p><Typography.Title level={4}>PostgreSQL Relational</Typography.Title><Typography.Text>- <p className="text-lg">+ <p className="text-base lg:text-lg">Our database is PostgreSQL, which is an open source object-relational database.</p><p>@@ -106,7 +106,7 @@ function Database() {</p></Typography.Text></div>- <div className="mb-8 lg:mb-0 col-span-12 lg:col-span-3 lg:col-start-5">+ <div className="mb-10 lg:mb-0 col-span-12 lg:col-span-3 lg:col-start-5"><p className="mb-4"><Space><ProductIcon icon={Solutions['database'].icon} />@@ -116,7 +116,7 @@ function Database() {</p><Typography.Title level={4}>Auth</Typography.Title><Typography.Text>- <p className="text-lg">Auth permissions built in with supabase Auth</p>+ <p className="text-base lg:text-lg">Auth permissions built in with supabase Auth</p><p>Control exactly which user roles can read or write what rows in your database.</p></Typography.Text></div>@@ -126,7 +126,9 @@ function Database() {</p><Typography.Title level={4}>Realtime</Typography.Title><Typography.Text>- <p className="text-lg">We built realtime functionality right into the database.</p>+ <p className="text-base lg:text-lg">+ We built realtime functionality right into the database.+ </p><p>Our powerful APIs allow you to watch for specific row and column changes so you caneasily make smart apps quicker.@@ -137,20 +139,20 @@ function Database() {</SectionContainer>{/* <SectionContainer>÷ */}- <div className="grid">- <SectionContainer className="text-center pb-8">- <div className="grid grid-cols-12">- <div className="col-span-8 col-start-3">- <Typography.Title level={2}>Easy to use dashboard</Typography.Title>- <Typography.Text>- <p className="text-lg">- Use your database the way you want, with an interactive dashboard for both- spreadsheet style tables and also a full SQL editor.- </p>- </Typography.Text>- </div>+ <SectionContainer className="text-center md:pb-0 lg:pb-0">+ <div className="grid grid-cols-12">+ <div className="col-span-12 lg:col-span-8 lg:col-start-3">+ <Typography.Title level={2}>Easy to use dashboard</Typography.Title>+ <Typography.Text>+ <p className="text-base lg:text-lg">+ Use your database the way you want, with an interactive dashboard for both+ spreadsheet style tables and also a full SQL editor.+ </p>+ </Typography.Text></div>- </SectionContainer>+ </div>+ </SectionContainer>+ <div className="grid"><div className={'dashboard-tabs sbui-tabs--underline-alt'}><Tabssize="xlarge"@@ -185,7 +187,7 @@ function Database() {><div className="grid grid-cols-12"><SwiperSlide>- <SectionContainer className="pt-16">+ <SectionContainer className="pt-16 pb-0"><ImageCarouselcontent={TableViewCarouselData}footer={[@@ -201,7 +203,7 @@ function Database() {</SectionContainer></SwiperSlide><SwiperSlide>- <SectionContainer className="pt-16">+ <SectionContainer className="pt-16 pb-0"><ImageCarouselcontent={SqlViewCarouselData}footer={[@@ -271,7 +273,7 @@ function Database() {<div className="section-container pt-12 pb-0"><FloatingIcons /><div className="overflow-x-hidden">- <SectionContainer className="mb-0 pb-8">+ <SectionContainer className="mb-0 pb-8 lg:pt-32"><GithubExamples /></SectionContainer></div>@@ -284,7 +286,7 @@ function Database() {<div className="col-span-12 lg:col-span-6 xl:col-span-5 mb-8"><Typography.Title level={2}>Extend your database</Typography.Title><Typography.Text className="block mb-8">- <p className="text-lg">+ <p className="lg:text-lg">Your PostgreSQL database can be extended with any PostgreSQL extension.</p><p>diff --git a/www/styles/index.css b/www/styles/index.cssindex 754cbd752b2..32e0092cf53 100644--- a/www/styles/index.css+++ b/www/styles/index.css@@ -47,6 +47,33 @@ h2 {line-height: 1.2 !important;}+@media only screen and (max-width: 960px) {+ h1 {+ font-size: 2.2rem !important;+ }+ h2 {+ font-size: 2rem !important;+ }+}++@media only screen and (max-width: 720px) {+ h1 {+ font-size: 2rem !important;+ }+ h2 {+ font-size: 1.8rem !important;+ }+}++@media only screen and (max-width: 520px) {+ h1 {+ font-size: 1.8rem !important;+ }+ h2 {+ font-size: 1.6rem !important;+ }+}+p {@apply text-gray-light dark:text-gray-dark;margin-bottom: 16px;