diff --git a/apps/www/components/LaunchWeek/ReferralIndicator.tsx b/apps/www/components/LaunchWeek/ReferralIndicator.tsx new file mode 100644 index 00000000000..7d0cd71a645 --- /dev/null +++ b/apps/www/components/LaunchWeek/ReferralIndicator.tsx @@ -0,0 +1,30 @@ +import React from 'react' + +interface Props { + referrals: number +} + +export default function ReferralIndicator({ referrals }: Props) { + let text + + switch (referrals) { + case 0: + text = '1x chance' + break + case 1: + text = '2x chance' + break + case 2: + text = '3x chance' + break + default: + text = 'You have more than three referrals.' + } + return ( +
{name}'s ticket
- ) : ( -{SITE_NAME}
- ) + {name ? ( +
+ You're in the draw!
+ Now make it gold.
+
Congratulations!
) : ( @@ -142,13 +142,19 @@ export default function Ticket({ > ) : ( <> -- We have some fantastic swag up for grabs, including 3x limited edition mechanical - keyboard that you won't want to miss. -
- {username && ( + {username ? ( + <> ++ Why stop there? Increase your chances of winning by sharing your unique + ticket. Get sharing! +
+ +- {`<<<<`} Referrals: {referrals} {`>>>>`} + We have some fantastic swag up for grabs, including 3x limited edition + mechanical keyboard that you won't want to miss.
)} > diff --git a/apps/www/components/LaunchWeek/lw7_days.json b/apps/www/components/LaunchWeek/lw7_days.json new file mode 100644 index 00000000000..e961beefa62 --- /dev/null +++ b/apps/www/components/LaunchWeek/lw7_days.json @@ -0,0 +1,114 @@ +[ + { + "title": "Docs Updated", + "shipped": true, + "date": "12 Dec 2022", + "description": "Supabase Docs", + "d": 1, + "dd": "Monday", + "youtube_id": "OpPOaJI_Z28", + "blogpost": "https://supabase.com/blog/new-supabase-docs-built-with-nextjs", + "docs": "https://supabase.com/docs", + "steps": [ + { + "title": "Supabase Docs", + "blog": "/blog/new-supabase-docs-built-with-nextjs", + "docs": "/docs", + "isNew": true, + "description": "" + } + ] + }, + { + "title": "Image Processing: Resize V2 + CDN", + "shipped": true, + "date": "13 Dec 2022", + "description": "Image Transformations", + "d": 2, + "dd": "Tuesday", + "youtube_id": "iqZlPtl_b-I", + "blogpost": "https://supabase.com/blog", + "docs": "https://supabase.com/docs", + "steps": [ + { + "title": "Image Transformations", + "blog": "/blog/storage-image-resizing-smart-cdn", + "docs": "/docs/guides/storage/image-transformations", + "isNew": true, + "description": "" + }, + { + "title": "Smart CDN", + "description": "Faster asset delivery, now even faster.", + "blog": "/blog/storage-image-resizing-smart-cdn", + "docs": "/docs/guides/storage/cdn", + "isNew": true + } + ] + }, + { + "title": "Multi-factor Authentication", + "shipped": true, + "date": "14 Dec 2022", + "description": "Multi-factor Authentication", + "d": 3, + "dd": "Wednesday", + "youtube_id": "CGZr5tybW18", + "blogpost": "https://supabase.com/blog", + "docs": "https://supabase.com/docs", + "steps": [ + { + "title": "Multi-factor Authentication", + "blog": "/blog/mfa-auth-via-rls", + "docs": "/docs/guides/auth/auth-mfa", + "isNew": false, + "description": "" + } + ] + }, + { + "title": "Supabase Wrappers - FDW Framework", + "shipped": true, + "date": "15 Dec 2022", + "description": "Supabase Wrappers", + "d": 4, + "dd": "Thursday", + "youtube_id": "QA2qC5F-4OU", + "blogpost": "/blog/postgres-foreign-data-wrappers-rust", + "docs": "https://supabase.com/docs", + "steps": [ + { + "title": "Supabase Wrappers", + "blog": "/blog/postgres-foreign-data-wrappers-rust", + "docs": "https://supabase.github.io/wrappers/", + "isNew": true, + "description": "Connect Postgres to external systems with Postgres Foreign Data Wrappers" + } + ] + }, + { + "title": "Supabase Vault Release", + "shipped": true, + "date": "16 Dec 2022", + "description": "Vault Release", + "d": 5, + "dd": "Friday", + "youtube_id": "6bGQotxisoY", + "blogpost": "https://supabase.com/blog", + "docs": "https://supabase.com/docs", + "steps": [ + { + "title": "Vault Release", + "blog": "/blog/vault-now-in-beta", + "isNew": true, + "description": "" + }, + { + "title": "Transparent Column Encryption", + "description": "Faster asset delivery, now even faster.", + "blog": "/blog/transparent-column-encryption-with-postgres", + "isNew": true + } + ] + } +] diff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsx index 63fb3f51ea1..fe549dc6acc 100644 --- a/apps/www/components/Nav/index.tsx +++ b/apps/www/components/Nav/index.tsx @@ -196,8 +196,8 @@ const Nav = () => { } absolute top-0 h-full w-full opacity-80`} >