Skip to content

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

update spacing and server side props

Francesco Sansalvadore011249f4a653
diff --git a/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx b/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx
index 35925f5938f..54120a7f5c2 100644
--- a/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx
+++ b/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx
@@ -12,7 +12,7 @@ interface Props {
export default function TicketBrickWall({ users }: Props) {
const isMobile = useMobileViewport(768)
return (
- <div className="relative py-36">
+ <div className="relative pt-28 pb-20 md:py-40">
<div className="mx-auto bg-[#1C1C1C]">
<div className="max-w-[38rem] mx-auto">
<h2 className="radial-gradient-text-scale-500 text-center">
diff --git a/apps/www/lib/constants.ts b/apps/www/lib/constants.ts
index 6517c8e291d..49775567a96 100644
--- a/apps/www/lib/constants.ts
+++ b/apps/www/lib/constants.ts
@@ -12,7 +12,7 @@ export const SITE_URL =
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-7th, 2023'
+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 6! SupaSwag on its way!`
+export const TWEET_TEXT_GOLDEN = `Woop! I got a Golden Ticket for #SupaLaunchWeek 7! SupaSwag on its way!`
export const SITE_NAME = 'Supabase'
diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsx
index c263e441ee3..1a3c08fb0e9 100644
--- a/apps/www/pages/launch-week/index.tsx
+++ b/apps/www/pages/launch-week/index.tsx
@@ -1,5 +1,5 @@
import { NextSeo } from 'next-seo'
-import { GetStaticProps } from 'next'
+import { GetServerSideProps } from 'next'
import DefaultLayout from '~/components/Layouts/Default'
import SectionContainer from '~/components/Layouts/SectionContainer'
import TicketContainer from '~/components/LaunchWeek/Ticket/TicketContainer'
@@ -134,14 +134,19 @@ export default function TicketHome({ users }: Props) {
)
}
-export const getStaticProps: GetStaticProps = async () => {
+export const getServerSideProps: GetServerSideProps = async ({ req, res }) => {
// fetch users for the TicketBrickWall
- const { data: users } = await supabaseAdmin!.from('lw7_tickets_golden').select('*').limit(12)
+ const { data: users } = await supabaseAdmin!
+ .from('lw7_tickets_golden')
+ .select('*')
+ .order('createdAt', { ascending: false })
+ .limit(12)
+
+ res.setHeader('Cache-Control', 'public, s-maxage=10, stale-while-revalidate=59')
return {
props: {
users,
},
- revalidate: 5,
}
}