The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
update enterprise solutions to customer stories in homepage
Francesco Sansalvadore727ed208d976
diff --git a/apps/www/components/CustomerStories/index.tsx b/apps/www/components/CustomerStories/index.tsxnew file mode 100644index 00000000000..c08d20b92cb--- /dev/null+++ b/apps/www/components/CustomerStories/index.tsx@@ -0,0 +1,54 @@+import SectionHeader from 'components/UI/SectionHeader'+import PostTypes from '~/types/post'+import SectionContainer from '../Layouts/SectionContainer'+import Link from 'next/link'+import { GlassPanel } from 'ui'+import TextLink from '../TextLink'++const CustomerStories = ({ customerStories }: any) => {+ const caseStudyThumbs = customerStories.map((blog: PostTypes, idx: number) => {+ return {+ logo: blog.logo,+ logoInverse: blog.logo_inverse,+ title: blog.title,+ link: blog.url,+ }+ })++ return (+ <SectionContainer>+ <div className="mb-12">+ <SectionHeader+ title={'Infrastructure'}+ title_alt={' to innovate and scale with ease.'}+ subtitle={'Customer Stories'}+ paragraph={+ 'See how Supabase empowers companies of all sizes to accelerate their growth and streamline their work.'+ }+ />+ </div>+ <div className="mx-auto mt-5 grid grid-cols-12 gap-8 lg:gap-12">+ {caseStudyThumbs.map((caseStudy: any, i: number) => (+ <Link href={`${caseStudy.link}`} key={caseStudy.title} passHref>+ <a className="col-span-12 md:col-span-4">+ <GlassPanel+ {...caseStudy}+ background={true}+ showIconBg={true}+ showLink={true}+ hasLightIcon+ >+ {caseStudy.description}+ </GlassPanel>+ </a>+ </Link>+ ))}+ </div>+ <div className="mt-12">+ <TextLink url="/customers" label="Explore more" />+ </div>+ </SectionContainer>+ )+}++export default CustomerStoriesdiff --git a/apps/www/components/Nav/Product.tsx b/apps/www/components/Nav/Product.tsxindex cbe441af445..5ced2463e55 100644--- a/apps/www/components/Nav/Product.tsx+++ b/apps/www/components/Nav/Product.tsx@@ -85,7 +85,7 @@ const Product = () => {iconRight={<IconArrowRight />}className="mt-6">- View all+ Explore more</Button></Link></div>diff --git a/apps/www/data/CustomerStories.json b/apps/www/data/CustomerStories.jsonnew file mode 100644index 00000000000..a0846af7313--- /dev/null+++ b/apps/www/data/CustomerStories.json@@ -0,0 +1,53 @@+[+ {+ "type": "Customer Story",+ "title": "A web crawler handling millions of API requests.",+ "description": "See how Monitoro built and automated a scraping platform using Supabase.",+ "imgUrl": "images/case-study-monitoro.jpg",+ "logoUrl": "images/logos/monitoro.png",+ "organization": "Monitoro",+ "url": "/blog/case-study-monitoro",+ "path": "/blog/case-study-monitoro",+ "postMeta": {+ "name": "Paul Copplestone",+ "avatarUrl": "https://avatars0.githubusercontent.com/u/10214025?v=4",+ "publishDate": "Mar 16, 2020",+ "readLength": 6+ },+ "ctaText": "View case study"+ },+ {+ "type": "Customer Story",+ "title": "Counter-fraud watchlists for the fintech industry.",+ "description": "See how Xendit use Supabase to build a full-text search engine.",+ "imgUrl": "images/case-study-xendit.jpg",+ "logoUrl": "images/logos/xendit.png",+ "organization": "Llama Lab",+ "url": "/blog/case-study-xendit",+ "path": "/blog/case-study-xendit",+ "postMeta": {+ "name": "Paul Copplestone",+ "avatarUrl": "https://avatars0.githubusercontent.com/u/10214025?v=4",+ "publishDate": "Mar 20, 2020",+ "readLength": 10+ },+ "ctaText": "View case study"+ },+ {+ "type": "Customer Story",+ "title": "A no-code website builder, deployed in seven days.",+ "description": "See how Tayfa went from idea to paying customer in less than 30 days.",+ "imgUrl": "images/case-study-tayfab.jpg",+ "logoUrl": "images/logos/monitoro.png",+ "organization": "Tayfab",+ "url": "/blog/case-study-tayfa",+ "path": "/blog/case-study-tayfa",+ "postMeta": {+ "name": "Paul Copplestone",+ "avatarUrl": "https://avatars0.githubusercontent.com/u/10214025?v=4",+ "publishDate": "Mar 27, 2020",+ "readLength": 5+ },+ "ctaText": "View case study"+ }+]diff --git a/apps/www/pages/case-studies/[slug].module.css b/apps/www/pages/customers/[slug].module.csssimilarity index 100%rename from apps/www/pages/case-studies/[slug].module.cssrename to apps/www/pages/customers/[slug].module.cssdiff --git a/apps/www/pages/case-studies/[slug].tsx b/apps/www/pages/customers/[slug].tsxsimilarity index 100%rename from apps/www/pages/case-studies/[slug].tsxrename to apps/www/pages/customers/[slug].tsxdiff --git a/apps/www/pages/case-studies/case-studies.module.css b/apps/www/pages/customers/customers.module.csssimilarity index 100%rename from apps/www/pages/case-studies/case-studies.module.cssrename to apps/www/pages/customers/customers.module.cssdiff --git a/apps/www/pages/case-studies/index.tsx b/apps/www/pages/customers/index.tsxsimilarity index 88%rename from apps/www/pages/case-studies/index.tsxrename to apps/www/pages/customers/index.tsxindex 533ffc4e2c4..67db005108e 100644--- a/apps/www/pages/case-studies/index.tsx+++ b/apps/www/pages/customers/index.tsx@@ -7,15 +7,11 @@ import Head from 'next/head'import { NextSeo } from 'next-seo'import { generateRss } from '~/lib/rss'import { getSortedPosts, getAllCategories } from '~/lib/posts'-import authors from 'lib/authors.json'import DefaultLayout from '~/components/Layouts/Default'-import { Typography, Badge, Space, Select } from '@supabase/ui'import PostTypes from '~/types/post'-import BlogListItem from '~/components/Blog/BlogListItem'-import BlogHeader from '~/components/Blog/BlogHeader'import { motion } from 'framer-motion'-import styles from './case-studies.module.css'+import styles from './customers.module.css'import Link from 'next/link'import { GlassPanel } from 'ui'@@ -36,7 +32,7 @@ export async function getStaticProps() {}}-function Blog(props: any) {+function CustomerStoriesPage(props: any) {const [category, setCategory] = useState('all')const [blogs, setBlogs] = useState(props.blogs)const { basePath } = useRouter()@@ -72,7 +68,10 @@ function Blog(props: any) {href={`${basePath}/case-studies-rss.xml`}/></Head>- <NextSeo title="Case studies" description="Latest customers using Supabase" />+ <NextSeo+ title="Customer stories"+ description="See how Supabase empowers companies of all sizes to accelerate their growth and streamline their work."+ /><DefaultLayout><div className="relative z-0 dark:bg-scale-200 bg-scale-200 overflow-hidden"><div className="container mx-auto mt-44 px-8 sm:px-4 xl:px-20">@@ -82,9 +81,9 @@ function Blog(props: any) {initial={{ opacity: 0, y: 10 }}animate={{ opacity: 1, y: 0, transition: { duration: 0.5, easing: 'easeOut' } }}>- <h1 className="text-scale-1200 mb-3 text-3xl">Case studies</h1>+ <h1 className="text-scale-1200 mb-3 text-3xl">Customer stories</h1><h2 className="text-scale-1100 text-xl">- Discover how supabase is being used around the world to quickly create outstanding+ Discover how Supabase is being used around the world to quickly create outstandingproducts and set new industry standards.</h2></motion.div>@@ -131,4 +130,4 @@ function Blog(props: any) {)}-export default Blog+export default CustomerStoriesPagediff --git a/apps/www/pages/index.tsx b/apps/www/pages/index.tsxindex b77b29eb4a7..bd4027e8819 100644--- a/apps/www/pages/index.tsx+++ b/apps/www/pages/index.tsx@@ -1,3 +1,5 @@+import { getSortedPosts, getAllCategories } from '~/lib/posts'+import PostTypes from '~/types/post'import Container from 'components/Container'import Layout from '~/components/Layouts/Default'import Hero from 'components/Hero'@@ -6,16 +8,16 @@ import Features from 'components/Features/index'import BuiltExamples from 'components/BuiltWithSupabase/index'import MadeForDevelopers from 'components/MadeForDevelopers/index'import AdminAccess from 'components/AdminAccess/index'-import CaseStudies from 'components/CaseStudies/index'import CTABanner from 'components/CTABanner/index'+import CustomerStories from 'components/CustomerStories'import TwitterSocialSection from '~/components/TwitterSocialSection'// Import Swiper styles if swiper used on pageimport 'swiper/swiper.min.css'-type Props = {}+type Props = { customerStories: PostTypes[] }-const Index = ({}: Props) => {+const Index = ({ customerStories }: Props) => {return (<><Layout>@@ -26,7 +28,7 @@ const Index = ({}: Props) => {<BuiltExamples /><MadeForDevelopers /><AdminAccess />- <CaseStudies />+ <CustomerStories customerStories={customerStories} /><CTABanner /></Container></Layout>@@ -34,4 +36,14 @@ const Index = ({}: Props) => {)}+export async function getStaticProps() {+ const customerStories = getSortedPosts('_case-studies', 3)++ return {+ props: {+ customerStories,+ },+ }+}+export default Indexdiff --git a/apps/www/public/planetpg-oli_rice-rss.xml b/apps/www/public/planetpg-oli_rice-rss.xmlindex 286dd45d87e..a505f880b43 100644--- a/apps/www/public/planetpg-oli_rice-rss.xml+++ b/apps/www/public/planetpg-oli_rice-rss.xml@@ -35,6 +35,20 @@<description>Today we're releasing pg_jsonschema, a Postgres extension for JSON validation.</description><pubDate>Thu, 18 Aug 2022 02:02:30 +0000</pubDate></item>+<item>+ <guid>https://supabase.com/blog/postgres-foreign-data-wrappers-rust</guid>+ <title>Supabase Wrappers, a Postgres FDW framework written in Rust</title>+ <link>https://supabase.com/blog/postgres-foreign-data-wrappers-rust</link>+ <description>A framework for building Postgres Foreign Data Wrappers which connects to Stripe, Firebase, Clickhouse, and more.</description>+ <pubDate>Wed, 14 Dec 2022 23:11:00 +0000</pubDate>+</item>+<item>+ <guid>https://supabase.com/blog/pg-jsonschema-a-postgres-extension-for-json-validation</guid>+ <title>pg_jsonschema: JSON Schema support for Postgres</title>+ <link>https://supabase.com/blog/pg-jsonschema-a-postgres-extension-for-json-validation</link>+ <description>Today we're releasing pg_jsonschema, a Postgres extension for JSON validation.</description>+ <pubDate>Thu, 18 Aug 2022 22:10:00 +0000</pubDate>+</item><item><guid>https://supabase.com/blog/audit</guid><title>Postgres Auditing in 150 lines of SQL</title>