From 7364fa712efbde902467518f1ada4c256beef0d9 Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Wed, 29 Mar 2023 16:41:50 +0200 Subject: [PATCH 1/8] chore: update sharing exp --- apps/www/components/LaunchWeek/Ticket/ticket-copy.tsx | 2 +- apps/www/pages/launch-week/tickets/[username].tsx | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) 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/pages/launch-week/tickets/[username].tsx b/apps/www/pages/launch-week/tickets/[username].tsx index 0337142c404..2a688378425 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(() => From 2e6012d2e03493235773a7f31d24187fc65e9777 Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Wed, 29 Mar 2023 17:02:35 +0200 Subject: [PATCH 2/8] chore: supabase sticker pack --- .../LaunchWeek/LaunchSection/LaunchWeekPrizeSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/www/components/LaunchWeek/LaunchSection/LaunchWeekPrizeSection.tsx b/apps/www/components/LaunchWeek/LaunchSection/LaunchWeekPrizeSection.tsx index e3b42212e69..dfb83eccedb 100644 --- a/apps/www/components/LaunchWeek/LaunchSection/LaunchWeekPrizeSection.tsx +++ b/apps/www/components/LaunchWeek/LaunchSection/LaunchWeekPrizeSection.tsx @@ -109,7 +109,7 @@ export default function LaunchWeekPrizeSection({ className }: { className?: stri animateFrom="down" content={

- Launch Week 7 Limited Edition Sticker Pack + Supabase Sticker Pack

} /> From 2062596b07e4a246800e14d446acd5158264ddf5 Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Wed, 29 Mar 2023 18:00:18 +0200 Subject: [PATCH 3/8] chore: remove unused component --- .../LaunchSection/TicketBrickWallRow.tsx | 54 ------------------- 1 file changed, 54 deletions(-) delete mode 100644 apps/www/components/LaunchWeek/LaunchSection/TicketBrickWallRow.tsx diff --git a/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWallRow.tsx b/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWallRow.tsx deleted file mode 100644 index 89b98734f9d..00000000000 --- a/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWallRow.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import { useRef } from 'react' -import Image from 'next/image' -import Link from 'next/link' -import { motion, useScroll, useTransform } from 'framer-motion' -import { UserData } from '../Ticket/hooks/use-conf-data' -import { useMobileViewport } from '../../../hooks/useMobileViewport' - -interface Props { - users: UserData[] - reverse?: boolean - xOffset?: number -} - -export function TicketBrickWallRow({ users, reverse, xOffset = 250 }: Props) { - const ref = useRef(null) - const isMobile = useMobileViewport(768) - const { scrollYProgress } = useScroll({ - target: ref, - offset: ['start end', 'end start'], - }) - const STORAGE_URL = 'https://obuldanrptloktxcffvn.supabase.co/storage/v1/object/public/images/lw7' - const BUCKET_FOLDER_VERSION = 'v3' - const getOgUrl = (username: string, isGold: boolean) => - `${STORAGE_URL}/tickets/gallery/${ - isGold ? 'golden' : 'regular' - }/${BUCKET_FOLDER_VERSION}/${username}.png` - const x = useTransform(scrollYProgress, [0, 1], reverse ? [-xOffset, 0] : [0, -xOffset]) - - return ( -
-
- - {users.map((user, i) => ( - - -
- {user.username} -
-
- - ))} -
-
-
- ) -} From b05c9f2a75911822dc7c0951915d992b77671f6d Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Wed, 29 Mar 2023 18:12:47 +0200 Subject: [PATCH 4/8] chore: remove unused component import --- apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx b/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx index f8e130a0d4c..a8e0585f81c 100644 --- a/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx +++ b/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx @@ -3,7 +3,6 @@ import React from 'react' import { Button } from 'ui' import { useMobileViewport } from '../../../hooks/useMobileViewport' import { UserData } from '../Ticket/hooks/use-conf-data' -import { TicketBrickWallRow } from './TicketBrickWallRow' import { TicketBrickWallSlider } from './TicketBrickWallSlider' type user = UserData From fc3b3b6e48d319abd51929cf016c4a3750485602 Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Wed, 29 Mar 2023 18:33:26 +0200 Subject: [PATCH 5/8] chore: cleanup --- apps/www/components/LaunchWeek/Ticket/TicketForm.tsx | 6 +----- apps/www/pages/launch-week/index.tsx | 2 -- apps/www/pages/launch-week/tickets/[username].tsx | 3 --- 3 files changed, 1 insertion(+), 10 deletions(-) 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/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 2a688378425..7c2707ddf5d 100644 --- a/apps/www/pages/launch-week/tickets/[username].tsx +++ b/apps/www/pages/launch-week/tickets/[username].tsx @@ -131,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 { From a924d62ee80047d437e0ded476b57eca6a148966 Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Wed, 29 Mar 2023 18:41:55 +0200 Subject: [PATCH 6/8] chore: cleanup comments --- apps/www/components/LaunchWeek/Ticket/form.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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' From 82e4208c66b7b41ee141d50bcc9a0377f7c478ff Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Thu, 30 Mar 2023 00:03:49 +0200 Subject: [PATCH 7/8] lw7: update gold ticket text --- apps/www/components/LaunchWeek/Ticket/ActualTicket.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsx b/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsx index d4e34a72419..1fe88229da0 100644 --- a/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsx +++ b/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsx @@ -137,8 +137,8 @@ export default function Ticket({ <> {golden ? (

- 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 ? (

From a8ef2c1f9c231a264eb9e4fe2ab71f11fa962669 Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Thu, 30 Mar 2023 00:14:25 +0200 Subject: [PATCH 8/8] lw7: update footer copy --- apps/www/data/Footer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } ]