Skip to content

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

updates the homepage to have a bit more space

Paul Copplestone3a6a5b424d5e
diff --git a/web/docusaurus.config.js b/web/docusaurus.config.js
index b7e0efa2335..68a10f98aa5 100755
--- a/web/docusaurus.config.js
+++ b/web/docusaurus.config.js
@@ -58,11 +58,11 @@ module.exports = {
{
to: '/docs',
label: 'Docs',
- position: 'left',
+ position: 'right',
},
- { to: '/docs/pricing', label: 'Pricing', position: 'left' },
- { to: '/blog', label: 'Blog', position: 'left' },
- { href: 'https://github.com/supabase/supabase', label: 'GitHub', position: 'left' },
+ { to: '/docs/pricing', label: 'Pricing', position: 'right' },
+ { to: '/blog', label: 'Blog', position: 'right' },
+ { href: 'https://github.com/supabase/supabase', label: 'GitHub', position: 'right' },
{ href: 'https://app.supabase.io', label: 'Login', position: 'right' },
],
},
diff --git a/web/src/pages/index.js b/web/src/pages/index.js
index 3e47bc49ff5..51f53dd13cc 100755
--- a/web/src/pages/index.js
+++ b/web/src/pages/index.js
@@ -11,7 +11,14 @@ import HowCard from '../components/HowCard'
import { repos } from '../data/github'
const heroExample = `
-const realtime = supabase
+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()
@@ -142,8 +149,8 @@ function Home() {
return (
<Layout title={`${siteConfig.title}`} description={siteConfig.tagline}>
<main className="HomePage">
- {/* HEARDER */}
- <header className={classnames('hero', styles.heroBanner)}>
+ {/* HEADER */}
+ <header className={classnames('hero full', styles.heroBanner)}>
<div className="container">
<div className="row">
<div className="col col--5">
@@ -175,7 +182,10 @@ function Home() {
</div>
</div>
<div className="col col--7">
- <CustomCodeBlock header="Listen to your Postgres in realtime." js={heroExample} />
+ <CustomCodeBlock
+ header="Query your PostgreSQL database and listen in real-time."
+ js={heroExample}
+ />
</div>
</div>
</div>
@@ -358,7 +368,7 @@ function Home() {
</section>
{/* USE CASES */}
- <section className={'section-lg'}>
+ {/* <section className={'section-lg'}>
<div className="container">
<h2 className="with-underline">Use Cases</h2>
<div className="row is-multiline">
@@ -367,11 +377,11 @@ function Home() {
))}
</div>
</div>
- </section>
+ </section> */}
<section className={'section-lg'}>
<div className="container">
- <div className={classnames('row', styles.responsiveCentered)}>
+ <div className={classnames('row', styles.centered)}>
<div className="col col--6 col--offset-3">
<h2 className="with-underline">Self-documenting</h2>
<p className="">
@@ -381,7 +391,7 @@ function Home() {
</div>
</div>
- <div className={classnames('row', styles.responsiveCentered)}>
+ <div className={classnames('row', styles.centered)}>
<div className="col">
<img
className={''}
@@ -393,6 +403,27 @@ function Home() {
</div>
</section>
+ {/* <section className={'section-lg'}>
+ <div className="container">
+ <div className={classnames('row', styles.centered)}>
+ <div className="col col--6 col--offset-3">
+ <h2 className="with-underline">Table view</h2>
+ <p className="">Start building your database directly from the dashboard.</p>
+ </div>
+ </div>
+
+ <div className={classnames('row', styles.centered)}>
+ <div className="col">
+ <img
+ className={''}
+ src={'/img/table-view.png'}
+ alt={'Self-documenting dashboards'}
+ />
+ </div>
+ </div>
+ </div>
+ </section> */}
+
{/* OSS */}
<section className={'section-lg'}>
<div className="container">
@@ -448,7 +479,7 @@ function Home() {
styles.button
)}
href="https://www.producthunt.com/posts/supabase?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-supabase"
- style={{ width: 250, height: 54, margin:0, padding:0, display: 'inline-block' }}
+ style={{ width: 250, height: 54, margin: 0, padding: 0, display: 'inline-block' }}
>
<img
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=203792&theme=dark"
diff --git a/web/src/pages/styles.module.css b/web/src/pages/styles.module.css
index ba486dbceb0..d313bbb68c5 100755
--- a/web/src/pages/styles.module.css
+++ b/web/src/pages/styles.module.css
@@ -17,6 +17,15 @@
overflow: hidden;
} */
+.heroBanner {
+ /* height: calc(100vh - 60px); */
+ height: 80vh;
+}
+.hero .code-with-header {
+ box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.3);
+ /* box-shadow: var(--ifm-global-shadow-md); */
+}
+
.heroBanner h2 {
font-size: 2rem !important;
}
@@ -75,6 +84,10 @@
text-align: center;
}
+.centered {
+ text-align: center;
+}
+
@media screen and (max-width: 999px) {
.responsiveCentered {
text-align: left;
diff --git a/web/static/img/table-view.png b/web/static/img/table-view.png
new file mode 100644
index 00000000000..dbc9fc6ed58
Binary files /dev/null and b/web/static/img/table-view.png differ