Skip to content

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

improve animations and add button to case studies section in nab

Francesco Sansalvadorec65c40a75cb7
diff --git a/apps/www/components/Nav/Product.tsx b/apps/www/components/Nav/Product.tsx
index efa294b1644..cbe441af445 100644
--- a/apps/www/components/Nav/Product.tsx
+++ b/apps/www/components/Nav/Product.tsx
@@ -3,7 +3,7 @@ import SolutionsData from 'data/Solutions.json'
import CaseStudiesData from 'data/CaseStudies.json'
import { useRouter } from 'next/router'
import ProductIcon from '../ProductIcon'
-import { Badge } from 'ui'
+import { Badge, Button, IconArrowRight } from 'ui'
import Image from 'next/image'
import Link from 'next/link'
@@ -46,7 +46,7 @@ const Product = () => {
<div className="m-3 grid grid-cols-12 gap-x-8 gap-y-4 py-4 pr-3">{iconSections}</div>
</nav>
<div className="col-span-6">
- <div className="m-3 mx-6">
+ <div className="m-3 mx-6 flex flex-col items-start">
<p className="p">Latest case studies</p>
<ul className="mt-6 space-y-3">
{CaseStudiesData.map((caseStudy: any, idx: number) => {
@@ -77,6 +77,17 @@ const Product = () => {
)
})}
</ul>
+ <Link href="/case-studies" passHref>
+ <Button
+ as="a"
+ size="tiny"
+ type="default"
+ iconRight={<IconArrowRight />}
+ className="mt-6"
+ >
+ View all
+ </Button>
+ </Link>
</div>
</div>
</div>
diff --git a/apps/www/data/CaseStudies.json b/apps/www/data/CaseStudies.json
index 965c1156e92..5a79279e166 100644
--- a/apps/www/data/CaseStudies.json
+++ b/apps/www/data/CaseStudies.json
@@ -2,7 +2,7 @@
{
"type": "Case Study",
"title": "A web crawler handling millions of API requests.",
- "description": "See how Monitoro built an automated a scraping platform using Supabase.",
+ "description": "See how Monitoro built and automated a scraping platform using Supabase.",
"imgUrl": "images/case-study-monitoro.jpg",
"logoUrl": "images/logos/monitoro.png",
"organization": "Monitoro",
diff --git a/apps/www/pages/case-studies/index.tsx b/apps/www/pages/case-studies/index.tsx
index 99e2daddf92..533ffc4e2c4 100644
--- a/apps/www/pages/case-studies/index.tsx
+++ b/apps/www/pages/case-studies/index.tsx
@@ -94,7 +94,15 @@ function Blog(props: any) {
<motion.a
className="col-span-12 md:col-span-4"
initial={{ opacity: 0, y: 20 }}
- animate={{ opacity: 1, y: 0, transition: { delay: 0.2 + i / 10 } }}
+ animate={{
+ opacity: 1,
+ y: 0,
+ transition: {
+ duration: 0.4,
+ ease: [0.24, 0.25, 0.05, 1],
+ delay: 0.2 + i / 15,
+ },
+ }}
>
<GlassPanel
{...caseStudy}