Skip to content

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

Light mode nudges

Terry Sutton14ef06baf55a
diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsx
index 55f3e50d739..5e98701bfab 100644
--- a/apps/www/pages/launch-week/index.tsx
+++ b/apps/www/pages/launch-week/index.tsx
@@ -15,10 +15,13 @@ import { useEffect, useState } from 'react'
import { createClient, Session } from '@supabase/supabase-js'
import { useRouter } from 'next/router'
import TicketContainer from '~/components/LaunchWeek/Ticket/TicketContainer'
+import { useTheme } from '~/components/Providers'
const days = _days as WeekDayProps[]
export default function launchweek() {
+ const { isDarkMode } = useTheme()
+
// TODO: update days json
const shippingHasStarted = false
const title = 'Launch Week 6'
@@ -45,8 +48,8 @@ export default function launchweek() {
}, [])
useEffect(() => {
- document.body.className = 'bg-[#121212]'
- }, [])
+ document.body.className = isDarkMode ? 'dark bg-[#121212]' : 'light bg-[#fff]'
+ }, [isDarkMode])
return (
<>
@@ -116,24 +119,26 @@ export default function launchweek() {
<Badge
color="brand"
size="large"
- className="text-center flex justify-center mb-6 w-40 bg-gradient-to-r from-white to-mint-900 text-black "
+ className="text-center flex justify-center mb-6 w-40 bg-gradient-to-r from-white to-mint-900 "
>
- <p className="flex items-center gap-2 p-1">Currently happening</p>
+ <p className="flex items-center gap-2 p-1 text-white dark:text-black">
+ Currently happening
+ </p>
</Badge>
<h2 className="text-scale-1200 text-5xl mb-6">See creators using Supabase</h2>
- <p className="text-scale-800 text-base md:max-w-xl mb-16">
+ <p className="text-scale-900 text-base md:max-w-xl mb-16">
Description about Content Storm, something to tie it up with Launch Week
</p>
- <h3 className="text-scale-1200 text-sm mb-2">Coding Garden</h3>
- <p className="text-scale-800 text-base md:max-w-[60%] mb-2">
+ <h3 className="text-scale-1200 text-lg mb-2">Coding Garden</h3>
+ <p className="text-scale-1000 text-base md:max-w-[60%] mb-2">
If needed this is a short description about the type of content this is linking to.
</p>
<div className="flex items-center">
<a href="www.google.com" className="text-bas text-brand-1100 mr-3">
Livestreaming Typescript
</a>{' '}
- <div className="w-4 text-brand-1100">
+ <div className="w-4 text-brand-1100 -rotate-45">
<ArrowRightIcon />
</div>
</div>
diff --git a/apps/www/styles/index.css b/apps/www/styles/index.css
index e1443115906..cdfc077897f 100644
--- a/apps/www/styles/index.css
+++ b/apps/www/styles/index.css
@@ -436,6 +436,12 @@ launch week
background: radial-gradient(circle at 50% -100%, #2d626a 0%, #121212 70%, #121212 100%);
}
+.light .gradient-container {
+ min-height: 500px;
+ position: relative;
+ background: radial-gradient(circle at 50% -100%, #68d1e0 0%, #ffffff 70%, #ffffff 100%);
+}
+
.flair-mask-a {
position: absolute;
background-color: #375965;
@@ -462,6 +468,10 @@ launch week
clip-path: ellipse(52% 213px at 50% -75px);
}
+.light .flair-mask-b {
+ background-color: #fff;
+}
+
.orbit {
width: 192px;
height: 192px;