Skip to content

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

lw8: archive and meetups components

Francesco Sansalvadore5cf5d1d3c578
diff --git a/apps/www/components/LaunchWeek/8/LWArchive.tsx b/apps/www/components/LaunchWeek/8/LWArchive.tsx
new file mode 100644
index 00000000000..f7a9d528e0c
--- /dev/null
+++ b/apps/www/components/LaunchWeek/8/LWArchive.tsx
@@ -0,0 +1,20 @@
+import React from 'react'
+import { StyledArticleBadge } from './Releases/components'
+
+const LWArchive = () => {
+ return (
+ <div>
+ <div className="text-center relative z-10 text-white">
+ <div className="max-w-[38rem] mx-auto flex flex-col items-center gap-4 px-4">
+ <StyledArticleBadge>Throwback</StyledArticleBadge>
+ <h2 className="text-4xl">Previous Launch Weeks</h2>
+ <p className="text-[#9296AA]">
+ Explore what has been announced in the past and relive those moments.
+ </p>
+ </div>
+ </div>
+ </div>
+ )
+}
+
+export default LWArchive
diff --git a/apps/www/components/LaunchWeek/8/Releases/index.tsx b/apps/www/components/LaunchWeek/8/Releases/index.tsx
index ef25ae7da45..df12e309933 100644
--- a/apps/www/components/LaunchWeek/8/Releases/index.tsx
+++ b/apps/www/components/LaunchWeek/8/Releases/index.tsx
@@ -144,7 +144,9 @@ export default function LW8Releases() {
const showAll = false
const publishedSections =
days
- .filter((day: WeekDayProps) => Date.parse(day.publishedAt) <= Date.now() || showAll)
+ .filter(
+ (day: WeekDayProps) => day.d === 0 || Date.parse(day.publishedAt) <= Date.now() || showAll
+ )
.map((day: WeekDayProps) => day.d.toString()) ?? []
const prereleaseShipped = Date.parse(preRelease.publishedAt) <= Date.now()
@@ -253,6 +255,7 @@ export default function LW8Releases() {
day={preRelease.dd}
title={preRelease.title}
shipped={true}
+ shippable={false}
publishedAt={preRelease.publishedAt}
/>
}
@@ -275,7 +278,7 @@ export default function LW8Releases() {
<div
className="top-0 absolute group-hover/3:scale-105 opacity-60 group-hover/3:opacity-100 w-full h-full -z-10 transition-all duration-500"
style={{
- background: `radial-gradient(100% 100% at 80% 110%, #6F13A450, transparent)`,
+ background: `radial-gradient(100% 100% at 80% 110%, #6F13A450, #030A0C)`,
}}
/>
<div className="flex flex-col items-center gap-2 min-w-[300px]">
@@ -318,7 +321,7 @@ export default function LW8Releases() {
<div
className="top-0 absolute group-hover/3:scale-105 opacity-60 group-hover/3:opacity-100 w-full h-full -z-10 transition-all duration-500"
style={{
- background: `radial-gradient(100% 100% at 80% 110%, #6F13A450, transparent)`,
+ background: `radial-gradient(100% 100% at 80% 110%, #6F13A450, #030A0C)`,
}}
/>
<div className="flex flex-col items-center gap-2 min-w-[300px]">
@@ -364,7 +367,7 @@ export default function LW8Releases() {
<div
className="top-0 absolute group-hover/3:scale-105 opacity-60 group-hover/3:opacity-100 w-full h-full -z-10 transition-all duration-500"
style={{
- background: `radial-gradient(100% 100% at 80% 110%, #6F13A450, transparent)`,
+ background: `radial-gradient(100% 100% at 80% 110%, #6F13A450, #030A0C)`,
}}
/>
<div className="flex flex-col items-center gap-2 min-w-[300px]">
diff --git a/apps/www/package.json b/apps/www/package.json
index 6b6fb4b06bf..d12b97bf9f4 100644
--- a/apps/www/package.json
+++ b/apps/www/package.json
@@ -81,7 +81,7 @@
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "^17.0.11",
"@types/react-syntax-highlighter": "^15.5.6",
- "@types/three": "^0.154.0",
+ "@types/three": "^0.136.0",
"autoprefixer": "^10.4.14",
"config": "*",
"file-loader": "^6.2.0",
diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsx
index 93185cfb128..360903e99f9 100644
--- a/apps/www/pages/launch-week/index.tsx
+++ b/apps/www/pages/launch-week/index.tsx
@@ -13,22 +13,19 @@ import { PageState, ConfDataContext, UserData } from '~/components/LaunchWeek/ho
import SectionContainer from '~/components/Layouts/SectionContainer'
import { LaunchWeekLogoHeader } from '~/components/LaunchWeek/8/LaunchWeekLogoHeader'
import { Meetup } from '~/components/LaunchWeek/8/LW8Meetups'
+import LW8CalloutsSection from '~/components/LaunchWeek/8/LW8CalloutsSection'
import { useTheme } from 'common/Providers'
import 'swiper/swiper.min.css'
-<<<<<<< HEAD
-import Head from 'next/head'
-import LW8CalloutsSection from '../../components/LaunchWeek/8/LW8CalloutsSection'
-=======
->>>>>>> 26b990905 (lw8: pre release page setup)
const AnimatedParticles = dynamic(
() => import('~/components/LaunchWeek/8/AnimatedParticles/ParticlesCanvas')
)
const LW8Releases = dynamic(() => import('~/components/LaunchWeek/8/Releases'))
-const TicketContainer = dynamic(() => import('~/components/LaunchWeek/8/Ticket/TicketContainer'))
const LW8Meetups = dynamic(() => import('~/components/LaunchWeek/8/LW8Meetups'))
+const LWArchive = dynamic(() => import('~/components/LaunchWeek/8/LWArchive'))
+const TicketContainer = dynamic(() => import('~/components/LaunchWeek/8/Ticket/TicketContainer'))
const LaunchWeekPrizeSection = dynamic(
() => import('~/components/LaunchWeek/8/LaunchWeekPrizeSection')
)
@@ -160,15 +157,25 @@ export default function TicketHome({ users, meetups }: Props) {
</SectionContainer>
<div className="absolute w-full aspect-[1/1] md:aspect-[1.5/1] lg:aspect-[2.5/1] inset-0 z-0 pointer-events-none">
<Image
- src="/images/launchweek/8/LW8-gradient.png"
+ src="/images/launchweek/8/stars.svg"
+ alt="starts background"
layout="fill"
objectFit="cover"
- objectPosition="top"
- priority
+ className="opacity-70"
draggable={false}
/>
</div>
</div>
+ <div className="absolute w-full aspect-[1/1] md:aspect-[1.5/1] lg:aspect-[2.5/1] inset-0 z-0">
+ <Image
+ src="/images/launchweek/8/LW8-gradient.png"
+ layout="fill"
+ objectFit="cover"
+ objectPosition="top"
+ priority
+ draggable={false}
+ />
+ </div>
</div>
<div id="twitter-spaces">
@@ -181,9 +188,13 @@ export default function TicketHome({ users, meetups }: Props) {
<LW8Meetups meetups={meetups} />
</SectionContainer>
- <div className="relative !w-full max-w-[100vw] !px-4 sm:max-w-xl md:max-w-4xl lg:max-w-7xl z-20 flex flex-col justify-around items-center pt-16 gap-2 md:gap-4 !mx-auto">
+ <SectionContainer>
<LW8Releases />
- </div>
+ </SectionContainer>
+
+ <SectionContainer>
+ <LWArchive />
+ </SectionContainer>
<div className="relative !w-full max-w-[100vw] min-h-[400px] !px-4 sm:max-w-xl md:max-w-4xl lg:max-w-7xl z-20 flex flex-col justify-around items-center !py-4 md:!py-8 lg:!pb-0 gap-2 md:gap-4 !mx-auto">
{supabase && (
@@ -196,8 +207,8 @@ export default function TicketHome({ users, meetups }: Props) {
</div>
)}
</div>
- <SectionContainer className="!pt-8 !px-4 w-full">
- <LaunchWeekPrizeSection className="" />
+ <SectionContainer className="!px-4 w-full">
+ <LaunchWeekPrizeSection />
</SectionContainer>
{users && <TicketBrickWall users={users.slice(0, 17)} />}
</div>
@@ -212,15 +223,10 @@ export const getServerSideProps: GetServerSideProps = async () => {
// fetch users for the TicketBrickWall
const { data: users } = await supabaseAdmin!
.from('lw8_tickets_golden')
-<<<<<<< HEAD
.select('username, golden')
.limit(1000)
const { data: meetups } = await supabaseAdmin!.from('lw8_meetups').select('*')
-=======
- .select('username, golden', { count: 'exact' })
- .limit(17)
->>>>>>> 26b990905 (lw8: pre release page setup)
return {
props: {
diff --git a/package-lock.json b/package-lock.json
index b370d57c4c8..433b08e03a4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -374,7 +374,7 @@
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "^17.0.11",
"@types/react-syntax-highlighter": "^15.5.6",
- "@types/three": "^0.154.0",
+ "@types/three": "^0.136.0",
"autoprefixer": "^10.4.14",
"config": "*",
"file-loader": "^6.2.0",
@@ -399,6 +399,12 @@
"react": ">=16"
}
},
+ "apps/www/node_modules/@types/three": {
+ "version": "0.136.0",
+ "resolved": "https://registry.npmjs.org/@types/three/-/three-0.136.0.tgz",
+ "integrity": "sha512-yNBe5U3B+eSZU+pmiDxeq3hDyF+ftYghFkY3y0ayZrF8SjoUMVIRXqEfJX39wTSDsiY4/+tkmKgNxhhIKbnxeQ==",
+ "dev": true
+ },
"apps/www/node_modules/three": {
"version": "0.136.0",
"resolved": "https://registry.npmjs.org/three/-/three-0.136.0.tgz",
@@ -14240,12 +14246,6 @@
"devOptional": true,
"license": "MIT"
},
- "node_modules/@tweenjs/tween.js": {
- "version": "18.6.4",
- "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-18.6.4.tgz",
- "integrity": "sha512-lB9lMjuqjtuJrx7/kOkqQBtllspPIN+96OvTCeJ2j5FEzinoAXTdAMFnDAQT1KVPRlnYfBrqxtqP66vDM40xxQ==",
- "dev": true
- },
"node_modules/@types/acorn": {
"version": "4.0.6",
"license": "MIT",
@@ -15055,12 +15055,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/@types/stats.js": {
- "version": "0.17.0",
- "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.0.tgz",
- "integrity": "sha512-9w+a7bR8PeB0dCT/HBULU2fMqf6BAzvKbxFboYhmDtDkKPiyXYbjoe2auwsXlEFI7CFNMF1dCv3dFH5Poy9R1w==",
- "dev": true
- },
"node_modules/@types/strip-ansi": {
"version": "5.2.1",
"dev": true,
@@ -15084,20 +15078,6 @@
"@types/jest": "*"
}
},
- "node_modules/@types/three": {
- "version": "0.154.0",
- "resolved": "https://registry.npmjs.org/@types/three/-/three-0.154.0.tgz",
- "integrity": "sha512-IioqpGhch6FdLDh4zazRn3rXHj6Vn2nVOziJdXVbJFi9CaI65LtP9qqUtpzbsHK2Ezlox8NtsLNHSw3AQzucjA==",
- "dev": true,
- "dependencies": {
- "@tweenjs/tween.js": "~18.6.4",
- "@types/stats.js": "*",
- "@types/webxr": "*",
- "fflate": "~0.6.9",
- "lil-gui": "~0.17.0",
- "meshoptimizer": "~0.18.1"
- }
- },
"node_modules/@types/uglify-js": {
"version": "3.17.1",
"dev": true,
@@ -15176,12 +15156,6 @@
"@types/node": "*"
}
},
- "node_modules/@types/webxr": {
- "version": "0.5.2",
- "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.2.tgz",
- "integrity": "sha512-szL74BnIcok9m7QwYtVmQ+EdIKwbjPANudfuvDrAF8Cljg9MKUlIoc1w5tjj9PMpeSH3U1Xnx//czQybJ0EfSw==",
- "dev": true
- },
"node_modules/@types/yargs": {
"version": "15.0.15",
"dev": true,
@@ -21697,12 +21671,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/fflate": {
- "version": "0.6.10",
- "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.6.10.tgz",
- "integrity": "sha512-IQrh3lEPM93wVCEczc9SaAOvkmcoQn/G8Bo1e8ZPlY3X3bnAxWaBdvTdvM1hP62iZp0BXWDy4vTAy4fF0+Dlpg==",
- "dev": true
- },
"node_modules/figgy-pudding": {
"version": "3.5.2",
"license": "ISC"
@@ -26553,12 +26521,6 @@
"immediate": "~3.0.5"
}
},
- "node_modules/lil-gui": {
- "version": "0.17.0",
- "resolved": "https://registry.npmjs.org/lil-gui/-/lil-gui-0.17.0.tgz",
- "integrity": "sha512-MVBHmgY+uEbmJNApAaPbtvNh1RCAeMnKym82SBjtp5rODTYKWtM+MXHCifLe2H2Ti1HuBGBtK/5SyG4ShQ3pUQ==",
- "dev": true
- },
"node_modules/lilconfig": {
"version": "2.1.0",
"license": "MIT",
@@ -27625,12 +27587,6 @@
}
}
},
- "node_modules/meshoptimizer": {
- "version": "0.18.1",
- "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-0.18.1.tgz",
- "integrity": "sha512-ZhoIoL7TNV4s5B6+rx5mC//fw8/POGyNxS/DZyCJeiZ12ScLfVwRE/GfsxwiTkMYYD5DmK2/JXnEVXqL4rF+Sw==",
- "dev": true
- },
"node_modules/methods": {
"version": "1.1.2",
"dev": true,