Skip to content

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

fix: social copy and links.

thorwebdev20d2c33c052c
diff --git a/apps/www/components/LaunchWeek/Ticket/TicketActions.tsx b/apps/www/components/LaunchWeek/Ticket/TicketActions.tsx
index fcffadd6582..99a9fa40fea 100644
--- a/apps/www/components/LaunchWeek/Ticket/TicketActions.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/TicketActions.tsx
@@ -24,13 +24,20 @@ export default function TicketActions({
const [imgReady, setImgReady] = useState(false)
const [loading, setLoading] = useState(false)
const downloadLink = useRef<HTMLAnchorElement>()
- const permalink = encodeURIComponent(`${SITE_URL}/tickets/${username}?v=6`)
+ const permalink = (medium: string) =>
+ encodeURIComponent(
+ `${SITE_URL}/tickets/${username}?utm_source=lw7-ticket&utm_medium=${medium}&utm_campaign=launch-week-7&utm_content=${username}${
+ golden && `&golden=true`
+ }`
+ )
const text = encodeURIComponent(golden ? TWEET_TEXT_GOLDEN : TWEET_TEXT)
const { userData } = useConfData()
- const tweetUrl = `https://twitter.com/intent/tweet?url=${permalink}&via=supabase&text=${text}`
- const linkedInUrl = `https://www.linkedin.com/sharing/share-offsite/?url=${permalink}`
+ const tweetUrl = `https://twitter.com/intent/tweet?url=${permalink(
+ 'twitter'
+ )}&via=supabase&text=${text}`
+ const linkedInUrl = `https://www.linkedin.com/sharing/share-offsite/?url=${permalink('linkedin')}`
const downloadUrl = `https://obuldanrptloktxcffvn.functions.supabase.co/lw7-ticket-og?username=${encodeURIComponent(
- userData.username ?? ''
+ username
)}`
const params = useParams()
const sharePage = params.username
diff --git a/apps/www/lib/constants.ts b/apps/www/lib/constants.ts
index 49775567a96..1351e76cf72 100644
--- a/apps/www/lib/constants.ts
+++ b/apps/www/lib/constants.ts
@@ -13,6 +13,7 @@ export const SITE_ORIGIN = new URL(SITE_URL).origin
export const TWITTER_USER_NAME = 'supabase'
export const COOKIE = 'supa-launch-week-ticke-user-id'
export const DATE = 'April 3rd 2023'
-export const TWEET_TEXT = 'Got my ticket for #SupaLaunchWeek 6!'
-export const TWEET_TEXT_GOLDEN = `Woop! I got a Golden Ticket for #SupaLaunchWeek 7! SupaSwag on its way!`
+export const TWEET_TEXT =
+ 'It’s almost #SupaLaunchWeek 7! Generate your unique ticket here 👇 you can also win a mechanical keyboard 🤩'
+export const TWEET_TEXT_GOLDEN = `I turned my #SupaLaunchWeek 7 ticket Gold! Thrice the chance to win a mechanical keyboard 🤩 `
export const SITE_NAME = 'Supabase'