Files
supabase/apps/www/components/LaunchWeek/13/Releases/Day1.tsx
cfed52a4da Tiger d1 (#30770)
* tiger d1 layout setup

* prep d1

* twitter links

* banner

* ticket

* see through nav

* gold

* update d1 visual

* restore ticket sharing ui

* add assistant blog post

* add video placeholder

* update copy

* add image

* add sql to supabase js

* Update apps/www/_blog/2024-12-02-supabase-assistant.mdx

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>

* Update apps/www/_blog/2024-12-02-supabase-assistant.mdx

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>

* Update apps/www/_blog/2024-12-02-supabase-assistant.mdx

Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>

* update images

* copple edits

* gradient updates

* changed to svg

* add thumbs

* remove character

* switched url

* Update lw13_data.tsx

* small changes

* Update sitemap_www.xml

* Update 2024-12-02-supabase-ai-assistant-v2.mdx

---------

Co-authored-by: Saxon Fletcher <saxonafletcher@gmail.com>
Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2024-12-02 22:33:35 +08:00

92 lines
3.0 KiB
TypeScript

import { ArrowRight } from 'lucide-react'
import Link from 'next/link'
import { cn } from 'ui'
import { ExpandableVideo } from 'ui-patterns/ExpandableVideo'
import { DayLink } from './components'
import { WeekDayProps } from './data'
const LW11Day1 = ({
day,
className,
cardClassName,
}: {
day: WeekDayProps
className?: string
cardClassName?: string
}) => (
<section
id={day.id}
className={cn(
'lwx-nav-anchor border-b py-8 first:border-t dark:border-[#111718] scroll-mt-16 grid grid-cols-1 gap-4 md:grid-cols-3',
className
)}
>
{/* Day title and links */}
<div
id={day.isToday ? 'today' : undefined}
className="flex h-full scroll-mt-10 flex-col gap-4 items-between"
>
<div className="md:max-w-xs flex flex-col gap-4">
<ExpandableVideo
videoId={day.videoId ?? ''}
imgUrl={day.videoThumbnail}
imgOverlayText="Watch announcement"
priority
/>
</div>
{!!day.links && (
<ul className="flex-1 h-full w-full justify-end xs:grid grid-cols-2 lg:grid-cols-3 flex flex-col gap-1">
{day.links?.map((link) => (
<li key={link.href}>
<DayLink {...link} />
</li>
))}
</ul>
)}
</div>
{/* Card */}
<div
className={cn(
`group relative overflow-hidden flex-1 flex col-span-2
md:px-4 text-2xl`,
cardClassName
)}
>
<div className="relative text-sm w-full grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 rounded-xl border gap-px bg-border overflow-hidden">
{day.steps?.map((step) => (
<Link
href={step.url!}
key={step.title}
target="_blank"
className="flex group/step flex-col gap-2 p-4 transition-colors bg-surface-75 hover:bg-surface-100 overflow-hidden border-0"
>
<div className="flex-1 flex justify-between items-start">
<div className="flex items-center gap-1 mb-4 transition-colors text-foreground-light group-hover/step:text-foreground group-focus-visible/step:text-foreground">
<svg
className="h-4 w-4"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 16 16"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="1"
d={step.icon}
stroke="currentColor"
/>
</svg>
<span>{step.title}</span>
</div>
<ArrowRight className="w-4 ml-2 -mt-px opacity-0 -rotate-45 translate-y-1 -translate-x-1 text-foreground-light transition-all will-change-transform group-hover/step:opacity-100 group-hover/step:translate-y-0 group-hover/step:translate-x-0" />
</div>
<p className="text-foreground">{step.description}</p>
</Link>
))}
</div>
</div>
</section>
)
export default LW11Day1