The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
scroll page when navigating to archive launch weeks
Francesco Sansalvadore9686c3462a54
diff --git a/apps/www/components/LaunchWeek/7/LaunchSection/TicketBrickWall.tsx b/apps/www/components/LaunchWeek/7/LaunchSection/TicketBrickWall.tsxindex ea7922d61f4..aadbdc5ca35 100644--- a/apps/www/components/LaunchWeek/7/LaunchSection/TicketBrickWall.tsx+++ b/apps/www/components/LaunchWeek/7/LaunchSection/TicketBrickWall.tsx@@ -35,7 +35,7 @@ export default function TicketBrickWall({ users }: Props) {{isMobile && <TicketBrickWallSlider users={users.slice(11, 17)} speed={16000} />}</div><div className="flex justify-center w-full mx-auto mt-2 lg:mt-4">- <Link href="/launch-week/tickets">+ <Link href="/launch-week/7/tickets"><a><Buttontype="outline"diff --git a/apps/www/components/LaunchWeek/8/LW8Meetups.tsx b/apps/www/components/LaunchWeek/8/LW8Meetups.tsxindex 4a7a8a3e7db..1d5fb14403c 100644--- a/apps/www/components/LaunchWeek/8/LW8Meetups.tsx+++ b/apps/www/components/LaunchWeek/8/LW8Meetups.tsx@@ -49,10 +49,9 @@ const LW8Meetups = ({ meetups }: { meetups?: Meetup[] }) => {return (<div className="max-w-6xl mx-auto grid grid-cols-1 xl:grid-cols-12 gap-8 xl:gap-8"><div className="col-span-1 xl:col-span-4 flex flex-col justify-center max-w-lg">- <h2 className="text-2xl sm:text-3xl xl:text-4xl tracking-[-.5px]">Join the community</h2>- <p className="text-scale-1000 text-base py-3 xl:max-w-md">- Celebrate LW8 at our first-ever live community meetups across various locations. Join the- fun, grab some swag, and meet the Supabase community.+ <h2 className="text-2xl sm:text-3xl xl:text-4xl tracking-[-.5px]">Community meetups</h2>+ <p className="text-[#9296AA] text-base py-3 xl:max-w-md">+ We celebrated LW8 with our first-ever live community meetups across various locations.</p></div><div className="col-span-1 xl:col-span-7 xl:col-start-6 w-full max-w-4xl flex flex-col justify-between items-stretch">diff --git a/apps/www/components/LaunchWeek/8/LWArchive.tsx b/apps/www/components/LaunchWeek/8/LWArchive.tsxindex aad42232934..3c3979af0f8 100644--- a/apps/www/components/LaunchWeek/8/LWArchive.tsx+++ b/apps/www/components/LaunchWeek/8/LWArchive.tsx@@ -1,9 +1,17 @@import React from 'react'import { StyledArticleBadge } from './Releases/components'import Image from 'next/image'-import Link from 'next/link'+import { useRouter } from 'next/router'const LWArchive = () => {+ const router = useRouter()++ const handleNavigate = (link: string) => {+ if (typeof window === 'undefined') return+ window.scrollTo(0, 0)+ router.push(link)+ }+return (<div className="w-full text-white flex flex-col lg:flex-row gap-8 lg:gap-16"><div className="lg:basis-1/3 flex flex-col items-start gap-4">@@ -14,36 +22,38 @@ const LWArchive = () => {</p></div><div className="lg:basis-2/3 relative grid grid-cols-1 xl:grid-cols-2 gap-4">- <Link href="/launch-week/6">- <a className="relative h-[160px] group w-full rounded-md md:rounded-lg transition-transform bg-[#030A0C] flex items-center justify-center border border-[#111618] hover:border-brand-800 overflow-hidden">- <span className="relative z-10 stroke-text inline-block text-transparent bg-clip-text bg-gradient-to-b from-scale-1200 to-scale-1000 text-7xl drop-shadow-lg">- 6- </span>- <div className="absolute inset-0 grayscale group-hover:grayscale-0">- <Image- src="/images/launchweek/archive/lw6.jpg"- alt="Launch Week 6"- layout="fill"- objectFit="cover"- />- </div>- </a>- </Link>- <Link href="/launch-week/7">- <a className="relative h-[160px] group w-full rounded-md md:rounded-lg transition-transform bg-[#030A0C] flex items-center justify-center border border-[#111718] hover:border-brand-1200 overflow-hidden">- <span className="relative z-10 stroke-text inline-block text-transparent bg-clip-text bg-gradient-to-b from-scale-1200 to-scale-1000 text-7xl drop-shadow-lg">- 7- </span>- <div className="absolute inset-0 grayscale group-hover:grayscale-0">- <Image- src="/images/launchweek/archive/lw7.jpg"- alt="Launch Week 7"- layout="fill"- objectFit="cover"- />- </div>- </a>- </Link>+ <button+ onClick={() => handleNavigate('/launch-week/6')}+ className="relative h-[160px] group w-full rounded-md md:rounded-lg transition-transform bg-[#030A0C] flex items-center justify-center border border-[#111618] hover:border-brand-800 overflow-hidden"+ >+ <span className="relative z-10 stroke-text inline-block text-transparent bg-clip-text bg-gradient-to-b from-scale-1200 to-scale-1000 text-7xl drop-shadow-lg">+ 6+ </span>+ <div className="absolute inset-0 grayscale group-hover:grayscale-0">+ <Image+ src="/images/launchweek/archive/lw6.jpg"+ alt="Launch Week 6"+ layout="fill"+ objectFit="cover"+ />+ </div>+ </button>+ <button+ onClick={() => handleNavigate('/launch-week/7')}+ className="relative h-[160px] group w-full rounded-md md:rounded-lg transition-transform bg-[#030A0C] flex items-center justify-center border border-[#111718] hover:border-brand-1200 overflow-hidden"+ >+ <span className="relative z-10 stroke-text inline-block text-transparent bg-clip-text bg-gradient-to-b from-scale-1200 to-scale-1000 text-7xl drop-shadow-lg">+ 7+ </span>+ <div className="absolute inset-0 grayscale group-hover:grayscale-0">+ <Image+ src="/images/launchweek/archive/lw7.jpg"+ alt="Launch Week 7"+ layout="fill"+ objectFit="cover"+ />+ </div>+ </button></div></div>)diff --git a/apps/www/components/LaunchWeek/8/Releases/index.tsx b/apps/www/components/LaunchWeek/8/Releases/index.tsxindex 6a5405b2e3e..db94c66a6f5 100644--- a/apps/www/components/LaunchWeek/8/Releases/index.tsx+++ b/apps/www/components/LaunchWeek/8/Releases/index.tsx@@ -369,7 +369,7 @@ export default function LW8Releases() {</div>)}</div>- <div className="border-b border-[#111718] scroll-mt-16" id="today">+ <div className="border-b border-[#111718] scroll-mt-16"><AccordionHeaderdate={day4.date}day={day4.d}@@ -463,7 +463,7 @@ export default function LW8Releases() {</div>)}</div>- <div className="border-b border-[#111718] scroll-mt-16" id="today">+ <div className="border-b border-[#111718] scroll-mt-16"><AccordionHeaderdate={day5.date}day={day5.d}diff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsxindex 758fca78a08..2658bbb9a2b 100644--- a/apps/www/components/Nav/index.tsx+++ b/apps/www/components/Nav/index.tsx@@ -198,7 +198,7 @@ const Nav = () => {return (<>- <Announcement link="/launch-week#today">+ <Announcement link="/launch-week"><LW8CountdownBanner /></Announcement><div className="sticky top-0 z-40 transform" style={{ transform: 'translate3d(0,0,999px)' }}>diff --git a/packages/ui/src/layout/banners/LWAnnouncement.tsx b/packages/ui/src/layout/banners/LWAnnouncement.tsxindex c424722ad59..20e456de5ce 100644--- a/packages/ui/src/layout/banners/LWAnnouncement.tsx+++ b/packages/ui/src/layout/banners/LWAnnouncement.tsx@@ -53,7 +53,7 @@ const LWAnnouncement = ({className={['border hover:border-scale-800 transition-colors', cardClassName].join(' ')}innerClassName={['!bg-opacity-70', cardInnerClassName].join(' ')}>- <Link href={`${LW_SITE_URL}#today`}>+ <Link href={LW_SITE_URL}><a className="flex flex-row justify-between items-center w-full h-full gap-2 text-left no-underline"><div className="relative flex-shrink flex items-center p-2 w-2/3 md:w-auto"><div className="flex flex-col gap-1 sm:pl-2">diff --git a/packages/ui/src/layout/banners/data/Announcement.json b/packages/ui/src/layout/banners/data/Announcement.jsonindex 541012dc0bc..abb5cec8362 100644--- a/packages/ui/src/layout/banners/data/Announcement.json+++ b/packages/ui/src/layout/banners/data/Announcement.json@@ -2,6 +2,6 @@"show": true,"text": "Supabase Launch Week 8","launchDate": "2023-08-07T09:00:00.000-07:00",- "link": "https://supabase.com/launch-week#today",+ "link": "https://supabase.com/launch-week","badge": "Get your ticket"}