The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
added new homepage sections, with tabs and code block examples. some placeholder content is in use.
mildtomato7a725a6a6feb
diff --git a/www/components/badge.tsx b/www/components/badge.tsxnew file mode 100644index 00000000000..ad0004767fc--- /dev/null+++ b/www/components/badge.tsx@@ -0,0 +1,12 @@+const Badge = (props: any) => {+ return (+ <span className="ml-3 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-indigo-100 text-indigo-800">+ <svg className="-ml-0.5 mr-1.5 h-2 w-2 text-indigo-400" fill="currentColor" viewBox="0 0 8 8">+ <circle cx="4" cy="4" r="3" />+ </svg>+ {props.children}+ </span>+ )+}++export default Badgediff --git a/www/components/container.tsx b/www/components/container.tsxindex b5ee3725ca5..057b97947aa 100644--- a/www/components/container.tsx+++ b/www/components/container.tsx@@ -1,11 +1,14 @@import { ReactNode, FunctionComponent } from 'react'+import Navigation from './navigation'type Props = {children?: ReactNode}const Container: FunctionComponent = ({ children }: Props) => {- return <div className="container mx-auto px-5">{children}</div>+ return <div className="container mx-auto px-5">+ {children}+ </div>}export default Containerdiff --git a/www/components/features.tsx b/www/components/features.tsxnew file mode 100644index 00000000000..504f3fc74cd--- /dev/null+++ b/www/components/features.tsx@@ -0,0 +1,188 @@+import Badge from './badge'++const Features = () => {+ return (+ // <!-- This example requires Tailwind CSS v2.0+ -->+ <div className="bg-gray-50 overflow-hidden py-12">+ <div className="relative max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-0">+ <div className="lg:col-span-1">+ <small>A better way to build products</small>+ <h2 className="text-3xl font-bold text-gray-900 sm:text-4xl">+ Build Faster and Focus on Your Core Products+ </h2>+ </div>+ </div>++ <div className="relative max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-0">+ <svg+ className="absolute top-0 left-full transform -translate-x-1/2 -translate-y-3/4 lg:left-auto lg:right-full lg:translate-x-2/3 lg:translate-y-1/4"+ width="404"+ height="784"+ fill="none"+ viewBox="0 0 404 784"+ aria-hidden="true"+ >+ <defs>+ <pattern+ id="8b1b5f72-e944-4457-af67-0c6d15a99f38"+ x="0"+ y="0"+ width="20"+ height="20"+ patternUnits="userSpaceOnUse"+ >+ <rect+ x="0"+ y="0"+ width="4"+ height="4"+ className="text-gray-200"+ fill="currentColor"+ />+ </pattern>+ </defs>+ <rect width="404" height="784" fill="url(#8b1b5f72-e944-4457-af67-0c6d15a99f38)" />+ </svg>++ <div className="relative lg:grid lg:grid-cols-12 lg:gap-x-8">+ <div className="relative lg:grid lg:grid-cols-2 lg:gap-x-8 lg:col-span-7">+ <dl className="mt-10 space-y-10 sm:space-y-0 sm:grid sm:grid-cols-2 sm:gap-x-8 sm:gap-y-10 lg:mt-0 lg:col-span-2">+ <div>+ <div className="flex items-center">+ <div className="flex items-center justify-center h-12 w-12 rounded-md bg-brand-600 text-white">+ {/* <!-- Heroicon name: globe-alt --> */}+ <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="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"+ />+ </svg>+ </div>+ <dt className="ml-4 text-lg leading-6 font-medium text-gray-900">Database</dt>+ </div>+ <div className="mt-5">+ <dd className="mt-2 text-base text-gray-500">+ Built on top of Postgres, an extremely scalable relational database, so you can+ start building with the best tool in hand.+ </dd>+ </div>+ </div>++ <div>+ <div className="flex items-center">+ <div className="flex items-center justify-center h-12 w-12 rounded-md bg-brand-600 text-white">+ {/* <!-- Heroicon name: scale --> */}+ <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="M3 6l3 1m0 0l-3 9a5.002 5.002 0 006.001 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5.002 5.002 0 006.001 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3"+ />+ </svg>+ </div>+ <dt className="ml-3 text-lg leading-6 font-medium text-gray-900">Authentication</dt>+ </div>+ <div className="mt-5">+ <dd className="mt-2 text-base text-gray-500">+ Manage your users easily, leverage on PostgreSQL’s Row Level Security, and even+ write policies which fit your unique needs.+ </dd>+ </div>+ </div>++ <div>+ <div className="flex items-center">+ <div className="flex items-center justify-center h-12 w-12 rounded-md bg-brand-600 text-white">+ {/* <!-- Heroicon name: lightning-bolt --> */}+ <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="M13 10V3L4 14h7v7l9-11h-7z"+ />+ </svg>+ </div>+ <dt className="ml-3 text-lg leading-6 font-medium text-gray-900 flex">+ Storage <Badge>Coming soon Q1 2021</Badge>+ </dt>+ </div>+ <div className="mt-5">+ <dd className="mt-2 text-base text-gray-500">+ Store, organize, and serve any amount of assets from anywhere. Any media,+ including videos of any size and format.+ </dd>+ </div>+ </div>++ <div>+ <div className="flex items-center">+ <div className="flex items-center justify-center h-12 w-12 rounded-md bg-brand-600 text-white">+ {/* <!-- Heroicon name: mail --> */}+ <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="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"+ />+ </svg>+ </div>+ <dt className="ml-3 text-lg leading-6 font-medium text-gray-900 flex">+ Functions <Badge>Coming soon Q1 2021</Badge>+ </dt>+ </div>+ <div className="mt-5">+ <dd className="mt-2 text-base text-gray-500">+ Trigger backend code automatically with database events, without ever worrying+ about scaling a server.+ </dd>+ </div>+ </div>+ </dl>+ </div>+ <div className="lg:col-span-5">+ <div>+ <h2 className="text-3xl font-extrabold tracking-tight text-gray-900 sm:text-4xl">+ image here+ </h2>+ </div>+ </div>+ </div>+ </div>+ </div>+ )+}++export default Featuresdiff --git a/www/components/footer.tsx b/www/components/footer.tsxindex e8a7fdce4cd..1f72c4c655f 100644--- a/www/components/footer.tsx+++ b/www/components/footer.tsx@@ -1,30 +1,233 @@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-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>+ <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"+ />+ <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="#" className="text-gray-400 hover:text-gray-500">+ <span className="sr-only">Facebook</span>+ <svg className="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">+ <path+ fillRule="evenodd"+ d="M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z"+ clipRule="evenodd"+ />+ </svg>+ </a>++ <a href="#" className="text-gray-400 hover:text-gray-500">+ <span className="sr-only">Instagram</span>+ <svg className="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">+ <path+ fillRule="evenodd"+ d="M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z"+ clipRule="evenodd"+ />+ </svg>+ </a>++ <a href="#" 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="#" 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>++ <a href="#" className="text-gray-400 hover:text-gray-500">+ <span className="sr-only">Dribbble</span>+ <svg className="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">+ <path+ fillRule="evenodd"+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10c5.51 0 10-4.48 10-10S17.51 2 12 2zm6.605 4.61a8.502 8.502 0 011.93 5.314c-.281-.054-3.101-.629-5.943-.271-.065-.141-.12-.293-.184-.445a25.416 25.416 0 00-.564-1.236c3.145-1.28 4.577-3.124 4.761-3.362zM12 3.475c2.17 0 4.154.813 5.662 2.148-.152.216-1.443 1.941-4.48 3.08-1.399-2.57-2.95-4.675-3.189-5A8.687 8.687 0 0112 3.475zm-3.633.803a53.896 53.896 0 013.167 4.935c-3.992 1.063-7.517 1.04-7.896 1.04a8.581 8.581 0 014.729-5.975zM3.453 12.01v-.26c.37.01 4.512.065 8.775-1.215.25.477.477.965.694 1.453-.109.033-.228.065-.336.098-4.404 1.42-6.747 5.303-6.942 5.629a8.522 8.522 0 01-2.19-5.705zM12 20.547a8.482 8.482 0 01-5.239-1.8c.152-.315 1.888-3.656 6.703-5.337.022-.01.033-.01.054-.022a35.318 35.318 0 011.823 6.475 8.4 8.4 0 01-3.341.684zm4.761-1.465c-.086-.52-.542-3.015-1.659-6.084 2.679-.423 5.022.271 5.314.369a8.468 8.468 0 01-3.655 5.715z"+ 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">+ Solutions+ </h3>+ <ul className="mt-4 space-y-4">+ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ Marketing+ </a>+ </li>++ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ Analytics+ </a>+ </li>++ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ Commerce+ </a>+ </li>++ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ Insights+ </a>+ </li>+ </ul>+ </div>+ <div className="mt-12 md:mt-0">+ <h3 className="text-sm font-semibold text-gray-400 tracking-wider uppercase">+ Support+ </h3>+ <ul className="mt-4 space-y-4">+ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ Pricing+ </a>+ </li>++ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ Documentation+ </a>+ </li>++ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ Guides+ </a>+ </li>++ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ API Status+ </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">+ Company+ </h3>+ <ul className="mt-4 space-y-4">+ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ About+ </a>+ </li>++ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ Blog+ </a>+ </li>++ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ Jobs+ </a>+ </li>++ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ Press+ </a>+ </li>++ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ Partners+ </a>+ </li>+ </ul>+ </div>+ <div className="mt-12 md:mt-0">+ <h3 className="text-sm font-semibold text-gray-400 tracking-wider uppercase">+ Legal+ </h3>+ <ul className="mt-4 space-y-4">+ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ Claim+ </a>+ </li>++ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ Privacy+ </a>+ </li>++ <li>+ <a href="#" className="text-base text-gray-500 hover:text-gray-900">+ Terms+ </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 xl:text-center">+ © 2020 Workflow, Inc. All rights reserved.+ </p></div>- </Container>+ </div></footer>)}diff --git a/www/components/hero.tsx b/www/components/hero.tsxindex a501d76d80a..3b17697272b 100644--- a/www/components/hero.tsx+++ b/www/components/hero.tsx@@ -33,14 +33,14 @@ const Hero = () => {<div><imgclassName="h-8 w-auto"- src="https://tailwindui.com/img/logos/workflow-mark-indigo-600.svg"+ src="https://tailwindui.com/img/logos/workflow-mark-brand-600.svg"alt=""/></div><div className="-mr-2"><buttontype="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-indigo-500"+ 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>@@ -53,9 +53,9 @@ const Hero = () => {aria-hidden="true"><path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="2"d="M6 18L18 6M6 6l12 12"/></svg>@@ -99,7 +99,7 @@ const Hero = () => {<div role="none"><ahref="#"- className="block w-full px-5 py-3 text-center font-medium text-indigo-600 bg-gray-50 hover:bg-gray-100"+ 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@@ -114,40 +114,27 @@ const Hero = () => {<div className="lg:grid lg:grid-cols-12 lg:gap-8"><div className="px-4 sm:px-6 sm:text-center md:max-w-2xl md:mx-auto lg:col-span-6 lg:text-left lg:flex lg:items-center"><div>- <a- href="#"- className="inline-flex items-center text-white bg-gray-900 rounded-full p-1 pr-2 sm:text-base lg:text-sm xl:text-base hover:text-gray-200"- >- <span className="px-3 py-0.5 text-white text-xs font-semibold leading-5 uppercase tracking-wide bg-indigo-500 rounded-full">- We're hiring- </span>- <span className="ml-4 text-sm">Visit our careers page</span>- <svg- className="ml-2 w-5 h-5 text-gray-500"- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 20 20"- fill="currentColor"- aria-hidden="true"- >- <path- fill-rule="evenodd"- d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"- clip-rule="evenodd"- />- </svg>- </a>- <h1 className="mt-4 text-4xl tracking-tight font-extrabold text-white sm:mt-5 sm:leading-none lg:mt-6 lg:text-5xl xl:text-6xl">- <span className="md:block">Data to enrich your</span>- <span className="text-indigo-400 md:block">online business</span>+ <h1 className="mt-4 text-4xl font-bold text-white sm:mt-5 sm:leading-none lg:mt-6 lg:text-5xl xl:text-6xl">+ <span className="md:block">The Open Source</span>+ <span className="text-brand-400 md:block">Firebase Alternative</span></h1><p className="mt-3 text-base text-gray-300 sm:mt-5 sm:text-xl lg:text-lg xl:text-xl">Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatatcommodo. Elit sunt amet fugiat veniam occaecat fugiat aliqua ad ad non deseruntsunt.</p>- <p className="mt-8 text-sm text-white uppercase tracking-wide font-semibold sm:mt-10">- Used by++ <div className="mt-10 sm:flex sm:justify-center lg:justify-start">+ <div className="rounded-md shadow">+ <a href="#" className="inline-flex items-center px-4 py-2 border border-transparent text-med font-medium rounded-md shadow-sm text-white bg-brand-600 hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-500">+ Get started+ </a>+ </div>+ </div>++ <p className="mt-8 text-sm text-gray-400 tracking-wide sm:mt-10">+ backed by</p><div className="mt-5 w-full sm:mx-auto sm:max-w-lg lg:ml-0"><div className="flex flex-wrap items-start justify-between">@@ -179,6 +166,7 @@ const Hero = () => {<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></div>+</div></div></main>diff --git a/www/components/index_sections/AdminAccess.tsx b/www/components/index_sections/AdminAccess.tsxnew file mode 100644index 00000000000..d09265450fc--- /dev/null+++ b/www/components/index_sections/AdminAccess.tsx@@ -0,0 +1,23 @@+import Tabs from '../tabs'++const AdminAccess = () => {+ return (+ <div className="py-16 bg-gray-50 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 lg:mt-24 lg:grid lg:grid-cols-2 lg:gap-8 lg:items-center">+ <div className="relative">+ <small>MADE FOR DEVELOPERS</small>+ <h2 className="text-3xl leading-8 font-bold tracking-tight text-gray-900 sm:text-4xl">+ Organise your app, without a developer+ </h2>+ <div className="mt-6">+ <Tabs />+ </div>+ </div>+ </div>+ </div>+ </div>+ )+}++export default AdminAccessdiff --git a/www/components/index_sections/BuiltWithSupabase.tsx b/www/components/index_sections/BuiltWithSupabase.tsxnew file mode 100644index 00000000000..42f7be05885--- /dev/null+++ b/www/components/index_sections/BuiltWithSupabase.tsx@@ -0,0 +1,209 @@+import React from 'react'++const BuiltExamples = () => {+ 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>+ <small>Built with supabase</small>+ <h2 className="text-3xl tracking-tight font-extrabold 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 className="mt-12 max-w-lg mx-auto grid gap-5 lg:grid-cols-3 lg:max-w-none">+ <div className="flex flex-col rounded-lg shadow-lg overflow-hidden">+ <div className="flex-shrink-0">+ <img+ className="h-48 w-full object-cover"+ src="https://images.unsplash.com/photo-1496128858413-b36217c2ce36?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1679&q=80"+ alt=""+ />+ </div>+ <div className="flex-1 bg-white p-6 flex flex-col justify-between">+ <div className="flex-1">+ <div className="-mt-12 mb-6 flex -space-x-1 overflow-hidden">+ <img+ className="inline-block h-12 w-12 rounded-full ring-2 ring-white"+ src="https://images.unsplash.com/photo-1491528323818-fdd1faba62cc?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"+ alt=""+ />+ <img+ className="inline-block h-12 w-12 rounded-full ring-2 ring-white"+ src="https://images.unsplash.com/photo-1550525811-e5869dd03032?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"+ alt=""+ />+ <img+ className="inline-block h-12 w-12 rounded-full ring-2 ring-white"+ src="https://images.unsplash.com/photo-1500648767791-00dcc994a43e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2.25&w=256&h=256&q=80"+ alt=""+ />+ <img+ className="inline-block h-12 w-12 rounded-full ring-2 ring-white"+ 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=""+ />+ </div>+ <p className="text-sm font-medium text-brand-600">+ <a href="#" className="hover:underline">+ Article+ </a>+ </p>+ <a href="#" className="block mt-2">+ <p className="text-xl font-semibold text-gray-900">+ Boost your conversion rate+ </p>+ <p className="mt-3 text-base text-gray-500">+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Architecto+ accusantium praesentium eius, ut atque fuga culpa, similique sequi cum eos+ quis dolorum.+ </p>+ </a>+ </div>+ <div className="mt-6 flex items-center">+ <div className="flex-shrink-0">+ <a href="#">+ <span className="sr-only">Roel Aufderehar</span>+ <img+ className="h-10 w-10 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=""+ />+ </a>+ </div>+ <div className="ml-3">+ <p className="text-sm font-medium text-gray-900">+ <a href="#" className="hover:underline">+ Roel Aufderehar+ </a>+ </p>+ <div className="flex space-x-1 text-sm text-gray-500">+ <time dateTime="2020-03-16">Mar 16, 2020</time>+ <span aria-hidden="true">·</span>+ <span>6 min read</span>+ </div>+ </div>+ </div>+ </div>+ </div>++ <div className="flex flex-col rounded-lg shadow-lg overflow-hidden">+ <div className="flex-shrink-0">+ <img+ className="h-48 w-full object-cover"+ src="https://images.unsplash.com/photo-1547586696-ea22b4d4235d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1679&q=80"+ alt=""+ />+ </div>+ <div className="flex-1 bg-white p-6 flex flex-col justify-between">+ <div className="flex-1">+ <p className="text-sm font-medium text-brand-600">+ <a href="#" className="hover:underline">+ Video+ </a>+ </p>+ <a href="#" className="block mt-2">+ <p className="text-xl font-semibold text-gray-900">+ How to use search engine optimization to drive sales+ </p>+ <p className="mt-3 text-base text-gray-500">+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit facilis+ asperiores porro quaerat doloribus, eveniet dolore. Adipisci tempora aut+ inventore optio animi., tempore temporibus quo laudantium.+ </p>+ </a>+ </div>+ <div className="mt-6 flex items-center">+ <div className="flex-shrink-0">+ <a href="#">+ <span className="sr-only">Brenna Goyette</span>+ <img+ className="h-10 w-10 rounded-full"+ src="https://images.unsplash.com/photo-1550525811-e5869dd03032?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"+ alt=""+ />+ </a>+ </div>+ <div className="ml-3">+ <p className="text-sm font-medium text-gray-900">+ <a href="#" className="hover:underline">+ Brenna Goyette+ </a>+ </p>+ <div className="flex space-x-1 text-sm text-gray-500">+ <time dateTime="2020-03-10">Mar 10, 2020</time>+ <span aria-hidden="true">·</span>+ <span>4 min read</span>+ </div>+ </div>+ </div>+ </div>+ </div>++ <div className="flex flex-col rounded-lg shadow-lg overflow-hidden">+ <div className="flex-shrink-0">+ <img+ className="h-48 w-full object-cover"+ src="https://images.unsplash.com/photo-1492724441997-5dc865305da7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1679&q=80"+ alt=""+ />+ </div>+ <div className="flex-1 bg-white p-6 flex flex-col justify-between">+ <div className="flex-1">+ <p className="text-sm font-medium text-brand-600">+ <a href="#" className="hover:underline">+ Case Study+ </a>+ </p>+ <a href="#" className="block mt-2">+ <p className="text-xl font-semibold text-gray-900">+ Improve your customer experience+ </p>+ <p className="mt-3 text-base text-gray-500">+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Sint harum rerum+ voluptatem quo recusandae magni placeat saepe molestiae, sed excepturi cumque+ corporis perferendis hic.+ </p>+ </a>+ </div>+ <div className="mt-6 flex items-center">+ <div className="flex-shrink-0">+ <a href="#">+ <span className="sr-only">Daniela Metz</span>+ <img+ className="h-10 w-10 rounded-full"+ src="https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"+ alt=""+ />+ </a>+ </div>+ <div className="ml-3">+ <p className="text-sm font-medium text-gray-900">+ <a href="#" className="hover:underline">+ Daniela Metz+ </a>+ </p>+ <div className="flex space-x-1 text-sm text-gray-500">+ <time dateTime="2020-02-12">Feb 12, 2020</time>+ <span aria-hidden="true">·</span>+ <span>11 min read</span>+ </div>+ </div>+ </div>+ </div>+ </div>+ </div>+ </div>+ </div>+ </React.Fragment>+ )+}++export default BuiltExamplesdiff --git a/www/components/index_sections/CaseStudies.tsx b/www/components/index_sections/CaseStudies.tsxnew file mode 100644index 00000000000..f2063b652b4--- /dev/null+++ b/www/components/index_sections/CaseStudies.tsx@@ -0,0 +1,220 @@+import React from 'react'++const CaseStudies = () => {+ 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>+ <small>Enterprise solutions</small>+ <h2 className="text-3xl tracking-tight font-extrabold text-gray-900 sm:text-4xl">+ We’re ready to help scale your business+ </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 className="mt-12 max-w-lg mx-auto grid gap-5 lg:grid-cols-3 lg:max-w-none">+ <div className="flex flex-col rounded-lg shadow-lg overflow-hidden">+ <div className="flex-shrink-0">+ <img+ className="h-48 w-full object-cover"+ src="https://images.unsplash.com/photo-1496128858413-b36217c2ce36?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1679&q=80"+ alt=""+ />+ </div>+ <div className="flex-1 bg-white p-6 flex flex-col justify-between">+ <div className="flex-1">+ <p className="text-sm font-medium text-brand-600">+ <a href="#" className="hover:underline">+ Article+ </a>+ </p>+ <a href="#" className="block mt-2">+ <p className="text-xl font-semibold text-gray-900">+ Boost your conversion rate+ </p>+ <p className="mt-3 text-base text-gray-500">+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Architecto+ accusantium praesentium eius, ut atque fuga culpa, similique sequi cum eos+ quis dolorum.+ </p>+ </a>+ </div>+ <div className="mt-6 flex items-center">+ <div className="flex-shrink-0">+ <a href="#">+ <span className="sr-only">Roel Aufderehar</span>+ <img+ className="h-10 w-10 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=""+ />+ </a>+ </div>+ <div className="ml-3">+ <p className="text-sm font-medium text-gray-900">+ <a href="#" className="hover:underline">+ Roel Aufderehar+ </a>+ </p>+ <div className="flex space-x-1 text-sm text-gray-500">+ <time dateTime="2020-03-16">Mar 16, 2020</time>+ <span aria-hidden="true">·</span>+ <span>6 min read</span>+ </div>+ </div>+ </div>+ </div>+ </div>++ <div className="flex flex-col rounded-lg shadow-lg overflow-hidden">+ <div className="flex-shrink-0">+ <img+ className="h-48 w-full object-cover"+ src="https://images.unsplash.com/photo-1547586696-ea22b4d4235d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1679&q=80"+ alt=""+ />+ </div>+ <div className="flex-1 bg-white p-6 flex flex-col justify-between">+ <div className="flex-1">+ <p className="text-sm font-medium text-brand-600">+ <a href="#" className="hover:underline">+ Video+ </a>+ </p>+ <a href="#" className="block mt-2">+ <p className="text-xl font-semibold text-gray-900">+ How to use search engine optimization to drive sales+ </p>+ <p className="mt-3 text-base text-gray-500">+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit facilis+ asperiores porro quaerat doloribus, eveniet dolore. Adipisci tempora aut+ inventore optio animi., tempore temporibus quo laudantium.+ </p>+ </a>+ </div>+ <div className="mt-6 flex items-center">+ <div className="flex-shrink-0">+ <a href="#">+ <span className="sr-only">Brenna Goyette</span>+ <img+ className="h-10 w-10 rounded-full"+ src="https://images.unsplash.com/photo-1550525811-e5869dd03032?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"+ alt=""+ />+ </a>+ </div>+ <div className="ml-3">+ <p className="text-sm font-medium text-gray-900">+ <a href="#" className="hover:underline">+ Brenna Goyette+ </a>+ </p>+ <div className="flex space-x-1 text-sm text-gray-500">+ <time dateTime="2020-03-10">Mar 10, 2020</time>+ <span aria-hidden="true">·</span>+ <span>4 min read</span>+ </div>+ </div>+ </div>+ </div>+ </div>++ <div className="flex flex-col rounded-lg shadow-lg overflow-hidden">+ <div className="flex-shrink-0">+ <img+ className="h-48 w-full object-cover"+ src="https://images.unsplash.com/photo-1492724441997-5dc865305da7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1679&q=80"+ alt=""+ />+ </div>+ <div className="flex-1 bg-white p-6 flex flex-col justify-between">+ <div className="flex-1">+ <p className="text-sm font-medium text-brand-600">+ <a href="#" className="hover:underline">+ Case Study+ </a>+ </p>+ <a href="#" className="block mt-2">+ <p className="text-xl font-semibold text-gray-900">+ Improve your customer experience+ </p>+ <p className="mt-3 text-base text-gray-500">+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Sint harum rerum+ voluptatem quo recusandae magni placeat saepe molestiae, sed excepturi cumque+ corporis perferendis hic.+ </p>+ </a>+ </div>+ <div className="mt-6 flex items-center">+ <div className="flex-shrink-0">+ <a href="#">+ <span className="sr-only">Daniela Metz</span>+ <img+ className="h-10 w-10 rounded-full"+ src="https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"+ alt=""+ />+ </a>+ </div>+ <div className="ml-3">+ <p className="text-sm font-medium text-gray-900">+ <a href="#" className="hover:underline">+ Daniela Metz+ </a>+ </p>+ <div className="flex space-x-1 text-sm text-gray-500">+ <time dateTime="2020-02-12">Feb 12, 2020</time>+ <span aria-hidden="true">·</span>+ <span>11 min read</span>+ </div>+ </div>+ </div>+ </div>+ </div>+ </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">+ <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">+ <div className="lg:self-center">+ <h4 className="text-5xl font-bold text-white sm:text-2xl">+ <span className="block">Record breaking speed and reliability</span>+ </h4>+ <p className="mt-4 text-base text-gray-200">+ <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>+ <p className="mt-4 text-base text-gray-200">+ </p>+ <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 text-white bg-brand-600 hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-500"+ >+ Button text+ </button>+ </div>+ </div>+ <div className="-mt-6 aspect-w-5 aspect-h-3 md:aspect-w-2 md:aspect-h-1 col-span-4">+ <img+ className="transform translate-x-6 translate-y-6 rounded-md object-cover object-left-top sm:translate-x-16 lg:translate-y-20"+ src="https://tailwindui.com/img/component-images/full-width-with-sidebar.jpg"+ alt="App screenshot"+ />+ </div>+ </div>+ </div>+ </div>+ </React.Fragment>+ )+}++export default CaseStudiesdiff --git a/www/components/index_sections/CodeExamples.tsx b/www/components/index_sections/CodeExamples.tsxnew file mode 100644index 00000000000..f31bea4e5ad--- /dev/null+++ b/www/components/index_sections/CodeExamples.tsx@@ -0,0 +1,103 @@+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 { examples } from './../../data/CodeExamples'++SyntaxHighlighter.registerLanguage('javascript', js)++const CodeExamples = () => {+ const [example, setExample] = useState('subscribeExample')++ const exampleList = ['subscribeExample', 'readExample', 'createExample', 'updateExample']++ const lang = 'javascript'++ function handleClick(key: string) {+ setExample(key)+ }++ const buttons = exampleList.map((id) => {+ return (+ <button+ type="button"+ onClick={() => handleClick(id)}+ className={"m-1 mb-4 rounded-md border border-gray-200 px-4 py-2 text-base font-medium text-gray focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-transparent sm:w-auto sm:text-sm" + (example === id ? " border-brand-100 bg-brand-100 text-brand" : " hover:bg-gray-200")}+ >+ {+ // @ts-ignore+ examples[id].name+ }+ </button>+ )+ })++ return (+ <div className="grid grid-cols-12 gap-2">+ <div className="col-span-12 text-center">+ {buttons}+ {/* <button+ type="button"+ className="mt-12 inline-flex items-center px-3 py-2 border border-transparent shadow-sm text-sm leading-4 font-medium 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"+ >+ <svg+ className="-ml-0.5 mr-2 h-4 w-4"+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 20 20"+ fill="currentColor"+ aria-hidden="true"+ >+ <path d="M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z" />+ <path d="M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z" />+ </svg>+ Explore documentation+ </button> */}+ </div>+ <div className="col-span-8 col-start-3">+ <div className="rounded" style={{ background: '#474949' }}>+ <p className="text-base text-gray-400 text-white p-2 pl-5">+ {+ // @ts-ignore+ examples[example].description+ }+ </p>+ <SyntaxHighlighter+ // startingLineNumber={3}+ language="javascript"+ style={rainbow}+ className="rounded-b-lg"+ customStyle={{+ padding: 0,+ // paddingTop: '32px',+ fontSize: 12,+ lineHeight: 1.2,+ borderTop: '1px solid #676767',+ }}+ showLineNumbers+ lineNumberContainerStyle={{+ background: 'red',+ paddingTop: '128px',+ }}+ lineNumberStyle={{+ minWidth: '48px',+ backgroundColor: '#3d3d3d',+ paddingLeft: '21px',+ color: '#8c999f',+ fontSize: 12,+ paddingTop: '4px',+ paddingBottom: '4px',+ }}+ >+ {+ // @ts-ignore+ examples[example].code[lang]+ }+ </SyntaxHighlighter>+ </div>+ </div>+ </div>+ )+}++export default CodeExamplesdiff --git a/www/components/index_sections/MadeForDevelopers.tsx b/www/components/index_sections/MadeForDevelopers.tsxnew file mode 100644index 00000000000..d7bc9900936--- /dev/null+++ b/www/components/index_sections/MadeForDevelopers.tsx@@ -0,0 +1,71 @@+import Badge from './../badge'++import CodeExamples from './CodeExamples'++const MadeForDevelopers = () => {+ return (+ <div className="py-16 bg-gray-50 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 lg:mt-24 lg:grid lg:grid-cols-12 lg:gap-8 lg:items-center">+ <div className="relative col-span-12 text-center">+ <small>MADE FOR DEVELOPERS</small>+ <h2 className="text-3xl leading-8 font-bold text-gray-900 sm:text-4xl">+ Supafast easy-to-use APIs that do the hard work for you+ </h2>+ <p className="mt-4 max-w-3xl mx-auto text-xl text-gray-500">+ We inspect your database and provide APIs instantly so you can stop building+ repetitive CRUD endpoints and focus on your product.+ </p>+ </div>+ <div className="mt-2 col-span-10 col-start-2">+ <CodeExamples />++ <div className="grid grid-cols-12 gap-2">++ <dl className="mt-12 space-y-10 lg:space-y-0 lg:grid lg:grid-cols-2 lg:gap-12 col-span-8 col-start-3">+ <div className="lg:border-r-2 lg:border-gray-200 pr-6">+ <div className="mt-5">+ <dt className="text-lg leading-6 font-medium text-gray-900">+ TypeScript support+ </dt>+ <dd className="mt-2 text-base text-gray-500 mb-6">+ Type definitions for both server side and client side+ </dd>+ <button+ type="button"+ className="inline-flex items-center text-xs font-medium rounded text-gray-700 hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-500"+ >+ Explore more+ </button>+ </div>+ </div>++ <div>+ <div className="mt-5">+ <dt className="text-lg leading-6 font-medium text-gray-900 flex">+ Local emulator+ <Badge>Coming Q1 2021</Badge>+ </dt>+ <dd className="mt-2 text-base text-gray-500 mb-6">+ Develop locally and push to production when you're ready+ </dd>+ <button+ type="button"+ className="inline-flex items-center text-xs font-medium rounded text-gray-700 hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-500"+ >+ Get notified+ </button>+ </div>+ </div>+ </dl>++ </div>++ </div>+ </div>+ </div>+ </div>+ )+}++export default MadeForDevelopersdiff --git a/www/components/nav.tsx b/www/components/nav.tsxindex 0e05bd758ce..5c79b2be91a 100644--- a/www/components/nav.tsx+++ b/www/components/nav.tsx@@ -12,11 +12,11 @@ const Nav = () => {<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 stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />+ <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 stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M6 18L18 6M6 6l12 12" /></svg></button></div>@@ -45,7 +45,7 @@ const Nav = () => {<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 stroke-linecap="round" stroke-linejoin="round" stroke-width="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" />+ <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>diff --git a/www/components/tabs.tsx b/www/components/tabs.tsxnew file mode 100644index 00000000000..85eeae60d9b--- /dev/null+++ b/www/components/tabs.tsx@@ -0,0 +1,117 @@+import React, { useState, ReactElement } from 'react'++type Props = {+ children: ReactElement[]+ event: any+ target: HTMLInputElement+ tabMarkup: any+ tabId: string+}++function Tabs() {+ const [tabId, setTabId] = useState('tabTableEditor')++ function handleTabChange(event: Props) {+ //@ts-ignore+ event.preventDefault()+ const tabId: string = event.target.id+ return setTabId(tabId)+ }++ const tabMarkup: any = {+ tabTableEditor: (+ <div>+ <div className="mt-5">+ <dd className="mt-2 text-base text-gray-800">+ Manage your data with the familiarity of a spreadsheet+ </dd>+ <dd className="mt-2 text-base text-gray-500">+ 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.+ </dd>+ </div>+ <button+ type="button"+ className="mt-6 inline-flex items-center px-3 py-2 border border-transparent shadow-sm text-sm leading-4 font-medium 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"+ >+ Explore table view+ </button>+ </div>+ ),+ tabSqlEditor: (+ <div>+ <div className="mt-5">+ <dd className="mt-2 text-base text-gray-800">+ In-built SQL editor for when you need greater control+ </dd>+ <dd className="mt-2 text-base text-gray-500">+ Write, save, and execute SQL queries directly on our dashboard, with templates to help+ you save time from common queries and even build applications.+ </dd>+ </div>+ <button+ type="button"+ className="mt-6 inline-flex items-center px-3 py-2 border border-transparent shadow-sm text-sm leading-4 font-medium 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"+ >+ Explore SQL editor+ </button>+ </div>+ ),+ tabAuthRules: (+ <div>+ <div className="mt-5">+ <dd className="mt-2 text-base text-gray-800">+ User management as straight-forward as it can be+ </dd>+ <dd className="mt-2 text-base text-gray-500">+ Easily manage your users via our authentication, or integrate third party logins. Create+ policies with complex SQL rules which fit your unique business needs.+ </dd>+ </div>+ <button+ type="button"+ className="mt-6 inline-flex items-center px-3 py-2 border border-transparent shadow-sm text-sm leading-4 font-medium 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"+ >+ Explore auth policies+ </button>+ </div>+ ),+ }++ return (+ <div>+ <div className="border-b border-gray-200">+ <nav className="-mb-px flex" aria-label="Tabs">+ <a+ href="#"+ 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")}+ onClick={(event: any) => handleTabChange(event)}+ >+ Table editor+ </a>+ <a+ href="#"+ 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")}+ onClick={(event: any) => handleTabChange(event)}+ >+ SQL editor+ </a>+ <a+ href="#"+ 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")}+ onClick={(event: any) => handleTabChange(event)}+ aria-current="page"+ >+ Auth rules+ </a>+ </nav>+ </div>+ <div className="mt-6">{tabMarkup[tabId]}</div>+ </div>+ )+}++export default Tabsdiff --git a/www/data/CodeExamples.js b/www/data/CodeExamples.jsnew file mode 100644index 00000000000..86d4b739968--- /dev/null+++ b/www/data/CodeExamples.js@@ -0,0 +1,206 @@+const heroExample = `+const messages = supabase+ .from('messages')+ .select(\`+ id, text,+ user ( id, name )+ \`)++const newMessages = supabase+ .from('messages')+ .on('INSERT', message => console.log('New message!', message) )+ .subscribe()+`+const subscribeExample = `+import { createClient } from '@supabase/supabase-js'++// Initialize+const supabaseUrl = 'https://chat-room.supabase.co'+const supabaseKey = 'public-anon-key'+const supabase = createClient(supabaseUrl, supabaseKey)++// Get notified of all new chat messages+const realtime = supabase+ .from('messages')+ .on('INSERT', message => {+ console.log('New message!', message)+ })+ .subscribe()+`+const readExample = `+import { createClient } from '@supabase/supabase-js'++// Initialize+const supabaseUrl = 'https://chat-room.supabase.co'+const supabaseKey = 'public-anon-key'+const supabase = createClient(supabaseUrl, supabaseKey)++// Get public rooms and their messages+const publicRooms = await supabase+ .from('rooms')+ .select(\`+ name,+ messages ( text )+ \`)+ .eq('public', true)+`+const createExample = `+import { createClient } from '@supabase/supabase-js'++// Initialize+const supabaseUrl = 'https://chat-room.supabase.co'+const supabaseKey = 'public-anon-key'+const supabase = createClient(supabaseUrl, supabaseKey)++// Create a new chat room+const newRoom = await supabase+ .from('rooms')+ .insert({ name: 'Supabase Fan Club', public: true })+`+const updateExample = `+import { createClient } from '@supabase/supabase-js'++// Initialize+const supabaseUrl = 'https://chat-room.supabase.co'+const supabaseKey = 'public-anon-key'+const supabase = createClient(supabaseUrl, supabaseKey)++// Update multiple users+const updatedUsers = await supabase+ .from('users')+ .eq('account_type', 'paid')+ .update({ highlight_color: 'gold' })+`+const nodeTSExample = `+import { NextApiRequest, NextApiResponse } from 'next';+import { createClient } from '@supabase/supabase-js';++const supabase = createClient(+ process.env.NEXT_PUBLIC_SUPABASE_URL,+ process.env.SUPABASE_SECRET_KEY+);++type User = {+ id: string;+ username: string;+ status: 'ONLINE' | 'OFFLINE';+};++export default async (req: NextApiRequest, res: NextApiResponse) => {+ const allOnlineUsers = await supabase+ .from<User>('users')+ .select('*')+ .eq('status', 'ONLINE');+ res.status(200).json(allOnlineUsers);+};+`++const umdExample = `+<script src="https://unpkg.com/@supabase/supabase-js/umd/supabase.js"></script>++<script>+ // Initialize+ const supabaseUrl = 'https://chat-room.supabase.co'+ const supabaseKey = 'public-anon-key'+ const supabase = Supabase.createClient(supabaseUrl, supabaseKey)++ // Get public rooms and their messages+ supabase+ .from('rooms')+ .select(\`+ name,+ messages ( text )+ \`)+ .eq('public', true)+ .then(response => {+ // Do something with the response+ })+</script>+`++export const examples = {+ subscribeExample: {+ name: 'Realtime subscriptions',+ description: 'Receive realtime messages in an example chat room',+ code: {+ javascript: `+ import { createClient } from '@supabase/supabase-js'++ // Initialize+ const supabaseUrl = 'https://chat-room.supabase.co'+ const supabaseKey = 'public-anon-key'+ const supabase = createClient(supabaseUrl, supabaseKey)++ // Get notified of all new chat messages+ const realtime = supabase+ .from('messages')+ .on('INSERT', message => {+ console.log('New message!', message)+ })+ .subscribe()+ `,+ },+ },+ readExample: {+ name: 'Read a record',+ description: 'Get all public rooms and their messages',+ code: {+ javascript: `+ import { createClient } from '@supabase/supabase-js'++ // Initialize+ const supabaseUrl = 'https://chat-room.supabase.co'+ const supabaseKey = 'public-anon-key'+ const supabase = createClient(supabaseUrl, supabaseKey)++ // Get public rooms and their messages+ const publicRooms = await supabase+ .from('rooms')+ .select(\`+ name,+ messages ( text )+ \`)+ .eq('public', true)+ `,+ },+ },+ createExample: {+ name: 'Create a record',+ description: 'Create a new chat room',+ code: {+ javascript: `+ import { createClient } from '@supabase/supabase-js'++ // Initialize+ const supabaseUrl = 'https://chat-room.supabase.co'+ const supabaseKey = 'public-anon-key'+ const supabase = createClient(supabaseUrl, supabaseKey)++ // Create a new chat room+ const newRoom = await supabase+ .from('rooms')+ .insert({ name: 'Supabase Fan Club', public: true })+ `,+ },+ },+ updateExample: {+ name: 'Update a record',+ description: 'Update a user',+ code: {+ javascript: `+ import { createClient } from '@supabase/supabase-js'++ // Initialize+ const supabaseUrl = 'https://chat-room.supabase.co'+ const supabaseKey = 'public-anon-key'+ const supabase = createClient(supabaseUrl, supabaseKey)++ // Update multiple users+ const updatedUsers = await supabase+ .from('users')+ .eq('account_type', 'paid')+ .update({ highlight_color: 'gold' })+ `,+ },+ },+}diff --git a/www/package-lock.json b/www/package-lock.jsonindex 57c0a70a83c..9831d5fa4f6 100644--- a/www/package-lock.json+++ b/www/package-lock.json@@ -251,19 +251,19 @@}},"@next/env": {- "version": "10.0.2",- "resolved": "https://registry.npmjs.org/@next/env/-/env-10.0.2.tgz",- "integrity": "sha512-1fMsLplRXJjSmOfdaeP91fbTgnsbmZSvX6BjeKXSksccg5JT9W1XkOCerTrbQLpUNZIi0sVfwBrHrwJRMCqGBA=="+ "version": "10.0.3",+ "resolved": "https://registry.npmjs.org/@next/env/-/env-10.0.3.tgz",+ "integrity": "sha512-xjJt2VXoSxAydskmt77nJuEtRL782E4ltaj5JtMzJ8YkNUMMu3d5ktpCR+Q3INKHF/RY6zHJ9QzyE3/s1ikbNg=="},"@next/polyfill-module": {- "version": "10.0.2",- "resolved": "https://registry.npmjs.org/@next/polyfill-module/-/polyfill-module-10.0.2.tgz",- "integrity": "sha512-lDfVgKvfKz0AhKDT50fho6PtaVswq5xn4+rtvQ7IRyyvcfYswRBbd8f4N2Wb04u8GYnEOj3fSJeM3EM8U4IGzA=="+ "version": "10.0.3",+ "resolved": "https://registry.npmjs.org/@next/polyfill-module/-/polyfill-module-10.0.3.tgz",+ "integrity": "sha512-JaiycQZZbqViaMZgRGYcPIdCPDz+qRnqEGxbhQlrxyPaBaOtsrAEkGf1SS2wJZKa/ncxqWHMfSvizDcGcz/ygQ=="},"@next/react-dev-overlay": {- "version": "10.0.2",- "resolved": "https://registry.npmjs.org/@next/react-dev-overlay/-/react-dev-overlay-10.0.2.tgz",- "integrity": "sha512-9DcSaZwdINOoyzggPoBl6n0YROa7zUU9okUB5VjbB8pc34TPcqdl0lP6UBZybk5IQE8OeOZOYjYzx2q3YtQCMg==",+ "version": "10.0.3",+ "resolved": "https://registry.npmjs.org/@next/react-dev-overlay/-/react-dev-overlay-10.0.3.tgz",+ "integrity": "sha512-ykiKeUhTsMRoyyYnx4jM8xeOPfKGqQ7xgx2dNXOu4tbPpdivzjJp2+K6+xnqhTmZ7uxfFBV+b1OE1ZzA8qyX5Q==","requires": {"@babel/code-frame": "7.10.4","ally.js": "1.4.1",@@ -331,9 +331,9 @@}},"@next/react-refresh-utils": {- "version": "10.0.2",- "resolved": "https://registry.npmjs.org/@next/react-refresh-utils/-/react-refresh-utils-10.0.2.tgz",- "integrity": "sha512-ILc5/BipD7+GBLmtfnQDMG71KLx0fEpVI5kJw8jN9SoeygMrb4auZhCl7gA6QP3oynocYouJ8piLj1Ol80ZvVw=="+ "version": "10.0.3",+ "resolved": "https://registry.npmjs.org/@next/react-refresh-utils/-/react-refresh-utils-10.0.3.tgz",+ "integrity": "sha512-XtzzPX2R4+MIyu1waEQUo2tiNwWVEkmObA6pboRCDTPOs4Ri8ckaIE08lN5A5opyF6GVN+IEq/J8KQrgsePsZQ=="},"@types/classnames": {"version": "2.2.11",@@ -341,6 +341,14 @@"integrity": "sha512-2koNhpWm3DgWRp5tpkiJ8JGc1xTn2q0l+jUNUE7oMKXUf5NpI9AIdC4kbjGNFBdHtcxBD18LAksoudAVhFKCjw==","dev": true},+ "@types/hast": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.1.tgz",+ "integrity": "sha512-viwwrB+6xGzw+G1eWpF9geV3fnsDgXqHG+cqgiHrvQfDUW5hzhCyV7Sy3UJxhfRFBsgky2SSW33qi/YrIkjX5Q==",+ "requires": {+ "@types/unist": "*"+ }+ },"@types/istanbul-lib-coverage": {"version": "2.0.3","resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz",@@ -411,6 +419,15 @@"@types/react": "^16"}},+ "@types/react-syntax-highlighter": {+ "version": "13.5.0",+ "resolved": "https://registry.npmjs.org/@types/react-syntax-highlighter/-/react-syntax-highlighter-13.5.0.tgz",+ "integrity": "sha512-U7DrUaQRv3b+fsbPXMf7vC21K7DOkdNCQtp14Wm0Z5YLI9fPhndN4YTZ9eVXwmAivIg6lZ3YBVtGYucAS3H76A==",+ "dev": true,+ "requires": {+ "@types/react": "*"+ }+ },"@types/unist": {"version": "2.0.3","resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.3.tgz",@@ -1334,6 +1351,17 @@"resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.6.tgz","integrity": "sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q=="},+ "clipboard": {+ "version": "2.0.6",+ "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.6.tgz",+ "integrity": "sha512-g5zbiixBRk/wyKakSwCKd7vQXDjFnAMGHoEyBogG/bw9kTD9GvdAvaoRR1ALcEzt3pVKxZR0pViekPMIS0QyGg==",+ "optional": true,+ "requires": {+ "good-listener": "^1.2.2",+ "select": "^1.1.2",+ "tiny-emitter": "^2.0.0"+ }+ },"code-point-at": {"version": "1.1.0","resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",@@ -1893,6 +1921,12 @@"integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=","dev": true},+ "delegate": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/delegate/-/delegate-3.2.0.tgz",+ "integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==",+ "optional": true+ },"delegates": {"version": "1.0.0","resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",@@ -2390,11 +2424,42 @@"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz","integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="},+ "fault": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/fault/-/fault-1.0.4.tgz",+ "integrity": "sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==",+ "requires": {+ "format": "^0.2.0"+ }+ },"figgy-pudding": {"version": "3.5.2","resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz","integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw=="},+ "file-loader": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz",+ "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==",+ "dev": true,+ "requires": {+ "loader-utils": "^2.0.0",+ "schema-utils": "^3.0.0"+ },+ "dependencies": {+ "schema-utils": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.0.0.tgz",+ "integrity": "sha512-6D82/xSzO094ajanoOSbe4YvXWMfn2A//8Y1+MUqFAJul5Bs+yn36xbK9OtNDcRVSBJ9jjeoXftM6CfztsjOAA==",+ "dev": true,+ "requires": {+ "@types/json-schema": "^7.0.6",+ "ajv": "^6.12.5",+ "ajv-keywords": "^3.5.2"+ }+ }+ }+ },"file-uri-to-path": {"version": "1.0.0","resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",@@ -2477,6 +2542,11 @@"resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz","integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA="},+ "format": {+ "version": "0.2.2",+ "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz",+ "integrity": "sha1-1hcBB+nv3E7TDJ3DkBbflCtctYs="+ },"fragment-cache": {"version": "0.2.1","resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz",@@ -2668,6 +2738,15 @@"resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz","integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw=="},+ "good-listener": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/good-listener/-/good-listener-1.2.2.tgz",+ "integrity": "sha1-1TswzfkxPf+33JoNR3CWqm0UXFA=",+ "optional": true,+ "requires": {+ "delegate": "^3.1.2"+ }+ },"graceful-fs": {"version": "4.2.4","resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz",@@ -2782,6 +2861,11 @@"resolved": "https://registry.npmjs.org/hast-util-is-element/-/hast-util-is-element-1.1.0.tgz","integrity": "sha512-oUmNua0bFbdrD/ELDSSEadRVtWZOf3iF6Lbv81naqsIV99RnSCieTbWuWCY8BAeEfKJTKl0gRdokv+dELutHGQ=="},+ "hast-util-parse-selector": {+ "version": "2.2.5",+ "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz",+ "integrity": "sha512-7j6mrk/qqkSehsM92wQjdIgWM2/BW61u/53G6xmC8i1OmEdKLHbk419QKQUjz6LglWsfqoiHmyMRkP1BGjecNQ=="+ },"hast-util-sanitize": {"version": "2.0.3","resolved": "https://registry.npmjs.org/hast-util-sanitize/-/hast-util-sanitize-2.0.3.tgz",@@ -2812,11 +2896,28 @@"resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-1.0.4.tgz","integrity": "sha512-I5GTdSfhYfAPNztx2xJRQpG8cuDSNt599/7YUn7Gx/WxNMsG+a835k97TDkFgk123cwjfwINaZknkKkphx/f2A=="},+ "hastscript": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-6.0.0.tgz",+ "integrity": "sha512-nDM6bvd7lIqDUiYEiu5Sl/+6ReP0BMk/2f4U/Rooccxkj0P5nm+acM5PrGJ/t5I8qPGiqZSE6hVAwZEdZIvP4w==",+ "requires": {+ "@types/hast": "^2.0.0",+ "comma-separated-tokens": "^1.0.0",+ "hast-util-parse-selector": "^2.0.0",+ "property-information": "^5.0.0",+ "space-separated-tokens": "^1.0.0"+ }+ },"he": {"version": "1.2.0","resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz","integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw=="},+ "highlight.js": {+ "version": "10.4.0",+ "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.4.0.tgz",+ "integrity": "sha512-EfrUGcQ63oLJbj0J0RI9ebX6TAITbsDBLbsjr881L/X5fMO9+oadKzEF21C7R3ULKG6Gv3uoab2HiqVJa/4+oA=="+ },"hmac-drbg": {"version": "1.0.1","resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz",@@ -3366,6 +3467,15 @@"js-tokens": "^3.0.0 || ^4.0.0"}},+ "lowlight": {+ "version": "1.17.0",+ "resolved": "https://registry.npmjs.org/lowlight/-/lowlight-1.17.0.tgz",+ "integrity": "sha512-vmtBgYKD+QVNy7tIa7ulz5d//Il9R4MooOVh4nkOf9R9Cb/Dk5TXMSTieg/vDulkBkIWj59/BIlyFQxT9X1oAQ==",+ "requires": {+ "fault": "^1.0.0",+ "highlight.js": "~10.4.0"+ }+ },"lru-cache": {"version": "6.0.0","resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",@@ -3812,17 +3922,17 @@"integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw=="},"next": {- "version": "10.0.2",- "resolved": "https://registry.npmjs.org/next/-/next-10.0.2.tgz",- "integrity": "sha512-nb/E1BiOwdmU3dYKjC/O78dS/DOOQ27H+vKeIN9zQumWIbRWZlN8TQazjVjPFyzx70+mcmxbDki6CVMeMuyJmA==",+ "version": "10.0.3",+ "resolved": "https://registry.npmjs.org/next/-/next-10.0.3.tgz",+ "integrity": "sha512-QYCfjZgowjaLUFvyV8959SmkUZU/edFgHeiXNtWDv7kffo/oTm891p0KZAkk5cMIHcsDX3g3UuQdw/zmui783g==","requires": {"@ampproject/toolbox-optimizer": "2.7.0-alpha.1","@babel/runtime": "7.12.5","@hapi/accept": "5.0.1",- "@next/env": "10.0.2",- "@next/polyfill-module": "10.0.2",- "@next/react-dev-overlay": "10.0.2",- "@next/react-refresh-utils": "10.0.2",+ "@next/env": "10.0.3",+ "@next/polyfill-module": "10.0.3",+ "@next/react-dev-overlay": "10.0.3",+ "@next/react-refresh-utils": "10.0.3","ast-types": "0.13.2","babel-plugin-transform-define": "2.0.0","babel-plugin-transform-react-remove-prop-types": "0.4.24",@@ -5356,6 +5466,14 @@"integrity": "sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=","dev": true},+ "prismjs": {+ "version": "1.22.0",+ "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.22.0.tgz",+ "integrity": "sha512-lLJ/Wt9yy0AiSYBf212kK3mM5L8ycwlyTlSxHBAneXLR0nzFMlZ5y7riFPF3E33zXOF2IH95xdY5jIyZbM9z/w==",+ "requires": {+ "clipboard": "^2.0.0"+ }+ },"process": {"version": "0.11.10","resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",@@ -5561,6 +5679,18 @@"resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.8.3.tgz","integrity": "sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg=="},+ "react-syntax-highlighter": {+ "version": "15.3.1",+ "resolved": "https://registry.npmjs.org/react-syntax-highlighter/-/react-syntax-highlighter-15.3.1.tgz",+ "integrity": "sha512-XVQuug7kQ4/cWxiYE0XfGXvbDqLLqRsMK/GpmD3v1WOLzb6REcgkL59cJo0m3Y2LB0eoRCNhV62jqQe9/Z0p9w==",+ "requires": {+ "@babel/runtime": "^7.3.1",+ "highlight.js": "^10.1.1",+ "lowlight": "^1.14.0",+ "prismjs": "^1.22.0",+ "refractor": "^3.2.0"+ }+ },"readable-stream": {"version": "3.6.0","resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",@@ -5597,6 +5727,31 @@}}},+ "refractor": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/refractor/-/refractor-3.2.0.tgz",+ "integrity": "sha512-hSo+EyMIZTLBvNNgIU5lW4yjCzNYMZ4dcEhBq/3nReGfqzd2JfVhdlPDfU9rEsgcAyWx+OimIIUoL4ZU7NtYHQ==",+ "requires": {+ "hastscript": "^6.0.0",+ "parse-entities": "^2.0.0",+ "prismjs": "~1.22.0"+ },+ "dependencies": {+ "parse-entities": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-2.0.0.tgz",+ "integrity": "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==",+ "requires": {+ "character-entities": "^1.0.0",+ "character-entities-legacy": "^1.0.0",+ "character-reference-invalid": "^1.0.0",+ "is-alphanumerical": "^1.0.0",+ "is-decimal": "^1.0.0",+ "is-hexadecimal": "^1.0.0"+ }+ }+ }+ },"regenerator-runtime": {"version": "0.13.7","resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz",@@ -5913,6 +6068,12 @@"kind-of": "^6.0.0"}},+ "select": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz",+ "integrity": "sha1-DnNQrN7ICxEIUoeG7B1EGNEbOW0=",+ "optional": true+ },"semver": {"version": "7.3.2","resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",@@ -6735,6 +6896,12 @@"setimmediate": "^1.0.4"}},+ "tiny-emitter": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz",+ "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==",+ "optional": true+ },"to-arraybuffer": {"version": "1.0.1","resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz",diff --git a/www/package.json b/www/package.jsonindex 5735be136f1..04444759d28 100644--- a/www/package.json+++ b/www/package.json@@ -16,6 +16,7 @@"next": "latest","react": "^16.13.0","react-dom": "^16.13.0",+ "react-syntax-highlighter": "^15.3.1","remark": "11.0.2","remark-html": "10.0.0","typescript": "^4.0.3"@@ -26,6 +27,8 @@"@types/node": "^14.0.1","@types/react": "^16.9.35","@types/react-dom": "^16.9.8",+ "@types/react-syntax-highlighter": "^13.5.0",+ "file-loader": "^6.2.0","postcss-preset-env": "^6.7.0","tailwindcss": "^2.0.1"},diff --git a/www/pages/index.tsx b/www/pages/index.tsxindex 3bbfbf7b4a2..e4ceebf003f 100644--- a/www/pages/index.tsx+++ b/www/pages/index.tsx@@ -1,9 +1,15 @@import Container from '../components/container'-import Hero from '../components/hero'import Layout from '../components/layout'import Head from 'next/head'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'+type Props = {}@@ -17,6 +23,11 @@ const Index = ({ }: Props) => {</Head><Container><Hero />+ <Features />+ <BuiltExamples />+ <MadeForDevelopers />+ <AdminAccess />+ <CaseStudies /></Container></Layout></>diff --git a/www/tailwind.config.js b/www/tailwind.config.jsindex fd7af48eee6..447b3bb88c8 100644--- a/www/tailwind.config.js+++ b/www/tailwind.config.js@@ -9,6 +9,17 @@ module.exports = {'accent-7': '#333',success: '#0070f3',cyan: '#79FFE1',+ brand: {+ '100': '#7DDAB1',+ '200': '#67D4A3',+ '300': '#52CD96',+ '400': '#3DC688',+ '500': '#35B179',+ '600': '#24b47e',+ '700': '#29845B',+ '800': '#236E4C',+ '900': '#1C583D',+ },},spacing: {28: '7rem',