Skip to content

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

update customer quotes section

Francesco Sansalvadore0a1c9b74cf47
diff --git a/apps/www/components/Sections/CustomerQuotesSection.tsx b/apps/www/components/Sections/CustomerQuotesSection.tsx
new file mode 100644
index 00000000000..211fea6a216
--- /dev/null
+++ b/apps/www/components/Sections/CustomerQuotesSection.tsx
@@ -0,0 +1,141 @@
+import { useEffect, useRef, useState } from 'react'
+import Image from 'next/image'
+import { useRouter } from 'next/router'
+import Link from 'next/link'
+import { useWindowSize } from 'react-use'
+
+import TweetCard from '~/components/TweetCard'
+import { Swiper, SwiperSlide } from 'swiper/react'
+import SwiperCore, { Autoplay } from 'swiper'
+
+import SectionContainer from '../Layouts/SectionContainer'
+import { useBreakpoint } from 'common'
+import { ArrowTopRightSvg } from '../LaunchWeek/Releases/LW7/components'
+import { IconArrowLeft, IconArrowUpRight } from 'ui'
+
+SwiperCore.use([Autoplay])
+
+interface CardInterface {
+ type?: string
+ avatar?: string
+ author: string
+ role?: string
+ quote: string | React.ReactNode
+ abstract?: string
+ image?: string
+ url?: string
+ logo?: string
+ customer?: string
+}
+
+interface Props {
+ customers: CardInterface[]
+ secondaryLinks: CardInterface[]
+}
+
+const CustomerQuotesSection = (props: Props) => {
+ const ref = useRef<any>(null)
+ const isSm = useBreakpoint(768)
+ const { basePath } = useRouter()
+ const [swiperInstance, setSwiperInstance] = useState<SwiperCore | any | null>(null)
+ const { width } = useWindowSize()
+
+ useEffect(() => {
+ // trigger autoplay if viewport resize
+ if (swiperInstance) swiperInstance?.autoplay?.start()
+ }, [width])
+
+ useEffect(() => {
+ if (!ref.current || !swiperInstance?.autoplay) return
+
+ ref.current?.addEventListener('mouseover', () => swiperInstance?.autoplay?.stop())
+ ref.current?.addEventListener('mouseleave', () => swiperInstance?.autoplay?.start())
+
+ return () => {
+ ref.current?.removeEventListener('mouseover', () => swiperInstance?.autoplay?.stop())
+ ref.current?.removeEventListener('mouseleave', () => swiperInstance?.autoplay?.start())
+ }
+ }, [ref.current, swiperInstance?.autoplay])
+
+ const Card = (card: CardInterface) => (
+ <div className="dark:bg-scale-300 hover:border-scale-600 hover:dark:border-scale-700 border-scale-300 dark:border-scale-400 rounded-2xl border bg-white p-6 drop-shadow-sm flex flex-col justify-between">
+ <div className="flex flex-col gap-4">
+ <div className="h-24 w-full flex items-center justify-center pb-3">
+ <div className="relative w-full flex items-center justify-center h-10">
+ <Image
+ src={card.image!}
+ alt={`Supabase + ${card.customer}`}
+ layout="fill"
+ objectFit="contain"
+ objectPosition="center"
+ />
+ </div>
+ </div>
+ <div className="border-t pt-4">
+ <p className="text-scale-1200 font-medium">{card.author}</p>
+ <p className="text-scale-900 text-sm">{card.role}</p>
+ </div>
+ <p className="text-scale-900 mt-1 text-base">{card.quote}</p>
+ </div>
+
+ {card.url && (
+ <div className="text-brand-900 border-t mt-4 pt-4 cursor-pointer text-sm flex items-center justify-between">
+ <span>Read Customer Story</span>
+ <IconArrowUpRight />
+ </div>
+ )}
+ </div>
+ )
+
+ return (
+ <div className="py-16 sm:py-18 md:py-24 bg-scale-100">
+ <div className="relative h-[300px] w-screen mx-auto md:w-full -mb-32 z-0">
+ <Image
+ src="/images/product/vector/community/vector-community.svg"
+ alt="vector graphic"
+ layout="fill"
+ objectFit={isSm ? 'cover' : 'contain'}
+ />
+ </div>
+ <SectionContainer className="!py-0">
+ <div className="col-span-12 text-center relative z-10">
+ <h3 className="text-3xl md:text-4xl heading-gradient">
+ Join a growing <br />
+ community of users
+ </h3>
+ </div>
+ <div
+ ref={ref}
+ className="relative mx-auto grid grid-cols-1 lg:grid-cols-3 gap-4 xl:gap-8 pt-16 pb-0"
+ >
+ {props.customers.map((customer) => (
+ <Link href={`${basePath}${customer.url}`}>
+ <a className="h-full flex">
+ <Card {...customer} />
+ </a>
+ </Link>
+ ))}
+ <div className="w-full h-full flex flex-col justify-stretch gap-4 xl:gap-8">
+ {props.secondaryLinks.map((link) => (
+ <Link href={`${basePath}${link.url}`}>
+ <a className="w-full h-auto lg:h-full dark:bg-scale-300 hover:border-scale-600 hover:dark:border-scale-700 border-scale-300 dark:border-scale-400 rounded-2xl border bg-white p-6 drop-shadow-sm flex flex-col justify-center items-center py-16">
+ <div className="relative w-full flex items-center justify-center h-10 pb-3">
+ <Image
+ src={link.image!}
+ alt={`Supabase + ${link.customer}`}
+ layout="fill"
+ objectFit="contain"
+ objectPosition="center"
+ />
+ </div>
+ </a>
+ </Link>
+ ))}
+ </div>
+ </div>
+ </SectionContainer>
+ </div>
+ )
+}
+
+export default CustomerQuotesSection
diff --git a/apps/www/components/Sections/FeaturesSection.tsx b/apps/www/components/Sections/FeaturesSection.tsx
index 2c3dc3a3210..1e74a7a5495 100644
--- a/apps/www/components/Sections/FeaturesSection.tsx
+++ b/apps/www/components/Sections/FeaturesSection.tsx
@@ -3,7 +3,7 @@ import React, { ReactNode } from 'react'
import { ReactMarkdown } from 'react-markdown/lib/react-markdown'
import { Button } from 'ui'
import SectionContainer from '~/components/Layouts/SectionContainer'
-import { pageData } from '~/data/products/vector/page'
+import { pageData } from '~/data/products/vector/pageData'
interface Props {
title: string | ReactNode
diff --git a/apps/www/components/Sections/UseCasesSection.tsx b/apps/www/components/Sections/UseCasesSection.tsx
index d278c31fc25..9fd27aa8b92 100644
--- a/apps/www/components/Sections/UseCasesSection.tsx
+++ b/apps/www/components/Sections/UseCasesSection.tsx
@@ -32,7 +32,7 @@ const UseCasesSection = ({ title, paragraph, useCases }: Props) => {
<div className="mx-auto w-full max-w-5xl grid gap-4 grid-cols-2 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-3">
{useCases.map((example) => {
return (
- <InteractiveShimmerCard innerClassName="p-8 h-full !bg-scale-200">
+ <InteractiveShimmerCard innerClassName="p-4 md:p-8 h-full !bg-scale-200">
<div className="h-full flex flex-col gap-4 items-start justify-between">
<div className="prose">
<div className="flex items-center gap-1">
@@ -43,9 +43,9 @@ const UseCasesSection = ({ title, paragraph, useCases }: Props) => {
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
- <path d={example.icon} fill="var(--colors-brand12)" />
+ <path d={example.icon} fill="var(--colors-scale11)" />
</svg>
- <h4 className="text-lg m-0">{example.title}</h4>
+ <h4 className="text-sm md:text-lg m-0">{example.title}</h4>
</div>
<p className="text-sm text-scale-900 mt-2">{example.description}</p>
</div>
diff --git a/apps/www/data/products/vector/page.tsx b/apps/www/data/products/vector/pageData.tsx
similarity index 85%
rename from apps/www/data/products/vector/page.tsx
rename to apps/www/data/products/vector/pageData.tsx
index 8ba1f9a34ce..ea2db31bcf1 100644
--- a/apps/www/data/products/vector/page.tsx
+++ b/apps/www/data/products/vector/pageData.tsx
@@ -1,7 +1,7 @@
import Link from 'next/link'
import IntegrationsSVG from '~/components/products/vector/IntegrationsSVG'
-export const pageData = {
+export default {
metaTitle: '',
metaDescription: '',
heroSection: {
@@ -259,4 +259,58 @@ docs.query(
},
],
},
+ quotesSection: {
+ customers: [
+ {
+ type: 'customer-story',
+ avatar: '',
+ customer: 'Markprompt',
+ author: 'Michael Fester',
+ role: 'Co-Founder, Markprompt',
+ quote:
+ 'We decided to use Supabase over other specialized vector databases because it enabled us to be GDPR compliant from day one with little effort.',
+ image: '/images/product/vector/community/supabase+mendable.svg',
+ abstract: 'Markprompt and Supabase - GDPR-Compliant AI Chatbots for Docs and Websites.',
+ url: '/customers/markprompt',
+ },
+ {
+ type: 'customer-story',
+ avatar: '',
+ customer: 'Mendable',
+ author: 'Caleb Peffer',
+ role: 'CEO, Mendable',
+ quote:
+ 'We tried other vector databases - we tried Faiss, we tried Weviate, we tried Pinecone. We found them to be incredibly expensive and not very intuitive. If you’re just doing vector search they’re great, but if you need to store a bunch of metadata that becomes a huge pain.',
+ image: '/images/product/vector/community/supabase+markprompt.svg',
+ abstract: 'Mendable switches from Pinecone to Supabase for PostgreSQL vector embeddings.',
+ url: '/customers/mendable',
+ },
+ ],
+ secondaryLinks: [
+ {
+ type: 'customer-story',
+ avatar: '',
+ customer: 'Markprompt',
+ author: 'Michael Fester',
+ role: 'Co-Founder, Markprompt',
+ quote:
+ 'We decided to use Supabase over other specialized vector databases because it enabled us to be GDPR compliant from day one with little effort.',
+ image: '/images/product/vector/community/supabase+mendable.svg',
+ abstract: 'Markprompt and Supabase - GDPR-Compliant AI Chatbots for Docs and Websites.',
+ url: '/customers/markprompt',
+ },
+ {
+ type: 'customer-story',
+ avatar: '',
+ customer: 'Mendable',
+ author: 'Caleb Peffer',
+ role: 'CEO, Mendable',
+ quote:
+ 'We tried other vector databases - we tried Faiss, we tried Weviate, we tried Pinecone. We found them to be incredibly expensive and not very intuitive. If you’re just doing vector search they’re great, but if you need to store a bunch of metadata that becomes a huge pain.',
+ image: '/images/product/vector/community/supabase+markprompt.svg',
+ abstract: 'Mendable switches from Pinecone to Supabase for PostgreSQL vector embeddings.',
+ url: '/customers/mendable',
+ },
+ ],
+ },
}
diff --git a/apps/www/pages/vector/Vector.tsx b/apps/www/pages/vector/Vector.tsx
index 3890a8d1f4d..845c385ac3f 100644
--- a/apps/www/pages/vector/Vector.tsx
+++ b/apps/www/pages/vector/Vector.tsx
@@ -1,7 +1,7 @@
import { NextSeo } from 'next-seo'
import { useRouter } from 'next/router'
import DefaultLayout from '~/components/Layouts/Default'
-import CommunitySlider from '~/components/Sections/CommunitySlider'
+import CustomerQuotesSection from '~/components/Sections/CustomerQuotesSection'
import ProductHeaderCentered from '~/components/Sections/ProductHeaderCentered'
import FeaturesSection from '~/components/Sections/FeaturesSection'
import HighlightCards from '~/components/Sections/HighlightCards'
@@ -11,7 +11,7 @@ import TimedTabsSection from '~/components/Sections/TimedTabsSection'
import ProductsCta from '~/components/Sections/ProductsCta'
import EnterpriseCta from '~/components/Sections/EnterpriseCta'
-import { pageData } from '~/data/products/vector/page'
+import pageData from '~/data/products/vector/pageData'
import 'swiper/swiper.min.css'
@@ -43,10 +43,14 @@ function VectorPage() {
<HighlightCards {...pageData.highlightsSection} />
<CenteredTitleImage {...pageData.integrations} />
<TimedTabsSection {...pageData.APIsection} />
- <UseCasesSection {...pageData.useCasesSection} />
- <FeaturesSection {...pageData.featuresSection} />
- <CommunitySlider />
- <EnterpriseCta />
+ <div className="bg-white dark:bg-[#121212]">
+ <UseCasesSection {...pageData.useCasesSection} />
+ <FeaturesSection {...pageData.featuresSection} />
+ </div>
+ <CustomerQuotesSection {...pageData.quotesSection} />
+ <div className="bg-gradient-to-t from-white dark:from-[#121212] to-transparent">
+ <EnterpriseCta />
+ </div>
<div className="bg-scale-200">
<div className="w-full h-[1px] bg-gradient-to-r from-scale-100 via-scale-500 dark:via-scale-600 to-scale-100" />
<ProductsCta />