Skip to content

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

More couple of fixes from review earlier

Joshen Lim6631dd0a470a
diff --git a/www/components/Card.tsx b/www/components/Card.tsx
index d597027a880..18b59ee0d03 100644
--- a/www/components/Card.tsx
+++ b/www/components/Card.tsx
@@ -69,7 +69,7 @@ const Card = (props: Props) => {
</p>
<div className="block mt-2">
{/* {logoUrl && <img src={logoUrl} className="h-9 my-4" />} */}
- {title && <a href={url} className="text-xl text-gray-900 dark:text-white">{title}</a>}
+ {title && <p className="text-xl text-gray-900 dark:text-white">{title}</p>}
<p className="mt-3 text-base text-gray-500 dark:text-dark-100">
{description}
</p>
diff --git a/www/components/CaseStudies/index.tsx b/www/components/CaseStudies/index.tsx
index ce38213e6aa..d75995400f1 100644
--- a/www/components/CaseStudies/index.tsx
+++ b/www/components/CaseStudies/index.tsx
@@ -7,7 +7,7 @@ const CaseStudies = () => {
return (
<div className="relative bg-gray-50 dark:bg-dark-400 pb-20">
<div className="absolute inset-0">
- <div className="mx-auto bg-white dark:bg-dark-300 h-1/5 sm:h-3/5 xl:h-2/5 xl:w-full"></div>
+ <div className="mx-auto bg-white dark:bg-dark-300 h-1/5 sm:h-2/5 w-full"></div>
</div>
<div className="container relative mx-auto px-8 sm:px-16 xl:px-20 lg:py-8">
<div className="relative max-w-7xl mx-auto">
diff --git a/www/components/MadeForDevelopers/CodeExamples.tsx b/www/components/MadeForDevelopers/CodeExamples.tsx
index 7378ea8d05e..abc1d381b1d 100644
--- a/www/components/MadeForDevelopers/CodeExamples.tsx
+++ b/www/components/MadeForDevelopers/CodeExamples.tsx
@@ -47,9 +47,9 @@ const CodeExamples = () => {
{buttons}
</div>
<div className="col-span-12 lg:col-span-9">
- <div className="rounded-md rounded-b-lg" style={{ background: '#474949' }}>
+ <div className="rounded-md rounded-b-lg bg-dark-600">
<div className="p-2 pl-5 flex justify-between items-center">
- <p className="text-base text-dark-100">
+ <p className="text-sm truncate mr-2 sm:text-base text-dark-100">
{
// @ts-ignore
examples[example].description
diff --git a/www/components/Nav/FlyOut.tsx b/www/components/Nav/FlyOut.tsx
index 86df0ea9d33..f671c920187 100644
--- a/www/components/Nav/FlyOut.tsx
+++ b/www/components/Nav/FlyOut.tsx
@@ -2,6 +2,7 @@ import { useState, useEffect } from 'react'
import Badge from 'components/Badge'
import Transition from 'lib/Transition'
import Solutions from 'data/Solutions.json'
+import CaseStudiesData from "data/CaseStudies.json"
const FlyOut = () => {
const [show, setShow] = useState(false)
@@ -110,7 +111,7 @@ const FlyOut = () => {
position: 'absolute',
width: '100vw',
margin: '0 auto',
- marginTop: '44px',
+ marginTop: '64px',
left: '-50vw',
right: '-50vw',
}}
@@ -133,52 +134,27 @@ const FlyOut = () => {
Latest news
</h3>
<ul className="mt-6 space-y-6">
- <li className="flow-root">
- <a
- href="#"
- className="-m-3 p-3 flex rounded-lg hover:bg-gray-100 dark:hover:bg-dark-200 transition ease-in-out duration-150"
- >
- <div className="hidden sm:block flex-shrink-0">
- <img
- className="w-32 h-20 object-cover rounded-md"
- src="https://images.unsplash.com/photo-1558478551-1a378f63328e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2849&q=80"
- alt=""
- />
- </div>
- <div className="min-w-0 flex-1 sm:ml-8">
- <h4 className="text-base font-medium text-gray-900 dark:text-white truncate">
- Supabase launch news
- </h4>
- <p className="mt-1 text-sm text-gray-500 dark:text-dark-100">
- Eget ullamcorper ac ut vulputate fames nec mattis pellentesque
- elementum. Viverra tempor id mus.
- </p>
- </div>
- </a>
- </li>
- <li className="flow-root">
- <a
- href="#"
- className="-m-3 p-3 flex rounded-lg hover:bg-gray-100 dark:hover:bg-dark-200 transition ease-in-out duration-150"
- >
- <div className="hidden sm:block flex-shrink-0">
- <img
- className="w-32 h-20 object-cover rounded-md"
- src="https://images.unsplash.com/1/apple-gear-looking-pretty.jpg?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2850&q=80"
- alt=""
- />
- </div>
- <div className="min-w-0 flex-1 sm:ml-8">
- <h4 className="text-base font-medium text-gray-900 dark:text-white truncate">
- New project example released
- </h4>
- <p className="mt-1 text-sm text-gray-500 dark:text-dark-100">
- Eget ullamcorper ac ut vulputate fames nec mattis pellentesque
- elementum. Viverra tempor id mus.
- </p>
- </div>
- </a>
- </li>
+ {CaseStudiesData.map((caseStudy: any, idx:number) => (
+ <li className="flow-root" key={`flyout_case_${idx}`}>
+ <a href={caseStudy.url} className="-m-3 p-3 flex rounded-lg hover:bg-gray-100 dark:hover:bg-dark-200 transition ease-in-out duration-150">
+ <div className="hidden sm:block flex-shrink-0">
+ <img
+ className="w-32 h-20 object-cover rounded-md"
+ src={caseStudy.imgUrl}
+ alt="caseStudyThumb"
+ />
+ </div>
+ <div className="min-w-0 flex-1 sm:ml-8">
+ <h4 className="text-base font-medium text-gray-900 dark:text-white truncate">
+ {caseStudy.title}
+ </h4>
+ <p className="mt-1 text-sm text-gray-500 dark:text-dark-100">
+ {caseStudy.description}
+ </p>
+ </div>
+ </a>
+ </li>
+ ))}
</ul>
</div>
<div className="mt-6 text-sm font-medium">
diff --git a/www/components/Nav/index.tsx b/www/components/Nav/index.tsx
index d35f70da9d8..8c978acec7d 100644
--- a/www/components/Nav/index.tsx
+++ b/www/components/Nav/index.tsx
@@ -152,7 +152,7 @@ const Nav = (props: Props) => {
href="#"
className={`
inline-flex items-center px-1 border-b-2 border-transparent text-sm font-medium
- text-gray-500 hover:text-gray-700 hover:border-gray-500
+ text-gray-500 hover:text-gray-700 hover:border-gray-500 p-5
dark:text-dark-100 dark:hover:border-dark-100
`}
>
@@ -162,7 +162,7 @@ const Nav = (props: Props) => {
href="#"
className={`
inline-flex items-center px-1 border-b-2 border-transparent text-sm font-medium
- text-gray-500 hover:text-gray-700 hover:border-gray-500
+ text-gray-500 hover:text-gray-700 hover:border-gray-500 p-5
dark:text-dark-100 dark:hover:border-dark-100
`}
>
@@ -172,7 +172,7 @@ const Nav = (props: Props) => {
href="#"
className={`
inline-flex items-center px-1 border-b-2 border-transparent text-sm font-medium
- text-gray-500 hover:text-gray-700 hover:border-gray-500
+ text-gray-500 hover:text-gray-700 hover:border-gray-500 p-5
dark:text-dark-100 dark:hover:border-dark-100
`}
>
@@ -194,8 +194,7 @@ const Nav = (props: Props) => {
href="#"
className={`
inline-flex items-center px-1 border-b-2 border-transparent text-sm font-medium
- text-gray-500 hover:text-gray-700 hover:border-gray-500 hidden lg:block
- dark:text-dark-100 dark:hover:border-dark-100
+ text-gray-500 hover:text-gray-700 hidden lg:block dark:text-dark-100 dark:hover:text-white
`}
>
Sign in
diff --git a/www/components/UI/SectionHeader.tsx b/www/components/UI/SectionHeader.tsx
index cdd1e88b623..e5f58b584b1 100644
--- a/www/components/UI/SectionHeader.tsx
+++ b/www/components/UI/SectionHeader.tsx
@@ -8,7 +8,7 @@ const SectionHeader = (props :any) => {
<h2 className="text-gray-900 dark:text-white text-3xl md:text-4xl lg:text-5xl">
{props.title}
{props.title_alt && (
- <span className="text-gray-600 dark:text-gray-400 block lg:inline">{props.title_alt}</span>
+ <span className="text-gray-600 dark:text-gray-400 inline">{props.title_alt}</span>
)}
</h2>
<div>
diff --git a/www/components/button.tsx b/www/components/button.tsx
index 454de5d7635..f075e658678 100644
--- a/www/components/button.tsx
+++ b/www/components/button.tsx
@@ -1,3 +1,5 @@
+import Link from 'next/link'
+
type Props = {
type?: 'primary' | 'secondary',
text: string,
@@ -16,7 +18,7 @@ const Button = (props: Props) => {
} = props
const colorClass = type === 'primary'
- ? 'px-3 py-2 shadow-sm border border-transparent text-white bg-brand-600 hover:bg-brand-700'
+ ? 'px-3 py-2 shadow-sm border border-transparent text-white bg-brand-600 hover:bg-brand-700 focus:ring-2 focus:ring-offset-2 focus:ring-brand-500'
: 'text-brand-600 bg-none'
const textClass = type === 'primary'
@@ -32,8 +34,7 @@ const Button = (props: Props) => {
type="button"
className={`
inline-flex items-center text-sm leading-4 rounded-md
- focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-500
- group transition ${colorClass} ${className}
+ focus:outline-none group transition ${colorClass} ${className}
`}
>
<span className={`
@@ -47,7 +48,7 @@ const Button = (props: Props) => {
return (
url
- ? <a href={url}>{renderButton()}</a>
+ ? <Link href={url}>{renderButton()}</Link>
: renderButton()
)
}
diff --git a/www/data/CaseStudies.json b/www/data/CaseStudies.json
index f7e56b577b7..58a3a79ee57 100644
--- a/www/data/CaseStudies.json
+++ b/www/data/CaseStudies.json
@@ -2,6 +2,7 @@
{
"type": "Case Study",
"title": "Supabase helped Monitoro scale to millions of API requests",
+ "description": "Probably a simple sentence to summarize this post, could stretch out to maybe two lines, will look good.",
"imgUrl": "images/case-study-monitoro.jpg",
"logoUrl": "images/logos/monitoro.png",
"organization": "Monitoro",
@@ -17,6 +18,7 @@
{
"type": "Case Study",
"title": "Supabase helped Monitoro scale to millions of API requests",
+ "description": "Probably a simple sentence to summarize this post, could stretch out to maybe two lines, will look good.",
"imgUrl": "images/case-study-tayfab.jpg",
"logoUrl": "images/logos/monitoro.png",
"organization": "Tayfab",
@@ -32,6 +34,7 @@
{
"type": "Blog Post",
"title": "Supabase helped Monitoro scale to millions of API requests",
+ "description": "Probably a simple sentence to summarize this post, could stretch out to maybe two lines, will look good.",
"imgUrl": "images/case-study-xendit.jpg",
"logoUrl": "images/logos/xendit.png",
"organization": "Llama Lab",
diff --git a/www/public/images/logos/coatue.png b/www/public/images/logos/coatue.png
index 3eb7a88de2d..76227fe5da9 100644
Binary files a/www/public/images/logos/coatue.png and b/www/public/images/logos/coatue.png differ