Skip to content

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

Form nudges, update og image

Terry Suttonffe891dbd5c7
diff --git a/apps/www/components/LaunchWeek/Ticket/form.module.css b/apps/www/components/LaunchWeek/Ticket/form.module.css
index fa1a4736cc3..6fe7abf9e9c 100644
--- a/apps/www/components/LaunchWeek/Ticket/form.module.css
+++ b/apps/www/components/LaunchWeek/Ticket/form.module.css
@@ -57,7 +57,6 @@
@media (min-width: 1200px) {
.formInfoLeft {
text-align: left;
- margin: inherit;
}
.formInfoCenter {
text-align: center;
diff --git a/apps/www/components/LaunchWeek/Ticket/form.tsx b/apps/www/components/LaunchWeek/Ticket/form.tsx
index 060baba2270..f5b62d1e5f5 100644
--- a/apps/www/components/LaunchWeek/Ticket/form.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/form.tsx
@@ -6,6 +6,7 @@ import LoadingDots from './loading-dots'
import styleUtils from './utils.module.css'
import styles from './form.module.css'
import useEmailQueryParam from '~/components/LaunchWeek/Ticket/hooks/use-email-query-param'
+import { IconLoader } from '~/../../packages/ui'
// import Captcha, { useCaptcha } from './captcha'
type FormState = 'default' | 'loading' | 'error'
@@ -154,12 +155,12 @@ export default function Form({ sharePage, align = 'Center' }: Props) {
useEmailQueryParam('email', setEmail)
return (
- <>
+ <div className="mt-16">
<div
className={cn(
styleUtils['appear-fifth'],
[styles[`formInfo${align}`]].join(' '),
- 'flex flex-col gap-2 items-center max-w-[420px] text-center !pb-4'
+ `grid gap-2 items-center max-w-[420px] !pb-4`
)}
>
<h3 className="text-scale-1200 text-base">Coming soon</h3>
@@ -195,7 +196,7 @@ export default function Form({ sharePage, align = 'Center' }: Props) {
border border-scale-300 bg-scaleA-200 h-10
focus:border-scale-500 focus:ring-scaleA-300
- text-scale-1200 text-sm rounded-full w-full px-5`}
+ text-scale-1000 text-sm rounded-full w-full px-5`}
type="email"
id="email-input-field"
value={email}
@@ -217,11 +218,17 @@ export default function Form({ sharePage, align = 'Center' }: Props) {
].join(' ')}
disabled={formState === 'loading'}
>
- Register
+ {formState === 'loading' ? (
+ <div className="flex items-center gap-2">
+ <IconLoader /> Registering
+ </div>
+ ) : (
+ 'Register'
+ )}
</button>
{/* <Captcha ref={captchaRef} onVerify={handleRegister} /> */}
</form>
)}
- </>
+ </div>
)
}
diff --git a/apps/www/components/LaunchWeek/Ticket/ticket-form.tsx b/apps/www/components/LaunchWeek/Ticket/ticket-form.tsx
index 14adabc39fd..a0b536d5e49 100644
--- a/apps/www/components/LaunchWeek/Ticket/ticket-form.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/ticket-form.tsx
@@ -67,7 +67,7 @@ export default function Form({ defaultUsername = '', setTicketGenerationState }:
<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"
+ 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)}
onClick={() => {
// if (formRef && formRef.current && isMobileOrTablet()) {
@@ -75,9 +75,9 @@ export default function Form({ defaultUsername = '', setTicketGenerationState }:
// }
}}
>
- <p className={`${username && 'text-scale-900'}`}>
+ <span className={`${username && 'text-scale-900'}`}>
{username ? 'Done!' : 'Connect with GitHub'}
- </p>
+ </span>
{username ? (
<span className={ticketFormStyles.checkIcon}>
{/* <CheckIcon color="#fff" size={24} /> */}
diff --git a/apps/www/components/LaunchWeek/Ticket/ticket.module.css b/apps/www/components/LaunchWeek/Ticket/ticket.module.css
index 23d4baad2fd..aebe6c9c713 100644
--- a/apps/www/components/LaunchWeek/Ticket/ticket.module.css
+++ b/apps/www/components/LaunchWeek/Ticket/ticket.module.css
@@ -1,5 +1,4 @@
.hero {
- font-size: 30px;
line-height: 1.15;
letter-spacing: -0.05em;
font-weight: 400;
@@ -9,7 +8,6 @@
@media (min-width: 768px) {
.hero {
- font-size: 30px;
line-height: 1;
/* font-weight: 800; */
/* max-width: 800px; */
@@ -140,7 +138,6 @@
grid-template-columns: 1fr 1fr;
}
.hero {
- font-size: 48px;
text-align: left;
}
.description {
diff --git a/apps/www/components/LaunchWeek/Ticket/ticket.tsx b/apps/www/components/LaunchWeek/Ticket/ticket.tsx
index 0c3dbcd0dfd..f27ba24a5e2 100644
--- a/apps/www/components/LaunchWeek/Ticket/ticket.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/ticket.tsx
@@ -53,11 +53,20 @@ export default function Ticket({ username, name, ticketNumber, sharePage, golden
})}
>
<div ref={divRef}>
- <div className={`${styles['ticket-text']} flex flex-col items-center xl:block`}>
- <h2 className={cn(styles.hero, styleUtils.appear, styleUtils['appear-first'])}>
+ <div
+ className={`${styles['ticket-text']} text-scale-1200 flex flex-col items-center xl:block`}
+ >
+ <h1
+ className={cn(
+ styles.hero,
+ styleUtils.appear,
+ styleUtils['appear-first'],
+ 'text-xl md:text-3xl'
+ )}
+ >
{sharePage ? (
name ? (
- <>{name}’s Ticket</>
+ <>{name}'s Ticket</>
) : (
<>{SITE_NAME}</>
)
@@ -70,12 +79,12 @@ export default function Ticket({ username, name, ticketNumber, sharePage, golden
Congratulations, you have a ticket!
</p>
)}
- </h2>
+ </h1>
<h2 className="text-sm dark:text-scale-900 text-[#7E868C] max-w-[380px]">
{sharePage ? (
- <>
+ <p className="mt-4">
Join {name ?? 'us'} on {DATE}.
- </>
+ </p>
) : golden ? (
<>Claim your ticket with GitHub and Tweet it to redeem your swag pack!</>
) : username ? (
@@ -91,10 +100,12 @@ export default function Ticket({ username, name, ticketNumber, sharePage, golden
</div>
<div className={cn(styleUtils.appear, styleUtils['appear-third'])}>
{!sharePage ? (
- <TicketForm
- defaultUsername={username ?? undefined}
- setTicketGenerationState={setTicketGenerationState}
- />
+ <>
+ <TicketForm
+ defaultUsername={username ?? undefined}
+ setTicketGenerationState={setTicketGenerationState}
+ />
+ </>
) : (
<Form sharePage align="Left" />
)}
diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsx
index 8ded02a15cc..3b2990d9063 100644
--- a/apps/www/pages/launch-week/index.tsx
+++ b/apps/www/pages/launch-week/index.tsx
@@ -61,7 +61,7 @@ export default function launchweek() {
url: `https://supabase.com/launch-week`,
images: [
{
- url: `https://supabase.com/images/launchweek/og-image.jpg`,
+ url: `https://supabase.com/images/launchweek/launch-week-6.jpg`,
},
],
}}