Skip to content

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

LW7: small fixes UI and type fixes

Francesco Sansalvadore263026f070ff
diff --git a/apps/www/components/LaunchWeek/LW7BgGraphic.tsx b/apps/www/components/LaunchWeek/LW7BgGraphic.tsx
index 030fab57a1a..6a34bab8b68 100644
--- a/apps/www/components/LaunchWeek/LW7BgGraphic.tsx
+++ b/apps/www/components/LaunchWeek/LW7BgGraphic.tsx
@@ -21,7 +21,7 @@ export default function LW7BgGraphic() {
// Map scrollYProgress from these values:
[0, 0.5],
// Into these scale values:
- [1, isMobile ? 1.1 : 1.4]
+ [1, isMobile ? 1.1 : 1.2]
)
const graphicsY = useTransform(
scrollYProgress,
diff --git a/apps/www/components/LaunchWeek/LaunchSection/LaunchWeekLogoHeader.tsx b/apps/www/components/LaunchWeek/LaunchSection/LaunchWeekLogoHeader.tsx
index d580df24120..1034dc156ac 100644
--- a/apps/www/components/LaunchWeek/LaunchSection/LaunchWeekLogoHeader.tsx
+++ b/apps/www/components/LaunchWeek/LaunchSection/LaunchWeekLogoHeader.tsx
@@ -22,7 +22,7 @@ export function LaunchWeekLogoHeader() {
<Image src="/images/launchweek/seven/lw7-seven.svg" width={40} height={40} />
</span>
</h1>
- <p className="text-white text-sm text-center">April 3rd – 7th at 6 AM PT | 9 AM ET</p>
+ <p className="text-white text-lg text-center">April 3rd – 7th at 6 AM PT | 9 AM ET</p>
</motion.div>
</div>
)
diff --git a/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsx b/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsx
index 4ab05a50f01..cedc7368377 100644
--- a/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/ActualTicket.tsx
@@ -24,7 +24,7 @@ type Props = {
ticketNumber: UserData['ticketNumber']
name: UserData['name']
golden: UserData['golden']
- bgImageId: UserData['bgImageId']
+ bgImageId: UserData['bg_image_id']
referrals: number
sharePage?: boolean
}
diff --git a/apps/www/components/LaunchWeek/Ticket/TicketContainer.tsx b/apps/www/components/LaunchWeek/Ticket/TicketContainer.tsx
index 6206db12516..b05cb21727e 100644
--- a/apps/www/components/LaunchWeek/Ticket/TicketContainer.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/TicketContainer.tsx
@@ -42,7 +42,7 @@ export default function Conf({
ticketNumber={userData.ticketNumber}
sharePage={sharePage}
golden={userData.golden}
- bgImageId={userData.bgImageId}
+ bgImageId={userData.bg_image_id}
referrals={userData.referrals ?? 0}
/>
)}
diff --git a/apps/www/components/LaunchWeek/Ticket/TicketHeader.tsx b/apps/www/components/LaunchWeek/Ticket/TicketHeader.tsx
index ae3185a7a31..286be3ab0ce 100644
--- a/apps/www/components/LaunchWeek/Ticket/TicketHeader.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/TicketHeader.tsx
@@ -7,12 +7,12 @@ interface Props {
export default function TicketHeader({ size }: Props) {
return (
<div className="flex w-full justify-center pt-4" id="wayfinding--ticket-header">
- <div className="flex items-center gap-6">
+ <div className="flex flex-col xs:flex-row gap-1 justify-center items-center xs:gap-5">
<img
className={size === 'small' ? 'w-[165px]' : 'w-[224px]'}
src={`/images/launchweek/ticket-header-logo.png`}
/>
- <span className="text-white text-[10px]">{DATE}</span>
+ <span className="text-white text-xs">{DATE}</span>
{/*<div id="wayfinding--TicketInfo-container">
<TicketInfoFooter
golden={golden}
diff --git a/apps/www/components/LaunchWeek/Ticket/TicketProfile.tsx b/apps/www/components/LaunchWeek/Ticket/TicketProfile.tsx
index 4e6aeceae6d..2937a807991 100644
--- a/apps/www/components/LaunchWeek/Ticket/TicketProfile.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/TicketProfile.tsx
@@ -68,7 +68,7 @@ export default function TicketProfile({
<div
className={`${cn(styles.skeleton, styles.wrapper, {
[styles.show]: ticketGenerationState === 'loading',
- })} text-4xl bg-gradient-to-r ${
+ })} text-2xl sm:text-4xl bg-gradient-to-r ${
golden ? 'to-[#ffe8af]' : 'to-slate-900'
} from-white via-white bg-clip-text text-transparent text-center`}
>
diff --git a/apps/www/components/LaunchWeek/Ticket/hooks/use-conf-data.ts b/apps/www/components/LaunchWeek/Ticket/hooks/use-conf-data.ts
index 9c9ffbea789..fc8d1df8fbb 100644
--- a/apps/www/components/LaunchWeek/Ticket/hooks/use-conf-data.ts
+++ b/apps/www/components/LaunchWeek/Ticket/hooks/use-conf-data.ts
@@ -8,9 +8,9 @@ export type UserData = {
ticketNumber?: number
username?: string
name?: string
- golden?: boolean | string
+ golden?: boolean
referrals?: number
- bgImageId?: number | string
+ bg_image_id?: number
sharedOnTwitter?: string
sharedOnLinkedIn?: string
}
diff --git a/apps/www/components/LaunchWeek/Ticket/ticket-visual.module.css b/apps/www/components/LaunchWeek/Ticket/ticket-visual.module.css
index 78a6ad4fff7..b13d1cce098 100644
--- a/apps/www/components/LaunchWeek/Ticket/ticket-visual.module.css
+++ b/apps/www/components/LaunchWeek/Ticket/ticket-visual.module.css
@@ -46,10 +46,10 @@
/* border-image-source: linear-gradient(to left, var(--gold-secondary), var(--gold-accent)); */
}
-.visual--logged-in {
+/* .visual--logged-in {
background-image: url('/images/launchweek/seven/lw-7-bg.svg');
background-size: cover;
-}
+} */
@media (max-width: 768px) {
.visual {
diff --git a/apps/www/pages/launch-week/tickets/[username].tsx b/apps/www/pages/launch-week/tickets/[username].tsx
index c2f208d7053..d7e23fe02d7 100644
--- a/apps/www/pages/launch-week/tickets/[username].tsx
+++ b/apps/www/pages/launch-week/tickets/[username].tsx
@@ -29,7 +29,7 @@ const supabaseAdmin = createClient(
)
export default function TicketShare({ user, users }: Props) {
- const { username, ticketNumber, name, golden, referrals, bgImageId } = user
+ const { username, ticketNumber, name, golden, referrals, bg_image_id } = user
const { isDarkMode } = useTheme()
const [supabase] = useState(() =>
@@ -79,7 +79,7 @@ export default function TicketShare({ user, users }: Props) {
ticketNumber,
golden,
referrals,
- bgImageId,
+ bg_image_id,
}}
sharePage
/>
@@ -110,7 +110,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
let ticketNumber: number | null | undefined
let golden = false
let referrals = 0
- let bgImageId
+ let bg_image_id
// fetch users for the TicketBrickWall
const { data: users } = await supabaseAdmin!.from('lw7_tickets').select().limit(8)
@@ -125,7 +125,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
name = user?.name
ticketNumber = user?.ticketNumber
golden = user?.golden ?? false
- bgImageId = user?.bg_image_id ?? 1
+ bg_image_id = user?.bg_image_id ?? 1
referrals = user?.referrals ?? 0
}
@@ -138,7 +138,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
ticketNumber: ticketNumber || SAMPLE_TICKET_NUMBER,
golden,
referrals,
- bgImageId,
+ bg_image_id,
},
users,
},