Skip to content

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

Add final CTA and add benchmark cta based on figma

Joshen Lim8633a8807ce7
diff --git a/www/components/button.tsx b/www/components/button.tsx
new file mode 100644
index 00000000000..c9ab3c2b12f
--- /dev/null
+++ b/www/components/button.tsx
@@ -0,0 +1,41 @@
+type Props = {
+ type?: 'primary' | 'secondary',
+ text: string,
+ url?: string,
+ className?: string,
+}
+
+const Button = (props: Props) => {
+ const {
+ type = 'primary',
+ text,
+ url,
+ className
+ } = props
+
+ const colorClass = type === 'primary'
+ ? 'text-white bg-brand-600 hover:bg-brand-700'
+ : 'text-black bg-none'
+
+ const renderButton = () => (
+ <button
+ type="button"
+ className={`
+ mt-1 inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium
+ rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-500
+ ${colorClass} ${className}
+ `}
+ >
+ {text}
+ { url && <span className="ml-2">→</span> }
+ </button>
+ )
+
+ return (
+ url
+ ? <a href={url}>{renderButton()}</a>
+ : renderButton()
+ )
+}
+
+export default Button
\ No newline at end of file
diff --git a/www/components/index_sections/CTABanner.tsx b/www/components/index_sections/CTABanner.tsx
new file mode 100644
index 00000000000..1764c5b2694
--- /dev/null
+++ b/www/components/index_sections/CTABanner.tsx
@@ -0,0 +1,21 @@
+import Button from '../button'
+
+const CTABanner = () => {
+ return (
+ <div className="h-64 p-16 grid grid-cols-12 gap-4 items-center bg-gradient-to-r from-neutral-700 to-neutral-500">
+ <div className="col-span-9">
+ <h4 className="text-5xl font-normal text-white sm:text-2xl">
+ <span className="block">Ready to get started?</span>
+ </h4>
+ <p className="text-2xl mt-1 text-gray-200">
+ <span className="text-brand-600">Create your next project backend in less than 2 minutes.</span>
+ </p>
+ </div>
+ <div className="col-span-3 text-right">
+ <Button text="Create a new project" url="#" />
+ </div>
+ </div>
+ )
+}
+
+export default CTABanner
\ No newline at end of file
diff --git a/www/components/index_sections/CaseStudies.tsx b/www/components/index_sections/CaseStudies.tsx
index b9a113a4751..0245561131b 100644
--- a/www/components/index_sections/CaseStudies.tsx
+++ b/www/components/index_sections/CaseStudies.tsx
@@ -1,4 +1,5 @@
import React from 'react'
+import Button from '../button'
import ArticleThumb from './../ArticleThumb'
import SectionHeader from '../UI/SectionHeader'
import CaseStudiesData from "./../../data/CaseStudies.json"
@@ -27,6 +28,23 @@ const CaseStudies = () => {
</div>
</div>
+ <div className="bg-white pt-16 pb-4 px-4 sm:px-6 lg:px-8">
+ <div className="grid grid-cols-12 gap-4 items-center shadow-md rounded-md">
+ <div className="w-full h-full col-span-2 bg-gray-300 rounded-l-md"></div>
+ <div className="col-span-6 py-6 ml-4">
+ <p className="text-xl">Record breaking speed and reliability</p>
+ <p className="text-gray-400 mt-2">
+ <span className="block">Supabase is already enterprise level and we’re blown away by the speed!</span>
+ <span className="block">Sign up for our public benchmark release and we’ll email it to you</span>
+ </p>
+ </div>
+ <div className="col-span-2" />
+ <div className="col-span-2 rounded-r-md">
+ <Button text="Get notified" url="#"/>
+ </div>
+ </div>
+ </div>
+
<div className="bg-white">
<div className="mx-auto py-16 px-4 sm:px-6 lg:px-8">
<div className="bg-gray-700 rounded-lg shadow-xl overflow-hidden lg:grid lg:grid-cols-12 lg:gap-4">
diff --git a/www/pages/index.tsx b/www/pages/index.tsx
index e4ceebf003f..271ef49d452 100644
--- a/www/pages/index.tsx
+++ b/www/pages/index.tsx
@@ -9,6 +9,7 @@ import BuiltExamples from '../components/index_sections/BuiltWithSupabase'
import MadeForDevelopers from '../components/index_sections/MadeForDevelopers'
import AdminAccess from '../components/index_sections/AdminAccess'
import CaseStudies from '../components/index_sections/CaseStudies'
+import CTABanner from '../components/index_sections/CTABanner'
type Props = {
@@ -28,6 +29,7 @@ const Index = ({ }: Props) => {
<MadeForDevelopers />
<AdminAccess />
<CaseStudies />
+ <CTABanner />
</Container>
</Layout>
</>
diff --git a/www/tailwind.config.js b/www/tailwind.config.js
index 69baeb16fa3..9799c5d5c30 100644
--- a/www/tailwind.config.js
+++ b/www/tailwind.config.js
@@ -40,6 +40,17 @@ module.exports = {
100: '#202020',
200: '#1E1E1E',
300: '#3A3A3A',
+ },
+ // Joshen: Adding our Figma palette here
+ neutral: {
+ 100: '#F1F1F1',
+ 200: '#E0E0E0',
+ 300: '#BBBBBB',
+ 400: '#666666',
+ 500: '#444444',
+ 600: '#1E1E1E',
+ 700: '#181818',
+ 800: '#000000',
}
},
spacing: {