The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
LW7: Fix ticket height and overall UI
Francesco Sansalvadore859381d6e89c
diff --git a/apps/www/components/LaunchWeek/LW7BgGraphic.tsx b/apps/www/components/LaunchWeek/LW7BgGraphic.tsxindex b64650763d4..20508e89b07 100644--- a/apps/www/components/LaunchWeek/LW7BgGraphic.tsx+++ b/apps/www/components/LaunchWeek/LW7BgGraphic.tsx@@ -20,9 +20,9 @@ export default function LW7BgGraphic() {)return (- <div className="mt-8 relative h-[640px] overflow-hidden before:content[' '] before:absolute before:bottom-0 before:h-[400px] before:z-20 before:w-full before:bg-gradient-to-t before:from-[#1C1C1C] before:via-[#1C1C1C40] before:to-transparent">+ <div className="relative h-[640px] overflow-hidden before:content[' '] before:absolute before:bottom-0 before:h-[400px] before:z-20 before:w-full before:bg-gradient-to-t before:from-[#1C1C1C] before:via-[#1C1C1C40] before:to-transparent"><motion.div- className="absolute bottom-0 w-full h-full mt-40"+ className="absolute bottom-0 w-full h-full"style={{scale: graphicsScale,y: graphicsY,diff --git a/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsx b/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsxindex a7b6f48e51b..7425f212ef8 100644--- a/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsx+++ b/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsx@@ -44,9 +44,9 @@ export default function Ticket({useEffect(() => {if (ticketRef.current && !window.matchMedia('(pointer: coarse)').matches) {Tilt.init(ticketRef.current, {- glare: false,- max: 5,- 'max-glare': 0.16,+ glare: true,+ max: 4,+ 'max-glare': 0.1,'full-page-listening': true,})}@@ -61,11 +61,11 @@ export default function Ticket({return (<div- className="grid grid-cols-1 xl:grid-cols-12 gap-8 xl:gap-8 2xl:gap-16 p-4 bg-[#a988d748] rounded-2xl items-center h-[520px] lg:h-[400px] "+ className="grid grid-cols-1 xl:grid-cols-12 gap-8 xl:gap-8 2xl:gap-16 p-2 bg-[#a988d748] rounded-2xl items-stretch h-auto"id="wayfinding--ticket-visual-wrapper-container"><div- className={cn(styles['ticket-visual-wrapper'], 'col-span-8')}+ className={cn(styles['ticket-visual-wrapper'], 'flex items-stretch col-span-8')}id="wayfinding--ticket-visual-wrapper"><div@@ -74,8 +74,8 @@ export default function Ticket({styles['ticket-visual'],styleUtils.appear,styleUtils['appear-fourth'],- username ? 'h-[390px]' : 'h-[395px]',- 'relative mx-2 rounded-xl'+ username ? 'h-[420px]' : 'h-[395px]',+ 'relative flex flex-col gap-2 w-full h-full rounded-xl box-border bg-transparent overflow-hidden')}id="wayfinding--ticket-visual-outer-container">@@ -88,7 +88,7 @@ export default function Ticket({golden={golden}/>{username && (- <div className="mt-4">+ <div><TicketCopy username={username} /></div>)}@@ -111,7 +111,10 @@ export default function Ticket({</>)}</div>- <div ref={divRef} className="flex flex-col gap-6 col-span-4">+ <div+ ref={divRef}+ className="flex flex-col h-full justify-center gap-6 col-span-4 2xl:col-span-3"+ ><divclassName={`text-scale-1200diff --git a/apps/www/components/LaunchWeek/Ticket/TicketProfile.tsx b/apps/www/components/LaunchWeek/Ticket/TicketProfile.tsxindex 6d81d7d99e7..1efa381d4cb 100644--- a/apps/www/components/LaunchWeek/Ticket/TicketProfile.tsx+++ b/apps/www/components/LaunchWeek/Ticket/TicketProfile.tsx@@ -3,6 +3,7 @@ import cn from 'classnames'import TicketForm from './TicketForm'// import IconAvatar from '~/components/LaunchWeek/Ticket/icons/icon-avatar'import styles from './ticket-profile.module.css'+import Image from 'next/image'type TicketGenerationState = 'default' | 'loading'type Props = {@@ -25,7 +26,7 @@ export default function TicketProfile({golden = false,}: Props) {return (- <div className="grid items-center justify-center" id="wayfinding--ticket-middle">+ <div className="grid gap-4 items-center justify-center" id="wayfinding--ticket-middle">{username && (<spanclassName={cn('rounded-full inline-block mx-auto', styles.wrapper, styles.rounded, {@@ -33,9 +34,12 @@ export default function TicketProfile({})}>{username ? (- <img+ <Imagesrc={`https://github.com/${username}.png`}alt={username}+ layout="fill"+ objectFit="contain"+ priorityclassName={styles.image}/>) : (@@ -59,7 +63,7 @@ export default function TicketProfile({styles.name,{ [styles['name-blank']]: !username },{ [styles['name-golden']]: golden }- )} dark:text-white`}+ )} dark:text-white text-center`}><spanclassName={`${cn(styles.skeleton, styles.wrapper, {diff --git a/apps/www/components/LaunchWeek/Ticket/TicketVisual.tsx b/apps/www/components/LaunchWeek/Ticket/TicketVisual.tsxindex 7546309897d..edb1c3debcf 100644--- a/apps/www/components/LaunchWeek/Ticket/TicketVisual.tsx+++ b/apps/www/components/LaunchWeek/Ticket/TicketVisual.tsx@@ -43,7 +43,7 @@ export default function TicketVisual({styles.visual,golden ? styles['visual--gold'] : '',session ? styles['visual--logged-in'] : '',- 'flex relative flex-col justify-between rounded-xl bg-black ',+ 'flex relative flex-col flex-1 justify-between rounded-xl bg-black w-full h-full box-border',].join(' ')}style={{['--size' as string]: size,diff --git a/apps/www/components/LaunchWeek/Ticket/ticket-copy.tsx b/apps/www/components/LaunchWeek/Ticket/ticket-copy.tsxindex a66e1a062c1..ebf563df73f 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-md"+ className="bg-[#E6E8EB] text-scale-500 text-xs w-21 flex items-center cursor-pointer py-1 px-2 rounded-lg"ref={buttonRef}onClick={() => {navigator.clipboard.writeText(url).then(() => {@@ -69,7 +69,7 @@ export default function TicketCopy({ username }: Props) {className={cn(styleUtils.appear,styleUtils['appear-third'],- 'bg-scaleA-200 h-8 rounded-md border border-scale-1100 w-full'+ 'bg-scaleA-200 h-8 rounded-xl border border-scale-1100 w-full overflow-hidden')}id="wayfinding--ticket-copy">diff --git a/apps/www/components/LaunchWeek/Ticket/ticket-mono.tsx b/apps/www/components/LaunchWeek/Ticket/ticket-mono.tsxindex bd4271d2651..e867cd8835d 100644--- a/apps/www/components/LaunchWeek/Ticket/ticket-mono.tsx+++ b/apps/www/components/LaunchWeek/Ticket/ticket-mono.tsx@@ -6,10 +6,11 @@ export default function TicketMono({ golden = false }: { golden?: boolean }) {return (<svgwidth="100%"- height="100%"- viewBox="0 0 650 290"+ height="auto"+ viewBox="0 0 650 100"fill="none"xmlns="http://www.w3.org/2000/svg"+ preserveAspectRatio="none"><pathfillRule="evenodd"diff --git a/apps/www/components/LaunchWeek/Ticket/ticket.module.css b/apps/www/components/LaunchWeek/Ticket/ticket.module.cssindex 90e231168a0..ed55bf5a6a3 100644--- a/apps/www/components/LaunchWeek/Ticket/ticket.module.css+++ b/apps/www/components/LaunchWeek/Ticket/ticket.module.css@@ -123,6 +123,6 @@}.ticket-visual-wrapper {- border-radius: calc(16px * var(--size));+ /* border-radius: calc(16px * var(--size)); */width: 100%;}diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsxindex e047af8c40d..32cd7897baa 100644--- a/apps/www/pages/launch-week/index.tsx+++ b/apps/www/pages/launch-week/index.tsx@@ -107,7 +107,8 @@ export default function TicketHome({ users }: Props) {<div className="bg-[#1C1C1C] -mt-20"><div className="relative bg-lw7 pt-20"><div className="relative z-10">- <SectionContainer className="flex flex-col !pb-1 items-center lg:pt-32 gap-24">+ {/* <SectionContainer className="flex flex-col justify-between items-center min-h-[800px] h-[calc(100vh_-_75px)] gap-4"> */}+ <SectionContainer className="flex flex-col justify-between items-center !pb-16 gap-16"><LaunchWeekLogoHeader />{supabase && (diff --git a/apps/www/pages/launch-week/tickets/[username].tsx b/apps/www/pages/launch-week/tickets/[username].tsxindex 425129cc3e6..1b8904d7347 100644--- a/apps/www/pages/launch-week/tickets/[username].tsx+++ b/apps/www/pages/launch-week/tickets/[username].tsx@@ -66,7 +66,7 @@ export default function TicketShare({ user, users }: Props) {<div className="bg-[#1C1C1C] -mt-20"><div className="relative bg-lw7 pt-20"><div className="relative z-10">- <SectionContainer className="flex flex-col !pb-1 items-center lg:pt-32 gap-24">+ <SectionContainer className="flex flex-col justify-between items-center !pb-16 gap-16"><LaunchWeekLogoHeader /><TicketContainersupabase={supabase}diff --git a/apps/www/public/images/launchweek/seven/lw-7-bg.png b/apps/www/public/images/launchweek/seven/lw-7-bg.pngindex 285707ad369..aa02876c282 100644Binary files a/apps/www/public/images/launchweek/seven/lw-7-bg.png and b/apps/www/public/images/launchweek/seven/lw-7-bg.png differ