The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add apply tailwind dark mode and folder hierarchy restructuring
Joshen Lim386219a161a8
diff --git a/www/components/index_sections/AdminAccess.tsx b/www/components/AdminAccess/index.tsxsimilarity index 63%rename from www/components/index_sections/AdminAccess.tsxrename to www/components/AdminAccess/index.tsxindex f72ed25534a..b4b8039a7e1 100644--- a/www/components/index_sections/AdminAccess.tsx+++ b/www/components/AdminAccess/index.tsx@@ -1,14 +1,14 @@-import React, { useState, ReactElement } from 'react'-import Tabs from '../tabs'-import SectionHeader from '../UI/SectionHeader'+import React, { useState } from 'react'+import Tabs from 'components/AdminAccess/tabs'+import SectionHeader from 'components/UI/SectionHeader'const AdminAccess = () => {const [tabId, setTabId] = useState('tabTableEditor')return (- <div className="py-16 bg-gray-50 overflow-hidden lg:py-24">+ <div className="py-16 bg-gray-50 dark:bg-dark-100 overflow-hidden lg:py-24"><div className="relative max-w-xl mx-auto px-4 sm:px-6 lg:px-8 lg:max-w-7xl">- <div className="relative mt-12 items-center mt-24">+ <div className="relative items-center"><div className="relative"><SectionHeadertitle={'Build your app,'}@@ -20,15 +20,17 @@ const AdminAccess = () => {tabId={tabId}setTabId={setTabId}/>- <div className="shadow-md">+ <div className="shadow-lg"><div className="w-full rounded-t-md h-5 bg-dark-200 flex items-center justify-start px-2"><div className="h-2 w-2 mr-2 rounded-full bg-dark-300"/><div className="h-2 w-2 mr-2 rounded-full bg-dark-300"/><div className="h-2 w-2 mr-2 rounded-full bg-dark-300"/></div>- <video className="rounded-b-md" src={`videos/${tabId}.mp4`} autoPlay loop muted>- Your browser does not support the video tag- </video>+ <div className="bg-dark-100" style={{height: 305}}>+ <video className="rounded-b-md" src={`videos/${tabId}.mp4`} autoPlay loop muted>+ Your browser does not support the video tag+ </video>+ </div></div></div></div>diff --git a/www/components/tabs.tsx b/www/components/AdminAccess/tabs.tsxsimilarity index 53%rename from www/components/tabs.tsxrename to www/components/AdminAccess/tabs.tsxindex 5c7c04050d7..8973481e892 100644--- a/www/components/tabs.tsx+++ b/www/components/AdminAccess/tabs.tsx@@ -1,4 +1,5 @@-import TabMarkup from "./../data/AdminAccess.json"+import Button from "components/button"+import TabMarkup from "data/AdminAccess.json"type Props = {tabId: string,@@ -23,7 +24,7 @@ function Tabs(props: Props) {<ahref="#"id="tabTableEditor"- className={"w-1/4 py-4 px-1 text-center border-b-2 font-medium text-sm" + (tabId === "tabTableEditor" ? " border-brand-500 text-brand-600" : " border-b border-gray-200 text-gray-500 hover:text-gray-700 hover:border-gray-300")}+ className={"transition w-1/4 py-4 px-1 text-center border-b-2 font-medium text-sm" + (tabId === "tabTableEditor" ? " border-brand-500 text-brand-600" : " border-b border-gray-200 text-gray-500 dark:text-gray-400 hover:text-gray-700 hover:border-gray-300 dark:hover:text-gray-200")}onClick={(event: any) => handleTabChange(event)}>Table Editor@@ -31,7 +32,7 @@ function Tabs(props: Props) {<ahref="#"id="tabSqlEditor"- className={"w-1/4 py-4 px-1 text-center border-b-2 font-medium text-sm" + (tabId === "tabSqlEditor" ? " border-brand-500 text-brand-600" : " border-b border-gray-200 text-gray-500 hover:text-gray-700 hover:border-gray-300")}+ className={"transition w-1/4 py-4 px-1 text-center border-b-2 font-medium text-sm" + (tabId === "tabSqlEditor" ? " border-brand-500 text-brand-600" : " border-b border-gray-200 text-gray-500 dark:text-gray-400 hover:text-gray-700 hover:border-gray-300 dark:hover:text-gray-200")}onClick={(event: any) => handleTabChange(event)}>SQL Editor@@ -39,7 +40,7 @@ function Tabs(props: Props) {<ahref="#"id="tabAuthRules"- className={"w-1/4 py-4 px-1 text-center border-b-2 font-medium text-sm" + (tabId === "tabAuthRules" ? " border-brand-500 text-brand-600" : " border-b border-gray-200 text-gray-500 hover:text-gray-700 hover:border-gray-300")}+ className={"transition w-1/4 py-4 px-1 text-center border-b-2 font-medium text-sm" + (tabId === "tabAuthRules" ? " border-brand-500 text-brand-600" : " border-b border-gray-200 text-gray-500 dark:text-gray-400 hover:text-gray-700 hover:border-gray-300 dark:hover:text-gray-200")}onClick={(event: any) => handleTabChange(event)}aria-current="page">@@ -52,19 +53,19 @@ function Tabs(props: Props) {<div className="mt-6"><div><div className="mt-5">- <dd className="mt-8 text-2xl text-gray-800">+ <dd className="mt-8 w-10/12 text-2xl text-gray-800 dark:text-white">+ {/* @ts-ignore */}{TabMarkup[tabId].header}</dd>- <dd className="mt-8 text-base text-gray-500">+ <dd className="mt-8 text-base text-gray-500 dark:text-gray-400">+ {/* @ts-ignore */}{TabMarkup[tabId].description}</dd></div>- <button- type="button"- className="mt-8 inline-flex items-center px-3 py-2 border border-transparent shadow-sm text-sm leading-4 rounded-md text-white bg-brand-600 hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-500"- >- {TabMarkup[tabId].cta}- </button>++ {/* @ts-ignore */}+ <Button className="mt-8" text={TabMarkup[tabId].cta} url={TabMarkup[tabId].url} />+</div></div>diff --git a/www/components/ArticleThumb.tsx b/www/components/ArticleThumb.tsxindex 0b25efaac2d..fd85d693d4d 100644--- a/www/components/ArticleThumb.tsx+++ b/www/components/ArticleThumb.tsx@@ -1,4 +1,4 @@-import Authors from "./../data/Authors.json"+import Authors from "data/Authors.json"const ArticleThumb = (props: any) => {const {diff --git a/www/components/index_sections/CaseStudies.tsx b/www/components/Benchmark/index.tsxsimilarity index 64%rename from www/components/index_sections/CaseStudies.tsxrename to www/components/Benchmark/index.tsxindex a4362f9483b..c86d82dfeed 100644--- a/www/components/index_sections/CaseStudies.tsx+++ b/www/components/Benchmark/index.tsx@@ -1,36 +1,11 @@-import React from 'react'-import Button from '../button'-import ArticleThumb from './../ArticleThumb'-import SectionHeader from '../UI/SectionHeader'-import CaseStudiesData from "./../../data/CaseStudies.json"--const CaseStudies = () => {+import Button from 'components/button'+const Benchmark = () => {return (- <React.Fragment>- <div className="relative bg-gray-50 pt-16 pb-20 px-4 sm:px-6 lg:pt-24 lg:pb-28 lg:px-8">- <div className="absolute inset-0">- <div className="bg-white h-1/3 sm:h-2/3"></div>- </div>- <div className="relative max-w-7xl mx-auto">- <div>- <SectionHeader- title={'We\'re ready to help scale your business'}- subtitle={'Enterprise Solutions'}- paragraph={'Supabase has already been supporting many companies in production, from monitoring applications to social networks. '}- />- </div>- <div className="mt-5 max-w-lg mx-auto grid gap-5 lg:grid-cols-3 lg:max-w-none">- <ArticleThumb article={CaseStudiesData["monitoro"]} />- <ArticleThumb article={CaseStudiesData["tayfab"]} />- <ArticleThumb article={CaseStudiesData["llama_lab"]} />- </div>- </div>- </div>-- {/* Joshen: Created a version that's referenced from Figma */}- <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">+ <>+ {/* Figma ref */}+ <div className="bg-white dark:bg-dark-100 pt-16 pb-4 px-4 sm:px-6 lg:px-8">+ <div className="bg-white grid grid-cols-12 gap-4 items-center shadow-lg rounded-md"><div className="w-full h-full col-span-2 bg-gray-700 rounded-l-md flex items-center justify-center"><img className="w-3/4" src="images/benchmark.svg" /></div>@@ -48,7 +23,8 @@ const CaseStudies = () => {</div></div>- <div className="bg-white">+ {/* Other */}+ <div className="bg-white dark:bg-dark-100"><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"><div className="pt-10 pb-12 px-6 sm:pt-16 sm:px-16 lg:py-16 lg:pr-0 xl:py-20 xl:px-20 col-span-8">@@ -80,8 +56,8 @@ const CaseStudies = () => {</div></div></div>- </React.Fragment>+ </>)}-export default CaseStudies+export default Benchmark\ No newline at end of filediff --git a/www/components/BuiltWithSupabase/index.tsx b/www/components/BuiltWithSupabase/index.tsxnew file mode 100644index 00000000000..db08a17037c--- /dev/null+++ b/www/components/BuiltWithSupabase/index.tsx@@ -0,0 +1,30 @@+import ArticleThumb from 'components/ArticleThumb'+import SectionHeader from 'components/UI/SectionHeader'+import ProjectExamples from "data/ProjectExamples.json"++const BuiltExamples = () => {+ return (+ <>+ <div className="relative bg-gray-50 dark:bg-dark-100 py-16 px-4 sm:px-6 lg:pt-24 lg:pb-28 lg:px-16">+ <div className="absolute inset-0">+ <div className="bg-white dark:bg-dark-100 h-1/3 sm:h-2/3"></div>+ </div>+ <div className="mx-auto max-w-7xl">+ <SectionHeader+ title={'What you can build'}+ title_alt={' with Supabase'}+ subtitle={'Built with supabase'}+ />+ </div>+ <div className="relative max-w-7xl mx-auto">+ <div className="mt-12 max-w-lg mx-auto grid gap-5 lg:grid-cols-3 lg:max-w-none">+ <ArticleThumb article={ProjectExamples["vercel_and_stripe"]} />+ <ArticleThumb article={ProjectExamples["nextjs-slack-clone"]} />+ </div>+ </div>+ </div>+ </>+ )+}++export default BuiltExamplesdiff --git a/www/components/index_sections/CTABanner.tsx b/www/components/CTABanner/index.tsxsimilarity index 100%rename from www/components/index_sections/CTABanner.tsxrename to www/components/CTABanner/index.tsxdiff --git a/www/components/CaseStudies/index.tsx b/www/components/CaseStudies/index.tsxnew file mode 100644index 00000000000..0bfd59a87d9--- /dev/null+++ b/www/components/CaseStudies/index.tsx@@ -0,0 +1,32 @@+import ArticleThumb from '../ArticleThumb'+import SectionHeader from '../UI/SectionHeader'+import CaseStudiesData from "./../../data/CaseStudies.json"++const CaseStudies = () => {++ return (+ <>+ <div className="relative bg-gray-50 dark:bg-dark-200 pt-16 pb-20 px-4 sm:px-6 lg:pt-24 lg:pb-28 lg:px-8">+ <div className="absolute inset-0">+ <div className="bg-white dark:bg-dark-200 h-1/3 sm:h-2/3"></div>+ </div>+ <div className="relative max-w-7xl mx-auto">+ <div>+ <SectionHeader+ title={'We\'re ready to help scale your business'}+ subtitle={'Enterprise Solutions'}+ paragraph={'Supabase has already been supporting many companies in production, from monitoring applications to social networks. '}+ />+ </div>+ <div className="mt-5 max-w-lg mx-auto grid gap-5 lg:grid-cols-3 lg:max-w-none">+ <ArticleThumb article={CaseStudiesData["monitoro"]} />+ <ArticleThumb article={CaseStudiesData["tayfab"]} />+ <ArticleThumb article={CaseStudiesData["llama_lab"]} />+ </div>+ </div>+ </div>+ </>+ )+}++export default CaseStudiesdiff --git a/www/components/features.tsx b/www/components/Features/index.tsxsimilarity index 77%rename from www/components/features.tsxrename to www/components/Features/index.tsxindex 9d946829852..7fb2a279599 100644--- a/www/components/features.tsx+++ b/www/components/Features/index.tsx@@ -1,33 +1,33 @@-import Badge from './badge'-import Solutions from './../data/Solutions.json'-import SectionHeader from './UI/SectionHeader'+import Badge from 'components/badge'+import SectionHeader from 'components/UI/SectionHeader'+import Solutions from 'data/Solutions.json'const Features = () => {- const IconSections = Object.values(Solutions).map((solution) => {+ const IconSections = Object.values(Solutions).map((solution: any) => {const { name, description, icon, label, url } = solutionreturn (<div key={name}><div className="flex items-center">- <div className="flex items-center justify-center h-12 w-12 rounded-md bg-gray-900 text-white">+ <div className="flex items-center justify-center h-12 w-12 rounded-md bg-gray-900 dark:bg-white text-white">{/* <!-- Heroicon name: globe-alt --> */}<svgclassName="h-6 w-6"xmlns="http://www.w3.org/2000/svg"fill="none"viewBox="0 0 24 24"- stroke="currentColor"+ stroke="black"aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d={icon} /></svg></div>- <dt className="ml-4 text-lg leading-6 font-medium text-gray-900">+ <dt className="ml-4 text-lg leading-6 font-medium text-gray-900 dark:text-white">{name} {label && <Badge>{label}</Badge>}</dt></div><div className="mt-5">- <dd className="mt-2 text-base text-gray-500">{description}</dd>+ <dd className="mt-2 text-base text-gray-500 dark:text-gray-400">{description}</dd></div>{url && (<div className="mt-5">@@ -39,8 +39,7 @@ const Features = () => {})return (- // <!-- This example requires Tailwind CSS v2.0+ -->- <div className="bg-gray-50 overflow-hidden py-12 sm:px-6 lg:px-16">+ <div className="bg-gray-50 dark:bg-dark-200 overflow-hidden py-12 sm:px-6 lg:px-16"><div className="mx-auto max-w-7xl"><SectionHeadertitle={'Build Faster'}@@ -56,7 +55,7 @@ const Features = () => {</dl></div><div className="lg:col-span-5 flex justify-end">- <img src="images/features.png" />+ {/* <img src="images/features.png" /> */}</div></div></div>diff --git a/www/components/Footer/index.tsx b/www/components/Footer/index.tsxnew file mode 100644index 00000000000..da0f7bf9caf--- /dev/null+++ b/www/components/Footer/index.tsx@@ -0,0 +1,71 @@+import FooterLinks from "data/Footer.json"++const Footer = () => {+ return (+ <footer className="bg-white dark:bg-dark-300" aria-labelledby="footerHeading">+ <h2 id="footerHeading" className="sr-only">Footer</h2>+ <div className="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8">+ <div className="xl:grid xl:grid-cols-3 xl:gap-8">+ <div className="space-y-8 xl:col-span-1">+ <img className="h-10 w-auto" src="images/logo-dark.png" alt="Supabase" />+ <p className="text-gray-500 text-base sr-only">Any description</p>+ <div className="flex space-x-6">++ <a href="https://twitter.com/supabase_io" className="text-gray-400 hover:text-gray-500">+ <span className="sr-only">Twitter</span>+ <svg className="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">+ <path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84" />+ </svg>+ </a>++ <a href="https://github.com/supabase" className="text-gray-400 hover:text-gray-500">+ <span className="sr-only">GitHub</span>+ <svg className="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">+ <path+ fillRule="evenodd"+ d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"+ clipRule="evenodd"+ />+ </svg>+ </a>++ </div>+ </div>+ <div className="mt-12 grid grid-cols-1 gap-8 xl:mt-0 xl:col-span-2">+ <div className="md:grid md:grid-cols-4 md:gap-8">+ {FooterLinks.map((segment: any) => {+ return (+ <div key={`footer_${segment.title}`}>+ <h3 className="text-sm font-semibold text-gray-400 tracking-wider uppercase">+ {segment.title}+ </h3>+ <ul className="mt-4 space-y-4">+ {segment.links.map((link: any, idx: number) => (+ <li key={`${segment.title}_link_${idx}`}>+ <a+ href={link.url}+ className={`text-base ${link.url ? 'text-gray-500' : 'text-gray-400'} hover:text-gray-900 dark:hover:text-gray-300`}+ >+ {link.text}+ {!link.url && <span className="block text-sm text-gray-300">Coming soon</span>}+ </a>+ </li>+ ))}+ </ul>+ </div>+ )+ })}+ </div>+ </div>+ </div>+ <div className="mt-12 border-t border-gray-200 pt-8">+ <p className="text-base text-gray-400">+ © Supabase Inc+ </p>+ </div>+ </div>+ </footer>+ )+}++export default Footerdiff --git a/www/components/index_sections/CodeExamples.tsx b/www/components/MadeForDevelopers/CodeExamples.tsxsimilarity index 98%rename from www/components/index_sections/CodeExamples.tsxrename to www/components/MadeForDevelopers/CodeExamples.tsxindex c44c053ad17..8f180fa4ced 100644--- a/www/components/index_sections/CodeExamples.tsx+++ b/www/components/MadeForDevelopers/CodeExamples.tsx@@ -1,12 +1,9 @@import { useState } from 'react'-import { Light as SyntaxHighlighter } from 'react-syntax-highlighter'import js from 'react-syntax-highlighter/dist/cjs/languages/hljs/javascript'import rainbow from 'react-syntax-highlighter/dist/cjs/styles/hljs/rainbow'-import CopyToClipboard from 'react-copy-to-clipboard'--import { examples } from './../../data/CodeExamples'+import { examples } from 'data/CodeExamples'SyntaxHighlighter.registerLanguage('javascript', js)diff --git a/www/components/index_sections/MadeForDevelopers.tsx b/www/components/MadeForDevelopers/index.tsxsimilarity index 91%rename from www/components/index_sections/MadeForDevelopers.tsxrename to www/components/MadeForDevelopers/index.tsxindex c54c94bc5fe..5240e2b1d84 100644--- a/www/components/index_sections/MadeForDevelopers.tsx+++ b/www/components/MadeForDevelopers/index.tsx@@ -1,11 +1,10 @@-import SectionHeader from '../UI/SectionHeader'-import Badge from './../badge'--import CodeExamples from './CodeExamples'+import Badge from 'components/badge'+import SectionHeader from 'components/UI/SectionHeader'+import CodeExamples from 'components/MadeForDevelopers/CodeExamples'const MadeForDevelopers = () => {return (- <div className="py-16 bg-gray-50 overflow-hidden lg:py-24">+ <div className="py-16 bg-gray-50 dark:bg-dark-200 overflow-hidden lg:py-16"><div className="relative max-w-xl mx-auto px-4 sm:px-6 lg:px-8 lg:max-w-7xl"><SectionHeader className="text-center" title={'Supafast easy-to-use APIs'} title_alt={' that do the hard work for you'} subtitle={'MADE FOR DEVELOPERS'} paragraph={'We inspect your database and provide APIs instantly so you can stop building repetitive CRUD endpoints and focus on your product.'} />diff --git a/www/components/nav/FlyOut.js b/www/components/Nav/FlyOut.tsxsimilarity index 95%rename from www/components/nav/FlyOut.jsrename to www/components/Nav/FlyOut.tsxindex e3abd7e34d2..b0b0f6b0c71 100644--- a/www/components/nav/FlyOut.js+++ b/www/components/Nav/FlyOut.tsx@@ -1,8 +1,7 @@import { useState, useEffect } from 'react'-import Transition from '../../lib/Transition'-import Badge from '../badge'--import Solutions from './../../data/Solutions.json'+import Badge from 'components/badge'+import Transition from 'lib/Transition'+import Solutions from 'data/Solutions.json'const FlyOut = () => {const [show, setShow] = useState(false)@@ -72,10 +71,10 @@ const FlyOut = () => {})return (- <React.Fragment>+ <><ahref="#"- className="inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300"+ className="inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 dark:hover:text-gray-300 dark:hover:border-gray-300"onClick={() => handleToggle()}><span>Product</span>@@ -94,6 +93,7 @@ const FlyOut = () => {</svg></a><Transition+ appear={true}show={show}enter="transition ease-out duration-200"enterFrom="opacity-0 translate-y-1"@@ -102,9 +102,9 @@ const FlyOut = () => {leaveFrom="opacity-100 translate-y-0"leaveTo="opacity-0 translate-y-1">- <React.Fragment>+ <><div- class="absolute inset-x-0 transform shadow-lg border-t-2 border-gray-50"+ className="absolute inset-x-0 transform shadow-lg border-t-2 border-gray-50"style={{zIndex: 999,position: 'absolute',@@ -202,9 +202,9 @@ const FlyOut = () => {><div className="absolute inset-0 opacity-0"></div></div>- </React.Fragment>+ </></Transition>- </React.Fragment>+ </>)}diff --git a/www/components/Nav/index.tsx b/www/components/Nav/index.tsxnew file mode 100644index 00000000000..209c7e1111e--- /dev/null+++ b/www/components/Nav/index.tsx@@ -0,0 +1,261 @@+import React, { useState } from 'react'+import Link from 'next/link'++import Badge from 'components/badge'+import FlyOut from 'components/Nav/FlyOut'+import Transition from 'lib/Transition'+import Solutions from 'data/Solutions.json'++const Nav = () => {+ const [open, setOpen] = useState(false)++ React.useEffect(() => {+ if(open) {+ console.log('open if')+ // Prevent scrolling on mount+ document.body.style.overflow = 'hidden';+ } else {+ document.body.style.overflow = 'auto';+ }+ }, [open]);++ const iconSections = Object.values(Solutions).map((solution: any, idx: number) => {+ const { name, description, icon, label, url } = solution++ const content = (+ <div className="mb-3 flex md:h-full lg:flex-col">+ <div className="flex-shrink-0">+ <div className="inline-flex items-center justify-center h-10 w-10 rounded-md bg-gray-900 text-white sm:h-12 sm:w-12">+ {/* <!-- Heroicon name: chart-bar --> */}+ <svg+ className="h-6 w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ aria-hidden="true"+ >+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d={icon} />+ </svg>+ </div>+ </div>+ <div className="ml-4 md:flex-1 md:flex md:flex-col md:justify-between lg:ml-0 lg:mt-4">+ <div>+ <p className="text-base font-medium text-gray-900">+ {name} {label && <Badge>{label}</Badge>}+ </p>+ <p className="mt-1 text-sm text-gray-500">{description}</p>+ </div>+ {url && (+ <p className="mt-2 text-sm font-medium text-brand-600 lg:mt-4">+ Learn more <span aria-hidden="true">→</span>+ </p>+ )}+ </div>+ </div>+ )+ return url ? (+ <a+ key={`solution_${idx}`}+ href="#"+ className="-m-3 p-3 flex flex-col justify-between rounded-lg hover:bg-gray-50 transition ease-in-out duration-150"+ >+ {content}+ </a>+ ) : (+ <div+ key={`solution_${idx}`}+ className="-m-3 p-3 flex flex-col justify-between rounded-lg transition ease-in-out duration-150">+ {content}+ </div>+ )+ })++ type HamburgerButtonProps = {+ toggleFlyOut: Function,+ }++ const HamburgerButton = (props: HamburgerButtonProps) => (+ <div+ className="absolute inset-y-0 left-0 flex items-center sm:hidden"+ onClick={() => props.toggleFlyOut()}+ >+ <button+ className="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500"+ aria-expanded="false"+ >+ <span className="sr-only">Open main menu</span>++ <svg+ className="block h-6 w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ aria-hidden="true"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="2"+ d="M4 6h16M4 12h16M4 18h16"+ />+ </svg>++ <svg+ className="hidden h-6 w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ aria-hidden="true"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="2"+ d="M6 18L18 6M6 6l12 12"+ />+ </svg>+ </button>+ </div>+ )++ return (+ <nav className="bg-white dark:bg-dark-300 z-50 shadow-lg sticky">+ <div className="container mx-auto relative flex justify-between h-16">++ <HamburgerButton toggleFlyOut={() => setOpen(true)} />++ <div className="flex-1 flex items-center justify-center sm:items-stretch sm:justify-start">+ <div className="flex-shrink-0 flex items-center">+ {/* Mobile - remove if not needed */}+ <img+ className="block lg:hidden h-6 w-auto"+ src="images/logo-light.png"+ alt="Workflow"+ />+ {/* Desktop */}+ <img+ className="hidden lg:block h-6 w-auto"+ src="images/logo-dark.png"+ alt="Workflow"+ />+ </div>+ <div className="pl-4 hidden sm:ml-6 sm:flex sm:space-x-8">+ <FlyOut />+ <a+ href="#"+ className={`+ inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium+ text-gray-500 hover:text-gray-700 hover:border-gray-500+ dark:hover:text-gray-300 dark:hover:border-gray-300+ `}+ >+ Developers+ </a>+ <a+ href="#"+ className={`+ inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium+ text-gray-500 hover:text-gray-700 hover:border-gray-500+ dark:hover:text-gray-300 dark:hover:border-gray-300+ `}+ >+ Company+ </a>+ <a+ href="#"+ className={`+ inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium+ text-gray-500 hover:text-gray-700 hover:border-gray-500+ dark:hover:text-gray-300 dark:hover:border-gray-300+ `}+ >+ Pricing+ </a>+ </div>+ </div>+ <div className="absolute inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0"></div>+ </div>++ <Transition+ appear={true}+ show={open}+ enter="transition ease-out duration-200"+ enterFrom="opacity-0 translate-y-1"+ enterTo="opacity-100 translate-y-0"+ leave="transition ease-in duration-150"+ leaveFrom="opacity-100 translate-y-0"+ leaveTo="opacity-0 translate-y-1"+ >++ <div className="p-4 md:p-8 h-full h-screen fixed bg-white transform lg:hidden overflow-y-scroll -inset-y-0" style={{zIndex: 999}}>+ {/* <div className="rounded-lg shadow-md bg-white ring-1 ring-black ring-opacity-5 overflow-hidden"> */}+ <div className="absolute right-4 top-4 items-center justify-between">+ <div className="-mr-2">+ <button+ onClick={() => setOpen(false)}+ type="button"+ className="bg-white rounded-md p-2 inline-flex items-center justify-center text-gray-400 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-brand-500"+ >+ <span className="sr-only">Close menu</span>++ <svg+ className="h-6 w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ aria-hidden="true"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="2"+ d="M6 18L18 6M6 6l12 12"+ />+ </svg>+ </button>+ </div>+ </div>+ {/* </div> */}+ <div className="mt-6 mb-12">+ <div className="pt-2 pb-4 space-y-1">+ <a+ href="#"+ className="block pl-3 pr-4 py-2 text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300"+ >+ Product+ </a>+ <a+ href="#"+ className="block pl-3 pr-4 py-2 text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300"+ >+ Developers+ </a>+ <a+ href="#"+ className="block pl-3 pr-4 py-2 text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300"+ >+ Company+ </a>+ <a+ href="#"+ className="block pl-3 pr-4 py-2 text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300"+ >+ Pricing+ </a>+ </div>+ <div className="p-3">+ <p className="mb-6 text-sm text-gray-400">Products available:</p>+ {iconSections}+ </div>+ </div>+ </div>+ </Transition>+ </nav>+ )+}++export default Nav\ No newline at end of filediff --git a/www/components/UI/SectionHeader.tsx b/www/components/UI/SectionHeader.tsxindex 69d7f150d24..ee5a1adb785 100644--- a/www/components/UI/SectionHeader.tsx+++ b/www/components/UI/SectionHeader.tsx@@ -5,15 +5,15 @@ const SectionHeader = (props :any) => {<span className="block mb-6 text-sm tracking-widest uppercase text-gray-400 font-mono">{props.subtitle}</span>- <h2 className="text-gray-900 text-3xl md:text-4xl lg:text-5xl">+ <h2 className="text-gray-900 dark:text-white text-3xl md:text-4xl lg:text-5xl">{props.title}{props.title_alt && (- <span className="text-gray-600">{props.title_alt}</span>+ <span className="text-gray-600 dark:text-gray-400">{props.title_alt}</span>)}</h2><div>{props.paragraph && (- <p className="mt-3 mx-auto text-xl text-gray-400 sm:mt-4">+ <p className="mt-3 mx-auto text-xl text-gray-400 dark:text-gray-200 sm:mt-4">{props.paragraph}</p>)}diff --git a/www/components/container.tsx b/www/components/container.tsxindex d0284d38617..96e76a0ae5c 100644--- a/www/components/container.tsx+++ b/www/components/container.tsx@@ -5,7 +5,7 @@ type Props = {}const Container: FunctionComponent = ({ children }: Props) => {- return <div className="container mx-auto border-r-2 border-l-2 border-gray-50">+ return <div>{children}</div>}diff --git a/www/components/footer.tsx b/www/components/footer.tsxdeleted file mode 100644index 8843824a5f4..00000000000--- a/www/components/footer.tsx+++ /dev/null@@ -1,206 +0,0 @@-import Container from './container'-import { EXAMPLE_PATH } from '../lib/constants'--// <footer className="bg-accent-1 border-t border-accent-2">-// <Container>-// <div className="py-28 flex flex-col lg:flex-row items-center">-// <h3 className="text-4xl lg:text-5xl font-bold tracking-tighter leading-tight text-center lg:text-left mb-10 lg:mb-0 lg:pr-4 lg:w-1/2">-// Statically Generated with Next.js.-// </h3>-// <div className="flex flex-col lg:flex-row justify-center items-center lg:pl-4 lg:w-1/2">-// <a-// href="https://nextjs.org/docs/basic-features/pages"-// className="mx-3 bg-black hover:bg-white hover:text-black border border-black text-white font-bold py-3 px-12 lg:px-8 duration-200 transition-colors mb-6 lg:mb-0"-// >-// Read Documentation-// </a>-// <a-// href={`https://github.com/vercel/next.js/tree/canary/examples/${EXAMPLE_PATH}`}-// className="mx-3 font-bold hover:underline"-// >-// View on GitHub-// </a>-// </div>-// </div>-// </Container>-// </footer>--const Footer = () => {- return (- <footer className="bg-white" aria-labelledby="footerHeading">- <h2 id="footerHeading" className="sr-only">- Footer- </h2>- <div className="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8">- <div className="xl:grid xl:grid-cols-3 xl:gap-8">- <div className="space-y-8 xl:col-span-1">- {/* <img- className="h-10"- src="https://tailwindui.com/img/logos/workflow-mark-gray-300.svg"- alt="Company name"- /> */}- <img className="h-10 w-auto" src="images/logo-light.png" alt="Supabase" />- <p className="text-gray-500 text-base">- Making the world a better place through constructing elegant hierarchies.- </p>- <div className="flex space-x-6">-- <a href="https://twitter.com/supabase_io" className="text-gray-400 hover:text-gray-500">- <span className="sr-only">Twitter</span>- <svg className="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">- <path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84" />- </svg>- </a>-- <a href="https://github.com/supabase" className="text-gray-400 hover:text-gray-500">- <span className="sr-only">GitHub</span>- <svg className="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">- <path- fillRule="evenodd"- d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"- clipRule="evenodd"- />- </svg>- </a>-- </div>- </div>- <div className="mt-12 grid grid-cols-2 gap-8 xl:mt-0 xl:col-span-2">- <div className="md:grid md:grid-cols-2 md:gap-8">- <div>- <h3 className="text-sm font-semibold text-gray-400 tracking-wider uppercase">- Product- </h3>- <ul className="mt-4 space-y-4">- <li>- <a href="#" className="text-base text-gray-500 hover:text-gray-900">- Database- </a>- </li>-- <li>- <a href="#" className="text-base text-gray-500 hover:text-gray-900">- Authentication- </a>- </li>-- <li>- <span className="text-base text-gray-400">- Storage <span className="block text-sm text-gray-300">Coming soon</span>- </span>- </li>-- <li>- <span className="text-base text-gray-400">- Functions <span className="block text-sm text-gray-300">Coming soon</span>- </span>- </li>-- <li>- <a href="#" className="text-base text-gray-500 hover:text-gray-900">- Pricing- </a>- </li>- </ul>- </div>- <div className="mt-12 md:mt-0">- <h3 className="text-sm font-semibold text-gray-400 tracking-wider uppercase">- Resources- </h3>- <ul className="mt-4 space-y-4">- <li>- <a href="https://supabase.io/docs/support" className="text-base text-gray-500 hover:text-gray-900">- Support- </a>- </li>-- <li>- <a href="https://supabase.io/docs/support" className="text-base text-gray-500 hover:text-gray-900">- Contact- </a>- </li>-- <li>- <a href="https://supabase.io/case-studies" className="text-base text-gray-500 hover:text-gray-900">- Case Studies- </a>- </li>-- <li>- <a href="#" className="text-base text-gray-500 hover:text-gray-900">- Privacy & Terms- </a>- </li>- </ul>- </div>- </div>- <div className="md:grid md:grid-cols-2 md:gap-8">- <div>- <h3 className="text-sm font-semibold text-gray-400 tracking-wider uppercase">- Developers- </h3>- <ul className="mt-4 space-y-4">- <li>- <a href="https://supabase.io/docs/" className="text-base text-gray-500 hover:text-gray-900">- Documentation- </a>- </li>-- <li>- <a href="https://supabase.io/docs/client/supabase-client" className="text-base text-gray-500 hover:text-gray-900">- API reference- </a>- </li>-- <li>- <a href="https://supabase.io/docs/guides/platform" className="text-base text-gray-500 hover:text-gray-900">- Guides- </a>- </li>-- </ul>- </div>- <div className="mt-12 md:mt-0">- <h3 className="text-sm font-semibold text-gray-400 tracking-wider uppercase">- Company- </h3>- <ul className="mt-4 space-y-4">- <li>- <a href="https://supabase.io/blog" className="text-base text-gray-500 hover:text-gray-900">- Blog- </a>- </li>-- <li>- <a href="https://supabase.io/oss/" className="text-base text-gray-500 hover:text-gray-900">- Open Source- </a>- </li>-- <li>- <a href="https://supabase.io/humans.txt" className="text-base text-gray-500 hover:text-gray-900">- Humans.txt- </a>- </li>-- <li>- <a href="https://supabase.io/lawyers.txt" className="text-base text-gray-500 hover:text-gray-900">- Lawyers.txt- </a>- </li>- </ul>- </div>- </div>- </div>- </div>- <div className="mt-12 border-t border-gray-200 pt-8">- <p className="text-base text-gray-400">- © Supabase Inc- </p>- </div>- </div>- </footer>- )-}--export default Footerdiff --git a/www/components/hero.tsx b/www/components/hero.tsxindex 7c83026893e..4cb6ce40c77 100644--- a/www/components/hero.tsx+++ b/www/components/hero.tsx@@ -2,7 +2,7 @@ import Link from 'next/link'const Hero = () => {return (- <div className="relative bg-dark-100 overflow-hidden px-16">+ <div className="relative bg-dark-300 overflow-hidden px-16"><div className="hidden sm:block sm:absolute sm:inset-0" aria-hidden="true"><svgclassName="absolute bottom-0 right-0 transform translate-x-1/2 mb-48 text-gray-700 lg:top-0 lg:mt-28 lg:mb-0 xl:transform-none xl:translate-x-0"@@ -68,7 +68,7 @@ const Hero = () => {</div><div className="mt-16 sm:mt-24 lg:mt-0 lg:col-span-6">{/* <div className="bg-white sm:max-w-md sm:w-full sm:mx-auto sm:rounded-lg sm:overflow-hidden"></div> */}- <img src="images/hero.png" className="relative" style={{ right: -20 }} />+ {/* <img src="images/hero.png" className="relative" style={{ right: -20 }} /> */}</div></div></div>diff --git a/www/components/index_sections/BuiltWithSupabase.tsx b/www/components/index_sections/BuiltWithSupabase.tsxdeleted file mode 100644index 42df303810c..00000000000--- a/www/components/index_sections/BuiltWithSupabase.tsx+++ /dev/null@@ -1,49 +0,0 @@-import React from 'react'-import ArticleThumb from './../ArticleThumb'-import ProjectExamples from "./../../data/ProjectExamples.json"-import SectionHeader from '../UI/SectionHeader'--const BuiltExamples = () => {- return (- <React.Fragment>- <div className="relative bg-gray-50 pt-16 pb-16 px-4 sm:px-6 lg:pt-24 lg:pb-28 lg:px-8 sm:px-6 lg:px-16">- <div className="absolute inset-0">- <div className="bg-white h-1/3 sm:h-2/3"></div>- </div>- <div className="mx-auto max-w-7xl">- <SectionHeader- title={'What you can build'}- title_alt={' with Supabase'}- subtitle={'Built with supabase'}- />- </div>- {/* <div className="relative max-w-7xl mx-auto">- <div>- <small>Built with supabase</small>- <h2 className="text-3xl tracking-tight text-gray-900 sm:text-4xl">- What you can build with Supabase- </h2>- <p className="mt-3 mx-auto text-xl text-gray-500 sm:mt-4">- Lorem ipsum dolor sit amet consectetur, adipisicing elit. Ipsa libero labore natus- atque, ducimus sed.- </p>- </div>- </div> */}- <div className="relative max-w-7xl mx-auto">- <div className="mt-12 max-w-lg mx-auto grid gap-5 lg:grid-cols-3 lg:max-w-none">- <ArticleThumb article={- // @ts-ignore- ProjectExamples["vercel_and_stripe"]- }/>- <ArticleThumb article={- // @ts-ignore- ProjectExamples["nextjs-slack-clone"]- }/>- </div>- </div>- </div>- </React.Fragment>- )-}--export default BuiltExamplesdiff --git a/www/components/layout.tsx b/www/components/layout.tsxindex 8ef13c308d9..938b9a0e70b 100644--- a/www/components/layout.tsx+++ b/www/components/layout.tsx@@ -1,6 +1,6 @@-import Nav from './nav'-import Footer from './footer'-import Meta from './meta'+import Nav from 'components/Nav/index'+import Footer from 'components/Footer/index'+import Meta from 'components/meta'type Props = {preview?: booleandiff --git a/www/components/nav.tsx b/www/components/nav.tsxdeleted file mode 100644index e16e1a85c42..00000000000--- a/www/components/nav.tsx+++ /dev/null@@ -1,351 +0,0 @@-import React, { useState, useLayoutEffect } from 'react'-import Link from 'next/link'-import FlyOut from './nav/FlyOut'--import Solutions from './../data/Solutions.json'-import Badge from './badge'-import Transition from '../lib/Transition'--const Nav = () => {- const [open, setOpen] = useState(false)-- function toggleOpen() {- console.log('toggleOpen')- setOpen(!open)- }-- React.useEffect(() => {- if(open) {- console.log('open if')- // Prevent scrolling on mount- document.body.style.overflow = 'hidden';- } else {- document.body.style.overflow = 'auto';- }- }, [open]);-- const iconSections = Object.values(Solutions).map((solution) => {- const { name, description, icon, label, url } = solution-- const content = (- <div className="mb-3 flex md:h-full lg:flex-col">- <div className="flex-shrink-0">- <div className="inline-flex items-center justify-center h-10 w-10 rounded-md bg-gray-900 text-white sm:h-12 sm:w-12">- {/* <!-- Heroicon name: chart-bar --> */}- <svg- className="h-6 w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- aria-hidden="true"- >- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d={icon} />- </svg>- </div>- </div>- <div className="ml-4 md:flex-1 md:flex md:flex-col md:justify-between lg:ml-0 lg:mt-4">- <div>- <p className="text-base font-medium text-gray-900">- {name} {label && <Badge>{label}</Badge>}- </p>- <p className="mt-1 text-sm text-gray-500">{description}</p>- </div>- {url && (- <p className="mt-2 text-sm font-medium text-brand-600 lg:mt-4">- Learn more <span aria-hidden="true">→</span>- </p>- )}- </div>- </div>- )- return url ? (- <a- key={`solution_${label}`}- href="#"- className="-m-3 p-3 flex flex-col justify-between rounded-lg hover:bg-gray-50 transition ease-in-out duration-150"- >- {content}- </a>- ) : (- <div- key={`solution_${label}`}- className="-m-3 p-3 flex flex-col justify-between rounded-lg transition ease-in-out duration-150">- {content}- </div>- )- })-- return (- <nav className="bg-white shadow" style={{ zIndex: 500 }}>- <div className="max-w-7xl mx-auto">- <div className="relative flex justify-between h-16">- <div- className="absolute inset-y-0 left-0 flex items-center sm:hidden"- onClick={() => toggleOpen()}- >- <button- className="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500"- aria-expanded="false"- >- <span className="sr-only">Open main menu</span>-- <svg- className="block h-6 w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- aria-hidden="true"- >- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- d="M4 6h16M4 12h16M4 18h16"- />- </svg>-- <svg- className="hidden h-6 w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- aria-hidden="true"- >- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- d="M6 18L18 6M6 6l12 12"- />- </svg>- </button>- </div>-- <div className="flex-1 flex items-center justify-center sm:items-stretch sm:justify-start">- <div className="flex-shrink-0 flex items-center">- <img- className="block lg:hidden h-6 w-auto"- src="images/logo-light.png"- alt="Workflow"- />- <img- className="hidden lg:block h-6 w-auto"- src="images/logo-light.png"- alt="Workflow"- />- </div>- <div className="pl-4 hidden sm:ml-6 sm:flex sm:space-x-8">- <FlyOut />- <a- href="#"- className="inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300"- >- Developers- </a>- <a- href="#"- className="inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300"- >- Company- </a>- <a- href="#"- className="inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300"- >- Pricing- </a>- </div>- </div>- <div className="absolute inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0">- {/* <button className="bg-white p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-500">- <span className="sr-only">View notifications</span>-- <svg className="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9" />- </svg>- </button> */}-- {/* <div className="ml-3 relative">- <div>- <button className="bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-500" id="user-menu" aria-haspopup="true">- <span className="sr-only">Open user menu</span>- <img className="h-8 w-8 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="" />- </button>- </div>-- <div className="origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5" role="menu" aria-orientation="vertical" aria-labelledby="user-menu">- <a href="#" className="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100" role="menuitem">Your Profile</a>- <a href="#" className="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100" role="menuitem">Settings</a>- <a href="#" className="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100" role="menuitem">Sign out</a>- </div>- </div> */}- </div>- </div>- </div>-- <Transition- appear={true}- show={open}- enter="transition ease-out duration-200"- enterFrom="opacity-0 translate-y-1"- enterTo="opacity-100 translate-y-0"- leave="transition ease-in duration-150"- leaveFrom="opacity-100 translate-y-0"- leaveTo="opacity-0 translate-y-1"- >-- <div className="p-4 md:p-8 h-full h-screen fixed bg-white transform lg:hidden overflow-y-scroll -inset-y-0" style={{zIndex: 999}}>- {/* <div className="rounded-lg shadow-md bg-white ring-1 ring-black ring-opacity-5 overflow-hidden"> */}- <div className="absolute right-4 top-4 items-center justify-between">- <div className="-mr-2">- <button- onClick={() => toggleOpen()}- type="button"- className="bg-white rounded-md p-2 inline-flex items-center justify-center text-gray-400 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-brand-500"- >- <span className="sr-only">Close menu</span>-- <svg- className="h-6 w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- aria-hidden="true"- >- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- d="M6 18L18 6M6 6l12 12"- />- </svg>- </button>- </div>- </div>- {/* </div> */}- <div className="mt-6 mb-12">- <div className="pt-2 pb-4 space-y-1">- <a- href="#"- className="block pl-3 pr-4 py-2 text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300"- >- Product- </a>- <a- href="#"- className="block pl-3 pr-4 py-2 text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300"- >- Developers- </a>- <a- href="#"- className="block pl-3 pr-4 py-2 text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300"- >- Company- </a>- <a- href="#"- className="block pl-3 pr-4 py-2 text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300"- >- Pricing- </a>- </div>- <div className="p-3">- <p className="mb-6 text-sm text-gray-400">Products available:</p>- {iconSections}- </div>- </div>- </div>- </Transition>- </nav>- )-}--export default Nav---// <div className="absolute top-0 inset-x-0 p-2 transition transform origin-top-right md:hidden">-// <div className="rounded-lg shadow-md bg-white ring-1 ring-black ring-opacity-5 overflow-hidden">-// <div className="px-5 pt-4 flex items-center justify-between">-// <div>-// <img-// className="h-8 w-auto"-// src="https://tailwindui.com/img/logos/workflow-mark-brand-600.svg"-// alt=""-// />-// </div>-// <div className="-mr-2">-// <button-// type="button"-// className="bg-white rounded-md p-2 inline-flex items-center justify-center text-gray-400 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-brand-500"-// >-// <span className="sr-only">Close menu</span>--// <svg-// className="h-6 w-6"-// xmlns="http://www.w3.org/2000/svg"-// fill="none"-// viewBox="0 0 24 24"-// stroke="currentColor"-// aria-hidden="true"-// >-// <path-// strokeLinecap="round"-// strokeLinejoin="round"-// strokeWidth="2"-// d="M6 18L18 6M6 6l12 12"-// />-// </svg>-// </button>-// </div>-// </div>-// <div role="menu" aria-orientation="vertical" aria-labelledby="main-menu">-// <div className="px-2 pt-2 pb-3 space-y-1" role="none">-// <a-// href="#"-// className="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-50"-// role="menuitem"-// >-// Product-// </a>--// <a-// href="#"-// className="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-50"-// role="menuitem"-// >-// Features-// </a>--// <a-// href="#"-// className="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-50"-// role="menuitem"-// >-// Marketplace-// </a>--// <a-// href="#"-// className="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-50"-// role="menuitem"-// >-// Company-// </a>-// </div>-// <div role="none">-// <a-// href="#"-// className="block w-full px-5 py-3 text-center font-medium text-brand-600 bg-gray-50 hover:bg-gray-100"-// role="menuitem"-// >-// Log in-// </a>-// </div>-// </div>-// </div>-// </div>\ No newline at end of filediff --git a/www/data/AdminAccess.json b/www/data/AdminAccess.jsonindex bdb0a6436ad..0dbd2c4ac4b 100644--- a/www/data/AdminAccess.json+++ b/www/data/AdminAccess.json@@ -2,16 +2,19 @@"tabTableEditor": {"header": "Manage your data with the familiarity of a spreadsheet","description": "You don’t have to be a database expert to start using Supabase — Our table editor makes Postgres easy to use even for non-techies, and you can do everything right in our dashboard.",- "cta": "Explore Table View"+ "cta": "Explore Table View",+ "url": "#"},"tabSqlEditor": {"header": "In-built SQL editor for when you need greater control","description": "Write, save, and execute SQL queries directly on our dashboard, with templates to help you save time from common queries and even build applications.",- "cta": "Explore SQL Editor"+ "cta": "Explore SQL Editor",+ "url": "#"},"tabAuthRules": {"header": "User management as straight-forward as it can be","description": "Easily manage your users via our authentication, or integrate third party logins. Create policies with complex SQL rules which fit your unique business needs.",- "cta": "Explore Auth Policies"+ "cta": "Explore Auth Policies",+ "url": "#"}}\ No newline at end of filediff --git a/www/data/Footer.json b/www/data/Footer.jsonnew file mode 100644index 00000000000..d40957def45--- /dev/null+++ b/www/data/Footer.json@@ -0,0 +1,86 @@+[+ {+ "title": "Product",+ "links": [+ {+ "text": "Database",+ "url": "#"+ },+ {+ "text": "Authentication",+ "url": "#"+ },+ {+ "text": "Storage",+ "url": null+ },+ {+ "text": "Functions",+ "url": null+ },+ {+ "text": "Pricing",+ "url": "#"+ }+ ]+ },+ {+ "title": "Resources",+ "links": [+ {+ "text": "Support",+ "url": "#"+ },+ {+ "text": "Contact",+ "url": "#"+ },+ {+ "text": "Case Studies",+ "url": "#"+ },+ {+ "text": "Privacy & Terms",+ "url": "#"+ }+ ]+ },+ {+ "title": "Developers",+ "links": [+ {+ "text": "Documentation",+ "url": "#"+ },+ {+ "text": "API Reference",+ "url": "#"+ },+ {+ "text": "Guides",+ "url": "#"+ }+ ]+ },+ {+ "title": "Company",+ "links": [+ {+ "text": "Blog",+ "url": "#"+ },+ {+ "text": "Open Source",+ "url": "#"+ },+ {+ "text": "Humans.txt",+ "url": "#"+ },+ {+ "text": "Lawyers.txt",+ "url": "#"+ }+ ]+ }+]\ No newline at end of filediff --git a/www/pages/_document.tsx b/www/pages/_document.tsxindex c55951c0d5d..12c70a83dda 100644--- a/www/pages/_document.tsx+++ b/www/pages/_document.tsx@@ -3,7 +3,7 @@ import Document, { Html, Head, Main, NextScript } from 'next/document'export default class MyDocument extends Document {render() {return (- <Html lang="en">+ <Html lang="en" className="dark"><Head /><body><Main />diff --git a/www/pages/index.tsx b/www/pages/index.tsxindex 271ef49d452..ecd8101704a 100644--- a/www/pages/index.tsx+++ b/www/pages/index.tsx@@ -1,15 +1,16 @@-import Container from '../components/container'-import Layout from '../components/layout'import Head from 'next/head'-import { CMS_NAME } from '../lib/constants'+import { CMS_NAME } from 'lib/constants'-import Hero from '../components/hero'-import Features from '../components/features'-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'+import Container from 'components/container'+import Layout from 'components/layout'+import Hero from 'components/hero'+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 Benchmark from 'components/Benchmark/index'type Props = {@@ -29,6 +30,7 @@ const Index = ({ }: Props) => {<MadeForDevelopers /><AdminAccess /><CaseStudies />+ <Benchmark /><CTABanner /></Container></Layout>diff --git a/www/tailwind.config.js b/www/tailwind.config.jsindex 998ddd671c5..6116e160c47 100644--- a/www/tailwind.config.js+++ b/www/tailwind.config.js@@ -1,6 +1,6 @@module.exports = {purge: ['./components/**/*.tsx', './pages/**/*.tsx'],- darkMode: 'media', // 'media' or 'class'+ darkMode: 'class', // 'media' or 'class'theme: {extend: {screens: {@@ -37,9 +37,10 @@ module.exports = {'900': '#1C583D',},dark: {- 100: '#202020',- 200: '#1E1E1E',- 300: '#3A3A3A',+ 100: '#3A3A3A',+ 200: '#292929',+ 300: '#202020',+ 400: '#1E1E1E',},// Joshen: Adding our Figma palette hereneutral: {diff --git a/www/tsconfig.json b/www/tsconfig.jsonindex 645da11f036..7d9337f9e3c 100644--- a/www/tsconfig.json+++ b/www/tsconfig.json@@ -1,5 +1,9 @@{"compilerOptions": {+ "baseUrl": ".",+ "paths": {+ "~/*": ["./*"]+ },"target": "es5","module": "esnext","jsx": "preserve",