- You got a Golden ticket. This means you're in, and you also won a Supabase
- sticker pack!
+ Join us on April 16th for Launch Week 7's final day and find out if you are one
+ of the lucky winners.
) : username ? (
diff --git a/apps/www/components/LaunchWeek/Ticket/TicketForm.tsx b/apps/www/components/LaunchWeek/Ticket/TicketForm.tsx
index 468d50e5e02..109e5272de8 100644
--- a/apps/www/components/LaunchWeek/Ticket/TicketForm.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/TicketForm.tsx
@@ -1,15 +1,11 @@
import { useState, useRef, useEffect } from 'react'
import { useRouter } from 'next/router'
-// import { scrollTo } from '@lib/smooth-scroll';
import cn from 'classnames'
-// import GithubIcon from '~/components/LaunchWeek/Ticket/icons/icon-github'
-// import CheckIcon from '~/components/LaunchWeek/Ticket/icons/icon-check'
import { SITE_ORIGIN } from '~/lib/constants'
import useConfData from '~/components/LaunchWeek/Ticket//hooks/use-conf-data'
-import LoadingDots from './loading-dots'
import formStyles from './form.module.css'
import ticketFormStyles from './ticket-form.module.css'
-import { Button, IconCheck, IconCheckCircle, IconLoader } from 'ui'
+import { Button, IconCheckCircle, IconLoader } from 'ui'
type FormState = 'default' | 'loading' | 'error'
type TicketGenerationState = 'default' | 'loading'
diff --git a/apps/www/components/LaunchWeek/Ticket/form.tsx b/apps/www/components/LaunchWeek/Ticket/form.tsx
index 2ac809410a9..d8a9c9dbc3d 100644
--- a/apps/www/components/LaunchWeek/Ticket/form.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/form.tsx
@@ -1,13 +1,11 @@
-import { useState, useCallback, useEffect } from 'react'
+import { useState, useCallback } from 'react'
import cn from 'classnames'
import useConfData from '~/components/LaunchWeek/Ticket/hooks/use-conf-data'
import { useRouter } from 'next/router'
-import LoadingDots from './loading-dots'
import styleUtils from './utils.module.css'
import styles from './form.module.css'
import useEmailQueryParam from '~/components/LaunchWeek/Ticket/hooks/use-email-query-param'
import { IconLoader } from '~/../../packages/ui'
-// import Captcha, { useCaptcha } from './captcha'
type FormState = 'default' | 'loading' | 'error'
diff --git a/apps/www/components/LaunchWeek/Ticket/ticket-copy.tsx b/apps/www/components/LaunchWeek/Ticket/ticket-copy.tsx
index 1ad02316422..8ac0074d341 100644
--- a/apps/www/components/LaunchWeek/Ticket/ticket-copy.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/ticket-copy.tsx
@@ -15,7 +15,7 @@ export default function TicketCopy({ username }: Props) {
const [copied, setCopied] = useState(false)
const scrollRef = useRef(null)
const buttonRef = useRef(null)
- const url = `${SITE_URL}/tickets/${username}`
+ const url = `${SITE_URL}/tickets/${username}?lw=7`
useEffect(() => {
if (navigator.clipboard) {
setCopyEnabled(true)
diff --git a/apps/www/data/Footer.json b/apps/www/data/Footer.json
index 1422e016687..cabcc627188 100644
--- a/apps/www/data/Footer.json
+++ b/apps/www/data/Footer.json
@@ -27,7 +27,7 @@
"url": "/pricing"
},
{
- "text": "Launch Week 6",
+ "text": "Launch Week 7",
"url": "/launch-week"
}
]
diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsx
index 1f246bc6090..d882ec9625c 100644
--- a/apps/www/pages/launch-week/index.tsx
+++ b/apps/www/pages/launch-week/index.tsx
@@ -147,8 +147,6 @@ export const getServerSideProps: GetServerSideProps = async ({ req, res }) => {
.order('createdAt', { ascending: false })
.limit(17)
- // res.setHeader('Cache-Control', 'public, s-maxage=10, stale-while-revalidate=59')
-
return {
props: {
users,
diff --git a/apps/www/pages/launch-week/tickets/[username].tsx b/apps/www/pages/launch-week/tickets/[username].tsx
index 0337142c404..7c2707ddf5d 100644
--- a/apps/www/pages/launch-week/tickets/[username].tsx
+++ b/apps/www/pages/launch-week/tickets/[username].tsx
@@ -30,10 +30,8 @@ const supabaseAdmin = createClient(
export default function UsernamePage({ user, users, ogImageUrl }: Props) {
const { username, ticketNumber, name, golden, referrals, bg_image_id } = user
- const TITLE = `${
- name ? name + '’s' : 'Get your'
- } #SupaLaunchWeek Ticket | Share to win some fantastic swag`
- const DESCRIPTION = 'Supabase Launch Week 7 | 10–14 April 2023'
+ const TITLE = `${name ? name + '’s' : 'Get your'} #SupaLaunchWeek Ticket`
+ const DESCRIPTION = 'Supabase Launch Week 7 | 10–14 April 2023 | Generate your ticket. Win swag.'
const OG_URL = `${SITE_URL}/tickets/${username}`
const [supabase] = useState(() =>
@@ -133,9 +131,6 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
ogImageUrl = `https://obuldanrptloktxcffvn.functions.supabase.co/lw7-ticket-og?username=${encodeURIComponent(
username ?? ''
)}${golden ? '&golden=true' : ''}`
- // ogImageUrl = `https://obuldanrptloktxcffvn.supabase.co/storage/v1/object/public/images/lw7/tickets/${
- // golden ? 'golden' : 'regular'
- // }/v3/${username ?? ''}.png`
}
return {