Skip to content

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

Not perfect but it took fucking forever. This will do for now

Paul Copplestone2bf2c5161418
diff --git a/web/src/components/HowCard.js b/web/src/components/HowCard.js
new file mode 100644
index 00000000000..eeb62d60ed1
--- /dev/null
+++ b/web/src/components/HowCard.js
@@ -0,0 +1,53 @@
+import React from 'react'
+
+export default function HowCard({ title, description, featureTitle, features }) {
+ return (
+ <div className={'HowCard'}>
+ <div className={'card'} style={styles.card}>
+ <h4 style={styles.h4}>{title}</h4>
+ <div className="card__body" style={styles.cardBase}>
+ {description}
+ <h5 style={styles.h5}>{featureTitle}</h5>
+ <div style={styles.features}>
+ {features.map(x => (
+ <div>
+ <span>
+ <img src="/img/check.svg" alt="✔" style={styles.check} />
+ </span>
+ <span>{x}</span>
+ </div>
+ ))}
+ </div>
+ </div>
+ </div>
+ </div>
+ )
+}
+
+const styles = {
+ h4: {
+ padding: 10,
+ paddingBottom: 15,
+ textAlign: 'center',
+ borderBottom: '1px solid #000',
+ margin: 0
+ },
+ h5: {
+ textTransform: 'uppercase',
+ // opacity: 0.5,
+ margin: '10px 0 0px 0',
+ fontSize: '0.9em'
+ },
+ card: {
+ border: '1px solid #000',
+ boxShadow: 'none'
+ },
+ cardBase: {
+ fontSize: '0.9em',
+ },
+ check: {
+ width: 10,
+ height: 10,
+ marginRight: 10,
+ },
+}
diff --git a/web/src/css/custom.css b/web/src/css/custom.css
index b809fd4e4ad..a848b147972 100755
--- a/web/src/css/custom.css
+++ b/web/src/css/custom.css
@@ -1,14 +1,12 @@
-
@import url('https://gitcdn.xyz/repo/kiwicopple/assets/master/public/css/metro.css');
-
/**
* Root variables
*
* Override the default Infima variables here. These values cascade down to
* the rest of the elements.
*/
-
+
:root,
:root[data-theme=''],
:root[data-theme='dark'] {
@@ -185,12 +183,12 @@ body {
}
:root[data-theme='light'] .navbar__logo.logo--dark,
-:root[data-theme=''] .navbar__logo.logo--dark,
+:root[data-theme=''] .navbar__logo.logo--dark,
:root .navbar__logo.logo--dark {
display: none;
}
:root[data-theme='light'] .navbar__logo.logo--light,
-:root[data-theme=''] .navbar__logo.logo--light,
+:root[data-theme=''] .navbar__logo.logo--light,
:root .navbar__logo.logo--light {
display: inline-block;
}
@@ -569,7 +567,8 @@ div[class^='sidebar_'] .menu__link.menu__link--active:not(.menu__link--sublist)
font-style: normal !important;
color: #9cdcfe !important;
}
-.token.keyword, .token.doc-comment.keyword {
+.token.keyword,
+.token.doc-comment.keyword {
font-style: normal !important;
color: #569cd6 !important;
}
@@ -588,7 +587,8 @@ div[class^='sidebar_'] .menu__link.menu__link--active:not(.menu__link--sublist)
.token.number {
color: #b5cea8 !important;
}
-.token.boolean, .token.doc-comment.class-name {
+.token.boolean,
+.token.doc-comment.class-name {
color: var(--custom-primary) !important;
}
@@ -624,7 +624,6 @@ a.hash-link {
color: var(--custom-content-color-emphasis);
}
-
.ButtonTabs {
padding-left: 0 !important;
}
@@ -671,7 +670,6 @@ a.hash-link {
}
}
-
@media screen and (min-width: 996px) {
.row.is-multiline .col {
margin-top: var(--ifm-spacing-horizontal) !important;
@@ -690,4 +688,49 @@ a.hash-link {
}
.hidden {
display: none;
-}
\ No newline at end of file
+}
+
+
+
+.HowSections .col {
+ margin-bottom: 20px;
+}
+.HowSections img.diagram {
+ margin: 0px auto 30px auto;
+ display: block;
+}
+.HowCard {
+ position: relative;
+}
+.HowCard::before,
+.HowCard::after {
+ bottom: 100%;
+ border: solid transparent;
+ content: '';
+ height: 0;
+ left: 50%;
+ width: 0;
+ position: absolute;
+ pointer-events: none;
+ margin-bottom: -1px;
+}
+.HowCard::before {
+ width: 0;
+ height: 0;
+ border-left: 5px solid transparent;
+ border-right: 5px solid transparent;
+
+ border-bottom: 5px solid black;
+ border-width: 12px;
+ margin-left: -12px;
+}
+.HowCard::after {
+ width: 0;
+ height: 0;
+ border-left: 5px solid transparent;
+ border-right: 5px solid transparent;
+
+ border-bottom: 5px solid var(--ifm-card-background-color);
+ border-width: 11px;
+ margin-left: -11px;
+}
diff --git a/web/src/pages/index.js b/web/src/pages/index.js
index c3f244d4cc6..b969efb9916 100755
--- a/web/src/pages/index.js
+++ b/web/src/pages/index.js
@@ -7,6 +7,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl'
import styles from './styles.module.css'
import CustomCodeBlock from '../components/CustomCodeBlock'
import GithubCard from '../components/GithubCard'
+import HowCard from '../components/HowCard'
import { repos } from '../data/github'
const heroExample = `
@@ -270,7 +271,89 @@ function Home() {
</div>
</section>
- {/* FEATURES */}
+ {/* HOW */}
+ <section className={'section-lg'}>
+ <div className="container">
+ <div className={classnames('row', styles.responsiveCentered)}>
+ <div className="col col--6 col--offset-3">
+ <h2 className="with-underline">How it works</h2>
+ <p className="">
+ Supabase helps you build faster, so you can focus on your core products.
+ </p>
+ </div>
+ </div>
+
+ <div className="HowSections row is-multiline">
+ <div className={'col col--4 '}>
+ <div>
+ <img
+ className="diagram"
+ src="/img/how-replication.png"
+ alt="Database replication"
+ />
+ </div>
+ <div>
+ <HowCard
+ title="Connect your database to Supabase"
+ description={
+ <>
+ Supabase introspects your database and provides instant APIs.
+ </>
+ }
+ featureTitle="You get"
+ features={[
+ 'APIs always in sync with your schema',
+ 'Instant RESTful API',
+ 'Realtime notifications via websockets',
+ ]}
+ />
+ </div>
+ </div>
+
+ <div className={'col col--4 '}>
+ <div>
+ <img className="diagram" src="/img/how-transformation.png" alt="Supabase" />
+ </div>
+ <div>
+ <HowCard
+ title="Supabase handles the magic"
+ description={<>Supabase handles the stuff you're usually too busy to build.</>}
+ featureTitle="You get"
+ features={[
+ 'Custom URL for your APIs',
+ 'Custom API docs for your schema',
+ 'Built-in security & monitoring',
+ ]}
+ />
+ </div>
+ </div>
+
+ <div className={'col col--4 '}>
+ <div>
+ <img className="diagram" src="/img/how-client-libs.png" alt="Client libraries" />
+ </div>
+ <div>
+ <HowCard
+ title="Build realtime applications"
+ description={
+ <>
+ Supabase provides libraries and examples to get you started.
+ </>
+ }
+ featureTitle="Build"
+ features={[
+ 'Auto-updating dashboards',
+ 'IoT applications',
+ 'Realtime chat apps',
+ ]}
+ />
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ {/* USE CASES */}
<section className={'section-lg'}>
<div className="container">
<h2 className="with-underline">Use Cases</h2>
diff --git a/web/static/img/check.svg b/web/static/img/check.svg
new file mode 100644
index 00000000000..c708bd28f7a
--- /dev/null
+++ b/web/static/img/check.svg
@@ -0,0 +1,3 @@
+<svg width="13" height="10" viewBox="0 0 13 10" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M12 1.4375L4.4375 9L1 5.5625" stroke="#3ECF8E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>
diff --git a/web/static/img/how-client-libs.png b/web/static/img/how-client-libs.png
new file mode 100644
index 00000000000..6362beeac67
Binary files /dev/null and b/web/static/img/how-client-libs.png differ
diff --git a/web/static/img/how-replication.png b/web/static/img/how-replication.png
new file mode 100644
index 00000000000..97dad9afe1a
Binary files /dev/null and b/web/static/img/how-replication.png differ
diff --git a/web/static/img/how-transformation.png b/web/static/img/how-transformation.png
new file mode 100644
index 00000000000..5f81106833e
Binary files /dev/null and b/web/static/img/how-transformation.png differ