The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
LW7: set megamenu full color
Francesco Sansalvadoreeffb55efa9c7
diff --git a/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsx b/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsxindex 133c04381d6..1eb5dc72589 100644--- a/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsx+++ b/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsx@@ -81,38 +81,45 @@ export default function Ticket({flex flex-colw-fullitems-center+ text-whitetext-center xl:text-leftxl:items-startgap-3`}>- <h1 className={cn(styleUtils.appear, styleUtils['appear-first'], 'text-xl xl:text-3xl')}>+ <h1+ className={cn(+ styleUtils.appear,+ styleUtils['appear-first'],+ 'text-xl text-white xl:text-3xl'+ )}+ >{!sharePage ? (<>{name ? (<>{winningChances === 1 && (- <p className="text-2xl dark:text-scale-1200 tracking-[0.02rem]">+ <p className="text-2xl tracking-[0.02rem]">You're <span className="gradient-text-purple-800">in the draw!</span> <br />Now make it gold.</p>)}{winningChances === 2 && (- <p className="text-2xl dark:text-scale-1200 tracking-[0.02rem]">+ <p className="text-2xl tracking-[0.02rem]">You've <span className="gradient-text-purple-800">doubled</span> your<br />chance! Almost gold.</p>)}{winningChances === 3 && (- <p className="text-2xl dark:text-scale-1200 tracking-[0.02rem]">+ <p className="text-2xl tracking-[0.02rem]">You're <span className="gradient-text-gold-500">gold</span>!<br />You've maxed your <br /> chances of winning!</p>)}</>) : (- <p className="text-2xl dark:text-scale-1200 tracking-[0.02rem]">+ <p className="text-2xl tracking-[0.02rem]">Generate your ticket. <br />Win the <span className="gradient-text-purple-800">SupaKeyboard</span>.</p>@@ -126,7 +133,7 @@ export default function Ticket({)}</h1>- <h2 className="text-base max-w-[520px]">+ <div className="text-base text-white max-w-[520px]">{!sharePage ? (<>{golden ? (@@ -161,17 +168,17 @@ export default function Ticket({keyboard that you won't want to miss.</p>- <div className="mt-8 rounded-md bg-[#E6E8EB] text-scale-500 py-1 px-3 border border-scale-1100 text-xs mb-1 transition-all ease-out hover:bg-[#dfe1e3]">+ <div className="mt-8 rounded-md bg-[#E6E8EB] py-1 px-3 border border-[#bbbbbb] text-xs mb-1 transition-all ease-out hover:bg-[#dfe1e3]"><ahref={`${SITE_URL}`}- className={`flex items-center justify-center gap-2 text-scale-500`}+ className={`flex items-center justify-center gap-2 text-[#2e2e2e]`}>Get your ticket</a></div></>)}- </h2>+ </div>{!sharePage && username && <ReferralIndicator />}</div>diff --git a/apps/www/components/LaunchWeek/Ticket/ticket-copy.tsx b/apps/www/components/LaunchWeek/Ticket/ticket-copy.tsxindex ebf563df73f..8ae533678da 100644--- a/apps/www/components/LaunchWeek/Ticket/ticket-copy.tsx+++ b/apps/www/components/LaunchWeek/Ticket/ticket-copy.tsx@@ -39,7 +39,7 @@ export default function TicketCopy({ username }: Props) {<buttontype="button"name="Copy"- className="bg-[#E6E8EB] text-scale-500 text-xs w-21 flex items-center cursor-pointer py-1 px-2 rounded-lg"+ className="bg-[#E6E8EB] text-[#2e2e2e] text-xs w-21 flex items-center cursor-pointer py-1 px-2 rounded-lg"ref={buttonRef}onClick={() => {navigator.clipboard.writeText(url).then(() => {@@ -76,7 +76,7 @@ export default function TicketCopy({ username }: Props) {<div className="px-3 h-full flex items-center gap-3 w-full truncate relative pr-20 bg-[#D9D9D94D]"><div className="flex items-center truncate"><p- className={['text-xs font-mono text-scale-1200 truncate'].join(' ')}+ className={['text-xs font-mono text-[#ededed] truncate'].join(' ')}ref={scrollRef}onScroll={() => {if (!scrolling) {diff --git a/apps/www/components/Nav/Developers.tsx b/apps/www/components/Nav/Developers.tsxindex 9840c0a060d..94edb6956dc 100644--- a/apps/www/components/Nav/Developers.tsx+++ b/apps/www/components/Nav/Developers.tsx@@ -68,7 +68,7 @@ const Developers = () => {<a className="dark:hover:bg-dark-700 flex items-center rounded-lg border p-3 transition duration-150 ease-in-out hover:bg-gray-100"><div className="relative hidden h-20 w-32 flex-shrink-0 overflow-auto rounded-md sm:block"><Image- src={`${basePath}/${caseStudy.imgUrl}`}+ src={`${basePath}${caseStudy.imgUrl}`}alt="caseStudyThumb"layout="fill"objectFit="cover"diff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsxindex fe549dc6acc..9678d6eefbc 100644--- a/apps/www/components/Nav/index.tsx+++ b/apps/www/components/Nav/index.tsx@@ -154,7 +154,7 @@ const Nav = () => {const FlyOutNavButton = (props: any) => (<div- className={+ className={[`text-scale-1200 hover:text-brand-900inline-flex cursor-pointer items-center@@ -162,10 +162,10 @@ const Nav = () => {border-transparentpx-1text-sm font-medium- transition-colors- ${isLauchWeekPage ? '!text-white' : ''}- ` + props.active- }+ transition-colors`,+ // isLauchWeekPage && '!text-white',+ props.active,+ ].join(' ')}onClick={props.onClick}><>@@ -179,7 +179,7 @@ const Nav = () => {<IconChevronDownsize={14}strokeWidth={2}- className={isLauchWeekPage ? 'text-white' : ''}+ // className={isLauchWeekPage ? 'text-white' : ''}/></div></>@@ -192,13 +192,14 @@ const Nav = () => {<div className="sticky top-0 z-50"><divclassName={`${- isLauchWeekPage ? '' : 'bg-scale-200'- } absolute top-0 h-full w-full opacity-80`}- ></div>+ isLauchWeekPage ? '!opacity-100 dark:bg-scale-200 bg-white' : 'bg-scale-200'+ } absolute inset-0 h-full w-full opacity-80`}+ /><nav- className={`border-scale-400 border-b backdrop-blur-sm ${- isLauchWeekPage ? 'border-[#be9eea]' : ''- }`}+ className={[+ `border-scale-400 border-b backdrop-blur-sm`,+ // isLauchWeekPage && 'border-[#be9eea]',+ ].join(' ')}>{/* <div className="lg:container mx-auto relative flex justify-between h-16 lg:px-10 xl:px-0"> */}<div className="relative mx-auto flex h-16 justify-between lg:container lg:px-16 xl:px-20">@@ -210,11 +211,9 @@ const Nav = () => {<a className="block h-6 w-auto"><Imagesrc={- isLauchWeekPage- ? supabaseLogoWordmarkDark- : isDarkMode- ? supabaseLogoWordmarkDark- : supabaseLogoWordmarkLight+ // isLauchWeekPage+ // ? supabaseLogoWordmarkDark+ isDarkMode ? supabaseLogoWordmarkDark : supabaseLogoWordmarkLight}width={124}height={24}@@ -236,24 +235,24 @@ const Nav = () => {/><Link href="/pricing"><a- className={`- text-scale-1200 hover:text-brand-900 hover:border-brand-900 dark:text-dark-100 dark:hover:border-dark-100 inline-flex items-center+ className={[+ `text-scale-1200 hover:text-brand-900 hover:border-brand-900 dark:text-dark-100 dark:hover:border-dark-100 inline-flex items-centerborder-b-2 border-transparent p-5 px-1- text-sm font-medium- ${isLauchWeekPage ? '!text-white' : ''}- `}+ text-sm font-medium`,+ // isLauchWeekPage && '!text-white',+ ].join(' ')}>Pricing</a></Link><Link href="/blog"><a- className={`- text-scale-1200 hover:text-brand-900 hover:border-brand-900 dark:text-dark-100 dark:hover:border-dark-100 inline-flex items-center+ className={[+ `text-scale-1200 hover:text-brand-900 hover:border-brand-900 dark:text-dark-100 dark:hover:border-dark-100 inline-flex items-centerborder-b-2 border-transparent p-5 px-1- text-sm font-medium- ${isLauchWeekPage ? '!text-white' : ''}- `}+ text-sm font-medium`,+ // isLauchWeekPage && '!text-white',+ ].join(' ')}>Blog</a>@@ -271,25 +270,30 @@ const Nav = () => {icon={<div className="text-brand-800 flex h-4 w-4 items-center justify-center"><div- className={`text-scale-900 flex h-3 w-3 items-center justify-center+ className={[+ `text-scale-900 flex h-3 w-3 items-center justify-center- transition-all- group-hover:h-4- group-hover:w-4- group-hover:text-yellow-900- group-focus:h-4- group-focus:w-4+ transition-all+ group-hover:h-4+ group-hover:w-4+ group-hover:text-yellow-900+ group-focus:h-4+ group-focus:w-4- group-focus:text-yellow-900"- ${isLauchWeekPage ? '!text-white' : ''}- `}+ group-focus:text-yellow-900`,+ // isLauchWeekPage && '!text-white',+ ].join(' ')}><IconStar strokeWidth={2} /></div></div>}>- <span className={isLauchWeekPage ? '!text-white' : ''}>Star us on GitHub</span>+ <span+ // className={isLauchWeekPage ? '!text-white' : ''}+ >+ Star us on GitHub+ </span></Button><Link href="https://app.supabase.com/">@@ -320,7 +324,12 @@ const Nav = () => {leaveFrom="opacity-100 translate-y-0"leaveTo="opacity-0 translate-y-1">- <div className="dark:bg-scale-300 fixed -inset-y-0 z-50 h-screen w-screen transform overflow-y-scroll bg-white p-4 md:p-8">+ <div+ className={[+ 'dark:bg-scale-300 fixed -inset-y-0 z-50 h-screen w-screen transform overflow-y-scroll bg-white p-4 md:p-8',+ isLauchWeekPage && '!bg-scale-300',+ ].join(' ')}+ ><div className="absolute right-4 top-4 items-center justify-between"><div className="-mr-2"><buttondiff --git a/apps/www/data/Announcements.json b/apps/www/data/Announcements.jsonindex be53ae3db0d..01befc323b9 100644--- a/apps/www/data/Announcements.json+++ b/apps/www/data/Announcements.json@@ -1,15 +1,15 @@[{"type": "Announcement",- "title": "Supabase Launch Week 6",+ "title": "Supabase Launch Week 7","description": "One new feature (or more) every day during a week.",- "imgUrl": "/images/launchweek/launch-week-6.jpg",- "logoUrl": "/images/launchweek/launch-week-6.jpg",+ "imgUrl": "/images/launchweek/seven/launch-week-7.jpg",+ "logoUrl": "/images/launchweek/seven/launch-week-7.jpg","organization": "Supabase","url": "/launch-week","postMeta": {"name": "Paul Copplestone",- "publishDate": "Dec 12, 2022",+ "publishDate": "Apr 03, 2023","readLength": 5},"ctaText": "Learn more"diff --git a/apps/www/lib/constants.ts b/apps/www/lib/constants.tsindex 5beb3685741..6517c8e291d 100644--- a/apps/www/lib/constants.ts+++ b/apps/www/lib/constants.ts@@ -12,7 +12,7 @@ export const SITE_URL =export const SITE_ORIGIN = new URL(SITE_URL).originexport const TWITTER_USER_NAME = 'supabase'export const COOKIE = 'supa-launch-week-ticke-user-id'-export const DATE = 'April 3rd- 7th, 2023'+export const DATE = 'April 3rd-7th, 2023'export const TWEET_TEXT = 'Got my ticket for #SupaLaunchWeek 6!'export const TWEET_TEXT_GOLDEN = `Woop! I got a Golden Ticket for #SupaLaunchWeek 6! SupaSwag on its way!`export const SITE_NAME = 'Supabase'diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsxindex a48614ffb3f..800de26bd1b 100644--- a/apps/www/pages/launch-week/index.tsx+++ b/apps/www/pages/launch-week/index.tsx@@ -14,6 +14,7 @@ import { LaunchWeekLogoHeader } from '~/components/LaunchWeek/LaunchSection/Launimport { UserData } from '~/components/LaunchWeek/Ticket/hooks/use-conf-data'import TicketBrickWall from '~/components/LaunchWeek/LaunchSection/TicketBrickWall'import LW7BgGraphic from '../../components/LaunchWeek/LW7BgGraphic'+import CTABanner from '../../components/CTABanner'interface Props {users: UserData[]@@ -27,13 +28,12 @@ const supabaseAdmin = createClient()export default function TicketHome({ users }: Props) {- const { isDarkMode } = useTheme()-const [supabase, setSupabase] = useState<SupabaseClient | null>(null)const [session, setSession] = useState<Session | null>(null)const description = 'Supabase Launch Week 7 | 3-7 April 2023'const { query, pathname } = useRouter()- const isLauchWeekPage = pathname.includes('launch-week')+ const { isDarkMode } = useTheme()+ // const isLauchWeekPage = pathname.includes('launch-week')const ticketNumber = query.ticketNumber?.toString()const bgImageId = query.bgImageId?.toString()@@ -128,6 +128,7 @@ export default function TicketHome({ users }: Props) {{users && <TicketBrickWall users={users} />}</div>+ <CTABanner /></DefaultLayout></>)diff --git a/apps/www/pages/launch-week/tickets/[username].tsx b/apps/www/pages/launch-week/tickets/[username].tsxindex 363e79befdf..fa6c46a115b 100644--- a/apps/www/pages/launch-week/tickets/[username].tsx+++ b/apps/www/pages/launch-week/tickets/[username].tsx@@ -15,6 +15,7 @@ import { LaunchWeekLogoHeader } from '~/components/LaunchWeek/LaunchSection/Launimport TicketBrickWall from '~/components/LaunchWeek/LaunchSection/TicketBrickWall'import { UserData } from '~/components/LaunchWeek/Ticket/hooks/use-conf-data'import LW7BgGraphic from '../../../components/LaunchWeek/LW7BgGraphic'+import CTABanner from '../../../components/CTABanner'interface Props {user: UserData@@ -46,9 +47,11 @@ export default function TicketShare({ user, users }: Props) {)}${golden ? '&golden=true' : ''}`useEffect(() => {- document.body.className = isDarkMode ? 'dark bg-[#121212]' : 'light bg-[#fff]'+ document.body.className = isDarkMode ? 'dark bg-[#1C1C1C]' : 'light bg-[#fff]'}, [isDarkMode])+ console.log('isDarkMode', isDarkMode)+return (<><NextSeo@@ -99,6 +102,7 @@ export default function TicketShare({ user, users }: Props) {<LaunchWeekPrizeSection className="-mt-20 md:-mt-60" /><TicketBrickWall users={users} /></div>+ <CTABanner /></DefaultLayout></>)diff --git a/apps/www/pages/launch-week/tickets/index.tsx b/apps/www/pages/launch-week/tickets/index.tsxindex 01bf60425d1..52231c2fff4 100644--- a/apps/www/pages/launch-week/tickets/index.tsx+++ b/apps/www/pages/launch-week/tickets/index.tsx@@ -7,6 +7,7 @@ import { useRouter } from 'next/router'import { createClient, Session, SupabaseClient } from '@supabase/supabase-js'import { useState, useEffect } from 'react'import { useTheme } from 'common/Providers'+import CTABanner from '../../../components/CTABanner'export default function TicketHome() {const { isDarkMode } = useTheme()@@ -77,7 +78,7 @@ export default function TicketHome() {src="/images/launchweek/launchweek-logo--dark.svg"className="hidden w-40 dark:flex lg:w-80"/>- <p className="text-scale-1100 text-sm">Dec 12 – 16 at 8 AM PT | 11 AM ET</p>+ <p className="text-scale-1100 text-sm">Dec 12 - 16 at 8 AM PT | 11 AM ET</p></div>{supabase && (@@ -89,6 +90,7 @@ export default function TicketHome() {/>)}</SectionContainer>+ <CTABanner /></DefaultLayout></>)diff --git a/apps/www/public/images/launchweek/seven/launch-week-7.jpg b/apps/www/public/images/launchweek/seven/launch-week-7.jpgnew file mode 100644index 00000000000..f08c990fa85Binary files /dev/null and b/apps/www/public/images/launchweek/seven/launch-week-7.jpg differ