From e950afdba52e5edda1ab7cbfb3d6749706558d8b Mon Sep 17 00:00:00 2001 From: Francisco Mazzoni Date: Mon, 12 Dec 2022 17:28:54 -0300 Subject: [PATCH] add video button to section (#10869) * add video button to section * fix pill borders * currently happening badge * move tickets to the bottom of the page * fix badge border --- apps/www/pages/launch-week/index.tsx | 72 +++++++++++++++++++--------- apps/www/public/sitemap_www.xml | 30 +++++++----- 2 files changed, 67 insertions(+), 35 deletions(-) diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsx index c415316beaa..2fcd99cde21 100644 --- a/apps/www/pages/launch-week/index.tsx +++ b/apps/www/pages/launch-week/index.tsx @@ -38,6 +38,7 @@ export default function launchweek() { const { isDarkMode } = useTheme() const title = 'Launch Week 6' const description = 'Supabase Launch Week 6 | 12-18 Dec 2022' + const liveDay = 'Monday' const [supabase] = useState(() => createClient(process.env.NEXT_PUBLIC_SUPABASE_URL!, process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!) @@ -93,15 +94,22 @@ export default function launchweek() { return (
- - {shipped ? 'Shipped' : 'Coming Soon'} - + {liveDay === day ? ( + + Currently Happening + + ) : ( + + {shipped ? 'Shipped' : 'Coming Soon'} + + )} + {day} ・ {date} @@ -111,7 +119,7 @@ export default function launchweek() { ) } - const SectionButtons = ({ blog, docs }) => { + const SectionButtons = ({ blog, docs, video }) => { return (
@@ -130,6 +138,16 @@ export default function launchweek() {
+ {video && ( + +
+ Video +
+ +
+
+
+ )}
) } @@ -171,16 +189,6 @@ export default function launchweek() {

Dec 12 – 16 at 6 AM PT | 9 AM ET

- {process.env.NEXT_PUBLIC_LW_STARTED && ( -
- -
- )}
0 && (
{day1.description} - + Redesigned
- +
)} @@ -674,6 +688,18 @@ export default function launchweek() { )}
+ + {process.env.NEXT_PUBLIC_LW_STARTED && ( +
+ +
+ )} +
) diff --git a/apps/www/public/sitemap_www.xml b/apps/www/public/sitemap_www.xml index c8a1642fc83..ee99ac2420f 100644 --- a/apps/www/public/sitemap_www.xml +++ b/apps/www/public/sitemap_www.xml @@ -42,6 +42,12 @@ 0.5 + + https://supabase.com/oss + weekly + 0.5 + + https://supabase.com/support weekly @@ -60,6 +66,18 @@ 0.5 + + https://supabase.com/database + weekly + 0.5 + + + + https://supabase.com/edge-functions + weekly + 0.5 + + https://supabase.com/contact/enterprise weekly @@ -72,12 +90,6 @@ 0.5 - - https://supabase.com/database - weekly - 0.5 - - https://supabase.com/launch-week/ticket-image weekly @@ -96,12 +108,6 @@ 0.5 - - https://supabase.com/edge-functions - weekly - 0.5 - - https://supabase.com/nextjs weekly