Skip to content

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

fix colors slightly

Jonathan Summers-Muir82d8a0ce7086
diff --git a/apps/www/_case-studies/xendit.mdx b/apps/www/_case-studies/xendit.mdx
index 0f529ad4fb0..6bbf3f43376 100644
--- a/apps/www/_case-studies/xendit.mdx
+++ b/apps/www/_case-studies/xendit.mdx
@@ -7,12 +7,13 @@ author_url: https://github.com/kiwicopple
author_image_url: https://avatars2.githubusercontent.com/u/10214025?s=400&u=c6775be2ae667e2acae3ccd347fed62bb3f5b3e7&v=4
authorURL: https://github.com/kiwicopple
logo: /images/case-studies/logos/xendit.png
+company_url: https://xendit.co
tags:
- supabase
date: '28-10-2020'
stats:
[
- { stat: '00,000', label: Example stat },
+ { stat: '120', label: Staff count },
{ stat: '00,000', label: Example stat },
{ stat: '00,000', label: Example stat },
]
diff --git a/apps/www/package.json b/apps/www/package.json
index b28b3ea221d..97701e883d8 100644
--- a/apps/www/package.json
+++ b/apps/www/package.json
@@ -25,7 +25,7 @@
"common": "*",
"config": "*",
"date-fns": "2.10.0",
- "dayjs": "^1.11.4",
+ "dayjs": "^1.11.5",
"framer-motion": "^6.5.1",
"globby": "^12.0.2",
"gray-matter": "^4.0.2",
diff --git a/apps/www/pages/case-studies.tsx b/apps/www/pages/case-studies.tsx
index 9ee3204f554..54aa3828d53 100644
--- a/apps/www/pages/case-studies.tsx
+++ b/apps/www/pages/case-studies.tsx
@@ -75,19 +75,17 @@ function Blog(props: any) {
</Head>
<NextSeo title="Case studies" description="Latest customers using Supabase" />
<DefaultLayout>
- <div className="bg-white dark:bg-dark-800 overflow-hidden">
- <div className="container mx-auto px-8 sm:px-16 xl:px-20 mt-32">
+ <div className="dark:bg-scale-200 bg-scale-100 overflow-hidden">
+ <div className="container mx-auto mt-32 px-8 sm:px-16 xl:px-20">
<div className="mx-auto max-w-7xl">
- <div className="max-w-3xl mx-auto text-center">
- <Typography.Title level={1}>Case studies</Typography.Title>
- <Typography.Text>
- <p className="text-xl">
- Learn how teams behind everyone’s favorite products use Radix to save time,
- boost quality, and set the bar for accessibility.
- </p>
- </Typography.Text>
+ <div className="mx-auto max-w-3xl text-center">
+ <h1 className="text-scale-1200 mb-3 text-3xl">Case studies</h1>
+ <h2 className="text-scale-1100 text-xl">
+ Learn how teams behind everyone’s favorite products use Radix to save time, boost
+ quality, and set the bar for accessibility.
+ </h2>
</div>
- <div className="mt-12 max-w-lg mx-auto grid lg:grid-cols-1 lg:max-w-none">
+ <div className="mx-auto mt-12 grid max-w-lg lg:max-w-none lg:grid-cols-1">
<ImageGrid images={caseStudyThumbs} lgCols={4} padding={6} className="h-32" />
</div>
</div>
diff --git a/apps/www/pages/case-studies/[slug].tsx b/apps/www/pages/case-studies/[slug].tsx
index 8cb924bffc2..f035dacda10 100644
--- a/apps/www/pages/case-studies/[slug].tsx
+++ b/apps/www/pages/case-studies/[slug].tsx
@@ -1,35 +1,27 @@
import {
Badge,
- Card,
- Divider,
- IconFile,
- Space,
- Typography,
Button,
- IconChevronRight,
+ Card,
IconChevronLeft,
- IconGlobe,
- IconLink,
+ IconChevronRight,
IconExternalLink,
+ Space,
+ Typography,
} from '@supabase/ui'
import matter from 'gray-matter'
import authors from 'lib/authors.json'
import hydrate from 'next-mdx-remote/hydrate'
import renderToString from 'next-mdx-remote/render-to-string'
import { NextSeo } from 'next-seo'
+import Image from 'next/image'
import Link from 'next/link'
import { useRouter } from 'next/router'
-import React from 'react'
-import ReactMarkdown from 'react-markdown'
import CodeBlock from '~/components/CodeBlock/CodeBlock'
import CTABanner from '~/components/CTABanner'
+import ImageGrid from '~/components/ImageGrid'
import DefaultLayout from '~/components/Layouts/Default'
import Quote from '~/components/Quote'
-import ImageGrid from '~/components/ImageGrid'
-import { generateReadingTime } from '~/lib/helpers'
import { getAllPostSlugs, getPostdata, getSortedPosts } from '~/lib/posts'
-import blogStyles from './[slug].module.css'
-import Image from 'next/image'
// import all components used in blog articles here
// for instance, if you use a button, you must add `Button` in the components object below.
@@ -165,37 +157,33 @@ function BlogPostPage(props: any) {
<DefaultLayout>
<div
className="
- bg-white dark:bg-dark-800
- container px-8 sm:px-16 xl:px-20 mx-auto
- py-16
+ dark:bg-scale-200 bg-scale-200
+ container mx-auto px-8 py-16 sm:px-16
+ xl:px-20
"
>
<div className="grid grid-cols-12 gap-4">
<div className="col-span-12 lg:col-span-2">
{/* Back button */}
- <Typography.Text type="secondary">
- <span className="hover:text-gray-900 dark:hover:text-white cursor-pointer flex items-center">
- <IconChevronLeft />
- Back
- </span>
- </Typography.Text>
+ <button className="text-scale-900 hover:text-scale-1200 flex cursor-pointer items-center">
+ <IconChevronLeft />
+ Back
+ </button>
</div>
<div className="col-span-12 lg:col-span-10">
{/* Title and description */}
- <div className="mb-16">
- <Typography.Text type="success">Case study</Typography.Text>
- <Typography.Title>{props.blog.title}</Typography.Title>
- </div>
{/* Quote can go here */}
- <div className="grid grid-cols-12 gap-8">
+ <div className="prose grid max-w-none grid-cols-12 gap-8">
{/* Content */}
<div className="col-span-12 lg:col-span-7 xl:col-span-6">
- <article className={blogStyles['article']}>
- <Typography>{content}</Typography>
+ <article>
+ <p className="text-brand-900 mb-2">Case study</p>
+ <h1 className="text-scale-1200 text-5xl">{props.blog.title}</h1>
+ {content}
</article>
</div>
{/* Sidebar */}
- <div className="col-span-12 lg:col-span-5 xl:col-span-3 xl:col-start-8 space-y-8">
+ <div className="col-span-12 space-y-8 lg:col-span-5 xl:col-span-3 xl:col-start-8">
{/* Logo */}
<div className={`relative h-16 w-32`}>
<Image
@@ -207,9 +195,9 @@ function BlogPostPage(props: any) {
className="
bg-no-repeat
- dark:filter
+ dark:brightness-200
dark:contrast-0
- dark:brightness-200
+ dark:filter
"
/>
</div>
@@ -217,10 +205,13 @@ function BlogPostPage(props: any) {
<div className="flex flex-col space-y-2">
<Typography.Text type="secondary">About</Typography.Text>
<Typography.Text>{props.blog.about}</Typography.Text>
- <Typography.Text className="flex items-center space-x-1 transition-opacity cursor-pointer opacity-50 hover:opacity-100">
+ <a
+ href={props.blog.company_url}
+ className="not-prose flex cursor-pointer items-center space-x-1 opacity-50 transition-opacity hover:opacity-100"
+ >
<span>{props.blog.company_url}</span>
<IconExternalLink size={14} />
- </Typography.Text>
+ </a>
</div>
{props.blog.misc.map((x: any) => {
return (
@@ -234,7 +225,7 @@ function BlogPostPage(props: any) {
{props.blog.stats.map((x: any) => {
return (
<div className="flex space-x-3">
- <div className="h-8 w-0.5 bg-brand-600 mt-0.5"></div>
+ <div className="bg-brand-600 mt-0.5 h-8 w-0.5"></div>
<div className="flex flex-col">
<Typography.Text>
<span className="text-3xl font-semibold leading-none">{x.stat}</span>
diff --git a/apps/www/public/case-studies-rss.xml b/apps/www/public/case-studies-rss.xml
index ad3ecb66444..4cdfc7adb93 100644
--- a/apps/www/public/case-studies-rss.xml
+++ b/apps/www/public/case-studies-rss.xml
@@ -6,36 +6,32 @@
<description>Latest news from Supabase</description>
<language>en</language>
<lastBuildDate>Invalid Date</lastBuildDate>
- <atom:link href="https://supabase.com/blog/rss.xml" rel="self" type="application/rss+xml"/>
-
-<item>
- <guid>https://supabase.com/blog//case-studies/xendit</guid>
+ <atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
+ <item>
+ <guid>https://supabase.com/case-studies/xendit</guid>
<title>Xendit</title>
- <link>https://supabase.com/blog//case-studies/xendit</link>
+ <link>https://supabase.com/case-studies/xendit</link>
<description>Two months of building</description>
<pubDate>Invalid Date</pubDate>
</item>
-
<item>
- <guid>https://supabase.com/blog//case-studies/replenysh</guid>
+ <guid>https://supabase.com/case-studies/replenysh</guid>
<title>Replenysh</title>
- <link>https://supabase.com/blog//case-studies/replenysh</link>
+ <link>https://supabase.com/case-studies/replenysh</link>
<description>Two months of building</description>
<pubDate>Invalid Date</pubDate>
</item>
-
<item>
- <guid>https://supabase.com/blog//case-studies/mobbin</guid>
+ <guid>https://supabase.com/case-studies/mobbin</guid>
<title>Mobbin</title>
- <link>https://supabase.com/blog//case-studies/mobbin</link>
+ <link>https://supabase.com/case-studies/mobbin</link>
<description>Two months of building</description>
<pubDate>Invalid Date</pubDate>
</item>
-
<item>
- <guid>https://supabase.com/blog//case-studies/epsilon3</guid>
+ <guid>https://supabase.com/case-studies/epsilon3</guid>
<title>Epsilon3</title>
- <link>https://supabase.com/blog//case-studies/epsilon3</link>
+ <link>https://supabase.com/case-studies/epsilon3</link>
<description>Two months of building</description>
<pubDate>Invalid Date</pubDate>
</item>
diff --git a/package-lock.json b/package-lock.json
index ed9aafaf861..35dd09ec592 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -903,7 +903,7 @@
"common": "*",
"config": "*",
"date-fns": "2.10.0",
- "dayjs": "^1.11.4",
+ "dayjs": "^1.11.5",
"framer-motion": "^6.5.1",
"globby": "^12.0.2",
"gray-matter": "^4.0.2",