Skip to content

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

chore: update flyout typography

Jonathan Summers-Muirc62a365c56d6
diff --git a/www/components/Nav/Developers.tsx b/www/components/Nav/Developers.tsx
index a132e064d28..35f7711ef64 100644
--- a/www/components/Nav/Developers.tsx
+++ b/www/components/Nav/Developers.tsx
@@ -2,6 +2,7 @@ import React from 'react'
import DevelopersData from 'data/Developers.json'
import AnnouncementsData from 'data/Announcements.json'
import { useRouter } from 'next/router'
+import { Typography } from '@supabase/ui'
type Props = {
text: string
@@ -32,8 +33,8 @@ const Developers = () => {
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d={icon} />
</svg>
<div className="ml-4">
- <p className="text-base font-medium text-gray-900 dark:text-white">{text}</p>
- <p className="mt-1 text-sm text-gray-500 dark:text-dark-300">{description}</p>
+ <Typography.Title level={5}>{text}</Typography.Title>
+ <Typography.Text>{description}</Typography.Text>
</div>
</a>
)
@@ -65,9 +66,7 @@ const Developers = () => {
</nav>
<div className="px-4 py-8 sm:py-12 sm:px-6 lg:px-8 xl:pl-12">
<div>
- <h3 className="text-sm font-medium tracking-wide text-gray-500 dark:text-dark-300 uppercase">
- Latest announcements
- </h3>
+ <Typography.Text type="secondary">Latest announcements</Typography.Text>
<ul className="mt-6 space-y-16">
{AnnouncementsData.map((caseStudy: any, idx: number) => (
<li className="flow-root" key={`flyout_case_${idx}`}>
@@ -83,12 +82,8 @@ const Developers = () => {
/>
</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-300">
- {caseStudy.description}
- </p>
+ <Typography.Title level={5}>{caseStudy.title}</Typography.Title>
+ <Typography.Text type="secondary">{caseStudy.description}</Typography.Text>
</div>
</a>
</li>
diff --git a/www/components/Nav/Product.tsx b/www/components/Nav/Product.tsx
index 942c22a8ed8..d9d6363a360 100644
--- a/www/components/Nav/Product.tsx
+++ b/www/components/Nav/Product.tsx
@@ -1,8 +1,8 @@
import React from 'react'
-import Badge from 'components/Badge'
import SolutionsData from 'data/Solutions.json'
import CaseStudiesData from 'data/CaseStudies.json'
import { useRouter } from 'next/router'
+import { Typography, Badge, Space, IconChevronRight } from '@supabase/ui'
const Product = () => {
const { basePath } = useRouter()
@@ -25,17 +25,15 @@ const Product = () => {
</div>
</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 dark:text-white">
- {name} {label && <Badge className="ml-3">{label}</Badge>}
- </p>
- <p className="mt-1 text-sm text-gray-500 dark:text-dark-300">{description}</p>
- </div>
- {url && (
- <p className="mt-2 text-sm font-medium text-brand-600 lg:mt-4">
- Learn more <span aria-hidden="true">&rarr;</span>
- </p>
- )}
+ <Space direction="vertical" size={2}>
+ <Space>
+ <Typography.Title level={5}>{name}</Typography.Title>
+ {label && <Badge>{label}</Badge>}
+ </Space>
+ <Typography.Text>{description}</Typography.Text>
+
+ {url && <Typography.Link className="mt-3">Learn more</Typography.Link>}
+ </Space>
</div>
</div>
)
@@ -67,9 +65,7 @@ const Product = () => {
</nav>
<div className="px-4 py-8 sm:py-12 sm:px-6 lg:px-8 xl:pl-12">
<div>
- <h3 className="text-sm font-medium tracking-wide text-gray-500 dark:text-dark-300 uppercase">
- Latest case studies
- </h3>
+ <Typography.Text type="secondary">Latest case studies</Typography.Text>
<ul className="mt-6 space-y-6">
{CaseStudiesData.map((caseStudy: any, idx: number) => (
<li className="flow-root" key={`flyout_case_${idx}`}>
@@ -85,26 +81,14 @@ const Product = () => {
/>
</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-300">
- {caseStudy.description}
- </p>
+ <Typography.Title level={5}>{caseStudy.title}</Typography.Title>
+ <Typography.Text type="secondary">{caseStudy.description}</Typography.Text>
</div>
</a>
</li>
))}
</ul>
</div>
- {/* <div className="mt-6 text-sm font-medium">
- <a
- href="/blog"
- className="text-gray-600 hover:text-gray-500 dark:text-brand-600 dark:hover:text-brand-700 transition ease-in-out duration-150"
- >
- View all posts <span aria-hidden="true">&rarr;</span>
- </a>
- </div> */}
</div>
</React.Fragment>
)
diff --git a/www/styles/index.css b/www/styles/index.css
index fe52ffd03b6..e7f392e8c0c 100644
--- a/www/styles/index.css
+++ b/www/styles/index.css
@@ -19,6 +19,15 @@ body {
-moz-osx-font-smoothing: grayscale;
}
+h1,
+h2,
+h3,
+h4,
+h5 {
+ @apply text-gray-800 !important;
+ @apply dark:text-white !important;
+}
+
@font-face {
font-family: 'custom-font';
src: url(/new/fonts/custom/CustomFont-Book.woff2) format('woff2'),