The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
more layout updates
Jonathan Summers-Muirc4b4c1303a93
diff --git a/apps/www/components/LaunchWeek/Ticket/TicketContainer.tsx b/apps/www/components/LaunchWeek/Ticket/TicketContainer.tsxindex 4ca2852200e..3903ad8bfbc 100644--- a/apps/www/components/LaunchWeek/Ticket/TicketContainer.tsx+++ b/apps/www/components/LaunchWeek/Ticket/TicketContainer.tsx@@ -33,19 +33,17 @@ export default function Conf({setPageState,}}>- <ConfContainer>- {pageState === 'registration' && !sharePage ? (- <Form />- ) : (- <Ticket- username={userData.username}- name={userData.name}- ticketNumber={userData.ticketNumber}- sharePage={sharePage}- golden={userData.golden}- />- )}- </ConfContainer>+ {pageState === 'registration' && !sharePage ? (+ <Form />+ ) : (+ <Ticket+ username={userData.username}+ name={userData.name}+ ticketNumber={userData.ticketNumber}+ sharePage={sharePage}+ golden={userData.golden}+ />+ )}</ConfDataContext.Provider>)}diff --git a/apps/www/components/LaunchWeek/Ticket/conf-container.tsx b/apps/www/components/LaunchWeek/Ticket/conf-container.tsxindex 4fef91261f1..227361424b9 100644--- a/apps/www/components/LaunchWeek/Ticket/conf-container.tsx+++ b/apps/www/components/LaunchWeek/Ticket/conf-container.tsx@@ -1,5 +1,5 @@import styles from './conf-container.module.css'export default function ConfContainer({ children }: { children: React.ReactNode }) {- return <div>{children}</div>+ return children}diff --git a/apps/www/components/LaunchWeek/Ticket/form.tsx b/apps/www/components/LaunchWeek/Ticket/form.tsxindex 2a5016bcae9..ff62ab95164 100644--- a/apps/www/components/LaunchWeek/Ticket/form.tsx+++ b/apps/www/components/LaunchWeek/Ticket/form.tsx@@ -188,7 +188,10 @@ export default function Form({ sharePage, align = 'Center' }: Props) {</div></div>) : (- <form className="relative mx-auto xl:mx-0" onSubmit={onSubmit}>+ <form+ className="relative mx-auto xl:mx-0 w-full md:w-auto md:min-w-[320px] md:max-w-[420px]"+ onSubmit={onSubmit}+ ><inputclassName={`transition-alldiff --git a/apps/www/components/LaunchWeek/Ticket/ticket-actions.tsx b/apps/www/components/LaunchWeek/Ticket/ticket-actions.tsxindex b613f6e22d8..2333b6610e6 100644--- a/apps/www/components/LaunchWeek/Ticket/ticket-actions.tsx+++ b/apps/www/components/LaunchWeek/Ticket/ticket-actions.tsx@@ -1,13 +1,8 @@-import { useState, useRef, useEffect } from 'react'-import cn from 'classnames'+import { useEffect, useRef, useState } from 'react'import { SITE_URL, TWEET_TEXT, TWEET_TEXT_GOLDEN } from '~/lib/constants'-// import IconTwitter from '~/components/LaunchWeek/Ticket/icons/icon-twitter'-// import IconLinkedin from '~/components/LaunchWeek/Ticket/icons/icon-linkedin'-// import IconDownload from '~/components/LaunchWeek/Ticket/icons/icon-download'-import LoadingDots from './loading-dots'-import styleUtils from './utils.module.css'-import styles from './ticket-actions.module.css'+import { IconDownload, IconLinkedin, IconTwitter } from 'ui'import useConfData from '~/components/LaunchWeek/Ticket//hooks/use-conf-data'+import LoadingDots from './loading-dots'type Props = {username: string@@ -45,7 +40,7 @@ export default function TicketActions({ username, golden = false }: Props) {const ActionStyle = ({ children }: any) => {return (- <div className="rounded-full bg-scale-300 dark:bg-[#2E2E2E] px-5 py-1 dark:text-white text-scale-900 border dark:border-[#3E3E3E] border-scale-400">+ <div className="rounded-full bg-white dark:bg-scale-400 dark:hover:bg-scale-500 py-1 px-3 border border-scale-500 dark:text-white text-sm mb-1 transition-all ease-out hover:bg-scale-500">{children}</div>)@@ -54,14 +49,28 @@ export default function TicketActions({ username, golden = false }: Props) {return (<><ActionStyle>- <a href={tweetUrl} rel="noopener noreferrer" target="_blank">- {/* <IconTwitter width={24} /> Tweet it! */}+ <a+ href={tweetUrl}+ rel="noopener noreferrer"+ target="_blank"+ className="flex items-center gap-2"+ >+ <div className="text-scale-900">+ <IconTwitter size={12} strokeWidth={1.5} />+ </div>Tweet it</a></ActionStyle><ActionStyle>- <a href={linkedInUrl} rel="noopener noreferrer" target="_blank">- {/* <IconLinkedin width={20} /> Share on LinkedIn */}+ <a+ href={linkedInUrl}+ rel="noopener noreferrer"+ target="_blank"+ className="flex items-center gap-2"+ >+ <div className="text-scale-900">+ <IconLinkedin size={12} strokeWidth={1.5} />+ </div>Share on Linkedin</a></ActionStyle>@@ -77,7 +86,11 @@ export default function TicketActions({ username, golden = false }: Props) {setLoading(true)}}download="ticket.png"+ className="flex items-center gap-2">+ <div className="text-scale-900">+ <IconDownload size={12} strokeWidth={1.5} />+ </div>Download{loading ? <LoadingDots size={4} /> : <>{/* <IconDownload width={24} /> Download */}</>}</a>diff --git a/apps/www/components/LaunchWeek/Ticket/ticket-copy.tsx b/apps/www/components/LaunchWeek/Ticket/ticket-copy.tsxindex ced856224d3..26a347099e7 100644--- a/apps/www/components/LaunchWeek/Ticket/ticket-copy.tsx+++ b/apps/www/components/LaunchWeek/Ticket/ticket-copy.tsx@@ -26,7 +26,7 @@ export default function TicketCopy({ username }: Props) {console.log({ copied })- const copiedText = <span className="absolute -right-2 text-xs">Copied!</span>+ const copiedText = <span className="text-xs text-scale-1200">Copied!</span>// background: none;// outline: none;@@ -43,7 +43,7 @@ export default function TicketCopy({ username }: Props) {<buttontype="button"name="Copy"- className="w-24 flex items-center -mr-4 cursor-pointer z-10"+ className="text-scale-900 hover:text-scale-1200 w-21 flex items-center cursor-pointer"ref={buttonRef}onClick={() => {navigator.clipboard.writeText(url).then(() => {@@ -54,51 +54,50 @@ export default function TicketCopy({ username }: Props) {})}}>- {copied ? <IconCheck /> : <IconCopy />}+ {copied ? (+ <div className="text-brand-900">+ <IconCheck size={14} />+ </div>+ ) : (+ <IconCopy size={14} />+ )}</button>)return (- <div className={cn(styles.wrapper, styleUtils.appear)}>- <div className="xs:flex gap-4 items-center max-w-md justify-between hidden sm:visible">- <div className="font-bold">Your ticket URL:</div>- <div- className={cn(styles['mobile-copy'], {- [styles['mobile-copy-disabled']]: !copyEnabled,- })}- >- {copied && copiedText}- {copyButton}+ <div+ className={cn(+ styleUtils.appear,+ styleUtils['appear-third'],+ 'bg-scaleA-300 h-8 rounded border border-scale-400 w-full'+ )}+ >+ <div className="px-3 h-full flex items-center gap-3 w-full truncate relative">+ <div className="text-scale-900 text-sm hidden lg:flex">Your ticket URL:</div>+ <div className="flex items-center truncate shrink-0">+ <span+ className={['text-xs font-mono text-scale-1200 truncate shrink-0'].join(' ')}+ ref={scrollRef}+ onScroll={() => {+ if (!scrolling) {+ setScrolling(true)+ const animationFrame = requestAnimationFrame(() => {+ const scrollableWidth =+ (scrollRef.current?.scrollWidth || 0) - (scrollRef.current?.clientWidth || 0)+ setFadeOpacity(+ (scrollableWidth - (scrollRef.current?.scrollLeft || 0)) /+ (scrollableWidth || 1)+ )+ cancelAnimationFrame(animationFrame)+ setScrolling(false)+ })+ }+ }}+ >+ {url}+ </span></div>- </div>- <div className="xs:flex items-center ml-4 hidden sm:visible">- <span- className={styles.url}- ref={scrollRef}- onScroll={() => {- if (!scrolling) {- setScrolling(true)- const animationFrame = requestAnimationFrame(() => {- const scrollableWidth =- (scrollRef.current?.scrollWidth || 0) - (scrollRef.current?.clientWidth || 0)- setFadeOpacity(- (scrollableWidth - (scrollRef.current?.scrollLeft || 0)) / (scrollableWidth || 1)- )- cancelAnimationFrame(animationFrame)- setScrolling(false)- })- }- }}- >- {url}- </span>- <span- className={cn(styles.fade, {- [styles['desktop-copy-disabled']]: !copyEnabled,- })}- style={{ opacity: fadeOpacity }}- />- <div className="relative">+ <div className="absolute right-3 with-auto height-auto flex items-center">{copied && copiedText}{copyButton}</div>diff --git a/apps/www/components/LaunchWeek/Ticket/ticket-form.tsx b/apps/www/components/LaunchWeek/Ticket/ticket-form.tsxindex e6ffb84d539..8ded0d8cdf1 100644--- a/apps/www/components/LaunchWeek/Ticket/ticket-form.tsx+++ b/apps/www/components/LaunchWeek/Ticket/ticket-form.tsx@@ -64,22 +64,20 @@ export default function Form({ defaultUsername = '', setTicketGenerationState }:}}className="flex flex-col items-center xl:block">- <div>- <button- type="submit"- className="rounded-full bg-scale-300 py-1 px-3 border border-scale-400 dark:text-white text-sm mb-1 transition-all hover:bg-scale-400"- disabled={formState === 'loading' || Boolean(username)}- >- <span className={`${username && 'text-scale-900'}`}>- {username ? 'Done!' : 'Connect with GitHub'}- </span>- {username ? <span className={ticketFormStyles.checkIcon}></span> : null}- </button>- {!username && (- <p className={'text-xs text-scale-700 dark:text-scale-900 pl-1'}>- Only public info will be used.- </p>- )}+ <div className="flex flex-col gap-3">+ <div>+ <button+ type="submit"+ className="rounded-full bg-scale-400 py-1 px-3 border border-scale-500 dark:text-white text-sm mb-1 transition-all ease-out hover:bg-scale-500"+ disabled={formState === 'loading' || Boolean(username)}+ >+ <span className={`${username && 'text-scale-900'}`}>+ {username ? 'Done!' : 'Connect with GitHub'}+ </span>+ {username ? <span className={ticketFormStyles.checkIcon}></span> : null}+ </button>+ </div>+ {!username && <p className={'text-xs text-scale-900'}>Only public info will be used.</p>}</div></form>)diff --git a/apps/www/components/LaunchWeek/Ticket/ticket.tsx b/apps/www/components/LaunchWeek/Ticket/ticket.tsxindex cb0cf46b487..06c0d5d350b 100644--- a/apps/www/components/LaunchWeek/Ticket/ticket.tsx+++ b/apps/www/components/LaunchWeek/Ticket/ticket.tsx@@ -48,32 +48,18 @@ export default function Ticket({ username, name, ticketNumber, sharePage, golden// golden = truereturn (- <div- className={cn(styles['ticket-layout'], {- [styles['ticket-share-layout']]: sharePage,- })}- >- <div ref={divRef}>+ <div className="grid grid-cols-1 xl:grid-cols-2 gap-8 xl:gap-16">+ <div ref={divRef} className="flex flex-col gap-6"><div- className={`${styles['ticket-text']}+ className={`text-scale-1200flex flex-col--items-centerxl:items-start-gap-3`}>- <h1- className={cn(- styles.hero,- styleUtils.appear,- styleUtils['appear-first'],- 'text-xl md:text-3xl'- )}- >+ <h1 className={cn(styleUtils.appear, styleUtils['appear-first'], 'text-xl md:text-3xl')}>{sharePage ? (name ? (<p className="text-3xl dark:text-scale-1200 tracking-[0.02rem]">{name}’s Ticket</p>@@ -90,7 +76,7 @@ export default function Ticket({ username, name, ticketNumber, sharePage, golden</p>)}</h1>- <h2 className="text-base dark:text-scale-1000">+ <h2 className="text-base dark:text-scale-1000 max-w-[520px]">{sharePage ? (<p>Join {name ?? 'us'} on {DATE}.@@ -137,11 +123,11 @@ export default function Ticket({ username, name, ticketNumber, sharePage, golden{!sharePage && (<>{username ? (- <div>- <div className={`${styles['ticket-actions']} gap-10`}>+ <div className="flex flex-col gap-6 py-16">+ <div className={`flex gap-3 items-center justify-center`}><TicketActions username={username} golden={golden} /></div>- <div className={styles['ticket-copy']}>+ <div><TicketCopy username={username} /></div></div>diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsxindex ba84ae5d921..59f3bc752ae 100644--- a/apps/www/pages/launch-week/index.tsx+++ b/apps/www/pages/launch-week/index.tsx@@ -58,15 +58,17 @@ export default function launchweek() {/><DefaultLayout><SectionContainer className="flex flex-col !pb-24 items-center lg:pt-32 gap-32">- <div className="flex flex-col gap-3">- <img- src="/images/launchweek/launchweek-logo--light.svg"- className="w-40 dark:hidden lg:w-80"- />- <img- src="/images/launchweek/launchweek-logo--dark.svg"- className="hidden w-40 dark:block lg:w-80"- />+ <div className="flex flex-col justify-center gap-3">+ <div className="flex justify-center">+ <img+ src="/images/launchweek/launchweek-logo--light.svg"+ className="flex w-40 dark:hidden lg:w-80"+ />+ <img+ src="/images/launchweek/launchweek-logo--dark.svg"+ className="hidden w-40 dark:flex lg:w-80"+ />+ </div><p className="text-scale-1100 text-sm text-center">Dec 12 – 16 at 8 AM PT | 11 AM ET</p></div><TicketContainerdiff --git a/apps/www/pages/launch-week/tickets/[username].tsx b/apps/www/pages/launch-week/tickets/[username].tsxindex d873753b74d..cc679ac5ce4 100644--- a/apps/www/pages/launch-week/tickets/[username].tsx+++ b/apps/www/pages/launch-week/tickets/[username].tsx@@ -58,7 +58,7 @@ export default function TicketShare({ username, ticketNumber, name, golden }: Pr}}/><DefaultLayout>- <SectionContainer className="flex flex-col gap-0 pb-0 md:gap-16 lg:gap-16">+ <SectionContainer className="flex flex-col gap-0 pb-0 md:gap-16 lg:gap-16 items-center xl:items-start"><imgsrc="/images/launchweek/launchweek-logo--light.svg"className="md:40 w-40 dark:hidden lg:w-80"