Skip to content

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

ticketing cleanup (#22517)

Francesco Sansalvadore80b1791cc4a5
diff --git a/apps/www/components/LaunchWeek/11/GALogo.tsx b/apps/www/components/LaunchWeek/11/GALogo.tsx
deleted file mode 100644
index 808721e3534..00000000000
--- a/apps/www/components/LaunchWeek/11/GALogo.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-import React from 'react'
-import { cn } from 'ui'
-
-interface Props {
- className?: string
-}
-
-const GALogo = ({ className }: Props) => {
- return (
- <svg
- width="100%"
- height="100%"
- viewBox="0 0 146 80"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- className={cn(className)}
- >
- <path
- d="M9.90872 39.7865C9.90872 23.108 23.4293 9.58743 40.1078 9.58743C49.7794 9.58743 58.3878 14.1286 63.9227 21.2142L71.3958 15.3765C64.1412 6.0894 52.8222 0.104492 40.1078 0.104492C18.192 0.104492 0.425781 17.8707 0.425781 39.7865C0.425781 61.7023 18.192 79.4685 40.1078 79.4685C44.6069 79.4685 48.9307 78.72 52.9616 77.3408V67.121C49.0611 68.9584 44.7039 69.9856 40.1078 69.9856C23.4293 69.9856 9.90872 56.465 9.90872 39.7865Z"
- fill="#EDEDED"
- />
- <path
- d="M62.4117 47.9878H62.4446L62.3638 77.9288L71.6541 77.9286L71.7349 38.0012L38.6667 38.0011L38.6667 47.4841L62.4117 47.4841L62.4117 47.9878Z"
- fill="#EDEDED"
- />
- <path
- d="M103.571 14.5169L81.2178 58.7897V37.9204L99.3558 1.83807L107.825 1.85127L145.5 77.8259H135.221L103.571 14.5169Z"
- fill="#EDEDED"
- />
- <path d="M98.6779 68.3335H108.182V77.8377H98.6779V68.3335Z" fill="#EDEDED" />
- </svg>
- )
-}
-
-export default GALogo
diff --git a/apps/www/components/LaunchWeek/11/LaunchWeekPrizeSection.tsx b/apps/www/components/LaunchWeek/11/LaunchWeekPrizeSection.tsx
index 4ef9f265595..3b39b823327 100644
--- a/apps/www/components/LaunchWeek/11/LaunchWeekPrizeSection.tsx
+++ b/apps/www/components/LaunchWeek/11/LaunchWeekPrizeSection.tsx
@@ -23,14 +23,22 @@ export default function LaunchWeekPrizeSection({ className }: { className?: stri
contentClassName="flex flex-col justify-between"
content={
<div className="w-full h-auto lg:min-h-[400px] flex flex-col lg:flex-row items-stretch rounded-lg overflow-hidden">
- <div className="relative w-full pl-4 xl:px-4 pt-4 lg:w-2/3 border-b lg:border-none border-muted aspect-[3/1] top-0 -bottom-8 overflow-hidden">
+ <div className="relative w-full pl-4 xl:px-4 lg:w-2/3 border-b lg:border-none border-muted aspect-[3/1] top-0 md:-bottom-8 overflow-hidden">
<Image
src="/images/launchweek/11/airpods-max-alpha.png"
alt="Supabase AirPod Max prize"
draggable={false}
width={300}
height={300}
- className="absolute p-2 object-cover scale-50 lg:scale-100 lg:object-top w-[90%] h-full overflow-visible opacity-50 pointer-events-none"
+ className="hidden md:block absolute object-cover scale-50 lg:scale-100 lg:object-top w-[90%] h-full opacity-50 pointer-events-none"
+ />
+ <Image
+ src="/images/launchweek/11/airpods-max-alpha-crop.png"
+ alt="Supabase AirPod Max prize"
+ draggable={false}
+ width={300}
+ height={300}
+ className="md:hidden absolute mx-auto object-cover inset-x-0 lg:object-top w-auto h-full opacity-50 pointer-events-none"
/>
</div>
<div className="flex flex-col lg:w-1/2 gap-1 p-4 md:p-8 lg:pl-0 lg:h-full">
diff --git a/apps/www/components/LaunchWeek/11/Releases/LW11Header.tsx b/apps/www/components/LaunchWeek/11/Releases/LW11Header.tsx
index bd95c7db2bb..adc385243d8 100644
--- a/apps/www/components/LaunchWeek/11/Releases/LW11Header.tsx
+++ b/apps/www/components/LaunchWeek/11/Releases/LW11Header.tsx
@@ -1,6 +1,5 @@
import React from 'react'
import { cn } from 'ui'
-import GALogo from '../GALogo'
import SectionContainer from '~/components/Layouts/SectionContainer'
import LW11Background from '../LW11Background'
@@ -8,7 +7,7 @@ const LW11Header = ({ className }: { className?: string }) => {
return (
<div className={cn('relative w-full overflow-visible', className)}>
<SectionContainer className="h-full flex flex-col gap-4 !max-w-none lg:!container">
- <GALogo className="w-20 md:w-24 aspect-[1.83/1] h-auto min-h-20 md:min-h-24" />
+ {/* <Image href="" className="w-20 md:w-24 aspect-[1.83/1] h-auto min-h-20 md:min-h-24" /> */}
<p className="text-foreground-lighter text-xl md:text-2xl">
Join us in this major milestone and explore all the features that come with it.
</p>
diff --git a/apps/www/components/LaunchWeek/11/Releases/components/DaySection.tsx b/apps/www/components/LaunchWeek/11/Releases/components/DaySection.tsx
index 90e22e56584..0a68dc0a0cb 100644
--- a/apps/www/components/LaunchWeek/11/Releases/components/DaySection.tsx
+++ b/apps/www/components/LaunchWeek/11/Releases/components/DaySection.tsx
@@ -2,7 +2,8 @@ import React from 'react'
import Link from 'next/link'
import Image from 'next/image'
import { ArrowRightIcon } from '@heroicons/react/outline'
-import { IconEdit2, cn } from 'ui'
+import { cn } from 'ui'
+import { Edit } from 'lucide-react'
import { useBreakpoint } from 'common'
import { WeekDayProps } from '../data'
@@ -58,7 +59,7 @@ const DaySection = ({ day }: { day: WeekDayProps }) => {
>
<div className="relative p-4 sm:p-6 md:p-8 z-20 flex-grow flex flex-col items-start justify-between gap-2 w-full lg:w-3/5 text-left">
<div className="relative w-full flex items-center gap-2 text-sm translate-x-0 !ease-[.24,0,.22,.99] duration-200 group-hover:-translate-x-6 transition-transform">
- <IconEdit2 className="w-4 min-w-4 group-hover:opacity-0 transition-opacity" />
+ <Edit className="w-4 min-w-4 group-hover:opacity-0 transition-opacity" />
<span>Blog post</span>
<ArrowRightIcon className="w-4 opacity-0 group-hover:opacity-100 transition-opacity" />
</div>
diff --git a/apps/www/components/LaunchWeek/11/Releases/components/index.tsx b/apps/www/components/LaunchWeek/11/Releases/components/index.tsx
index d3e59ac0718..36028c545c8 100644
--- a/apps/www/components/LaunchWeek/11/Releases/components/index.tsx
+++ b/apps/www/components/LaunchWeek/11/Releases/components/index.tsx
@@ -1,12 +1,6 @@
import { useEffect, useState } from 'react'
-import {
- IconDocumentation,
- IconMicSolid,
- IconMusic,
- IconProductHunt,
- IconYoutubeSolid,
- cn,
-} from 'ui'
+import { IconDocumentation, IconMicSolid, IconProductHunt, IconYoutubeSolid, cn } from 'ui'
+import { Music } from 'lucide-react'
import Link from 'next/link'
import { StepLink } from '../data/lw11_data'
@@ -43,7 +37,7 @@ export const DayLink = ({ type, icon, text, href = '', className }: DayLink) =>
text: 'Watch video',
},
podcast: {
- icon: IconMusic,
+ icon: Music,
text: 'Podcast',
},
xSpace: {
diff --git a/apps/www/components/LaunchWeek/11/Ticket/Ticket.tsx b/apps/www/components/LaunchWeek/11/Ticket/Ticket.tsx
index 321f9ffd49f..d42c83315bc 100644
--- a/apps/www/components/LaunchWeek/11/Ticket/Ticket.tsx
+++ b/apps/www/components/LaunchWeek/11/Ticket/Ticket.tsx
@@ -1,6 +1,7 @@
import { useEffect, useRef, useState } from 'react'
import Image from 'next/image'
-import { IconEdit2, IconX, cn } from 'ui'
+import { cn } from 'ui'
+import { Pencil, X } from 'lucide-react'
import Tilt from 'vanilla-tilt'
import { useBreakpoint, useParams } from 'common'
@@ -100,7 +101,7 @@ export default function Ticket() {
onClick={handleCustomizeTicket}
/>
<div className="flex md:translate-y-3 opacity-100 md:opacity-0 group-hover/ticket:opacity-100 group-hover/ticket:md:translate-y-0 transition-all absolute z-30 right-4 top-4 md:inset-0 m-auto w-10 h-10 rounded-full items-center justify-center bg-[#020405] border shadow-lg text-foreground">
- {!showCustomizationForm ? <IconEdit2 className="w-4" /> : <IconX className="w-4" />}
+ {!showCustomizationForm ? <Pencil className="w-4" /> : <X className="w-4" />}
</div>
</>
)}
diff --git a/apps/www/components/LaunchWeek/11/Ticket/TicketContainer.tsx b/apps/www/components/LaunchWeek/11/Ticket/TicketContainer.tsx
index 7c67072a457..de798cdad21 100644
--- a/apps/www/components/LaunchWeek/11/Ticket/TicketContainer.tsx
+++ b/apps/www/components/LaunchWeek/11/Ticket/TicketContainer.tsx
@@ -1,16 +1,12 @@
-import { useParams } from 'common'
import Ticket from './Ticket'
import TicketCopy from './TicketCopy'
export default function TicketContainer() {
- const params = useParams()
- const sharePage = !!params.username
-
return (
<div className="flex flex-col w-full items-center mx-auto max-w-xl gap-3 group group-hover">
<Ticket />
<div className="flex flex-col md:flex-row gap-2 items-center justify-center mx-auto max-w-full">
- <TicketCopy sharePage={sharePage} />
+ <TicketCopy />
</div>
</div>
)
diff --git a/apps/www/components/LaunchWeek/11/Ticket/TicketCopy.tsx b/apps/www/components/LaunchWeek/11/Ticket/TicketCopy.tsx
index b042319c5c1..ae6a2736b84 100644
--- a/apps/www/components/LaunchWeek/11/Ticket/TicketCopy.tsx
+++ b/apps/www/components/LaunchWeek/11/Ticket/TicketCopy.tsx
@@ -1,9 +1,9 @@
import { useState, useRef } from 'react'
import { SPECIAL_ANNOUNCEMENT_URL } from '~/lib/constants'
-import { IconCheck, IconCopy, cn } from 'ui'
+import { Check, Copy } from 'lucide-react'
import useConfData from '../../hooks/use-conf-data'
-export default function TicketCopy({ sharePage }: { sharePage: boolean }) {
+export default function TicketCopy() {
const { userData } = useConfData()
const { username, platinum, secret } = userData
const [copied, setCopied] = useState(false)
@@ -14,9 +14,7 @@ export default function TicketCopy({ sharePage }: { sharePage: boolean }) {
}`
return (
- <div
- className={cn('h-full w-full overflow-hidden max-w-full', sharePage ? 'w-auto' : 'w-full')}
- >
+ <div className="h-full w-full">
<button
type="button"
name="Copy"
@@ -32,11 +30,7 @@ export default function TicketCopy({ sharePage }: { sharePage: boolean }) {
className="w-full h-full flex justify-center md:justify-start items-center gap-2 relative text-foreground-light hover:text-foreground text-xs"
>
<div className="w-4 min-w-4 flex-shrink-0">
- {copied ? (
- <IconCheck size={14} strokeWidth={1.5} />
- ) : (
- <IconCopy size={14} strokeWidth={1.5} />
- )}
+ {copied ? <Check size={14} strokeWidth={1.5} /> : <Copy size={14} strokeWidth={1.5} />}
</div>
<span className="truncate">{url}</span>
</button>
diff --git a/apps/www/components/LaunchWeek/11/Ticket/TicketCustomizationForm.tsx b/apps/www/components/LaunchWeek/11/Ticket/TicketCustomizationForm.tsx
index d2286718b71..e98a6ce89d9 100644
--- a/apps/www/components/LaunchWeek/11/Ticket/TicketCustomizationForm.tsx
+++ b/apps/www/components/LaunchWeek/11/Ticket/TicketCustomizationForm.tsx
@@ -1,5 +1,6 @@
import React, { useEffect, useState } from 'react'
-import { Button, Checkbox, IconCheck, Input, cn } from 'ui'
+import { Button, Checkbox, Input, cn } from 'ui'
+import { Check } from 'lucide-react'
import useConfData from '~/components/LaunchWeek/hooks/use-conf-data'
import { useBreakpoint, useDebounce } from 'common'
import { useKey } from 'react-use'
@@ -26,10 +27,7 @@ const TicketCustomizationForm = ({ className }: { className?: string }) => {
useKey('Escape', () => setShowCustomizationForm && setShowCustomizationForm(false))
const handleInputChange = (name: string, value: string | boolean) => {
- console.log('name', name, 'value', value)
setFormData((prev) => ({ ...prev, [name]: value }))
-
- console.log('formData', formData)
}
const handleFormSubmit = async () => {
@@ -65,16 +63,21 @@ const TicketCustomizationForm = ({ className }: { className?: string }) => {
return (
<form
className={cn(
- 'w-full rounded-t-2xl bg-alternative border p-4 flex flex-col gap-2 mx-auto transition-all opacity-0 translate-y-full text-foreground-light',
+ 'w-full rounded-xl bg-alternative border p-4 flex flex-col gap-2 mx-auto transition-all opacity-0 translate-y-full text-foreground-light',
showCustomizationForm && 'opacity-100 translate-y-0 duration-300',
isMobile && 'mt-2',
className
)}
- onChange={() => debouncedChangeHandler()}
- onSubmit={(e) => e.preventDefault()}
+ onChange={(e) => {
+ e.preventDefault()
+ debouncedChangeHandler()
+ }}
+ onSubmit={(e) => {
+ e.preventDefault()
+ handleFormSubmit()
+ }}
>
<Input
- // className="[&_input]:border-background"
size="small"
type="text"
placeholder="role (optional)"
@@ -85,21 +88,20 @@ const TicketCustomizationForm = ({ className }: { className?: string }) => {
onFocus={() =>
!showCustomizationForm && setShowCustomizationForm && setShowCustomizationForm(true)
}
- disabled={IS_SAVING}
+ inputClassName={cn(IS_SAVING && 'text-foreground-lighter')}
maxLength={25}
icon={
- <IconCheck
+ <Check
strokeWidth={2}
className={cn(
'w-3',
- IS_SAVING && 'text-background-surface-300',
- !!formData.role ? 'text-brand' : 'text-foreground-lighter'
+ !!formData.role ? 'text-brand' : 'text-foreground-lighter',
+ IS_SAVING && 'text-background-surface-300'
)}
/>
}
/>
<Input
- // className="[&_input]:border-background"
size="small"
type="text"
placeholder="company (optional)"
@@ -111,14 +113,14 @@ const TicketCustomizationForm = ({ className }: { className?: string }) => {
onFocus={() =>
!showCustomizationForm && setShowCustomizationForm && setShowCustomizationForm(true)
}
- disabled={IS_SAVING}
+ inputClassName={cn(IS_SAVING && 'text-foreground-lighter')}
icon={
- <IconCheck
+ <Check
strokeWidth={2}
className={cn(
'w-3',
- IS_SAVING && 'text-background-surface-300',
- !!formData.company ? 'text-brand' : 'text-foreground-lighter'
+ !!formData.company ? 'text-brand' : 'text-foreground-lighter',
+ IS_SAVING && 'text-background-surface-300'
)}
/>
}
@@ -128,7 +130,6 @@ const TicketCustomizationForm = ({ className }: { className?: string }) => {
label="Hide avatar"
checked={formData.hideAvatar}
onChange={(event) => {
- console.log(event)
handleInputChange('hideAvatar', event.target.checked)
}}
/>
diff --git a/apps/www/components/LaunchWeek/11/Ticket/TicketFooter.tsx b/apps/www/components/LaunchWeek/11/Ticket/TicketFooter.tsx
index e2f12672f27..04448dc6034 100644
--- a/apps/www/components/LaunchWeek/11/Ticket/TicketFooter.tsx
+++ b/apps/www/components/LaunchWeek/11/Ticket/TicketFooter.tsx
@@ -1,8 +1,6 @@
import React from 'react'
-import { LWX_DATE } from '~/lib/constants'
import TicketNumber from './TicketNumber'
import useConfData from '~/components/LaunchWeek/hooks/use-conf-data'
-import Image from 'next/image'
import { cn } from 'ui'
export default function TicketFooter() {
diff --git a/apps/www/components/LaunchWeek/11/Ticket/TicketForm.tsx b/apps/www/components/LaunchWeek/11/Ticket/TicketForm.tsx
index 4ca2370257a..60fcdfd439a 100644
--- a/apps/www/components/LaunchWeek/11/Ticket/TicketForm.tsx
+++ b/apps/www/components/LaunchWeek/11/Ticket/TicketForm.tsx
@@ -2,7 +2,8 @@ import { useState, useEffect } from 'react'
import { SupabaseClient } from '@supabase/supabase-js'
import { useRouter } from 'next/router'
import { SITE_ORIGIN } from '~/lib/constants'
-import { Button, IconCheckCircle } from 'ui'
+import { Button } from 'ui'
+import { CheckCircle } from 'lucide-react'
import useConfData from '~/components/LaunchWeek/hooks/use-conf-data'
@@ -136,7 +137,7 @@ export default function TicketForm() {
type="alternative"
disabled={formState === 'loading' || Boolean(session)}
onClick={handleGithubSignIn}
- iconLeft={session && <IconCheckCircle />}
+ iconLeft={session && <CheckCircle />}
loading={formState === 'loading'}
className="px-4 h-auto !py-1.5"
>
diff --git a/apps/www/components/LaunchWeek/11/Ticket/TicketingFlow.tsx b/apps/www/components/LaunchWeek/11/Ticket/TicketingFlow.tsx
index c7f2eee0b41..2a2c3d09e5f 100644
--- a/apps/www/components/LaunchWeek/11/Ticket/TicketingFlow.tsx
+++ b/apps/www/components/LaunchWeek/11/Ticket/TicketingFlow.tsx
@@ -160,14 +160,22 @@ const TicketingFlow = () => {
<CountdownComponent date={LW11_LAUNCH_DATE} showCard={false} />
</div>
<div className="w-full h-auto text-center md:text-left border border-muted flex flex-col md:flex-row items-stretch rounded-lg bg-surface-100 my-2 md:mb-8 overflow-hidden">
- <div className="hidden md:block relative h-full w-full min-h-[140px] md:w-1/3 top-0 -bottom-8 overflow-visible">
+ <div className="relative h-full w-full aspect-[4/1] border-b md:border-b-0 md:aspect-auto md:min-h-[140px] md:w-1/3 top-0 -bottom-8 overflow-visible">
<Image
src="/images/launchweek/11/airpods-max-alpha.png"
alt="Supabase AirPod Max prize"
width={300}
height={300}
draggable={false}
- className="absolute p-2 object-cover object-left-top w-full h-[200px] overflow-visible opacity-50 pointer-events-none"
+ className="hidden md:block absolute p-2 object-cover object-left-top w-full h-[200px] overflow-visible opacity-50 pointer-events-none"
+ />
+ <Image
+ src="/images/launchweek/11/airpods-max-alpha-crop.png"
+ alt="Supabase AirPod Max prize"
+ draggable={false}
+ width={300}
+ height={300}
+ className="md:hidden absolute mx-auto object-cover inset-x-0 lg:object-top w-auto h-full opacity-50 pointer-events-none"
/>
</div>
<div className="flex flex-col justify-center md:w-2/3 gap-1 p-3">
@@ -180,7 +188,7 @@ const TicketingFlow = () => {
</p>
</div>
</div>
- {!hasPlatinumTicket && <TicketPresence />}
+ <TicketPresence />
</div>
</m.div>
)}
diff --git a/apps/www/pages/special-announcement/tickets/[username].tsx b/apps/www/pages/special-announcement/tickets/[username].tsx
index be61b189315..8d626a1e0fe 100644
--- a/apps/www/pages/special-announcement/tickets/[username].tsx
+++ b/apps/www/pages/special-announcement/tickets/[username].tsx
@@ -83,7 +83,7 @@ export default function UsernamePage({ user, ogImageUrl }: Props) {
}}
>
<DefaultLayout>
- <div className="relative -mt-[65px]">
+ <div className="relative -mt-[65px] overflow-hidden">
<SectionContainer className="relative !pt-8 lg:!pt-10 z-10 flex flex-col xl:flex-row items-center xl:justify-center xl:items-center gap-8 md:gap-10 xl:gap-20 text-foreground text-center md:text-left">
<div className="w-auto min-h-[400px] pt-24 flex items-center">
<LW11TicketContainer />
diff --git a/apps/www/public/images/launchweek/11/airpods-max-alpha-crop.png b/apps/www/public/images/launchweek/11/airpods-max-alpha-crop.png
new file mode 100644
index 00000000000..b9e746ff3ff
Binary files /dev/null and b/apps/www/public/images/launchweek/11/airpods-max-alpha-crop.png differ