The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: replace Card components
Jonathan Summers-Muir04d97945ab56
diff --git a/www/components/BuiltWithSupabase/index.tsx b/www/components/BuiltWithSupabase/index.tsxindex a7142e42ff1..b549d6ff888 100644--- a/www/components/BuiltWithSupabase/index.tsx+++ b/www/components/BuiltWithSupabase/index.tsx@@ -1,7 +1,7 @@-import Card from 'components/Card'+import { useRouter } from 'next/router'import SectionHeader from 'components/UI/SectionHeader'import ProjectExamples from 'data/ProjectExamples.json'-import { useRouter } from 'next/router'+import { Card, Typography, Space } from '@supabase/ui'const BuiltExamples = () => {const { basePath } = useRouter()@@ -21,23 +21,31 @@ const BuiltExamples = () => {<div className="relative max-w-7xl mx-auto"><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) => (- <Card- key={`example_${idx}`}- title={example.title}- type="Project Example"- description={example.description}- imgUrl={`${basePath}/${example.imgUrl}`}- url={example.url}- icons={example.icons}- />+ <a href={example.url}>+ <Card+ key={`example_${idx}`}+ hoverable+ cover={<img src={`${basePath}/${example.imgUrl}`} />}+ >+ <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>- <p className="mt-10 text-base text-gray-500 dark:text-dark-400">- See all examples on our{' '}- <a className="text-brand-700" href="https://github.com/supabase">- Github- </a>- </p>+ <div className={'mt-8'}>+ <Typography.Text type="secondary">+ See all examples on our{' '}+ <Typography.Link href="https://github.com/supabase">Github</Typography.Link>+ </Typography.Text>+ </div></div></div></div>diff --git a/www/components/CaseStudies/index.tsx b/www/components/CaseStudies/index.tsxindex b96c36f67ef..62dc61b60f1 100644--- a/www/components/CaseStudies/index.tsx+++ b/www/components/CaseStudies/index.tsx@@ -1,8 +1,8 @@-import Card from 'components/Card'+import { useRouter } from 'next/router'import Benchmark from 'components/CaseStudies/benchmark'import SectionHeader from 'components/UI/SectionHeader'import CaseStudiesData from 'data/CaseStudies.json'-import { useRouter } from 'next/router'+import { Card, Space, Typography } from '@supabase/ui'const CaseStudies = () => {const { basePath } = useRouter()@@ -26,17 +26,23 @@ const CaseStudies = () => {</div><div className="mt-5 max-w-lg mx-auto grid gap-5 lg:grid-cols-3 lg:max-w-none">{CaseStudiesData.map((caseStudy: any, idx: number) => (- <Card- key={`caseStudy_${idx}`}- title={caseStudy.title}- type={caseStudy.type}- description={caseStudy.description}- imgUrl={`${basePath}/${caseStudy.imgUrl}`}- url={caseStudy.url}- logoUrl={caseStudy.logoUrl}- // postMeta={caseStudy.postMeta}- // ctaText={caseStudy.ctaText}- />+ <a href={caseStudy.url}>+ <Card+ key={`caseStudy_${idx}`}+ hoverable+ cover={<img src={`${basePath}/${caseStudy.imgUrl}`} />}+ >+ <Space className="justify-between h-40" direction="vertical">+ <div>+ <Typography.Text small type="secondary">+ Project example+ </Typography.Text>+ <Typography.Title level={3}>{caseStudy.title}</Typography.Title>+ </div>+ <Typography.Text type="default">{caseStudy.description}</Typography.Text>+ </Space>+ </Card>+ </a>))}</div><Benchmark />diff --git a/www/components/UI/SectionHeader.tsx b/www/components/UI/SectionHeader.tsxindex 6ea8acac98d..e7c9d8f4fe1 100644--- a/www/components/UI/SectionHeader.tsx+++ b/www/components/UI/SectionHeader.tsx@@ -1,16 +1,20 @@+import { Typography } from '@supabase/ui'+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">- <span className="col-span-12 block mb-6 text-sm tracking-widest uppercase text-gray-300 font-mono dark:text-gray-300">- {props.subtitle}- </span>- <h2 className="col-span-12 text-black dark:text-white text-3xl md:text-4xl lg:text-5xl">- {props.title}- {props.title_alt && (- <span className="text-gray-400 dark:text-gray-300 inline">{props.title_alt}</span>- )}- </h2>+ <div className="col-span-12">+ <span className="col-span-12 block mb-6 text-sm tracking-widest uppercase text-gray-300 font-mono dark:text-gray-300">+ {props.subtitle}+ </span>+ <Typography.Title level={2}>+ <span>{props.title}</span>+ {props.title_alt && (+ <span className="text-gray-400 dark:text-gray-300 inline">{props.title_alt}</span>+ )}+ </Typography.Title>+ </div><div className="col-span-12 lg:col-span-7">{props.paragraph && (<p className="mt-3 mx-auto text-xl text-gray-400 dark:text-gray-300 sm:mt-4">