Skip to content

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

add features section

Francesco Sansalvadoreec0411a57aa0
diff --git a/apps/www/components/Sections/FeaturesSection.tsx b/apps/www/components/Sections/FeaturesSection.tsx
new file mode 100644
index 00000000000..7ddad0c6855
--- /dev/null
+++ b/apps/www/components/Sections/FeaturesSection.tsx
@@ -0,0 +1,66 @@
+import Link from 'next/link'
+import React 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'
+
+const FeaturesSection = () => {
+ return (
+ <SectionContainer>
+ <div className="grid grid-cols-1 lg:grid-cols-12 gap-8 xl:gap-10 justify-between">
+ <div className="col-span-full lg:col-span-4 gap-2 flex flex-col">
+ <h2 className="text-2xl sm:text-3xl xl:text-4xl max-w-[280px] sm:max-w-xs xl:max-w-[360px] tracking-[-1px]">
+ <span className="heading-gradient">Powerful Features</span>
+ <br />
+ <span className="heading-gradient-brand">Seamless Development</span>
+ </h2>
+ <p className="p">
+ We offer an all-in-one platform to empower your entire AI project from start to finish.
+ </p>
+ <Link href="">
+ <a className="">
+ <Button type="default" size="small">
+ Explore documentation
+ </Button>
+ </a>
+ </Link>
+ </div>
+ <div className="col-span-full lg:col-start-6 lg:col-span-7 space-y-10 lg:space-y-0 flex flex-col lg:grid lg:grid-cols-2 lg:gap-16">
+ {pageData.features.map(
+ (feature: { icon: string; title: string; text: string }, i: number) => {
+ return (
+ <div className="h-full flex items-start space-x-3 w-full" key={i}>
+ <div className="flex items-center">
+ <div className="relative w-full h-6 flex items-center mx-auto">
+ <svg
+ width="17"
+ height="17"
+ viewBox="0 0 17 17"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d={feature.icon}
+ stroke="white"
+ strokeMiterlimit="10"
+ strokeLinejoin="bevel"
+ />
+ </svg>
+ </div>
+ </div>
+ <div className="text-sm lg:text-base">
+ <h2 className="text-base">{feature.title}</h2>
+ <ReactMarkdown className="prose pt-1 text-sm">{feature.text}</ReactMarkdown>
+ </div>
+ </div>
+ )
+ }
+ )}
+ </div>
+ </div>
+ </SectionContainer>
+ )
+}
+
+export default FeaturesSection
diff --git a/apps/www/components/Sections/ProductHeaderCentered.tsx b/apps/www/components/Sections/ProductHeaderCentered.tsx
index 606136cee76..21e13c200ed 100644
--- a/apps/www/components/Sections/ProductHeaderCentered.tsx
+++ b/apps/www/components/Sections/ProductHeaderCentered.tsx
@@ -27,7 +27,7 @@ const ProductHeaderCentered = (props: Types) => (
)}
</div>
) : null}
- <h1 className="h1" key={`h1`}>
+ <h1 className="h1 tracking-[-1px]" key={`h1`}>
{props.h1}
</h1>
</div>
diff --git a/apps/www/data/Solutions.json b/apps/www/data/Solutions.json
index 8ff5645d8d4..699ff3d1691 100644
--- a/apps/www/data/Solutions.json
+++ b/apps/www/data/Solutions.json
@@ -41,7 +41,7 @@
},
"vector": {
"name": "Vector",
- "icon": "M13 10V3L4 14h7v7l9-11h-7z",
+ "icon": "M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z",
"description": "todo",
"description_short": "",
"label": "",
diff --git a/apps/www/data/products/vector/page.tsx b/apps/www/data/products/vector/page.tsx
index a3866fa87ed..dde1907ce96 100644
--- a/apps/www/data/products/vector/page.tsx
+++ b/apps/www/data/products/vector/page.tsx
@@ -1,4 +1,4 @@
-const pageData = {
+export const pageData = {
metaTitle: '',
metaDescription: '',
sections: [
@@ -6,4 +6,36 @@ const pageData = {
component: '',
},
],
+ features: [
+ {
+ 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',
+ title: 'Fully managed or Self-Hosted',
+ text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.',
+ },
+ {
+ 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',
+ title: 'Multi region',
+ text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.',
+ },
+ {
+ 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',
+ title: 'Health Benefits',
+ text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.',
+ },
+ {
+ 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',
+ title: 'No vendor lock-in',
+ text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.',
+ },
+ {
+ 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',
+ title: 'Automatic Backups',
+ text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.',
+ },
+ {
+ 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',
+ title: 'Highly Scalable',
+ text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.',
+ },
+ ],
}
diff --git a/apps/www/pages/vector/Vector.tsx b/apps/www/pages/vector/Vector.tsx
index 636f28a4ad8..8259b3e1633 100644
--- a/apps/www/pages/vector/Vector.tsx
+++ b/apps/www/pages/vector/Vector.tsx
@@ -6,12 +6,13 @@ import { useRouter } from 'next/router'
import CTABanner from '~/components/CTABanner'
import DefaultLayout from '~/components/Layouts/Default'
import SectionContainer from '~/components/Layouts/SectionContainer'
+import CommunitySlider from '~/components/Sections/CommunitySlider'
import APISection from '~/components/Sections/APISection'
import ProductHeaderCentered from '~/components/Sections/ProductHeaderCentered'
import VectorStyles from './vector.module.css'
+import FeaturesSection from '~/components/Sections/FeaturesSection'
import 'swiper/swiper.min.css'
-import CommunitySlider from '../../components/Sections/CommunitySlider'
const Cursor = ({ className = '', color = 'none' }) => {
return (
@@ -196,6 +197,8 @@ function VectorPage() {
</div>
</SectionContainer>
+ <FeaturesSection />
+
{/* <SectionContainer>
<APISection
title="Simple and convenient APIs"
diff --git a/apps/www/styles/index.css b/apps/www/styles/index.css
index 1f83cb0fefc..909477afcac 100644
--- a/apps/www/styles/index.css
+++ b/apps/www/styles/index.css
@@ -90,6 +90,10 @@ h6:not(.overwrite) {
@apply text-[#F4FFFA00] bg-clip-text bg-gradient-to-b from-scale-1200 to-scale-1200 dark:to-scale-1100;
}
+.heading-gradient-brand {
+ @apply text-[#3ECF8E00] bg-clip-text bg-gradient-to-b from-brand-1000 to-brand-900 dark:to-brand-900;
+}
+
.toc-animate {
@apply !translate-x-1 !text-brand-900;
}