The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Some recommendations from ines
Paul Copplestone63807359543a
diff --git a/web/docusaurus.config.js b/web/docusaurus.config.jsindex 79e55391e67..fe7847c7117 100755--- a/web/docusaurus.config.js+++ b/web/docusaurus.config.js@@ -60,7 +60,7 @@ module.exports = {},{label: 'Humans',- to: '/static/humans.txt',+ to: '/humans.txt',},],},diff --git a/web/src/css/custom.css b/web/src/css/custom.cssindex 5b20b7b4ae0..10f12320036 100755--- a/web/src/css/custom.css+++ b/web/src/css/custom.css@@ -34,6 +34,8 @@--custom-background-color: #fdfdfd;--custom-background-color-highlight: #fff;--custom-background-color-diff: #f5f6f7;+ --custom-background-color-diff-1: #eee;+ --custom-background-color-diff-2: #ccc;--custom-content-color: #1f1f1f;--custom-content-color-light: #484848;--custom-content-color-lightest: #333;@@ -65,6 +67,11 @@--ifm-color-primary-lighter: var(--custom-primary-lighter);--ifm-color-primary-lightest: var(--custom-primary-lightest);+ /* Info */+ --ifm-color-info-darker: var(--custom-background-color-diff-2);+ --ifm-color-info-dark: var(--custom-background-color-diff-1);+ --ifm-color-info: var(--custom-background-color-diff);+/* Fonts */--ifm-font-base-color: var(--custom-content-color);--ifm-font-family-base: var(--custom-font-base);@@ -87,6 +94,7 @@/* Buttons */--ifm-button-background-color: var(--custom-background-color);+ /* --ifm-button-color: var(--custom-content-color); Not great - changes the green buttons to have black text *//* Navbar */--ifm-navbar-background-color: var(--custom-background-color);@@ -129,6 +137,8 @@--custom-background-color: #1f1f1f;--custom-background-color-highlight: #2a2a2a;--custom-background-color-diff: #2a2a2a;+ --custom-background-color-diff-1: #484848;+ --custom-background-color-diff-2: #666;--custom-content-color: #ddd;--custom-content-color-light: #aaa;--custom-content-color-lightest: #fefefe;@@ -427,7 +437,7 @@ a.card:hover {bottom: 0;right: 0;padding: 10px;- border:none;+ border: none;border-top: 1px solid var(--custom-border-color) !important;}@@ -580,3 +590,43 @@ a.hash-link {.has-emphasis {color: var(--custom-content-color-emphasis);}+++.ButtonTabs {+ padding-left: 0 !important;+}+.ButtonTabs .button {+ width: 100%;+ display: block;+ color: var(--custom-content-color) !important;+ margin-right: 10px;+ margin-bottom: 8px;+ border: 2px solid var(--ifm-button-background-color) !important;+}+.ButtonTabs .button.is-active,+.ButtonTabs .button:hover,+.ButtonTabs:hover .button.is-active:hover {+ border: 2px solid var(--custom-primary) !important;+ box-shadow: var(--custom-shadow-lw);+}+/* Disable the border on the active button when hovering across the buttons */+.ButtonTabs:hover .button.is-active {+ border: 2px solid var(--ifm-button-background-color) !important;+}+/* But */+@media screen and (max-width: 997px) {+ .ButtonTabs {+ padding-left: var(--ifm-spacing-horizontal) !important;+ }+ .ButtonTabs > div {+ display: flex !important;+ flex-wrap: nowrap !important;+ overflow-x: auto !important;+ -webkit-overflow-scrolling: touch !important;+ -ms-overflow-style: -ms-autohiding-scrollbar !important;+ }+ .ButtonTabs .button {+ display: inline-block;+ width: auto;+ }+}diff --git a/web/src/pages/index.js b/web/src/pages/index.jsindex fec42d32fe1..ab0506a8ef1 100755--- a/web/src/pages/index.js+++ b/web/src/pages/index.js@@ -64,19 +64,19 @@ const features = [{title: <>Chat apps</>,imageUrl: '',- description: <>Build a realtime chat application using PostgreSQL and Expo.</>,+ description: <>Build a realtime chat application using PostgreSQL and Expo</>,href: '/docs/guides/examples',},{title: <>Realtime dashboards</>,imageUrl: '',- description: <>Build live dashboards using PostgreSQL and D3.js.</>,+ description: <>Build live dashboards using PostgreSQL and D3.js</>,href: '/docs/guides/examples',},{title: <>Event sourcing</>,imageUrl: '',- description: <>Log all your database changes to an immutable logging system.</>,+ description: <>Log all your database changes to an immutable logging system</>,href: '/docs/guides/examples',},]@@ -107,20 +107,16 @@ function Home() {return (<Layout title={`${siteConfig.title}`} description={siteConfig.tagline}><main className="HomePage">+ {/* HEARDER */}<header className={classnames('hero', styles.heroBanner)}><div className="container"><div className="row">- <div className="col col--6">+ <div className="col"><h2 className="hero__title">{siteConfig.tagline}</h2><p className="hero__subtitle">- Supabase adds both realtime and RESTful APIs to your{' '}- <strong class="has-emphasis">existing</strong> PostgreSQL database without a+ Supabase adds realtime and RESTful APIs to your{' '}+ <strong className="has-emphasis">existing</strong> PostgreSQL database without asingle line of code.- <br />- <br />- Don't waste time creating relational APIs and websockets. We introspect your- database and provide APIs <strong class="has-emphasis">instantly</strong> so you- can focus on what's most important - building your products.</p><div><Link@@ -145,71 +141,79 @@ function Home() {</Link></div></div>- <div className="col col--6 codeblock-scroll">- <CodeBlock>{subscribeExample}</CodeBlock>- </div></div></div></header>- {features && features.length && (- <section className={styles.features}>- <div className="container">- <h2 className="with-underline">Use Cases.</h2>- <div className="row">- {features.map((props, idx) => (- <Feature key={idx} {...props} />- ))}- </div>- </div>- </section>- )}+ <section+ style={{+ padding: '50px 0',+ borderTop: '1px solid var(--custom-border-color)',+ borderBottom: '1px solid var(--custom-border-color)',+ }}+ className="hero is--dark"+ >+ <div className="container text--center">+ <small>CUSTOMER LOGOS</small>+ </div>+ </section>++ {/* For Devs */}<section className={styles.forDevelopers}><div className="container">- <div className="row">- <div className="col col--9">- <h2 className="with-underline">For Developers.</h2>+ <div+ className={classnames(+ 'row',+ styles.responsiveCentered+ )}+ >+ <div className="col col--8 col--offset-2">+ <h2 className="with-underline">For Developers</h2><p className="">- We believe developers want solid, fast, and simple products. So that's what we- make.+ We know developers want fast, solid, and simple products. So that's what we make.+ Forget about building repetitive CRUD APIs. We introspect your database and+ provide APIs <strong className="has-emphasis">instantly</strong> so you can focus+ on what's most important - building your products.</p></div></div><div className="ForDevelopers"><div className="row">- <div className="col col--3">- <button- className={`button button--block button--${- visibleCodeExample === 'SUBSCRIBE' ? 'primary' : 'link'- }`}- onClick={() => showCodeExample('SUBSCRIBE')}- >- Realtime subscriptions- </button>- <button- className={`button button--block button--${- visibleCodeExample === 'READ' ? 'primary' : 'link'- }`}- onClick={() => showCodeExample('READ')}- >- Get your data- </button>- <button- className={`button button--block button--${- visibleCodeExample === 'CREATE' ? 'primary' : 'link'- }`}- onClick={() => showCodeExample('CREATE')}- >- Create a record- </button>- <button- className={`button button--block button--${- visibleCodeExample === 'UPDATE' ? 'primary' : 'link'- }`}- onClick={() => showCodeExample('UPDATE')}- >- Update mulitple rows- </button>+ <div className="ButtonTabs col col--3">+ <div>+ <button+ className={`button button--${+ visibleCodeExample === 'SUBSCRIBE' ? 'info is-active' : 'info'+ }`}+ onClick={() => showCodeExample('SUBSCRIBE')}+ >+ Realtime subscriptions+ </button>+ <button+ className={`button button--${+ visibleCodeExample === 'READ' ? 'info is-active' : 'info '+ }`}+ onClick={() => showCodeExample('READ')}+ >+ Get your data+ </button>+ <button+ className={`button button--${+ visibleCodeExample === 'CREATE' ? 'info is-active' : 'info '+ }`}+ onClick={() => showCodeExample('CREATE')}+ >+ Create a record+ </button>+ <button+ className={`button button--${+ visibleCodeExample === 'UPDATE' ? 'info is-active' : 'info '+ }`}+ onClick={() => showCodeExample('UPDATE')}+ >+ Update mulitple rows+ </button>+ </div></div><div className="col col--9">{visibleCodeExample === 'SUBSCRIBE' && <CodeBlock>{subscribeExample}</CodeBlock>}@@ -222,13 +226,31 @@ function Home() {</div></section>+ {/* FEATURES */}+ {features && features.length && (+ <section className={styles.features}>+ <div className="container">+ <h2 className="with-underline">Use Cases</h2>+ <div className="row">+ {features.map((props, idx) => (+ <Feature key={idx} {...props} />+ ))}+ </div>+ </div>+ </section>+ )}+<section- style={{ marginTop: 100, padding: '50px 0', borderTop: '1px solid var(--custom-border-color)' }}+ style={{+ marginTop: 100,+ padding: '50px 0',+ borderTop: '1px solid var(--custom-border-color)',+ }}className="hero is--dark"><div className="container text--center"><div>- <h2>Get Early Access.</h2>+ <h2>Get Early Access</h2></div><div className=""><Linkdiff --git a/web/src/pages/styles.module.css b/web/src/pages/styles.module.cssindex 5132e2409d3..d9972cda7ce 100755--- a/web/src/pages/styles.module.css+++ b/web/src/pages/styles.module.css@@ -78,3 +78,13 @@margin-right: 0;}}++.responsiveCentered {+ text-align: center;+}++@media screen and (max-width: 999px) {+ .responsiveCentered {+ text-align: left;+ }+}\ No newline at end of file