Skip to content

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

added thumbnail images. updated Card component to show titles for case studies

mildtomatof61095fe535d
diff --git a/www/components/Card.tsx b/www/components/Card.tsx
index 43d0677e2ff..26912aaaf50 100644
--- a/www/components/Card.tsx
+++ b/www/components/Card.tsx
@@ -50,7 +50,7 @@ const Card = (props: Props) => {
<div className="flex flex-col rounded-md shadow-lg overflow-hidden">
<div className="flex-shrink-0 dark:bg-dark-500">
<img
- className="h-48 w-full object-cover"
+ className="h-64 w-full object-cover"
src={imgUrl}
alt={title}
/>
@@ -66,10 +66,8 @@ const Card = (props: Props) => {
{type}
</a>
<div className="block mt-2">
- {type === 'Project Example'
- ? <a href={url} className="text-xl text-gray-900 dark:text-white">{title}</a>
- : <img src={logoUrl} className="h-9 my-4" />
- }
+ {logoUrl && <img src={logoUrl} className="h-9 my-4" />}
+ {title && <a href={url} className="text-xl text-gray-900 dark:text-white">{title}</a>}
<p className="mt-3 text-base text-gray-500 dark:text-dark-100">
{description}
</p>
diff --git a/www/data/CaseStudies.json b/www/data/CaseStudies.json
index 98a83c8c9e3..72417ccc431 100644
--- a/www/data/CaseStudies.json
+++ b/www/data/CaseStudies.json
@@ -1,11 +1,11 @@
[
{
"type": "Case Study",
- "imgUrl": "images/casestudy.png",
+ "title": "Supabase helped Monitoro scale to millions of API requests",
+ "imgUrl": "images/case-study-placeholder.jpg",
"logoUrl": "images/logos/monitoro.png",
"organization": "Monitoro",
"url": "https://supabase.io/casestudies/monitoro",
- "description":"Supabase helped Monitoro scale to millions of API requests.",
"postMeta": {
"name" : "Paul Copplestone",
"avatarUrl": "https://avatars0.githubusercontent.com/u/10214025?v=4",
@@ -16,11 +16,11 @@
},
{
"type": "Case Study",
- "imgUrl": "images/casestudy.png",
+ "title": "Supabase helped Monitoro scale to millions of API requests",
+ "imgUrl": "images/case-study-placeholder.jpg",
"logoUrl": "images/logos/monitoro.png",
"organization": "Tayfab",
"url": "https://supabase.io/casestudies/monitoro",
- "description":"Supabase helped Monitoro scale to millions of API requests.",
"postMeta": {
"name" : "Paul Copplestone",
"avatarUrl": "https://avatars0.githubusercontent.com/u/10214025?v=4",
@@ -31,11 +31,11 @@
},
{
"type": "Blog Post",
- "imgUrl": "images/casestudy.png",
+ "title": "Supabase helped Monitoro scale to millions of API requests",
+ "imgUrl": "images/case-study-placeholder.jpg",
"logoUrl": "images/logos/xendit.png",
"organization": "Llama Lab",
"url": "https://supabase.io/casestudies/monitoro",
- "description":"Supabase helped Monitoro scale to millions of API requests.",
"postMeta": {
"name" : "Paul Copplestone",
"avatarUrl": "https://avatars0.githubusercontent.com/u/10214025?v=4",
diff --git a/www/data/ProjectExamples.json b/www/data/ProjectExamples.json
index 2c028585256..593d04321d8 100644
--- a/www/data/ProjectExamples.json
+++ b/www/data/ProjectExamples.json
@@ -1,6 +1,6 @@
[
{
- "imgUrl": "images/payments-demo.png",
+ "imgUrl": "images/stripe.jpg",
"title": "NextJS, Stripe and Supabase",
"url": "https://github.com/supabase/supabase/tree/master/examples",
"description":"Easily deploy a Supabase powered app with Stripe already built in for payments",
@@ -21,7 +21,24 @@
"ctaText" : "View Project"
},
{
- "imgUrl": "images/slack-clone.png",
+ "imgUrl": "images/slack-clone.jpg",
+ "title": "NextJS realtime chat using Supabase",
+ "url": "https://github.com/supabase/supabase/tree/master/examples/nextjs-slack-clone",
+ "description":"Full-stack Slack clone example",
+ "icons" : [
+ {
+ "imgUrl": "https://avatars3.githubusercontent.com/u/54469796?s=480&v=4",
+ "imgAlt": "supabase icon"
+ },
+ {
+ "imgUrl": "https://avatars1.githubusercontent.com/u/14985020?s=480&v=4",
+ "imgAlt": "vercel icon"
+ }
+ ],
+ "ctaText" : "View Project"
+ },
+ {
+ "imgUrl": "images/to-do-app.jpg",
"title": "NextJS realtime chat using Supabase",
"url": "https://github.com/supabase/supabase/tree/master/examples/nextjs-slack-clone",
"description":"Full-stack Slack clone example",
diff --git a/www/public/images/case-study-placeholder.jpg b/www/public/images/case-study-placeholder.jpg
new file mode 100644
index 00000000000..b8626307f44
Binary files /dev/null and b/www/public/images/case-study-placeholder.jpg differ
diff --git a/www/public/images/slack-clone.jpg b/www/public/images/slack-clone.jpg
new file mode 100644
index 00000000000..d9a6405343c
Binary files /dev/null and b/www/public/images/slack-clone.jpg differ
diff --git a/www/public/images/stripe.jpg b/www/public/images/stripe.jpg
new file mode 100644
index 00000000000..8a79dfcebf9
Binary files /dev/null and b/www/public/images/stripe.jpg differ
diff --git a/www/public/images/to-do-app.jpg b/www/public/images/to-do-app.jpg
new file mode 100644
index 00000000000..ecafa9d53d0
Binary files /dev/null and b/www/public/images/to-do-app.jpg differ