mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 22:59:11 +03:00
clean up on empty className attrib Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
94 lines
3.4 KiB
TypeScript
94 lines
3.4 KiB
TypeScript
import React from 'react'
|
|
import Image from 'next/image'
|
|
import Link from 'next/link'
|
|
import { buildDays, mainDays } from './Releases/data'
|
|
|
|
const LWXSummary = () => {
|
|
return (
|
|
<div className="w-full border bg-alternative-200 flex flex-col rounded-lg text-foreground-lighter mt-12">
|
|
<div className="w-full p-4 flex justify-between items-center">
|
|
<Link
|
|
href="/launch-week"
|
|
className="flex items-center gap-1.5 leading-none uppercase text-xs"
|
|
>
|
|
<span className="text-foreground tracking-[1px]">Launch Week</span>{' '}
|
|
<Image
|
|
src="/images/launchweek/lwx/logos/lwx_logo.svg"
|
|
alt="Supabase Launch Week X icon"
|
|
width={16}
|
|
height={16}
|
|
className="w-3 h-3"
|
|
/>
|
|
</Link>
|
|
<div className="font-mono uppercase tracking-wide text-xs">11-15 Dec</div>
|
|
</div>
|
|
<div className="pb-4 border-t p-4">
|
|
<div className="font-mono uppercase text-xs text-foreground tracking-wide mb-3">
|
|
Main Stage
|
|
</div>
|
|
<ul className="flex flex-col gap-2">
|
|
{mainDays.map(
|
|
(day, i: number) =>
|
|
day.shipped && (
|
|
<ol key={day.id}>
|
|
<Link href={day.blog} className="group flex py-1 gap-2 hover:text-foreground">
|
|
<span className="shrink-0 text-sm font-mono uppercase leading-6">
|
|
Day {i + 1} -
|
|
</span>
|
|
<span className="leading-6">{day.description}</span>
|
|
</Link>
|
|
</ol>
|
|
)
|
|
)}
|
|
</ul>
|
|
</div>
|
|
<div className="w-[calc(100%+2px)] bg-surface-100 flex flex-col gap-2 -m-px border rounded-lg">
|
|
<div className="p-4">
|
|
<div className="font-mono uppercase text-xs text-foreground tracking-wide">
|
|
Build Stage
|
|
</div>
|
|
<ul className="flex flex-col gap-2 mt-4">
|
|
{buildDays.map(
|
|
(day, i: number) =>
|
|
day.is_shipped && (
|
|
<ol key={day.id}>
|
|
<Link
|
|
href={day.links[0].url}
|
|
className="relative flex items-center justify-between group w-full py-1 hover:text-foreground"
|
|
>
|
|
<span className="relative">
|
|
<span className="font-mono uppercase mr-2">
|
|
{i + 1 < 10 ? '0' : ''}
|
|
{i + 1} -
|
|
</span>
|
|
{day.title}
|
|
</span>
|
|
</Link>
|
|
</ol>
|
|
)
|
|
)}
|
|
<ol className="border-t pt-4 mt-2">
|
|
<Link
|
|
href="/blog/supabase-hackathon-lwx"
|
|
className="relative flex items-center justify-between group w-full py-1 hover:text-foreground"
|
|
>
|
|
Supabase Launch Week X Hackathon
|
|
</Link>
|
|
</ol>
|
|
<ol>
|
|
<Link
|
|
href="/blog/community-meetups-lwx"
|
|
className="relative flex items-center justify-between group w-full py-1 hover:text-foreground"
|
|
>
|
|
Supabase Launch Week X Community Meetups
|
|
</Link>
|
|
</ol>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default LWXSummary
|