Skip to content

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

chore: update headers

Jonathan Summers-Muir1d0cff9b1be8
diff --git a/www/components/Nav/Product.tsx b/www/components/Nav/Product.tsx
index e63e4674643..de643a38959 100644
--- a/www/components/Nav/Product.tsx
+++ b/www/components/Nav/Product.tsx
@@ -4,6 +4,7 @@ import SolutionsData from 'data/Solutions.json'
import CaseStudiesData from 'data/CaseStudies.json'
import { useRouter } from 'next/router'
import { Typography } from '@supabase/ui'
+import ProductIcon from '../ProductIcon'
const Product = () => {
const { basePath } = useRouter()
@@ -13,17 +14,7 @@ const Product = () => {
const content = (
<div className="flex lg:flex-col">
<div className="flex flex-row items-center">
- <div className="inline-flex items-center justify-center rounded-md bg-gray-900 dark:bg-white text-white sm:h-8 sm:w-8">
- <svg
- className="h-4 w-4 stroke-white dark:stroke-black"
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 24 24"
- aria-hidden="true"
- >
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d={icon} />
- </svg>
- </div>
+ <ProductIcon icon={icon} />
<Typography.Title level={5} className="ml-3 mb-0">
{name} {label && <Badge className="ml-3">{label}</Badge>}
</Typography.Title>
diff --git a/www/components/ProductIcon.tsx b/www/components/ProductIcon.tsx
new file mode 100644
index 00000000000..9233c5b8c0d
--- /dev/null
+++ b/www/components/ProductIcon.tsx
@@ -0,0 +1,21 @@
+interface ProductIcon {
+ icon: string
+}
+
+function ProductIcon({ icon }: ProductIcon) {
+ return (
+ <div className="inline-flex items-center justify-center rounded-md bg-gray-800 dark:bg-white text-white sm:h-8 sm:w-8">
+ <svg
+ className="h-4 w-4 stroke-white dark:stroke-black"
+ xmlns="http://www.w3.org/2000/svg"
+ fill="none"
+ viewBox="0 0 24 24"
+ aria-hidden="true"
+ >
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d={icon} />
+ </svg>
+ </div>
+ )
+}
+
+export default ProductIcon
diff --git a/www/components/Sections/ProductHeader.tsx b/www/components/Sections/ProductHeader.tsx
index bc7b9a481f8..02ee4e57577 100644
--- a/www/components/Sections/ProductHeader.tsx
+++ b/www/components/Sections/ProductHeader.tsx
@@ -1,23 +1,28 @@
import { Button, IconBookOpen, IconKey, Space, Typography } from '@supabase/ui'
+import ProductIcon from '../ProductIcon'
type subheader = string
interface Types {
h1: string | React.ReactNode
subheader: string[]
+ icon?: string
+ title?: string
}
const ProductHeader = (props: Types) => (
<div className="container mx-auto px-8 sm:px-16 xl:px-20 relative py-32">
<div className="grid grid-cols-12">
<div className="col-span-12 lg:col-span-6">
- <div className="flex flex-row mb-4 item-center">
- <div className="w-8 h-8 bg-gray-800 dark:bg-white text-white dark:text-gray-800 flex rounded items-center justify-center">
- <IconKey strokeWidth="2px" size="tiny" />
+ {props.icon || props.title ? (
+ <div className="flex flex-row mb-4 item-center">
+ {props.icon && <ProductIcon icon={props.icon} />}
+ {props.title && (
+ <Typography.Title level={4} className="ml-3">
+ {props.title}
+ </Typography.Title>
+ )}
</div>
- <Typography.Title level={4} className="ml-3">
- Auth
- </Typography.Title>
- </div>
+ ) : null}
<Typography.Title>{props.h1}</Typography.Title>
{props.subheader && (
<Typography.Text>
diff --git a/www/pages/auth/Auth.tsx b/www/pages/auth/Auth.tsx
index a888fda6da8..77177e516e0 100644
--- a/www/pages/auth/Auth.tsx
+++ b/www/pages/auth/Auth.tsx
@@ -22,11 +22,8 @@ import {
import { createClient } from '@supabase/supabase-js'
import DefaultLayout from '~/components/Layouts/Default'
-import AuthStyles from './Auth.module.css'
-
import CodeBlock from '~/components/CodeBlock/CodeBlock'
import ProductHeader from '~/components/Sections/ProductHeader'
-import FeatureSection from '~/components/Sections/FeatureSection'
import SectionContainer from '~/components/Layouts/SectionContainer'
import SplitCodeBlockCarousel from '~/components/Carousels/SplitCodeBlockCarousel'
@@ -38,9 +35,10 @@ import FloatingIcons from '~/components/FloatingIcons'
import ApiExamples from 'data/products/database/api-examples'
import AuthSqlRulesExamples from 'data/products/auth/auth-sql-rules-examples'
-import styles from './Auth.module.css'
import CTABanner from '~/components/CTABanner'
+import Solutions from 'data/Solutions.json'
+
function AuthPage() {
// base path for images
const { basePath } = useRouter()
@@ -54,6 +52,8 @@ function AuthPage() {
return (
<DefaultLayout>
<ProductHeader
+ icon={Solutions['authentication'].icon}
+ title={Solutions['authentication'].name}
h1={[
<span>
Built-in user mangement
diff --git a/www/pages/database/Database.tsx b/www/pages/database/Database.tsx
index a5b42059daa..f8fa303916f 100644
--- a/www/pages/database/Database.tsx
+++ b/www/pages/database/Database.tsx
@@ -27,6 +27,8 @@ import SqlViewCarouselData from 'data/products/database/sql-view-carousel.json'
import TweetCard from '~/components/TweetCard'
import FeatureColumn from '~/components/FeatureColumn'
+import Solutions from 'data/Solutions.json'
+
// install Swiper's Controller component
// SwiperCore.use([Controller])
@@ -43,6 +45,8 @@ function Database() {
return (
<DefaultLayout>
<ProductHeader
+ icon={Solutions['database'].icon}
+ title={Solutions['database'].name}
h1={[
<span>
Open source SQL Database