Skip to content

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

6.6 KB
Raw Blame
import { ReactNode } from 'react'

type StepLinkType = 'productHunt' | 'video' | 'docs' | 'xSpace' | 'blog' | 'podcast'

export interface StepLink {
  type: StepLinkType
  text?: string
  icon?: any
  href: string
}

export interface StepProps {
  title: string
  icon?: string
  badge?: string
  blog?: string
  docs?: string
  description?: string
  github?: string
  hackernews?: string
  product_hunt?: string
  thumb?: string
  url?: string
  video?: string
  twitter_spaces?: string
  className?: string
  hideInBlog?: boolean
  bg_layers?: {
    img?: string
    mobileImg?: string
    imgLight?: string
    mobileImgLight?: string
    className?: string
  }[]
  steps?: StepProps[] | []
  links?: StepLink[]
}

export interface WeekDayProps {
  id: string
  title: string
  date: string
  d: number
  dd: string
  published_at: string
  shipped: boolean // show card in layout
  isToday?: boolean // current active day
  hasCountdown?: boolean // use countdown only on "tomorrow"
  description: string | ReactNode
  links?: StepLink[] // types = 'productHunt' | 'video' | 'docs' | 'xSpace' | 'blog' | 'podcast'
  videoId?: string // youtube id
  videoThumbnail?: string
  blog: string
  steps: StepProps[] | []
}

export const endOfLW13Hackathon = '2024-12-07T23:59:59.999-08:00'

const days: (isDark?: boolean) => WeekDayProps[] = (isDark = true) => [
  {
    id: 'day-1',
    d: 1,
    dd: 'Mon',
    shipped: true,
    isToday: false,
    blog: '/blog/supabase-ai-assistant-v2',
    hasCountdown: false,
    date: '2 December',
    published_at: '2024-12-02T08:00:00.000-07:00',
    title: 'Supabase AI Assistant v2',
    description: 'Supabase AI Assistant v2',
    links: [
      {
        type: 'video',
        href: '_fdP-aaTHgw',
      },
      {
        type: 'xSpace',
        href: 'https://twitter.com/i/spaces/1OyKAZyeQyWGb',
      },
    ],
    steps: [
      {
        title: 'TBD',
        url: '#',
        blog: '#',
        bg_layers: [
          {
            img: '/images/launchweek/13/releases/d1/d1-assistant-dark.png',
            mobileImg: '/images/launchweek/13/releases/d1/d1-assistant-mobile-dark.png',
            imgLight: '/images/launchweek/13/releases/d1/d1-assistant-light.png',
            mobileImgLight: '/images/launchweek/13/releases/d1/d1-assistant-mobile-light.png',
          },
        ],
      },
    ],
  },
  {
    id: 'day-2',
    d: 2,
    dd: 'Tue',
    shipped: true,
    isToday: false,
    hasCountdown: false,
    blog: '/blog/edge-functions-background-tasks-websockets',
    date: '3 December',
    published_at: '2024-12-03T08:00:00.000-07:00',
    title: 'Supabase Functions: Background Tasks and WebSockets',
    description: (
      <>
        Supabase Functions:
        <br className="hidden sm:block" /> Background Tasks and WebSockets
      </>
    ),
    links: [
      {
        type: 'video',
        href: 'envrsJ8VfAU',
      },
      {
        type: 'xSpace',
        href: 'https://twitter.com/i/spaces/1yoJMyjzVWRJQ',
      },
    ],
    steps: [
      {
        title: '',
        bg_layers: [
          {
            img: '/images/launchweek/13/releases/d2/d2-functions-background-tasks-dark.png',
            mobileImg:
              '/images/launchweek/13/releases/d2/d2-functions-background-tasks-mobile-dark.png',
            imgLight: '/images/launchweek/13/releases/d2/d2-functions-background-tasks-light.png',
            mobileImgLight:
              '/images/launchweek/13/releases/d2/d2-functions-background-tasks-mobile-light.png',
          },
        ],
      },
    ],
  },
  {
    id: 'day-3',
    d: 3,
    dd: 'Wed',
    shipped: true,
    isToday: false,
    hasCountdown: false,
    blog: '/blog/supabase-cron',
    date: '4 December',
    published_at: '2024-12-04T08:00:00.000-07:00',
    title: 'Supabase Cron: Schedule Recurring Jobs in Postgres',
    description: (
      <>
        Supabase Cron:
        <br className="hidden sm:block" /> Schedule Recurring Jobs in Postgres
      </>
    ),
    links: [
      {
        type: 'video',
        href: 'miRQPbIJOuQ',
      },
      {
        type: 'xSpace',
        href: 'https://twitter.com/i/spaces/1eaKbaOAOdaxX',
      },
    ],
    steps: [
      {
        title: '',
        bg_layers: [
          {
            img: '/images/launchweek/13/releases/d3/d3-cron-dark.png',
            mobileImg: '/images/launchweek/13/releases/d3/d3-cron-mobile-dark.png',
            imgLight: '/images/launchweek/13/releases/d3/d3-cron-light.png',
            mobileImgLight: '/images/launchweek/13/releases/d3/d3-cron-mobile-light.png',
          },
        ],
      },
    ],
  },
  {
    id: 'day-4',
    d: 4,
    dd: 'Thu',
    shipped: true,
    isToday: false,
    hasCountdown: false,
    blog: '/blog/supabase-queues',
    date: '5 December',
    published_at: '2024-12-05T08:00:00.000-07:00',
    title: 'Supabase Queues',
    description: (
      <>
        Supabase Queues:
        <br className="hidden sm:block" /> Durable Message Queues with Guaranteed Delivery
      </>
    ),
    links: [
      {
        type: 'video',
        href: 'UEwfaElBnZk',
      },
      {
        type: 'xSpace',
        href: 'https://twitter.com/i/spaces/1ynKODOwObyGR',
      },
    ],
    steps: [
      {
        title: '',
        bg_layers: [
          {
            img: '/images/launchweek/13/releases/d4/d4-queues-dark.png',
            mobileImg: '/images/launchweek/13/releases/d4/d4-queues-mobile-dark.png',
            imgLight: '/images/launchweek/13/releases/d4/d4-queues-light.png',
            mobileImgLight: '/images/launchweek/13/releases/d4/d4-queues-mobile-light.png',
          },
        ],
      },
    ],
  },
  {
    id: 'day-5',
    d: 5,
    dd: 'Fri',
    shipped: true,
    isToday: false,
    hasCountdown: false,
    blog: '/blog/database-build-v2',
    date: '6 December',
    published_at: '2024-12-06T08:00:00.000-07:00',
    title: 'database.build v2: Bring-Your-Own-LLM',
    description: (
      <>
        database.build v2: <br className="hidden sm:block" />
        Bring-Your-Own-LLM
      </>
    ),
    links: [
      {
        type: 'video',
        href: 'IQ8xqmht-gk',
      },
      {
        type: 'xSpace',
        href: 'https://twitter.com/i/spaces/1zqKVYOEODYxB',
      },
    ],
    steps: [
      {
        title: '',
        bg_layers: [
          {
            img: '/images/launchweek/13/releases/d5/d5-database-build-v2-dark.png',
            mobileImg: '/images/launchweek/13/releases/d5/d5-database-build-v2-mobile-dark.png',
            imgLight: '/images/launchweek/13/releases/d5/d5-database-build-v2-light.png',
            mobileImgLight:
              '/images/launchweek/13/releases/d5/d5-database-build-v2-mobile-light.png',
          },
        ],
      },
    ],
  },
]

export default days