mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 23:29:08 +03:00
* make dark: selector work again
* create new LWX page and move previous to lw8 folder
* set up initial sign in with github flow
* set up ticket layout
* clean up TicketForm
* connect to lwx_tickets table and sign in with github
* update landing page content
* ticket layout
* share actions
* add prize section
* fix lw7 types
* fix lw7 types
* update content
* update realtime icon color
* lwx og ticket
* cleanup
* fix types in previous lw
* fix ticket copy icon
gst
* add lwx Promo banners
* golden ticket
* lwx-ticket-og
* update announcement banner
* update
* update colors
* update swag prize
* add padding to keyboard image
* update text
gst
* update ticket bg and countdown colons
* clean up
* update lwx cta color
* update functions
* platinum
* update og
* update og
* add og image and update supabase logo
* add ticket customization form
* update meta description
* fix import
* fix import
* bg
* fix realtime
* add hover interaction on lwx shape
* svg loader
* setTimeout on window.open to fix safari
* eager load ticket assets
* eager load background
* use next/link for ticketActions
* design PromoToast
* promoToast in docs
* fix referral link
* fix stuff
* update og functions
* update og functions
* update PT timezone shift
* update ticketing flow layout
* update ticketing flow layout
* prefetch right user link
* toggle ticket customization form
* update og regular bg
* remove lwx title when ticket
* remove edit button on ticket in share page
* optimize og generation function
* asd
* fix www announcement banner
* spacing
* center share link
* update mobile ticket bg
* maybe add logic to hide presence if low traffic
* add lwx favicon
* truncate shareable url
* fix keyboard image ratio
* update discount copywriting
* add keyboard controls to customization form
* update lwx favicon
* update lwx favicon
* update FaviconImports
* update tickets page
* stickers
* Revert "stickers"
This reverts commit d7d7d9beb9.
* update lockfile to fix turbo darwin 64 bug
* stickers
* make x always visible on mobile
* format favicon manifest
* update social sharing text
* fix typo
* update social share text
* remove window.open
* update promo toast info
---------
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
51 lines
1.9 KiB
TypeScript
51 lines
1.9 KiB
TypeScript
import Link from 'next/link'
|
|
import React, { useEffect, useRef, useState } from 'react'
|
|
import { Button } from 'ui'
|
|
import { useBreakpoint } from 'common/hooks/useBreakpoint'
|
|
import { UserData } from '~/components/LaunchWeek/hooks/use-conf-data'
|
|
import { TicketBrickWallSlider } from './TicketBrickWallSlider'
|
|
|
|
type user = UserData
|
|
|
|
interface Props {
|
|
users: user[]
|
|
}
|
|
|
|
export default function TicketBrickWall({ users }: Props) {
|
|
const isMobile = useBreakpoint(768)
|
|
|
|
return (
|
|
<div className="relative pb-16 pt-16 md:pt-28">
|
|
<div className="mx-auto">
|
|
<div className="max-w-[38rem] mb-8 mx-auto">
|
|
<h2 className="text-center radial-gradient-text-500">Tickets from the community</h2>
|
|
</div>
|
|
<div
|
|
className="grid py-4 relative
|
|
before:content-[' '] before:absolute before:inset-0 before:right-auto before:w-1/4 before:bg-gradient-to-r before:from-[#020405] before:to-[#02040500] before:z-10 before:pointer-events-none
|
|
after:content-[' '] after:absolute after:inset-0 after:left-auto after:w-1/4 after:bg-gradient-to-l after:from-[#020405] after:to-[#02040500] after:z-10 after:pointer-events-none
|
|
"
|
|
>
|
|
<TicketBrickWallSlider users={users.slice(0, isMobile ? 5 : 7)} />
|
|
<TicketBrickWallSlider
|
|
users={users.slice(isMobile ? 5 : 7, isMobile ? 11 : 14)}
|
|
reverse
|
|
/>
|
|
{isMobile && <TicketBrickWallSlider users={users.slice(11, 17)} speed={6000} />}
|
|
</div>
|
|
<div className="flex justify-center w-full mx-auto mt-2 lg:mt-4">
|
|
<Button
|
|
asChild
|
|
type="outline"
|
|
size="medium"
|
|
onClick={() => window.scrollTo(0, 0)}
|
|
className="text-white"
|
|
>
|
|
<Link href="/launch-week/8/tickets">View all tickets</Link>
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|