Skip to content

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

badge fixes, docs bg issues

Francisco Mazzoni8d457c80eeda
diff --git a/apps/www/components/LaunchWeek/lw6_days.json b/apps/www/components/LaunchWeek/lw6_days.json
index ff86205a2da..03ae65d3799 100644
--- a/apps/www/components/LaunchWeek/lw6_days.json
+++ b/apps/www/components/LaunchWeek/lw6_days.json
@@ -1,27 +1,50 @@
[
{
- "title": "Day 1",
- "shipped": false,
+ "title": "Docs Updated",
+ "shipped": true,
"date": "12 Dec 2022",
- "description": "Day 1",
+ "description": "Supabase Docs",
"d": 1,
"dd": "Monday",
"youtube_id": "OpPOaJI_Z28",
"blogpost": "https://supabase.com/blog",
"docs": "https://supabase.com/docs",
- "steps": []
+ "steps": [
+ {
+ "title": "Supabase Docs",
+ "blog": "/blog",
+ "docs": "/docs",
+ "isNew": true,
+ "description": ""
+ }
+ ]
},
{
- "title": "Day 2",
- "shipped": false,
+ "title": "Image Processing: Resize V2 + CDN",
+ "shipped": true,
"date": "13 Dec 2022",
- "description": "Day 2",
+ "description": "Image Processing",
"d": 2,
"dd": "Tuesday",
"youtube_id": "iqZlPtl_b-I",
"blogpost": "https://supabase.com/blog",
"docs": "https://supabase.com/docs",
- "steps": []
+ "steps": [
+ {
+ "title": "Image Processing",
+ "blog": "/blog",
+ "docs": "/docs",
+ "isNew": true,
+ "description": ""
+ },
+ {
+ "title": "CDN Caching",
+ "description": "Faster asset delivery, now even faster.",
+ "blog": "/blog",
+ "docs": "/docs",
+ "isNew": true
+ }
+ ]
},
{
"title": "Day 3",
diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsx
index 56ec471ef57..b7a95edd805 100644
--- a/apps/www/pages/launch-week/index.tsx
+++ b/apps/www/pages/launch-week/index.tsx
@@ -93,7 +93,13 @@ export default function launchweek() {
return (
<div className="flex flex-1 flex-col sm:flex-row">
<div className="flex gap-4 min-w-[320px] items-center">
- <Badge className="!bg-transparent !py-1 !px-4 text-transparent bg-clip-text bg-gradient-to-r from-[#99bbab] to-[#396f55] border-[#598973] dark:from-white dark:to-[#1a7a4ca1] dark:border-[#598973] h-fit">
+ <Badge
+ className={`!bg-transparent !py-1 !px-4 text-transparent bg-clip-text bg-gradient-to-r from-[#99bbab] to-[#396f55] border-[#c8d8d9] dark:from-white dark:to-[#1a7a4ca1] dark:border-[#1f3738] h-fit relative ${
+ shipped
+ ? 'after:absolute after:rounded-full text-black after:bg-white after:w-full after:h-full after:top-0 after:right-0 after:bottom-0 after:left-0 after:bg-gradient-to-br after:from-[#dceef0] after:to-[#b6b6b6] dark:text-transparent dark:border-[#1f3738] after:dark:from-[#14292c] after:dark:to-[#141516] after:border-[#c8d8d9] after:dark:border-[#1f3536] after:-z-10'
+ : ''
+ }`}
+ >
{shipped ? 'Shipped' : 'Coming Soon'}
</Badge>
<span className="text-scale-900 text-sm">
@@ -109,7 +115,7 @@ export default function launchweek() {
return (
<div className="flex gap-2 z-10">
<a href={blog} target="_blank" rel="noopener">
- <div className="flex items-center border border-slate-400 bg-gradient-to-r from-[#fcfcfc] to-[#f2f2f2] text-black dark:text-white dark:from-[#191919] dark:to-[#464444] rounded-full text-sm py-2 pl-3 pr-2">
+ <div className="flex items-center border border-slate-400 bg-gradient-to-r from-[#fcfcfc] to-[#f2f2f2] hover:to-[#d5d5d5] text-black dark:text-white dark:from-[#191919] dark:to-[#464444] dark:hover:to-[#4e4e4e] rounded-full text-sm py-2 pl-3 pr-2">
Blog post
<div className="bg-[#eeeeee] dark:bg-[#313131] rounded-full inline-block p-1 ml-2">
<IconExternalLink className="text-[#4cc38a] w-3 h-3" />
@@ -117,7 +123,7 @@ export default function launchweek() {
</div>
</a>
<a href={docs} target="_blank" rel="noopener">
- <div className="flex items-center border border-slate-400 bg-gradient-to-r from-[#fcfcfc] to-[#f2f2f2] text-black dark:text-white dark:from-[#191919] dark:to-[#464444] rounded-full text-sm py-2 pl-3 pr-2">
+ <div className="flex items-center border border-slate-400 bg-gradient-to-r from-[#fcfcfc] to-[#f2f2f2] hover:to-[#d5d5d5] text-black dark:text-white dark:from-[#191919] dark:to-[#464444] dark:hover:to-[#4e4e4e] rounded-full text-sm py-2 pl-3 pr-2">
Docs
<div className="bg-[#eeeeee] dark:bg-[#313131] rounded-full inline-block p-1 ml-2">
<IconExternalLink className="text-[#4cc38a] w-3 h-3" />
@@ -268,11 +274,11 @@ export default function launchweek() {
{day1.steps.length > 0 && (
<div className="h-[400px] flex flex-col lg:flex-row">
<div
- className={`flex flex-col flex-1 justify-between border rounded-xl h-full relative after:opacity-10 xl:after:opacity-90 after:absolute after:bg-no-repeat after:bg-[center_top_50px] lg:after:bg-[right_20%_top_50px] after:bg-contain after:bg-[url('/images/launchweek/docs-update-bg.png')] after:top-0 after:right-0 after:bottom-0 after:left-0 p-14 text-2xl`}
+ className={`flex flex-col flex-1 items-center lg:items-start justify-between border rounded-xl h-full relative overflow-hidden after:opacity- after:absolute after:bg-no-repeat after:bg-[center_top_50px] lg:after:bg-[right_15%_top_60px] after:bg-[length:200px_100px] after:xl:bg-[length:528px_367px] after:bg-[url('/images/launchweek/docs-update-bg.png')] after:top-0 after:right-0 after:bottom-0 after:left-0 p-14 text-2xl before:absolute before:w-full before:h-full before:top-52 before:right-0 before:bottom-0 before:left-0 before:border-[#1f3536] before:-z-10`}
>
- <div className="flex items-center relative z-10">
+ <div className="flex items-center relative z-10 justify-between flex-col-reverse lg:flex-row lg:justify-start">
<span>{day1.description}</span>
- <Badge className="!bg-transparent h-fit ml-4 text-sm !py-1 !px-4 text-transparent bg-clip-text bg-gradient-to-r from-[#99bbab] to-[#396f55] border-[#598973] dark:from-white dark:to-[#1a7a4ca1] dark:border-[#598973]">
+ <Badge className="!bg-transparent h-fit ml-4 text-sm !py-1 !px-4 text-transparent bg-clip-text bg-gradient-to-r from-[#99bbab] to-[#396f55] border-[#1f3738] dark:from-white dark:to-[#1a7a4ca1] dark:border-[#1f3738]">
Redesigned
</Badge>
</div>
diff --git a/apps/www/public/images/launchweek/docs-update-bg.png b/apps/www/public/images/launchweek/docs-update-bg.png
index 12de95b1b48..87893a7b76b 100644
Binary files a/apps/www/public/images/launchweek/docs-update-bg.png and b/apps/www/public/images/launchweek/docs-update-bg.png differ
diff --git a/apps/www/public/images/launchweek/docs-update-bg__.png b/apps/www/public/images/launchweek/docs-update-bg__.png
new file mode 100644
index 00000000000..12de95b1b48
Binary files /dev/null and b/apps/www/public/images/launchweek/docs-update-bg__.png differ