Skip to content

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

Fix responsiveness for mobile

Joshen Lim47cedec9a48b
diff --git a/www/components/AdminAccess/index.tsx b/www/components/AdminAccess/index.tsx
index edfa0f40cce..015cac52248 100644
--- a/www/components/AdminAccess/index.tsx
+++ b/www/components/AdminAccess/index.tsx
@@ -7,7 +7,7 @@ const AdminAccess = () => {
return (
<div className="py-16 bg-gray-50 dark:bg-dark-300 overflow-hidden lg:py-24">
- <div className="container mx-auto sm:px-16 xl:px-20">
+ <div className="container mx-auto px-10 sm:px-16 xl:px-20">
<div className="relative items-center">
<div className="relative">
<SectionHeader
@@ -15,7 +15,7 @@ const AdminAccess = () => {
title_alt={' without leaving the dashboard'}
subtitle={'Admin Access'}
/>
- <div className="grid sm:flex sm:flex-col-reverse lg:flex-row lg:grid-cols-2 gap-28 items-center">
+ <div className="flex flex-col-reverse lg:flex-row lg:grid lg:grid-cols-2 gap-28 items-center">
<Tabs
tabId={tabId}
setTabId={setTabId}
diff --git a/www/components/AdminAccess/tabs.tsx b/www/components/AdminAccess/tabs.tsx
index 9f17a634c4d..30332f3c561 100644
--- a/www/components/AdminAccess/tabs.tsx
+++ b/www/components/AdminAccess/tabs.tsx
@@ -17,14 +17,14 @@ function Tabs(props: Props) {
}
return (
- <div className="flex justify-between items-center w-full sm:relative sm:-mt-20 lg:mt-0">
+ <div className="flex justify-between items-center w-full sm:relative -mt-20 lg:mt-0">
<div>
<div className="">
<nav className="-mb-px flex" aria-label="Tabs">
<a
href="#"
id="tabTableEditor"
- className={"transition w-1/4 py-4 px-1 text-center border-b-2 font-medium text-sm" + (tabId === "tabTableEditor" ? " border-brand-500 dark:border-white text-brand-600 dark:text-white" : " border-b border-gray-200 dark:border-dark-200 text-gray-500 dark:text-gray-400 hover:text-gray-700 hover:border-gray-300 dark:hover:text-gray-200")}
+ className={"transition sm:w-1/3 lg:w-1/4 py-4 px-1 text-center border-b-2 font-medium text-sm" + (tabId === "tabTableEditor" ? " border-brand-500 dark:border-white text-brand-600 dark:text-white" : " border-b border-gray-200 dark:border-dark-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
@@ -32,7 +32,7 @@ function Tabs(props: Props) {
<a
href="#"
id="tabSqlEditor"
- className={"transition w-1/4 py-4 px-1 text-center border-b-2 font-medium text-sm" + (tabId === "tabSqlEditor" ? " border-brand-500 dark:border-white text-brand-600 dark:text-white" : " border-b border-gray-200 dark:border-dark-200 text-gray-500 dark:text-gray-400 hover:text-gray-700 hover:border-gray-300 dark:hover:text-gray-200")}
+ className={"transition sm:w-1/3 lg:w-1/4 py-4 px-1 text-center border-b-2 font-medium text-sm" + (tabId === "tabSqlEditor" ? " border-brand-500 dark:border-white text-brand-600 dark:text-white" : " border-b border-gray-200 dark:border-dark-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
@@ -40,7 +40,7 @@ function Tabs(props: Props) {
<a
href="#"
id="tabAuthRules"
- className={"transition w-1/4 py-4 px-1 text-center border-b-2 font-medium text-sm" + (tabId === "tabAuthRules" ? " border-brand-500 dark:border-white text-brand-600 dark:text-white" : " border-b border-gray-200 dark:border-dark-200 text-gray-500 dark:text-gray-400 hover:text-gray-700 hover:border-gray-300 dark:hover:text-gray-200")}
+ className={"transition sm:w-1/3 lg:w-1/4 py-4 px-1 text-center border-b-2 font-medium text-sm" + (tabId === "tabAuthRules" ? " border-brand-500 dark:border-white text-brand-600 dark:text-white" : " border-b border-gray-200 dark:border-dark-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"
>
diff --git a/www/components/BuiltWithSupabase/index.tsx b/www/components/BuiltWithSupabase/index.tsx
index 01393b8b210..8bce1f99e13 100644
--- a/www/components/BuiltWithSupabase/index.tsx
+++ b/www/components/BuiltWithSupabase/index.tsx
@@ -5,7 +5,7 @@ import ProjectExamples from "data/ProjectExamples.json"
const BuiltExamples = () => {
return (
<div className="bg-gray-50 dark:bg-dark-300 py-16">
- <div className="container mx-auto sm:px-16 xl:px-20 relative">
+ <div className="container mx-auto px-10 sm:px-16 xl:px-20 relative">
<div className="absolute inset-0">
<div className="mx-auto bg-white dark:bg-dark-200 h-1/3 sm:h-2/3 md:w-5/6 lg:w-3/4 xl:w-full"></div>
</div>
diff --git a/www/components/CTABanner/index.tsx b/www/components/CTABanner/index.tsx
index 934b8a48773..2abf67ede10 100644
--- a/www/components/CTABanner/index.tsx
+++ b/www/components/CTABanner/index.tsx
@@ -2,7 +2,7 @@ import Button from '../button'
const CTABanner = () => {
return (
- <div className="py-32 grid grid-cols-12 gap-4 items-center text-center bg-dark-700">
+ <div className="py-32 grid grid-cols-12 gap-4 items-center text-center bg-dark-700 px-16">
<div className="col-span-12">
<h4 className="font-normal text-white lg:text-3xl">
<span className="block">Create your next project backend </span>
diff --git a/www/components/CaseStudies/index.tsx b/www/components/CaseStudies/index.tsx
index f69a03909ea..5ab33a90d2b 100644
--- a/www/components/CaseStudies/index.tsx
+++ b/www/components/CaseStudies/index.tsx
@@ -9,7 +9,7 @@ const CaseStudies = () => {
<div className="absolute inset-0">
<div className="mx-auto bg-white dark:bg-dark-300 h-1/3 sm:h-2/3 xl:w-full"></div>
</div>
- <div className="container relative mx-auto sm:px-16 xl:px-20">
+ <div className="container relative mx-auto px-10 sm:px-16 xl:px-20">
<div className="relative max-w-7xl mx-auto">
<div>
<SectionHeader
diff --git a/www/components/Features/index.tsx b/www/components/Features/index.tsx
index 7d6949298cc..b38dda3dde5 100644
--- a/www/components/Features/index.tsx
+++ b/www/components/Features/index.tsx
@@ -37,7 +37,7 @@ const Features = () => {
return (
<div className="bg-gray-50 dark:bg-dark-400 overflow-hidden py-12">
- <div className="container mx-auto sm:px-16 xl:px-20">
+ <div className="container mx-auto px-10 sm:px-16 xl:px-20">
<div className="mx-auto max-w-7xl">
<SectionHeader
title={'Build Faster'}
diff --git a/www/components/Footer/index.tsx b/www/components/Footer/index.tsx
index 077f7285afb..782b6547125 100644
--- a/www/components/Footer/index.tsx
+++ b/www/components/Footer/index.tsx
@@ -91,7 +91,7 @@ const Footer = (props: Props) => {
</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">
+ <div className="grid grid-cols-2 gap-8 md:grid-cols-4">
{FooterLinks.map((segment: any) => {
return (
<div key={`footer_${segment.title}`}>
diff --git a/www/components/MadeForDevelopers/index.tsx b/www/components/MadeForDevelopers/index.tsx
index 8ddd673f67a..f284b94f1ff 100644
--- a/www/components/MadeForDevelopers/index.tsx
+++ b/www/components/MadeForDevelopers/index.tsx
@@ -5,7 +5,7 @@ import CodeExamples from 'components/MadeForDevelopers/CodeExamples'
const MadeForDevelopers = () => {
return (
<div className="py-16 bg-gray-50 dark:bg-dark-400 overflow-hidden lg:py-16">
- <div className="container mx-auto sm:px-16 xl:px-20">
+ <div className="container mx-auto px-10 sm:px-16 xl:px-20">
<SectionHeader className="text-center sm:w-3/4 xl:w-2/3 mx-auto" 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/index.tsx b/www/components/Nav/index.tsx
index 633aa073d97..1538144b7e2 100644
--- a/www/components/Nav/index.tsx
+++ b/www/components/Nav/index.tsx
@@ -46,10 +46,10 @@ const Nav = (props: Props) => {
</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">
+ <p className="text-base font-medium text-gray-900 dark:text-white">
{name} {label && <Badge>{label}</Badge>}
</p>
- <p className="mt-1 text-sm text-gray-500">{description}</p>
+ <p className="mt-1 text-sm text-gray-500 dark:text-dark-100">{description}</p>
</div>
{url && (
<p className="mt-2 text-sm font-medium text-brand-600 lg:mt-4">
@@ -182,6 +182,7 @@ const Nav = (props: Props) => {
{/* <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>
+ {/* Mobile Nav Menu */}
<Transition
appear={true}
show={open}
@@ -193,14 +194,13 @@ const Nav = (props: Props) => {
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="p-4 md:p-8 h-full h-screen fixed bg-white transform lg:hidden overflow-y-scroll -inset-y-0 z-50 dark:bg-dark-400">
<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"
+ 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 dark:bg-dark-400"
>
<span className="sr-only">Close menu</span>
@@ -227,25 +227,25 @@ const Nav = (props: Props) => {
<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"
+ 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 dark:text-white"
>
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"
+ 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 dark:text-white"
>
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"
+ 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 dark:text-white"
>
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"
+ 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 dark:text-white"
>
Pricing
</a>
diff --git a/www/components/hero.tsx b/www/components/hero.tsx
index 79e56ddd50f..50d1a5660da 100644
--- a/www/components/hero.tsx
+++ b/www/components/hero.tsx
@@ -4,7 +4,7 @@ import Button from 'components/button'
const Hero = () => {
return (
<div className="relative bg-dark-500 overflow-hidden">
- <div className="container mx-auto sm:px-16 xl:px-20">
+ <div className="container mx-auto px-10 sm:px-16 xl:px-20">
<div className="hidden sm:block sm:absolute sm:inset-0" aria-hidden="true">
<svg
className="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"
@@ -38,7 +38,7 @@ const Hero = () => {
<div className="sm:mx-auto md:w-3/4 lg:w-full lg:mx-0">
<h1 className="mt-4 text-4xl 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>
+ <span className="text-brand-400 ml-2 md:ml-0 md:block">Firebase Alternative</span>
</h1>
<p className="mt-5 text-base text-gray-200 sm:mt-5 sm:text-xl lg:text-lg xl:text-xl">
Create your new project backend in less than 2 minutes with easy to use Postgres Database and Authentication.
@@ -54,9 +54,9 @@ const Hero = () => {
</p>
<div className="mt-5 w-full sm:mx-auto sm:max-w-lg lg:ml-0">
<div className="flex flex-wrap items-center sm:justify-center lg:justify-start">
- <img className="h-9 sm:h-10 pr-10" src="images/logos/yc--grey.png" alt="Y Combinator" />
- <img className="relative -top-1 h-7 pr-10" src="images/logos/mozilla--grey.png" alt="Mozilla" />
- <img className="h-5 pr-10" src="images/logos/coatue.png" alt="Coatue" />
+ <img className="h-8 sm:h-10 pr-10" src="images/logos/yc--grey.png" alt="Y Combinator" />
+ <img className="relative -top-1 h-5 sm:h-7 pr-10" src="images/logos/mozilla--grey.png" alt="Mozilla" />
+ <img className="h-3 sm:h-5 pr-10" src="images/logos/coatue.png" alt="Coatue" />
</div>
</div>
</div>