The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
lw7: add gradient border to tickets and fix share url params
Francesco Sansalvadore3ae90d071994
diff --git a/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx b/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsxindex 7404c69608a..f8e130a0d4c 100644--- a/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx+++ b/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx@@ -28,10 +28,7 @@ export default function TicketBrickWall({ users }: Props) {after:content-[' '] after:absolute after:inset-0 after:left-auto after:w-1/4 after:bg-gradient-to-l after:from-[#1C1C1C] after:to-[#1C1C1C00] after:z-10 after:pointer-events-none">- <TicketBrickWallSlider- users={users.slice(0, isMobile ? 5 : 7)}- xOffset={isMobile ? 50 : 250}- />+ <TicketBrickWallSlider users={users.slice(0, isMobile ? 5 : 7)} /><TicketBrickWallSliderusers={users.slice(isMobile ? 5 : 7, isMobile ? 11 : 14)}reversediff --git a/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWallSlider.tsx b/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWallSlider.tsxindex cadf3639515..9fc6fd5751e 100644--- a/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWallSlider.tsx+++ b/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWallSlider.tsx@@ -13,11 +13,10 @@ SwiperCore.use([Autoplay])interface Props {users: UserData[]reverse?: boolean- xOffset?: numberspeed?: number}-export function TicketBrickWallSlider({ users, reverse, xOffset = 250, speed = 10000 }: Props) {+export function TicketBrickWallSlider({ users, reverse, speed = 10000 }: Props) {const ref = useRef(null)const [swiperInstace, setSwiperInstance] = useState<SwiperCore | any | null>(null)const { width } = useWindowSize()@@ -29,6 +28,7 @@ export function TicketBrickWallSlider({ users, reverse, xOffset = 250, speed = 1}/${BUCKET_FOLDER_VERSION}/${username}.png`useEffect(() => {+ // trigger autplay if viewport resizeif (swiperInstace) swiperInstace?.autoplay?.run()}, [width])@@ -66,18 +66,21 @@ export function TicketBrickWallSlider({ users, reverse, xOffset = 250, speed = 1{users.map((user, i) => (<SwiperSlide key={user.username}><Link href={`/launch-week/tickets/${user.username}`} key={user.username}>- <a className="relative !w-[230px] md:w-[450px] !h-[200px] transform scale-100 md:hover:scale-[101%] transition-transform">- <div className="relative inset-0 w-full pt-[50%] transform rounded-md md:rounded-lg overflow-hidden">- <Image- src={getOgUrl(user.username!, !!user.golden)}- alt={user.username}- layout="fill"- objectFit="cover"- quality={50}- objectPosition="center"- placeholder="blur"- blurDataURL="/images/blur.png"- />+ <a className="relative !w-[230px] md:w-[450px] !h-[200px] rounded-md md:rounded-lg transition-transform">+ <div className="relative w-full pt-[50%] transform rounded-md md:rounded-lg overflow-hidden bg-gradient-to-b from-[#ffffff60] to-[#ffffff10]">+ <div className="absolute inset-[1px] w-full h-full rounded-md md:rounded-lg overflow-hidden p-[1px]">+ <Image+ src={getOgUrl(user.username!, !!user.golden)}+ alt={user.username}+ layout="fill"+ objectFit="cover"+ quality={50}+ objectPosition="center"+ placeholder="blur"+ blurDataURL="/images/blur.png"+ className="absolute inset-[1px] rounded-md md:rounded-lg"+ />+ </div></div></a></Link>diff --git a/apps/www/components/LaunchWeek/Ticket/TicketActions.tsx b/apps/www/components/LaunchWeek/Ticket/TicketActions.tsxindex ee11806c371..4ccdda9a235 100644--- a/apps/www/components/LaunchWeek/Ticket/TicketActions.tsx+++ b/apps/www/components/LaunchWeek/Ticket/TicketActions.tsx@@ -24,7 +24,7 @@ export default function TicketActions({const [loading, setLoading] = useState(false)const downloadLink = useRef<HTMLAnchorElement>()const permalink = (medium: string) =>- encodeURIComponent(`${SITE_URL}/tickets/?lw=7${username}${golden ? `&golden=true` : ''}`)+ encodeURIComponent(`${SITE_URL}/tickets/${username}?lw=7${golden ? `&golden=true` : ''}`)const text = encodeURIComponent(golden ? TWEET_TEXT_GOLDEN : TWEET_TEXT)const { userData } = useConfData()const tweetUrl = `https://twitter.com/intent/tweet?url=${permalink(diff --git a/apps/www/components/LaunchWeek/Ticket/TicketHeader.tsx b/apps/www/components/LaunchWeek/Ticket/TicketHeader.tsxindex c31bf6e010c..da3d1e79401 100644--- a/apps/www/components/LaunchWeek/Ticket/TicketHeader.tsx+++ b/apps/www/components/LaunchWeek/Ticket/TicketHeader.tsx@@ -9,10 +9,10 @@ export default function TicketHeader({ size }: Props) {<div className="flex w-full justify-center pt-4 md:pt-6" id="wayfinding--ticket-header"><div className="flex flex-col md:flex-row gap-1 justify-center items-center md:gap-5"><img- className={size === 'small' ? 'w-[165px]' : 'w-[224px]'}+ className={size === 'small' ? 'w-[165px]' : 'w-[220px] md:w-[230px]'}src={`/images/launchweek/ticket-header-logo.png`}/>- <span className="text-white text-xs">{DATE}</span>+ <span className="text-white text-xs md:text-sm">{DATE}</span></div></div>)diff --git a/apps/www/components/LaunchWeek/Ticket/TicketVisual.tsx b/apps/www/components/LaunchWeek/Ticket/TicketVisual.tsxindex 24d927d2ae8..2ccb302c7f6 100644--- a/apps/www/components/LaunchWeek/Ticket/TicketVisual.tsx+++ b/apps/www/components/LaunchWeek/Ticket/TicketVisual.tsx@@ -1,8 +1,6 @@import styles from './ticket-visual.module.css'import TicketProfile from './TicketProfile'import TicketNumber from './TicketNumber'-// import TicketMono from './ticket-mono'-// import TicketMonoMobile from './ticket-mono-mobile'import Tilt from 'vanilla-tilt'import useConfData from '~/components/LaunchWeek/Ticket/hooks/use-conf-data'import TicketHeader from './TicketHeader'@@ -74,7 +72,7 @@ export default function TicketVisual({golden ? styles['visual--gold'] : '',session ? styles['visual--logged-in'] : '',!golden && 'overflow-hidden',- 'flex relative flex-col justify-between w-full pt-[150%] md:pt-[50%] before:rounded-2xl h-0 box-border',+ 'flex relative flex-col justify-between w-full pt-[150%] md:pt-[50%] bg-gradient-to-b from-[#ffffff80] to-[#ffffff20] before:rounded-2xl h-0 box-border',].join(' ')}style={{['--size' as string]: size,@@ -100,7 +98,7 @@ export default function TicketVisual({<TicketNumber number={ticketNumber} /><divid="wayfinding--ticket-dynamic-bg-image"- className="absolute inset-0 z-0 rounded-2xl overflow-hidden"+ className="absolute inset-[1px] z-0 rounded-2xl overflow-hidden">{username && (<Image@@ -112,7 +110,6 @@ export default function TicketVisual({className="absolute inset-[1px] z-[1]"/>)}-<Imagesrc={golden ? ticketBg.gold.image : ticketBg.regular.image}layout="fill"diff --git a/apps/www/components/LaunchWeek/Ticket/TicketsGrid.tsx b/apps/www/components/LaunchWeek/Ticket/TicketsGrid.tsxindex 569a72222d3..6d5c38c02be 100644--- a/apps/www/components/LaunchWeek/Ticket/TicketsGrid.tsx+++ b/apps/www/components/LaunchWeek/Ticket/TicketsGrid.tsx@@ -34,7 +34,7 @@ export default function TicketsGrid({ loadedUsers, isLoading, pageCount }: Propsreturn (<Link href={`/launch-week/tickets/${user.username}`} key={`${user.username}-000${i}`}><motion.a- className="relative w-full rounded-lg sm:rounded-xl overflow-hidden hover:cursor-pointer"+ className="relative w-full p-[1px] rounded-lg sm:rounded-xl overflow-hidden hover:cursor-pointer bg-gradient-to-b from-[#ffffff60] to-[#ffffff10]"initial={{ opacity: 0, y: 20, x: isOddRow ? 30 : -30 }}animate={{opacity: !isTablet && (i === 0 || i === 4) ? 0 : 1,@@ -47,7 +47,7 @@ export default function TicketsGrid({ loadedUsers, isLoading, pageCount }: Props},}}>- <div className="relative inset-0 w-full pt-[50%]">+ <div className="relative inset-0 w-full pt-[50%] bg-[#2f2e2e] overflow-hidden rounded-lg sm:rounded-xl"><Imagesrc={getOgUrl(user.username!, !!user.golden)}alt={user.username}@@ -66,7 +66,7 @@ export default function TicketsGrid({ loadedUsers, isLoading, pageCount }: Props{isLoading &&Array.from({ length: pageCount }, (_, i) => (<motion.div- className="relative rounded-xl bg-scale-500 h-0 w-full pt-[50%] shimmering-loader"+ className="relative rounded-lg sm:rounded-xl bg-scale-500 h-0 w-full pt-[50%] bg-gradient-to-b from-[#ffffff60] to-[#ffffff10] p-[1px] overflow-hidden"initial={{ opacity: 0, y: 20 }}animate={{opacity: 1,@@ -77,7 +77,9 @@ export default function TicketsGrid({ loadedUsers, isLoading, pageCount }: Propsdelay: i / 15,},}}- />+ >+ <div className="absolute inset-0 shimmering-loader bg-[#1C1C1C]" />+ </motion.div>))}</div>)