Skip to content

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

Update icons

Francesco Sansalvadore439d80254680
diff --git a/apps/www/components/Footer/index.tsx b/apps/www/components/Footer/index.tsx
index 0323b165b0a..372b1ef1a68 100644
--- a/apps/www/components/Footer/index.tsx
+++ b/apps/www/components/Footer/index.tsx
@@ -9,14 +9,18 @@ import * as supabaseLogoWordmarkDark from 'common/assets/images/supabase-logo-wo
import * as supabaseLogoWordmarkLight from 'common/assets/images/supabase-logo-wordmark--light.png'
import { useRouter } from 'next/router'
-const Footer = () => {
+interface Props {
+ className?: string
+}
+
+const Footer = (props: Props) => {
const { isDarkMode } = useTheme()
const { pathname } = useRouter()
const isLaunchWeekPage = pathname.includes('launch-week')
return (
<footer
- className="border-scale-500 dark:border-scale-600 border-t"
+ className={['border-scale-500 dark:border-scale-600 border-t', props.className].join(' ')}
aria-labelledby="footerHeading"
>
<h2 id="footerHeading" className="sr-only">
diff --git a/apps/www/components/Layouts/Default.tsx b/apps/www/components/Layouts/Default.tsx
index 99c1b5d863b..b869456d43e 100644
--- a/apps/www/components/Layouts/Default.tsx
+++ b/apps/www/components/Layouts/Default.tsx
@@ -6,11 +6,18 @@ type Props = {
hideHeader?: boolean
hideFooter?: boolean
className?: string
+ footerClassName?: string
children: React.ReactNode
}
const DefaultLayout = (props: Props) => {
- const { hideHeader = false, hideFooter = false, className = '', children } = props
+ const {
+ hideHeader = false,
+ hideFooter = false,
+ className = '',
+ footerClassName = '',
+ children,
+ } = props
return (
<>
@@ -18,7 +25,7 @@ const DefaultLayout = (props: Props) => {
<div className="min-h-screen">
<main className={className}>{children}</main>
</div>
- {!hideFooter && <Footer />}
+ {!hideFooter && <Footer className={footerClassName} />}
</>
)
}
diff --git a/apps/www/components/Sections/EnterpriseCta.tsx b/apps/www/components/Sections/EnterpriseCta.tsx
index 8df85c7cf43..7c17fcc2971 100644
--- a/apps/www/components/Sections/EnterpriseCta.tsx
+++ b/apps/www/components/Sections/EnterpriseCta.tsx
@@ -11,16 +11,9 @@ const EnterpriseCta = () => {
Supabase Vector for Enterprise
</h2>
<div className="w-full mt-4 flex items-center justify-center text-center gap-4">
- <Link href="#">
+ <Link href="https://forms.supabase.com/enterprise">
<a>
- <Button size="medium">Contact Support</Button>
- </a>
- </Link>
- <Link href="#">
- <a>
- <Button type="default" size="medium">
- Fill out Enterprise Form
- </Button>
+ <Button size="medium">Fill out Enterprise Form</Button>
</a>
</Link>
</div>
diff --git a/apps/www/components/Sections/FeaturesSection.tsx b/apps/www/components/Sections/FeaturesSection.tsx
index ce79c63b78f..2c3dc3a3210 100644
--- a/apps/www/components/Sections/FeaturesSection.tsx
+++ b/apps/www/components/Sections/FeaturesSection.tsx
@@ -47,7 +47,7 @@ const FeaturesSection = ({ title, paragraph, features }: Props) => {
>
<path
d={feature.icon}
- stroke="white"
+ stroke="var(--colors-scale12)"
strokeMiterlimit="10"
strokeLinejoin="bevel"
/>
diff --git a/apps/www/components/Sections/TimedTabsSection.tsx b/apps/www/components/Sections/TimedTabsSection.tsx
index a76c41a3f94..a735284445c 100644
--- a/apps/www/components/Sections/TimedTabsSection.tsx
+++ b/apps/www/components/Sections/TimedTabsSection.tsx
@@ -2,7 +2,7 @@ import React, { useState, useEffect, ReactNode } from 'react'
import { motion, useAnimation } from 'framer-motion'
import SectionContainer from '~/components/Layouts/SectionContainer'
import Link from 'next/link'
-import { Button } from 'ui'
+import { Button, IconArrowUpRight } from 'ui'
import CodeBlock from '../CodeBlock/CodeBlock'
import { Swiper, SwiperSlide } from 'swiper/react'
@@ -118,7 +118,7 @@ const TimedTabsSection = ({
{cta && (
<Link href={cta.link}>
<a className="">
- <Button type="default" size="tiny">
+ <Button type="default" size="small" icon={<IconArrowUpRight />}>
{cta.label ?? 'Explore more'}
</Button>
</a>
diff --git a/apps/www/components/Sections/UseCasesSection.tsx b/apps/www/components/Sections/UseCasesSection.tsx
index 99ce77fc875..d278c31fc25 100644
--- a/apps/www/components/Sections/UseCasesSection.tsx
+++ b/apps/www/components/Sections/UseCasesSection.tsx
@@ -2,14 +2,17 @@ import Link from 'next/link'
import React, { ReactNode } from 'react'
import { Button } from 'ui'
import SectionContainer from '~/components/Layouts/SectionContainer'
+import InteractiveShimmerCard from '../InteractiveShimmerCard'
interface UseCase {
- img: string
+ img?: string
title: string
description: string
+ icon?: string
cta?: {
label?: string
link: string
+ isDisabled?: boolean
}
}
@@ -26,25 +29,32 @@ const UseCasesSection = ({ title, paragraph, useCases }: Props) => {
<h2 className="heading-gradient text-2xl sm:text-3xl xl:text-4xl">{title}</h2>
<p className="mx-auto text-scale-900 lg:w-1/2">{paragraph}</p>
</div>
- <div className="grid gap-10 grid-cols-2 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-3">
+ <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 (
- <>
- <div className="flex flex-col gap-3">
- <img
- className="bg-scale-300 hidden w-full aspect-video rounded-lg dark:block"
- src={`/images/realtime/example-apps/dark/${example.img}?type=1`}
- alt={example.title}
- />
- <img
- className="bg-scale-300 block rounded-lg dark:hidden"
- src={`/images/realtime/example-apps/light/${example.img}`}
- alt={example.title}
- />
+ <InteractiveShimmerCard innerClassName="p-8 h-full !bg-scale-200">
+ <div className="h-full flex flex-col gap-4 items-start justify-between">
<div className="prose">
- <h4 className="text-lg">{example.title}</h4>
- <p className="text-sm text-scale-900">{example.description}</p>
- {example.cta && (
+ <div className="flex items-center gap-1">
+ <svg
+ width="21"
+ height="21"
+ viewBox="0 0 21 21"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path d={example.icon} fill="var(--colors-brand12)" />
+ </svg>
+ <h4 className="text-lg m-0">{example.title}</h4>
+ </div>
+ <p className="text-sm text-scale-900 mt-2">{example.description}</p>
+ </div>
+ {example.cta &&
+ (example.cta.isDisabled ? (
+ <Button size="tiny" type="default" disabled className="justify-end">
+ {example.cta.label ?? 'View example'}
+ </Button>
+ ) : (
<Link href={example.cta.link}>
<a>
<Button size="tiny" type="default">
@@ -52,10 +62,9 @@ const UseCasesSection = ({ title, paragraph, useCases }: Props) => {
</Button>
</a>
</Link>
- )}
- </div>
+ ))}
</div>
- </>
+ </InteractiveShimmerCard>
)
})}
</div>
diff --git a/apps/www/data/products/vector/page.tsx b/apps/www/data/products/vector/page.tsx
index 80c61695cf6..8ba1f9a34ce 100644
--- a/apps/www/data/products/vector/page.tsx
+++ b/apps/www/data/products/vector/page.tsx
@@ -77,7 +77,11 @@ export const pageData = {
paragraph: 'Go effortlessly from experimentation to production-ready AI applications.',
useCases: [
{
- img: '',
+ icon: `
+ M3 12V15C3 16.6569 6.13401 18 10 18C13.866 18 17 16.6569 17 15V12C17 13.6569 13.866 15 10 15C6.13401 15 3 13.6569 3 12Z
+ M3 7V10C3 11.6569 6.13401 13 10 13C13.866 13 17 11.6569 17 10V7C17 8.65685 13.866 10 10 10C6.13401 10 3 8.65685 3 7Z
+ M17 5C17 6.65685 13.866 8 10 8C6.13401 8 3 6.65685 3 5C3 3.34315 6.13401 2 10 2C13.866 2 17 3.34315 17 5Z
+ `,
title: 'Semantic Search',
description: 'Search your own knowledge base by semantic similarity.',
cta: {
@@ -86,7 +90,7 @@ export const pageData = {
},
},
{
- img: '',
+ icon: 'M18 10C18 13.866 14.4183 17 10 17C8.50836 17 7.11208 16.6428 5.91677 16.0208L2 17L3.3383 13.8773C2.4928 12.7673 2 11.434 2 10C2 6.13401 5.58172 3 10 3C14.4183 3 18 6.13401 18 10ZM7 9H5V11H7V9ZM15 9H13V11H15V9ZM9 9H11V11H9V9Z',
title: 'Chatbots',
description: 'Enhance chatbot memory with content-based long-term retention.',
cta: {
@@ -95,25 +99,51 @@ export const pageData = {
},
},
{
- img: '',
+ icon: `M6 2C4.89543 2 4 2.89543 4 4V9.52779C5.06151 8.57771 6.46329 8 8 8C11.3137 8 14 10.6863 14 14C14 15.5367 13.4223 16.9385 12.4722 18H14C15.1046 18 16 17.1046 16 16V7.41421C16 6.88378 15.7893 6.37507 15.4142 6L12 2.58579C11.6249 2.21071 11.1162 2 10.5858 2H6Z
+
+ M4 14C4 11.7909 5.79086 10 8 10C10.2091 10 12 11.7909 12 14C12 16.2091 10.2091 18 8 18C7.25862 18 6.56362 17.7977 5.96818 17.446L4.70711 18.7071C4.31658 19.0976 3.68342 19.0976 3.29289 18.7071C2.90237 18.3166 2.90237 17.6834 3.29289 17.2929L4.55397 16.0318C4.20229 15.4364 4 14.7414 4 14ZM8 12C6.89543 12 6 12.8954 6 14C6 14.5526 6.22276 15.0512 6.58579 15.4142C6.94881 15.7772 7.44744 16 8 16C9.10457 16 10 15.1046 10 14C10 12.8954 9.10457 12 8 12Z
+ `,
title: 'Hybrid search',
description: 'Combine semantic and full-text search with powerful SQL filtering.',
+ cta: {
+ label: 'Template coming soon',
+ link: '#',
+ isDisabled: true,
+ },
},
{
- img: '',
+ icon: `
+ M7 3C6.44772 3 6 3.44772 6 4C6 4.55228 6.44772 5 7 5H13C13.5523 5 14 4.55228 14 4C14 3.44772 13.5523 3 13 3H7Z
+ M4 7C4 6.44772 4.44772 6 5 6H15C15.5523 6 16 6.44772 16 7C16 7.55228 15.5523 8 15 8H5C4.44772 8 4 7.55228 4 7Z
+ M2 11C2 9.89543 2.89543 9 4 9H16C17.1046 9 18 9.89543 18 11V15C18 16.1046 17.1046 17 16 17H4C2.89543 17 2 16.1046 2 15V11Z
+ `,
title: 'Image Similarity',
description:
'Transform images into image vector representations to detect similarity patterns.',
+ cta: {
+ label: 'Template coming soon',
+ link: '/docs/examples/ai/image_search/README.md',
+ },
},
{
- img: '',
+ icon: 'M4 7C4 5.34315 5.34315 4 7 4H12C12.2985 4 12.5656 4.12956 12.7503 4.33882C12.764 4.35438 12.7782 4.36952 12.7929 4.38419L19.7671 11.3584C19.9131 11.5326 20 11.755 20 12C20 12.2985 19.8704 12.5656 19.6612 12.7503C19.6456 12.764 19.6305 12.7782 19.6158 12.7929L12.6416 19.7671C12.4674 19.9131 12.245 20 12 20C11.755 20 11.5326 19.9131 11.3584 19.7671L4.36217 12.7709L4.33882 12.7503C4.12956 12.5656 4 12.2985 4 12V7ZM7 6C6.44772 6 6 6.44772 6 7C6 7.55228 6.44772 8 7 8H7.01C7.56228 8 8.01 7.55228 8.01 7C8.01 6.44772 7.56228 6 7.01 6H7Z',
title: 'Data Management',
description: 'Automatically tag, deduplicate or detect patterns in your vector store.',
+ cta: {
+ label: 'Template coming soon',
+ link: '#',
+ isDisabled: true,
+ },
},
{
- img: '',
+ icon: 'M11 4C11 3.44772 10.5523 3 10 3V3.66667C10 4.74852 9.64911 5.80119 9 6.66667L7.6 8.53333C7.21053 9.05262 7 9.68422 7 10.3333V15.7639C7 16.1427 7.214 16.489 7.55279 16.6584L7.60263 16.6833C8.01919 16.8916 8.47854 17 8.94427 17H14.3604C14.8371 17 15.2475 16.6635 15.341 16.1961L16.541 10.1961C16.6647 9.57732 16.1914 9 15.5604 9H11V4ZM3.5 10C3.22386 10 3 10.2239 3 10.5V16.5C3 16.7761 3.22386 17 3.5 17C3.77614 17 4 16.7761 4 16.5V10.5C4 10.2239 3.77614 10 3.5 10Z',
title: 'Recommendations',
description: 'Discover related content: articles, videos, restaurants, and more.',
+ cta: {
+ label: 'Template coming soon',
+ link: '#',
+ isDisabled: true,
+ },
},
],
},
@@ -213,7 +243,7 @@ docs.query(
text: 'Vector embeddings are in the same database as the rest of your data, which reduces I/O roundtrips and improves performance.',
},
{
- icon: 'M2.22628 8.76631C2.07453 6.92839 2.70175 5.03824 4.10791 3.63208C6.64632 1.09367 10.7619 1.09367 13.3003 3.63208C15.8387 6.17049 15.8387 10.2861 13.3003 12.8245C10.7619 15.3629 6.64632 15.3629 4.10791 12.8245C3.50852 12.2251 3.05066 11.5377 2.73434 10.804M0.516543 7.55176L2.23116 9.26638L3.94578 7.55176M5.95088 4.97787L11.3675 4.97787L11.3675 7.1379L5.95088 7.1379L5.95088 4.97787ZM6.2096 7.13777L11.0825 7.13777L11.0825 9.2978L6.2096 9.2978L6.2096 7.13777ZM5.95114 9.29726L11.3678 9.29726L11.3678 11.4573H5.95114V9.29726Z',
+ icon: 'M4.91487 13.2285C5.86512 13.8602 7.00579 14.2283 8.23242 14.2283C11.5461 14.2283 14.2324 11.542 14.2324 8.22829C14.2324 8.11073 14.229 7.99396 14.2224 7.87807M3.28193 11.6194C2.61985 10.6547 2.23242 9.48673 2.23242 8.22829C2.23242 4.91458 4.91871 2.22829 8.23242 2.22829C8.39255 2.22829 8.5512 2.23457 8.70817 2.24688M9.46665 8.58586L4.3435 13.7088C3.90333 14.149 3.18653 14.1385 2.75937 13.6857C2.34945 13.2512 2.35938 12.5695 2.78179 12.1471L3.2029 11.726C3.3557 11.5732 3.56294 11.4873 3.77903 11.4873C4.16497 11.4873 4.49797 11.2166 4.5767 10.8387L4.59586 10.7467C4.66128 10.4328 4.91553 10.1929 5.23277 10.1458L5.34332 10.1294C5.69603 10.0771 5.94129 9.75114 5.89383 9.39774C5.86677 9.19626 5.93525 8.99369 6.079 8.84994L7.95043 6.97863M11.8738 3.4597C13.4175 4.63864 14.2297 6.42029 14.2324 8.22341M13.0854 4.42519C13.0854 4.97714 12.638 5.42458 12.0861 5.42458C11.5341 5.42458 11.0867 4.97714 11.0867 4.42519C11.0867 3.87325 11.5341 3.4258 12.0861 3.4258C12.638 3.4258 13.0854 3.87325 13.0854 4.42519ZM15.0686 5.16418C15.0686 7.21981 13.4022 8.88623 11.3466 8.88623C9.29095 8.88623 7.62453 7.21981 7.62453 5.16418C7.62453 3.10856 9.29095 1.44214 11.3466 1.44214C13.4022 1.44214 15.0686 3.10856 15.0686 5.16418Z',
title: 'No vendor lock-in',
text: 'We use existing standards to increase portability and to avoid lock-in, making it easy to migrate in and out.',
},