Skip to content

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

chore: more typography updates. pricing page fixed for mobile

Jonathan Summers-Muir68cceb15e6af
diff --git a/www/components/AdminAccess/index.tsx b/www/components/AdminAccess/index.tsx
index 0227c6b4aa5..fc7f82059a3 100644
--- a/www/components/AdminAccess/index.tsx
+++ b/www/components/AdminAccess/index.tsx
@@ -15,8 +15,8 @@ const AdminAccess = () => {
return (
<SectionContainer>
- <div>
- <h2 className="mb-16">Build your app without leaving the dashboard</h2>
+ <div className="mb-16">
+ <h2 className="h3">Build your app without leaving the dashboard</h2>
</div>
<ImageCarousel content={AdminAccessData} altTabView={true} />
</SectionContainer>
diff --git a/www/components/Blog/BlogListItem.tsx b/www/components/Blog/BlogListItem.tsx
index 25a1e961119..d7d1e560454 100644
--- a/www/components/Blog/BlogListItem.tsx
+++ b/www/components/Blog/BlogListItem.tsx
@@ -5,42 +5,41 @@ import Image from 'next/image'
import PostTypes from '~/types/post'
interface Props {
- blog: PostTypes
+ post: PostTypes
}
-const BlogListItem = ({ blog }: Props) => {
+const BlogListItem = ({ post }: Props) => {
// @ts-ignore
- const author = blog.author ? authors[blog.author] : authors['supabase']
+ const author = post.author ? authors[post.author] : authors['supabase']
return (
- <div key={blog.slug}>
- <a href={`/blog/${blog.url}`}>
+ <div key={post.slug}>
+ <a href={`/blog/${post.url}`}>
<div className="inline-block min-w-full group">
<div className="flex flex-col space-y-6">
<div className="flex flex-col space-y-3">
<div
- className={`relative overflow-auto w-full h-60 border border-scale-600 shadow-sm rounded-lg mb-4`}
+ className={`relative overflow-auto w-full h-60 border border-scale-300 shadow-sm rounded-lg mb-4`}
>
<Image
layout="fill"
src={
- !blog.thumb ? `/images/blog/blog-placeholder.png` : `/images/blog/${blog.thumb}`
+ !post.thumb
+ ? `/images/blog/blog-placeholder.png`
+ : post.type === 'casestudy'
+ ? post.thumb
+ : `/images/blog/${post.thumb}`
}
objectFit="cover"
className="transform duration-100 ease-in scale-100 group-hover:scale-105"
/>
</div>
- <div>
- <h3 className="m-0">{blog.title}</h3>
- </div>
- <p className="text-xs">{blog.date}</p>
-
- <p className="m-0">
- <p className="text-base mb-0">{blog.description}</p>
- </p>
+ <h3 className="text-xl text-scale-1200 max-w-sm">{post.title}</h3>
+ {post.date && <p className="text-xs text-scale-1100">{post.date}</p>}
+ <p className="text-base text-scale-1100 max-w-sm">{post.description}</p>
</div>
- {author && (
+ {author && !post.hideAuthor ? (
<div className="flex items-center">
{author.author_image_url && (
<img src={author.author_image_url} className="rounded-full w-10 mr-4" />
@@ -50,7 +49,7 @@ const BlogListItem = ({ blog }: Props) => {
<span className="text-xs m-0 text-scale-900">{author.position}</span>
</div>
</div>
- )}
+ ) : null}
</div>
</div>
</a>
diff --git a/www/components/BuiltWithSupabase/index.tsx b/www/components/BuiltWithSupabase/index.tsx
index f891a39cdb9..e928f6994bf 100644
--- a/www/components/BuiltWithSupabase/index.tsx
+++ b/www/components/BuiltWithSupabase/index.tsx
@@ -12,18 +12,20 @@ const BuiltExamples = () => {
return (
<SectionContainer className="xl:pt-32">
<div className="text-center">
- <h3 className="text-3xl">What can you build with supabase?</h3>
- <p className="lg:text-lg">There are many example apps and starter projects to get going</p>
- <div className="flex gap-2 justify-center">
+ <h3 className="h2">What can you build with supabase?</h3>
+ <p className="p">There are many example apps and starter projects to get going</p>
+ <div className="flex gap-2 justify-center py-4">
<Link href="/docs/guides/examples" as="/docs/guides/examples" passHref>
- <Button type="default">View all examples</Button>
+ <Button as="a" type="default" size="small">
+ View all examples
+ </Button>
</Link>
<Link
href="https://github.com/supabase/supabase/tree/master/examples"
as="https://github.com/supabase/supabase/tree/master/examples"
passHref
>
- <Button type="default" icon={<IconGitHub />}>
+ <Button as="a" type="default" icon={<IconGitHub />} size="small">
Official github library
</Button>
</Link>
diff --git a/www/components/Carousels/ImageCarousel.tsx b/www/components/Carousels/ImageCarousel.tsx
index 288cf8b4f7d..f461f5bea5c 100644
--- a/www/components/Carousels/ImageCarousel.tsx
+++ b/www/components/Carousels/ImageCarousel.tsx
@@ -11,6 +11,7 @@ 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'
interface Content {
title: string
@@ -133,17 +134,14 @@ function ImageCarousel(props: ImageCarouselProps) {
</div>
</div>
</div>
- <div className="mt-8 lg:mt-0 col-span-12 lg:col-span-5 lg:col-start-8 xl:col-span-4 xl:col-start-9">
+ <div className="mt-8 lg:mt-0 col-span-12 lg:col-span-5 lg:col-start-8 xl:col-span-5 xl:col-start-8">
<div className={`sbui-tabs--underline-alt ${props.altTabView ? 'block' : 'hidden'} mb-3`}>
<Tabs
scrollable
type="underlined"
size="small"
- // @ts-ignore
activeId={imageSwiperActiveIndex.toString()}
- // @ts-ignore
onChange={(id: string) => handleImageSwiperNav(Number(id))}
- block
>
{props.content.map((content: Content, i: number) => {
return (
@@ -151,9 +149,7 @@ function ImageCarousel(props: ImageCarouselProps) {
label={content.label ? content.label : content.title}
id={i.toString()}
key={i}
- >
- <span></span>
- </Tabs.Panel>
+ />
)
})}
</Tabs>
@@ -168,29 +164,13 @@ function ImageCarousel(props: ImageCarouselProps) {
>
{props.content.map((content, i) => {
return (
- <SwiperSlide key={i}>
- <div className="ml-1">
- <h4>{content.title}</h4>
- <p>
- <p className="text-base">{content.text}</p>
- </p>
- {content.url && (
- <p>
- <Link href={content.url} as={content.url}>
- <a>
- <Button
- className="mb-8"
- type="default"
- size="small"
- icon={<IconArrowUpRight />}
- >
- {content.cta ? content.cta : 'View documentation'}
- </Button>
- </a>
- </Link>
- </p>
- )}
- </div>
+ <SwiperSlide key={i} className="py-4">
+ <h4 className="text-xl text-scale-1200 mb-4">{content.title}</h4>
+ <p className="p text-base">{content.text}</p>
+ <TextLink
+ label={content.cta ? content.cta : 'View documentation'}
+ url={content.url}
+ />
</SwiperSlide>
)
})}
diff --git a/www/components/CaseStudies/index.tsx b/www/components/CaseStudies/index.tsx
index 4c8af2758d1..f6d43f15145 100644
--- a/www/components/CaseStudies/index.tsx
+++ b/www/components/CaseStudies/index.tsx
@@ -4,6 +4,7 @@ import SectionHeader from 'components/UI/SectionHeader'
import CaseStudiesData from 'data/CaseStudies.json'
import { Card, Space } from '@supabase/ui'
import SectionContainer from '../Layouts/SectionContainer'
+import BlogListItem from '../Blog/BlogListItem'
const CaseStudies = () => {
const { basePath } = useRouter()
@@ -12,32 +13,44 @@ const CaseStudies = () => {
<SectionContainer>
<div>
<SectionHeader
+ className="mb-12"
title={'Scale up'}
title_alt={' with no extra effort'}
subtitle={'Enterprise Solutions'}
paragraph={
- "Supabase is built with proven, enterprise-ready tools. We're supporting everything from fintech providers to social networks. "
+ "Supabase is built with proven, enterprise-ready tools.\n We're supporting everything from fintech providers to social networks. "
}
/>
</div>
- <div className="mt-5 max-w-lg mx-auto grid gap-5 lg:grid-cols-3 lg:max-w-none">
+ <div className="mt-5 max-w-lg mx-auto grid gap-8 lg:gap-12 lg:grid-cols-3 lg:max-w-none">
{CaseStudiesData.map((caseStudy: any, idx: number) => (
- <a href={caseStudy.url} key={idx}>
- <Card
- key={`caseStudy_${idx}`}
- hoverable
- cover={<img src={`${basePath}/${caseStudy.imgUrl}`} className="h-64 object-cover" />}
- className="bg-scale-400"
- >
- <Space className="justify-between h-40" direction="vertical">
+ <>
+ <BlogListItem
+ post={{
+ type: 'casestudy',
+ title: caseStudy.title,
+ description: caseStudy.description,
+ thumb: `${basePath}/${caseStudy.imgUrl}`,
+ hideAuthor: true,
+ }}
+ />
+ {/* <a href={caseStudy.url} key={idx}>
+ <Card
+ key={`caseStudy_${idx}`}
+ hoverable
+ cover={
+ <img src={`${basePath}/${caseStudy.imgUrl}`} className="h-64 object-cover" />
+ }
+ className="bg-scale-400"
+ >
<div>
- <p>Project example</p>
- <h3>{caseStudy.title}</h3>
+ <p className="p">Project example</p>
+ <h4 className="h5">{caseStudy.title}</h4>
</div>
- <p>{caseStudy.description}</p>
- </Space>
- </Card>
- </a>
+ <p className="p">{caseStudy.description}</p>
+ </Card>
+ </a> */}
+ </>
))}
</div>
{/* <Benchmark /> */}
diff --git a/www/components/ExampleCard.tsx b/www/components/ExampleCard.tsx
index d85de38bb00..e9e0d2d496f 100644
--- a/www/components/ExampleCard.tsx
+++ b/www/components/ExampleCard.tsx
@@ -6,8 +6,10 @@ function ExampleCard(props: any) {
<>
<div
className="h-40
- bg-white dark:bg-scale-300
- border border-scale-400
+ bg-white
+ dark:bg-scale-300
+ border
+ border-scale-400
border-t border-r border-l
p-5
flex flex-col justify-between
@@ -15,27 +17,22 @@ function ExampleCard(props: any) {
"
>
<div className="mb-4">
- <h4 className="text-xl mb-3">{props.title}</h4>
-
- <p className="text-sm">{props.description}</p>
- <p className="text-sm flex flex-row items-center mb-2">
- Created by:
- <img
- src={props.author_img}
- className="ml-2 inline w-6 rounded-full border dark:border-gray-500"
- />
- <span className="ml-2">{props.author}</span>
- </p>
+ <h4 className="h6">{props.title}</h4>
+ <p className="p text-sm">{props.description}</p>
+ <div>
+ <img src={props.author_img} className="inline w-6 rounded-full border-scale-500" />
+ <span className="text-sm ml-2">{props.author}</span>
+ </div>
</div>
</div>
<Divider light />
<div>
<div
className="
- bg-scale-400
+ bg-scale-100
+ dark:bg-scale-400
border border-scale-400
border-b border-r border-l border-t-0
- bg-scale-300
p-5
flex flex-col justify-between
rounded rounded-t-none"
diff --git a/www/components/FeatureColumn.tsx b/www/components/FeatureColumn.tsx
index 7606171f845..8ca3e23545c 100644
--- a/www/components/FeatureColumn.tsx
+++ b/www/components/FeatureColumn.tsx
@@ -1,13 +1,9 @@
function FeatureColumn({ icon, title, text }: any) {
return (
<>
- <p>
- <p>{icon}</p>
- </p>
- <h4>{title}</h4>
- <p>
- <p>{text}</p>
- </p>
+ {icon && <div className="mb-2">{icon}</div>}
+ <h4 className="text-base mb-4">{title}</h4>
+ <p className="p">{text}</p>
</>
)
}
diff --git a/www/components/Features/index.tsx b/www/components/Features/index.tsx
index 372ab2866fc..21dbc854381 100644
--- a/www/components/Features/index.tsx
+++ b/www/components/Features/index.tsx
@@ -10,16 +10,16 @@ const Features = () => {
const IconSections = Object.values(Solutions).map((solution: any) => {
const { name, description, icon, label, url } = solution
return (
- <div key={name} className="mb-10 md:mb-0">
+ <div key={name} className="mb-10 md:mb-0 space-y-4">
<div className="flex items-center">
<ProductIcon icon={icon} />
<dt className="text-scale-1200 flex flex-row xl:flex-col ml-4">{name}</dt>
</div>
- <div className="mt-5">
- <p>{description}</p>
- </div>
+
+ <p className="p">{description}</p>
+
{label && (
- <div className="mt-3">
+ <div>
<Badge dot>{label}</Badge>
</div>
)}
@@ -29,8 +29,8 @@ const Features = () => {
})
return (
- <SectionContainer className="pb-0">
- <h2 className="mb-16">Build faster and focus on your products</h2>
+ <SectionContainer className="pb-0 space-y-16">
+ <h3 className="h3">Build faster and focus on your products</h3>
<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>
diff --git a/www/components/Nav/Product.tsx b/www/components/Nav/Product.tsx
index 1b5b109c64b..bcc73bb42da 100644
--- a/www/components/Nav/Product.tsx
+++ b/www/components/Nav/Product.tsx
@@ -15,7 +15,7 @@ const Product = () => {
<div className="flex lg:flex-col">
<div className="flex flex-row items-center">
<ProductIcon icon={icon} />
- <h5 className="ml-3 mb-0 text-base text-scale-1200">{name}</h5>
+ <h5 className="ml-3 mb-0 text-base text-scale-1200 overwrite">{name}</h5>
</div>
<div className="ml-4 md:flex-1 md:flex md:flex-col md:justify-between lg:ml-0 mt-3">
<p className="text-sm text-scale-1000">{description}</p>
diff --git a/www/components/PricingTableRow.tsx b/www/components/PricingTableRow.tsx
index bff53e4df1f..60fd0c79a0a 100644
--- a/www/components/PricingTableRow.tsx
+++ b/www/components/PricingTableRow.tsx
@@ -108,9 +108,9 @@ export const PricingTableRowMobile = (props: any) => {
<>
<table className="mt-8 w-full">
<caption className="bg-scale-50 dark:bg-dark-900 border-t border-scale-200 dark:border-scale-600 py-3 px-4 text-sm font-medium text-scale-1200 dark:text-white text-left">
- <div className="flex space-x-4 items-center">
+ <div className="flex items-center gap-2">
{category.icon ? <ProductIcon icon={props.icon} /> : null}
- <h4 className="m-0">{category.title}</h4>
+ <span className="text-scale-1200 font-normal">{category.title}</span>
</div>
</caption>
<thead>
@@ -123,11 +123,11 @@ export const PricingTableRowMobile = (props: any) => {
</th>
</tr>
</thead>
- <tbody className="divide-y divide-scale-900 dark:divide-scale-600 ">
+ <tbody className="divide-y divide-scale-600">
{category.features.map((feat: any) => {
return (
- <tr className="border-t border-scale-200 dark:border-scale-600 ">
- <th className="py-5 px-4 text-sm font-normal text-scale-500 text-left" scope="row">
+ <tr className="border-t ">
+ <th className="py-5 px-4 text-sm font-normal text-scale-1100 text-left" scope="row">
<span>
<p>{feat.title}</p>
</span>
@@ -142,9 +142,7 @@ export const PricingTableRowMobile = (props: any) => {
<Minus tier={tier} />
</div>
) : (
- <span className="block text-sm text-scale-1200 dark:text-white">
- {feat.tiers[tier]}
- </span>
+ <span className="block text-sm text-scale-1200">{feat.tiers[tier]}</span>
)}
</td>
</tr>
diff --git a/www/components/Sections/APISection.tsx b/www/components/Sections/APISection.tsx
index 1739273a34b..7e8801e956c 100644
--- a/www/components/Sections/APISection.tsx
+++ b/www/components/Sections/APISection.tsx
@@ -35,8 +35,8 @@ function APISection(props: Props) {
return (
<div className="grid grid-cols-12 lg:gap-16">
<div className="col-span-12 lg:col-span-5 xl:col-span-5 pb-8">
- <h2>{props.title}</h2>
- <p>{props.text}</p>
+ <h2 className="h3">{props.title}</h2>
+ <p className="p">{props.text}</p>
{props.documentation_link && (
<Link href={props.documentation_link} as={props.documentation_link}>
<a>
diff --git a/www/components/Sections/GithubExamples.tsx b/www/components/Sections/GithubExamples.tsx
index a57f8bf355d..d0a9c1bfcf2 100644
--- a/www/components/Sections/GithubExamples.tsx
+++ b/www/components/Sections/GithubExamples.tsx
@@ -26,20 +26,18 @@ function GithubExamples() {
<>
<div className="grid grid-cols-12">
<div className="col-span-12 text-center">
- <h2>Community driven examples, libraries and guides</h2>
- <p className="block mb-6">
- <p className="text-base lg:text-lg">
- Supported by a network of early advocates, contributors, and champions.
- </p>
+ <h2 className="h3">Community driven examples, libraries and guides</h2>
+ <p className="p ">
+ Supported by a network of early advocates, contributors, and champions.
</p>
- <div className="flex items-center space-y-1.5 flex-col lg:space-y-0 lg:space-x-1.5 lg:flex-row justify-center">
+ <div className="flex items-center gap-2 justify-center py-4">
<Link href="/docs/guides/examples#guides" as="/docs/guides/examples#guides">
- <Button as="a" type="default" icon={<IconBookOpen />}>
+ <Button size="small" as="a" type="default" icon={<IconBookOpen size={12} />}>
View guides
</Button>
</Link>
<Link href="/docs/guides/examples" as="/docs/guides/examples">
- <Button as="a" type="default">
+ <Button size="small" as="a" type="default">
View all examples
</Button>
</Link>
@@ -47,7 +45,7 @@ function GithubExamples() {
href="https://github.com/supabase/supabase/tree/master/examples"
as="https://github.com/supabase/supabase/tree/master/examples"
>
- <Button as="a" type="default" icon={<IconGitHub />}>
+ <Button size="small" as="a" type="default" icon={<IconGitHub size={12} />}>
Official GitHub library
</Button>
</Link>
diff --git a/www/components/Sections/ProductHeader.tsx b/www/components/Sections/ProductHeader.tsx
index 09065fbd743..e40752d52ef 100644
--- a/www/components/Sections/ProductHeader.tsx
+++ b/www/components/Sections/ProductHeader.tsx
@@ -16,32 +16,33 @@ interface Types {
const ProductHeader = (props: Types) => (
<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 ? (
- <div className="flex flex-row mb-4 item-center">
- {props.icon && <ProductIcon icon={props.icon} />}
- {props.title && (
- <h4 className="ml-3" key={`product-name-${props.title}`}>
- {props.title}
- </h4>
- )}
- </div>
- ) : null}
- <h1 className="text-5xl" key={`h1`}>
- {props.h1}
- </h1>
- {props.subheader && (
- <p>
- {props.subheader.map((subheader, i) => {
+ <div className="col-span-12 lg:col-span-5 space-y-8">
+ <div>
+ {props.icon || props.title ? (
+ <div className="flex mb-4 items-center gap-2">
+ {props.icon && <ProductIcon icon={props.icon} />}
+ {props.title && (
+ <span className="text-scale-1200" key={`product-name-${props.title}`}>
+ {props.title}
+ </span>
+ )}
+ </div>
+ ) : null}
+ <h1 className="h1" key={`h1`}>
+ {props.h1}
+ </h1>
+ </div>
+ <div>
+ {props.subheader &&
+ props.subheader.map((subheader, i) => {
return (
- <p className="lg:text-lg" key={i}>
+ <p className="p lg:text-lg" key={i}>
{subheader}
</p>
)
})}
- </p>
- )}
- <div className="mt-12 flex flex-row md:flex-row md:items-center">
+ </div>
+ <div className="flex flex-row md:flex-row md:items-center">
<Link href="https://app.supabase.io/" as="https://app.supabase.io/">
<a>
<Button size="medium" className="text-white">
@@ -52,7 +53,7 @@ const ProductHeader = (props: Types) => (
{props.documentation_url && (
<Link href={props.documentation_url} as={props.documentation_url}>
<a className="ml-2">
- <Button type="text" size="medium" icon={<IconBookOpen />}>
+ <Button type="default" size="medium" icon={<IconBookOpen />}>
See documentation
</Button>
</a>
diff --git a/www/components/Sections/TwitterSocialProof.tsx b/www/components/Sections/TwitterSocialProof.tsx
index 34bc5e9f58f..a0ced418265 100644
--- a/www/components/Sections/TwitterSocialProof.tsx
+++ b/www/components/Sections/TwitterSocialProof.tsx
@@ -31,44 +31,36 @@ function TwitterSocialProof() {
<>
<div className="grid grid-cols-12">
<div className="col-span-12 text-center">
- <h3 className="text-3xl">Join the community</h3>
- <p>
- <p className="lg:text-lg">
- Supported by a network of early advocates, contributors, and champions.
- </p>
- <div className="my-4 flex gap-2 justify-center">
- <Link
- href={'https://github.com/supabase/supabase/discussions'}
- as={'https://github.com/supabase/supabase/discussions'}
+ <h3 className="h2">Join the community</h3>
+ <p className="p">
+ Supported by a network of early advocates, contributors, and champions.
+ </p>
+ <div className="my-8 flex gap-2 justify-center">
+ <Link href={'https://github.com/supabase/supabase/discussions'} passHref>
+ <Button
+ as="a"
+ // @ts-ignore
+ target="_blank"
+ size="small"
+ iconRight={<IconMessageCircle size={14} />}
+ type="default"
>
- <Button
- as="a"
- // @ts-ignore
- target="_blank"
- size="small"
- iconRight={<IconMessageCircle size={14} />}
- type="secondary"
- >
- GitHub discussions
- </Button>
- </Link>
- <Link
- href={'https://github.com/supabase/supabase/discussions'}
- as={'https://github.com/supabase/supabase/discussions'}
+ GitHub discussions
+ </Button>
+ </Link>
+ <Link href={'https://github.com/supabase/supabase/discussions'} passHref>
+ <Button
+ as="a"
+ type="default"
+ // @ts-ignore
+ target="_blank"
+ size="small"
+ iconRight={<IconMessageCircle size={14} />}
>
- <Button
- as="a"
- type="alternative"
- // @ts-ignore
- target="_blank"
- size="small"
- iconRight={<IconMessageCircle size={14} />}
- >
- Discord
- </Button>
- </Link>
- </div>
- </p>
+ Discord
+ </Button>
+ </Link>
+ </div>
</div>
</div>
<div className="mt-6">
diff --git a/www/components/TextLink.tsx b/www/components/TextLink.tsx
index fc615247bb7..3537be85fc8 100644
--- a/www/components/TextLink.tsx
+++ b/www/components/TextLink.tsx
@@ -3,7 +3,10 @@ import Link from 'next/link'
function TextLink({ url, label }: any) {
return (
- <a href={url} className="block text-sm text-scale-1100 hover:text-scale-1200 mt-3">
+ <a
+ href={url}
+ className="block text-sm text-scale-1100 hover:text-scale-1200 mt-3 cursor-pointer"
+ >
<div className="flex items-center gap-1 group">
<span>{label}</span>
<div className="transition-all group-hover:ml-0.5">
diff --git a/www/components/UI/SectionHeader.tsx b/www/components/UI/SectionHeader.tsx
index ab2a78b946b..aca818e6dca 100644
--- a/www/components/UI/SectionHeader.tsx
+++ b/www/components/UI/SectionHeader.tsx
@@ -1,24 +1,16 @@
const SectionHeader = (props: any) => {
return (
- <div className={'grid grid-cols-12 gap-1 sm:gap-8 ' + props.className}>
- <div className="relative grid py-12 col-span-12 grid-cols-12">
- <div className="col-span-12">
- <span className="col-span-12 block mb-6 text-sm tracking-widest uppercase text-scale-900 font-mono">
- {props.subtitle}
- </span>
- <h2>
- <span>{props.title}</span>
- {props.title_alt && <span className="text-scale-900 inline">{props.title_alt}</span>}
- </h2>
- </div>
- <div className="col-span-12 lg:col-span-7">
- {props.paragraph && (
- <p>
- <p className="mt-3 mx-auto text-xl sm:mt-4">{props.paragraph}</p>
- </p>
- )}
- </div>
+ <div className={props.className}>
+ <div className="space-y-4">
+ <span className="block text-xs tracking-widest uppercase text-scale-900 font-mono">
+ {props.subtitle}
+ </span>
+ <h3 className="h2">
+ <span>{props.title}</span>
+ {props.title_alt && <span className="text-scale-900 inline">{props.title_alt}</span>}
+ </h3>
</div>
+ {props.paragraph && <p className="p text-lg sm:mt-4 max-w-3xl">{props.paragraph}</p>}
</div>
)
}
diff --git a/www/pages/auth/Auth.tsx b/www/pages/auth/Auth.tsx
index 6ad0edca3e2..9a1e9ada6c7 100644
--- a/www/pages/auth/Auth.tsx
+++ b/www/pages/auth/Auth.tsx
@@ -24,6 +24,7 @@ import FeatureColumn from '~/components/FeatureColumn'
import FloatingIcons from '~/components/FloatingIcons'
import DefaultLayout from '~/components/Layouts/Default'
import SectionContainer from '~/components/Layouts/SectionContainer'
+import ProductIcon from '~/components/ProductIcon'
import APISection from '~/components/Sections/APISection'
import GithubExamples from '~/components/Sections/GithubExamples'
import ProductHeader from '~/components/Sections/ProductHeader'
@@ -226,15 +227,15 @@ function AuthPage() {
<SectionContainer>
<div className="grid grid-cols-12 lg:gap-16">
<div className="col-span-12 lg:col-span-5 mb-8">
- <h2>User permissions without the middleware</h2>
- <p>
- <p className="text-base lg:text-lg">
- Supabase Auth works without any additional servers. Build Authorization rules with
- Postgres' Row Level Security, controlling who can create, edit and delete specific
- rows in your database.
- </p>
- <p>Policies can be written in SQL or using the dashboard online.</p>
+ <h2 className="h3">User permissions without the middleware</h2>
+
+ <p className="p text-base lg:text-lg">
+ Supabase Auth works without any additional servers. Build Authorization rules with
+ Postgres' Row Level Security, controlling who can create, edit and delete specific
+ rows in your database.
</p>
+ <p className="p">Policies can be written in SQL or using the dashboard online.</p>
+
<Link href="/docs/guides/auth#policy-examples">
<a>
<Button size="small" type="default" className="mt-4" icon={<IconArrowUpRight />}>
@@ -260,7 +261,7 @@ function AuthPage() {
<div className="col-span-12 lg:col-span-6 lg:col-start-7 xl:col-span-4 xl:col-start-8">
<div className="mb-4 flex items-center space-x-2">
<div className="w-8 h-8 rounded-md bg-gray-900 dark:bg-white text-white dark:text-gray-900 flex justify-center items-center">
- <IconKey size="small" strokeWidth={1.5} />
+ <ProductIcon icon={Solutions['authentication'].icon} />
</div>
<p className="m-0">
<IconX />
@@ -268,16 +269,16 @@ function AuthPage() {
<img className="w-8" src={`${basePath}/images/product/auth/react-icon.svg`} />
</div>
- <h2 className="mb-4">React Auth</h2>
- <p>
- <p className="text-base lg:text-lg">
- Pre-built auth widgets to get started in minutes.
- </p>
- <p>
- Supabase provides React libraries which handle common scenarios, including logging
- in, signing up, magic link and forgot password forms.
- </p>
+ <h2 className="h3">React Auth</h2>
+
+ <p className="p text-base lg:text-lg">
+ Pre-built auth widgets to get started in minutes.
+ </p>
+ <p className="p">
+ Supabase provides React libraries which handle common scenarios, including logging
+ in, signing up, magic link and forgot password forms.
</p>
+
<Link
href="https://github.com/supabase/ui#using-supabase-ui-auth"
as="https://github.com/supabase/ui#using-supabase-ui-auth"
diff --git a/www/pages/blog.tsx b/www/pages/blog.tsx
index 5962de26e97..9e4e09adb29 100644
--- a/www/pages/blog.tsx
+++ b/www/pages/blog.tsx
@@ -118,7 +118,7 @@ function Blog(props: any) {
className="col-span-12 md:col-span-12 lg:col-span-6 xl:col-span-4 mb-16"
key={idx}
>
- <BlogListItem blog={blog} />
+ <BlogListItem post={blog} />
</div>
))}
</ol>
diff --git a/www/pages/database/Database.tsx b/www/pages/database/Database.tsx
index 8fbb5f19061..384ef4fdb3e 100644
--- a/www/pages/database/Database.tsx
+++ b/www/pages/database/Database.tsx
@@ -101,54 +101,42 @@ function Database() {
<SectionContainer>
<div className="grid grid-cols-12">
<div className="mb-10 lg:mb-0 col-span-12 lg:col-span-3">
- <p>
- <p className="mb-4 flex items-center space-x-2">
- <ProductIcon icon={Solutions['database'].icon} />
- <IconX />
- <img src={`${basePath}/images/product/database/postgresql-icon.svg`} width={30} />
- </p>
- </p>
- <h4>Just Postgres</h4>
- <p>
- <p className="text-base lg:text-lg">
- Every Supabase project is a dedicated Postgres database.
- </p>
- <p>
- 100% portable. Bring your existing Postgres database, or migrate away at any time.
- </p>
+ <div className="mb-4 flex items-center space-x-2">
+ <ProductIcon icon={Solutions['database'].icon} />
+ <IconX />
+ <img src={`${basePath}/images/product/database/postgresql-icon.svg`} width={30} />
+ </div>
+ <h4 className="h4">Just Postgres</h4>
+ <p className="p">Every Supabase project is a dedicated Postgres database.</p>
+ <p className="p text-sm">
+ 100% portable. Bring your existing Postgres database, or migrate away at any time.
</p>
</div>
<div className="mb-10 lg:mb-0 col-span-12 lg:col-span-3 lg:col-start-5">
- <p>
- <p className="mb-4 flex items-center space-x-2">
- <ProductIcon icon={Solutions['database'].icon} />
- <IconX />
- <ProductIcon icon={Solutions['authentication'].icon} />
- </p>
- </p>
- <h4>Built-in Auth</h4>
- <p>
- <p className="text-base lg:text-lg">
- Leveraging PostgreSQL's proven Row Level Security.
- </p>
- <p>
- Integrated with JWT authentication which controls exactly what your users can
- access.
- </p>
+ <div className="mb-4 flex items-center space-x-2">
+ <ProductIcon icon={Solutions['database'].icon} />
+ <IconX />
+ <ProductIcon icon={Solutions['authentication'].icon} />
+ </div>
+
+ <h4 className="h4">Built-in Auth</h4>
+ <p className="p">Leveraging PostgreSQL's proven Row Level Security.</p>
+ <p className="p text-sm">
+ Integrated with JWT authentication which controls exactly what your users can
+ access.
</p>
</div>
<div className="col-span-12 lg:col-span-3 lg:col-start-9">
- <p>
- <p className="mb-4 flex items-center space-x-2">
- <ProductIcon icon={Solutions['database'].icon} />
- <IconX />
- <ProductIcon icon={'M13 10V3L4 14h7v7l9-11h-7z'} />
- </p>
- </p>
- <h4>Realtime enabled</h4>
- <p>
- <p className="text-base lg:text-lg">Data-change listeners over websockets.</p>
- <p>Subscribe and react to database changes, milliseconds after they happen.</p>
+ <div className="mb-4 flex items-center space-x-2">
+ <ProductIcon icon={Solutions['database'].icon} />
+ <IconX />
+ <ProductIcon icon={'M13 10V3L4 14h7v7l9-11h-7z'} />
+ </div>
+
+ <h4 className="h4">Realtime enabled</h4>
+ <p className="p">Data-change listeners over websockets.</p>
+ <p className="p text-sm">
+ Subscribe and react to database changes, milliseconds after they happen.
</p>
</div>
</div>
@@ -158,11 +146,10 @@ function Database() {
<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">
- <h2>Easy to use dashboard</h2>
- <p>
- <p className="text-base lg:text-lg">
- The simplicity of a Table Editor, or the power of a SQL editor. Your choice.
- </p>
+ <h2 className="h3">Easy to use dashboard</h2>
+
+ <p className="p">
+ The simplicity of a Table Editor, or the power of a SQL editor. Your choice.
</p>
</div>
</div>
@@ -292,23 +279,21 @@ function Database() {
<SectionContainer className="lg:py-48">
<div className="grid grid-cols-12 lg:gap-16">
<div className="col-span-12 lg:col-span-6 xl:col-span-5 mb-8">
- <h2>Extend your database</h2>
- <p className="block mb-8">
- <p className="lg:text-lg">Supabase works natively with Postgres extensions.</p>
- <p>
- Choose from a huge collection of Postgres extensions, enabled with a single click.
- </p>
+ <h2 className="h3">Extend your database</h2>
+
+ <p className="p">Supabase works natively with Postgres extensions.</p>
+ <p className="p">
+ Choose from a huge collection of Postgres extensions, enabled with a single click.
</p>
+
<FeatureColumn
title="40+ preinstalled extensions"
text="We only show a few of the extensions supported by supabase here, but we preinstall many more that you can use right away."
/>
- <Link href="/docs/guides/database" as="/docs/guides/database">
- <a>
- <Button size="small" className="mt-4" type="default" icon={<IconArrowUpRight />}>
- Explore documentation
- </Button>
- </a>
+ <Link href="/docs/guides/database" passHref>
+ <Button as="a" size="small" type="default" icon={<IconArrowUpRight />}>
+ Explore documentation
+ </Button>
</Link>
</div>
<div className="mt-8 lg:mt-0 col-span-12 lg:col-span-6 lg:col-start-7">
diff --git a/www/pages/pricing/index.tsx b/www/pages/pricing/index.tsx
index 595cdf4d165..2683556c482 100644
--- a/www/pages/pricing/index.tsx
+++ b/www/pages/pricing/index.tsx
@@ -21,6 +21,33 @@ export default function IndexPage() {
const meta_description =
'Explore Supabase fees and pricing information. Find our competitive pricing tiers, with no hidden pricing. We have generous free tiers for those getting started, and Pay As You Go for those scaling up.'
+ const MobileHeaders = ({
+ title,
+ description,
+ priceDescription,
+ price,
+ tier,
+ }: {
+ description: string
+ priceDescription: string
+ price: string
+ tier: string
+ }) => {
+ return (
+ <div className="px-4">
+ <h2 className="text-base font-normal text-scale-1200">{tier}</h2>
+ <span className="h1">${price}</span>
+ <p className="p">{priceDescription}</p>
+ <p className="p">{description}</p>
+ <Link href="https://app.supabase.io" passHref>
+ <Button as="a" type="default" size="medium" block>
+ Get started
+ </Button>
+ </Link>
+ </div>
+ )
+ }
+
return (
<DefaultLayout>
<NextSeo
@@ -39,45 +66,10 @@ export default function IndexPage() {
/>
<div className="container mx-auto px-6 lg:px-16 xl:px-20 relative pt-24 md:pt-24 lg:pt-24">
<div className="text-center">
- <h1 className="text-5xl">Predictable pricing, no surprises</h1>
- <p>
- <p className="text-lg">
- Start with a hobby project, collaborate with a team, and scale to millions of users.
- </p>
+ <h1 className="h1">Predictable pricing, no surprises</h1>
+ <p className="p">
+ Start with a hobby project, collaborate with a team, and scale to millions of users.
</p>
- <div className="grid grid-cols-12 gap-8 mt-16">
- {/* <div className="col-span-12 lg:col-span-6">
- <div className="rounded border border-green-500 dark:border-green-900 bg-green-500 bg-opacity-10 grid grid-cols-6">
- <div className="p-6 col-span-6">
- <Space className="mb-4">
- <h3 className="flex gap-2">
- Special Beta Pricing
- </h3>
- <Badge dot>Limited time offer</Badge>
- </Space>
- <p>
- <p className="lg:text-lg mb-2">
- Lock into permanent beta pricing for 2 years if you upgrade today.
- </p>
- </p>
- </div>
- </div>
- </div> */}
- {/* <div className="col-span-12 lg:col-span-6">
- <div className="rounded border border-gray-200 dark:border-gray-600 grid grid-cols-12">
- <img
- src={`${basePath}/images/t-shirt-promo.jpg`}
- className="col-span-6 h-30 object-cover"
- />
- <div className="p-6 lg:col-span-6">
- <h4>Free tshirt</h4>
- <p>
- We are giving away free tshirts to anyone who signs up for the Beta Pro plan
- </p>
- </div>
- </div>
- </div> */}
- </div>
</div>
</div>
<div className="container mx-auto px-0 lg:px-16 xl:px-20 relative py-16 sm:py-18 md:py-24 lg:py-24">
@@ -85,23 +77,13 @@ export default function IndexPage() {
<div className=" lg:hidden">
{/* Free - Mobile */}
- <div className="px-4">
- <h2 className="text-lg leading-6 font-medium text-scale-900 dark:text-white">Free</h2>
- <p className="mt-4">
- <span className="text-4xl font-normal text-scale-900 dark:text-white">$0</span>
- <p>/project /month</p>
- </p>
- <p className="my-4 text-sm text-scale-500">
- Perfect for hobby projects and experiments.
- </p>
- <Link href="https://app.supabase.io" as="https://app.supabase.io">
- <a>
- <Button type="default" size="medium" block>
- Get started
- </Button>
- </a>
- </Link>
- </div>
+
+ <MobileHeaders
+ tier="Free"
+ price={'0'}
+ priceDescription={'/project /month'}
+ description={'Perfect for hobby projects and experiments'}
+ />
<PricingTableRowMobile
category={pricing.database}
@@ -122,23 +104,12 @@ export default function IndexPage() {
<PricingTableRowMobile category={pricing.support} tier={'free'} />
{/* Pro - Mobile */}
- <div className="px-4 mt-16">
- <h2 className="text-lg leading-6 font-medium text-scale-900 dark:text-white">Pro</h2>
- <p className="mt-4">
- <span className="text-4xl font-normal text-scale-900 dark:text-white">$25</span>
- <p>/project /month</p>
- </p>
- <p className="my-4 text-sm text-scale-500">
- Everything you need to scale your project into production.
- </p>
- <Link href="https://app.supabase.io" as="https://app.supabase.io">
- <a>
- <Button type="default" size="medium" block>
- Get started
- </Button>
- </a>
- </Link>
- </div>
+ <MobileHeaders
+ tier="Pro"
+ price={'25'}
+ priceDescription={'/project /month'}
+ description={'Everything you need to scale your project into production'}
+ />
<PricingTableRowMobile
category={pricing.database}
@@ -159,25 +130,12 @@ export default function IndexPage() {
<PricingTableRowMobile category={pricing.support} tier={'pro'} />
{/* Enterprise - Mobile */}
- <div className="px-4 mt-16">
- <h2 className="text-lg leading-6 font-medium text-scale-900 dark:text-white">
- Pay as you go
- </h2>
- <p className="mt-4">
- <span className="text-4xl font-normal text-scale-900 dark:text-white">$25</span>
- <p>/project /month plus usage costs</p>
- </p>
- <p className="my-4 text-sm text-scale-500">
- Designated support team, account manager and technical specialist.
- </p>
- <Link href="https://app.supabase.io" as="https://app.supabase.io">
- <a>
- <Button type="default" size="medium" block>
- Get started
- </Button>
- </a>
- </Link>
- </div>
+ <MobileHeaders
+ tier="Pay as you go"
+ price={'25'}
+ priceDescription={'/project /month plus usage costs'}
+ description={'Designated support team, account manager and technical specialist'}
+ />
<PricingTableRowMobile
category={pricing.database}
@@ -202,10 +160,21 @@ export default function IndexPage() {
<div className="hidden lg:block">
<table className="w-full h-px table-fixed">
<caption className="sr-only">Pricing plan comparison</caption>
- <thead className="thead--plans sticky z-10 top-[62px] border-b border-scale-700 dark:border-scale-400">
+ <thead
+ className="
+ thead--plans
+ sticky
+ z-10
+ top-[62px]
+ border-b
+ border-scale-700
+ dark:border-scale-400
+ bg-scale-200
+ "
+ >
<tr>
<th
- className="relative pb-4 px-6 text-sm font-medium text-scale-1200 dark:text-white text-left"
+ className="relative pb-4 px-6 text-sm font-normal text-scale-900 text-left"
scope="col"
>
<span className="sr-only">Feature by</span>
@@ -216,8 +185,11 @@ export default function IndexPage() {
></div>
</th>
- <th className="w-1/4 pb-4 px-6 text-left font-medium" scope="col">
- <h4>Free</h4>
+ <th
+ className="w-1/4 pb-4 px-6 text-sm text-left font-normal text-scale-1200"
+ scope="col"
+ >
+ <span>Free</span>
<div
className="absolute bottom-0 left-0 h-0.25 w-full bg-scale-200 dark:bg-scale-300"
style={{ height: '1px' }}
@@ -225,10 +197,10 @@ export default function IndexPage() {
</th>
<th
- className="w-1/4 pb-4 px-6 text-lg leading-6 font-medium text-scale-900 text-left"
+ className="w-1/4 pb-4 px-6 text-sm leading-6 font-normal text-scale-1200 text-left"
scope="col"
>
- <h4>Pro</h4>
+ <span>Pro</span>
<div
className="absolute bottom-0 left-0 h-0.25 w-full bg-scale-200 dark:bg-scale-300"
style={{ height: '1px' }}
@@ -236,10 +208,10 @@ export default function IndexPage() {
</th>
<th
- className="w-1/4 pb-4 px-6 text-lg leading-6 font-medium text-scale-900 text-left"
+ className="w-1/4 pb-4 px-6 text-sm leading-6 font-normal text-scale-1200 text-left"
scope="col"
>
- <h4>Pay as you go</h4>
+ <span>Pay as you go</span>
<div
className="absolute bottom-0 left-0 h-0.25 w-full bg-scale-200 dark:bg-scale-300"
style={{ height: '1px' }}
@@ -258,70 +230,56 @@ export default function IndexPage() {
<td className="h-full py-8 px-6 align-top">
<div className="relative h-full table">
- <p>
- <span className="text-4xl font-normal text-scale-900 dark:text-white">
- $0
- </span>
- <p> /project /month</p>
- </p>
- <p className="mt-4 mb-16 ">
- <p>Perfect for hobby projects and experiments.</p>
- </p>
- <div className="absolute bottom-0">
- <Link href="https://app.supabase.io" as="https://app.supabase.io">
- <a>
- <Button size="medium" type="default">
- Get started
- </Button>
- </a>
- </Link>
- </div>
+ <span className="h1 text-scale-1200">$0</span>
+ <p className="p"> /project /month</p>
+
+ <p className="p text-sm">Perfect for hobby projects and experiments</p>
+
+ <Link href="https://app.supabase.io" as="https://app.supabase.io">
+ <a>
+ <Button size="medium" type="default">
+ Get started
+ </Button>
+ </a>
+ </Link>
</div>
</td>
<td className="h-full py-8 px-6 align-top">
<div className="relative h-full table">
- <p>
- <span className="text-4xl font-normal text-scale-900 dark:text-white">
- $25
- </span>
- <p> /project /month</p>
- </p>
- <p className="mt-4 mb-16 ">
- <p>Everything you need to scale your project into production.</p>
+ <span className="h1 text-scale-1200">$25</span>
+ <p className="p"> /project /month</p>
+
+ <p className="p text-sm">
+ Everything you need to scale your project into production
</p>
- <div className="absolute bottom-0">
- <Link href="https://app.supabase.io" as="https://app.supabase.io">
- <a>
- <Button size="medium" type="default">
- Get started
- </Button>
- </a>
- </Link>
- </div>
+
+ <Link href="https://app.supabase.io" as="https://app.supabase.io">
+ <a>
+ <Button size="medium" type="default">
+ Get started
+ </Button>
+ </a>
+ </Link>
</div>
</td>
<td className="h-full py-8 px-6 align-top">
<div className="relative h-full table">
- <p>
- <span className="text-4xl font-normal text-scale-900 dark:text-white">
- $25
- </span>
- <p> /project /month plus usage costs</p>
- </p>
- <p className="mt-4 mb-16 ">
- <p>Designated support team, account manager and technical specialist.</p>
+ <span className="h1 text-scale-1200">$25</span>
+ <p className="p"> /project /month plus usage costs</p>
+
+ <p className="p text-sm">
+ Designated support team, account manager and technical specialist
</p>
- <div className="absolute bottom-0">
- <Link href="https://app.supabase.io" as="https://app.supabase.io">
- <a>
- <Button size="medium" type="default">
- Get started
- </Button>
- </a>
- </Link>
- </div>
+
+ <Link href="https://app.supabase.io" as="https://app.supabase.io">
+ <a>
+ <Button size="medium" type="default">
+ Get started
+ </Button>
+ </a>
+ </Link>
</div>
</td>
</tr>
@@ -381,8 +339,8 @@ export default function IndexPage() {
<div className="border-t dark:border-scale-600">
<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">
- <h2>Frequently asked questions</h2>
- <p className="w-2/3 lg:w-4/12 mb-4 text-base">
+ <h2 className="h3">Frequently asked questions</h2>
+ <p className="p max-w-sm mb-4 text-base">
Can&apos;t find the answer to your question, ask someone in the community either on our
Discord or GitHub.
</p>
@@ -401,7 +359,7 @@ export default function IndexPage() {
</a>
</Link>
<div className="mt-16">
- <div className="grid grid-cols-2 gap-y-10 gap-x-10">
+ <div className="grid grid-cols-1 lg:grid-cols-2 gap-y-10 gap-x-10">
{pricingFaq.map((faq, i) => {
return (
<div>
diff --git a/www/pages/storage/Storage.tsx b/www/pages/storage/Storage.tsx
index 56b0d8505a2..58661365310 100644
--- a/www/pages/storage/Storage.tsx
+++ b/www/pages/storage/Storage.tsx
@@ -82,110 +82,88 @@ function StoragePage() {
<SectionContainer>
<div className="grid grid-cols-12">
<div className="mb-10 lg:mb-0 col-span-12 lg:col-span-3">
- <p>
- <p className="mb-4 flex items-center space-x-2">
- <ProductIcon icon={Solutions['storage'].icon} />
- <IconX />
- <ProductIcon icon={Solutions['authentication'].icon} />
- <IconX />
- <ProductIcon icon={Solutions['database'].icon} />
- </p>
- </p>
- <h4>Interoperable</h4>
- <p>
- <p className="text-lg">
- Integrates well with the rest of Supabase ecosystem, including Auth and Postgres.
- </p>
- {/* <p>
- Familiar and easy to use permissions mean that your content is secure and accessible
- only to the right users
- </p> */}
+ <div className="mb-4 flex items-center space-x-2">
+ <ProductIcon icon={Solutions['storage'].icon} />
+ <IconX />
+ <ProductIcon icon={Solutions['authentication'].icon} />
+ <IconX />
+ <ProductIcon icon={Solutions['database'].icon} />
+ </div>
+
+ <h4 className="h4">Interoperable</h4>
+
+ <p className="p">
+ Integrates well with the rest of Supabase ecosystem, including Auth and Postgres.
</p>
</div>
<div className="mb-10 lg:mb-0 col-span-12 lg:col-span-3 lg:col-start-5">
- <p>
- <p>
- <Space>
- <ProductIcon
- icon={
- 'M16 8v8m-4-5v5m-4-2v2m-2 4h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z'
- }
- />
- </Space>
- </p>
- </p>
- <h4>Lightning fast</h4>
- <p>
- <p className="text-lg">
- Thin API server layer that leverages Postgres' permissions and performance.
- </p>
- {/* <p>
- 1.3x faster than XXX, your content can be delivered anywhere in the world at the
- speed you expect.
- </p> */}
+ <div className="mb-4 flex items-center space-x-2">
+ <ProductIcon
+ icon={
+ 'M16 8v8m-4-5v5m-4-2v2m-2 4h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z'
+ }
+ />
+ </div>
+ <h4 className="h4">Lightning fast</h4>
+ <p className="p">
+ Thin API server layer that leverages Postgres' permissions and performance.
</p>
</div>
<div className="col-span-12 lg:col-span-3 lg:col-start-9">
- <p>
- <p>
- <Space>
- <ProductIcon
- icon={
- 'M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z'
- }
- />
- </Space>
- </p>
- </p>
- <h4>Dependable</h4>
- <p>
- <p className="text-lg">Enterprise-level scalability and durability.</p>
- {/* <p>A durability rating of 99.999999999%.</p> */}
- </p>
+ <div className="mb-4 flex items-center space-x-2">
+ <ProductIcon
+ icon={
+ 'M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z'
+ }
+ />
+ </div>
+ <h4 className="h4">Dependable</h4>
+ <p className="p">Enterprise-level scalability and durability.</p>
</div>
</div>
</SectionContainer>
<SectionContainer className="pt-16">
<div className="mb-16 block">
- <h1>Sleek dashboard for managing your media</h1>
- <p>
- <p className="text-lg">
- A complete Object Explorer so that any of your team can use.
- </p>
- <p>
- Drag and drop uploading, moving objects, and multiple object selection. As easy as
- working on your desktop.
- </p>
+ <h2 className="h3">Sleek dashboard for managing your media</h2>
+ <p className="p text-lg">
+ A complete Object Explorer so that any of your team can use.
+ </p>
+ <p className="p">
+ Drag and drop uploading, moving objects, and multiple object selection. As easy as
+ working on your desktop.
</p>
</div>
<ImageCarousel
// @ts-ignore
content={DashboardViewData}
- footer={[
- <h4 key="title">Check out our example app</h4>,
- // !! Update this example !!
- <ExampleCard
- key="example"
- type={'example'}
- products={['database', 'auth', 'storage']}
- title={'Profile management example'}
- description={
- 'Update a user account with public profile information, including uploading a profile image.'
- }
- author={'supabase'}
- author_url={'https://github.com/supabase'}
- author_img={'https://avatars.githubusercontent.com/u/54469796'}
- repo_name={'nextjs-ts-user-management'}
- repo_url={
- 'https://github.com/supabase/supabase/tree/master/examples/nextjs-ts-user-management'
- }
- vercel_deploy_url={
- 'https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fsupabase%2Fsupabase%2Ftree%2Fmaster%2Fexamples%2Fnextjs-ts-user-management&project-name=supabase-user-management&repository-name=supabase-user-management&demo-title=Supabase%20User%20Management&demo-description=An%20example%20web%20app%20using%20Supabase%20and%20Next.js&demo-url=https%3A%2F%2Fsupabase-nextjs-ts-user-management.vercel.app&demo-image=https%3A%2F%2Fi.imgur.com%2FZ3HkQqe.png&integration-ids=oac_jUduyjQgOyzev1fjrW83NYOv&external-id=nextjs-user-management'
- }
- demo_url={''}
- />,
- ]}
+ footer={
+ <>
+ <span key="check-out" className="p block mb-4">
+ Check out our example app
+ </span>
+ <ExampleCard
+ key="example"
+ type={'example'}
+ products={['database', 'auth', 'storage']}
+ title={'Profile management example'}
+ description={
+ 'Update a user account with public profile information, including uploading a profile image.'
+ }
+ author={'supabase'}
+ author_url={'https://github.com/supabase'}
+ author_img={'https://avatars.githubusercontent.com/u/54469796'}
+ repo_name={'nextjs-ts-user-management'}
+ repo_url={
+ 'https://github.com/supabase/supabase/tree/master/examples/nextjs-ts-user-management'
+ }
+ vercel_deploy_url={
+ 'https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fsupabase%2Fsupabase%2Ftree%2Fmaster%2Fexamples%2Fnextjs-ts-user-management&project-name=supabase-user-management&repository-name=supabase-user-management&demo-title=Supabase%20User%20Management&demo-description=An%20example%20web%20app%20using%20Supabase%20and%20Next.js&demo-url=https%3A%2F%2Fsupabase-nextjs-ts-user-management.vercel.app&demo-image=https%3A%2F%2Fi.imgur.com%2FZ3HkQqe.png&integration-ids=oac_jUduyjQgOyzev1fjrW83NYOv&external-id=nextjs-user-management'
+ }
+ demo_url={''}
+ />
+ </>
+ }
/>
</SectionContainer>
@@ -238,34 +216,30 @@ function StoragePage() {
<SectionContainer>
<div className="grid grid-cols-12 lg:gap-16">
<div className="col-span-12 lg:col-span-5 mb-8">
- <h2>
+ <h2 className="h3">
Integrates natively <br />
with Supabase Auth
</h2>
- <p>
- <p className="">
- Using Postgres Row Level Security to create Object access rules.
- </p>
- <p>
- Storage Authorization is built around Postgres so that you can use any
- combination of SQL, Postgres functions, and even your own metadata to
- write policies.
- </p>
+
+ <p className="p">
+ Using Postgres Row Level Security to create Object access rules.
</p>
- <Link
- href="/docs/reference/javascript/storage-createbucket"
- as="/docs/reference/javascript/storage-createbucket"
- >
- <a>
- <Button
- size="small"
- type="default"
- className="mt-4"
- icon={<IconArrowUpRight />}
- >
- Explore documentation
- </Button>
- </a>
+ <p className="p">
+ Storage Authorization is built around Postgres so that you can use any
+ combination of SQL, Postgres functions, and even your own metadata to write
+ policies.
+ </p>
+
+ <Link href="/docs/reference/javascript/storage-createbucket" passHref>
+ <Button
+ as="a"
+ size="small"
+ type="default"
+ className="mt-4"
+ icon={<IconArrowUpRight />}
+ >
+ Explore documentation
+ </Button>
</Link>
</div>
<div className="col-span-12 lg:col-span-6 lg:col-start-7">
diff --git a/www/styles/index.css b/www/styles/index.css
index cfb6a33b266..738024d64de 100644
--- a/www/styles/index.css
+++ b/www/styles/index.css
@@ -38,74 +38,74 @@ h6 { */
Typography
*/
-h1:not(.prose *):not(.overwrite),
-h2:not(.prose *):not(.overwrite),
-h3:not(.prose *):not(.overwrite),
-h4:not(.prose *):not(.overwrite),
-h5:not(.prose *):not(.overwrite),
-h6:not(.prose *):not(.overwrite) {
+.h1:not(.prose *):not(.overwrite),
+.h2:not(.prose *):not(.overwrite),
+.h3:not(.prose *):not(.overwrite),
+.h4:not(.prose *):not(.overwrite),
+.h5:not(.prose *):not(.overwrite),
+.h6:not(.prose *):not(.overwrite) {
@apply text-scale-1200;
margin-bottom: 16px;
}
-h1:not(.prose *):not(.overwrite) {
+.h1:not(.prose *):not(.overwrite) {
@apply text-4xl;
}
-h2:not(.prose *):not(.overwrite) {
+.h2:not(.prose *):not(.overwrite) {
@apply text-3xl;
}
-h3:not(.prose *):not(.overwrite) {
+.h3:not(.prose *):not(.overwrite) {
@apply text-2xl;
}
-h4:not(.prose *):not(.overwrite) {
+.h4:not(.prose *):not(.overwrite) {
@apply text-xl;
}
-h5:not(.prose *):not(.overwrite) {
+.h5:not(.prose *):not(.overwrite) {
@apply text-xl;
}
-h1:not(.prose *):not(.overwrite),
-h2:not(.prose *):not(.overwrite) {
+.h1:not(.prose *):not(.overwrite),
+.h2:not(.prose *):not(.overwrite) {
line-height: 1.2 !important;
}
@media only screen and (max-width: 960px) {
- h1:not(.prose *):not(.overwrite) {
+ .h1:not(.prose *):not(.overwrite) {
font-size: 2.2rem !important;
}
- h2:not(.prose *):not(.overwrite) {
+ .h2:not(.prose *):not(.overwrite) {
font-size: 2rem !important;
}
}
@media only screen and (max-width: 720px) {
- h1:not(.prose *):not(.overwrite) {
+ .h1:not(.prose *):not(.overwrite) {
font-size: 2rem !important;
}
- h2:not(.prose *):not(.overwrite) {
+ .h2:not(.prose *):not(.overwrite) {
font-size: 1.8rem !important;
}
}
@media only screen and (max-width: 520px) {
- h1:not(.prose *):not(.overwrite) {
+ .h1:not(.prose *):not(.overwrite) {
font-size: 1.8rem !important;
}
- h2:not(.prose *):not(.overwrite) {
+ .h2:not(.prose *):not(.overwrite) {
font-size: 1.6rem !important;
}
}
-p:not(.prose *):not(.overwrite) {
+.p:not(.prose *):not(.overwrite) {
@apply text-scale-1100;
margin-bottom: 16px;
}
-small:not(.prose *):not(.overwrite) {
+.small:not(.prose *):not(.overwrite) {
@apply text-xs text-scale-900;
}
diff --git a/www/types/post.ts b/www/types/post.ts
index 47d9523aa21..8d8352023b8 100644
--- a/www/types/post.ts
+++ b/www/types/post.ts
@@ -2,6 +2,7 @@ import Author from './author'
type PostTypes = {
slug: string
+ type: 'casestudy' | 'blog'
title: string
date: string
coverImage: string
@@ -18,6 +19,7 @@ type PostTypes = {
url: string
tags: []
logo?: string
+ hideAuthor?: boolean
}
export default PostTypes