mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03:00
* init * deep dark on dark mode * add twitter spaces * bg color * improve hp hero badge spacing * blog outline * updates title * some text updates * Adds more details * first images * update images * restore dark theme on unmount * update announcement banners * update * update illustrations * ga week summary blog card * update d2 blog link * update d2 blog link * hide vid atm * add link to guide * Adds links * add correct video id --------- Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com> Co-authored-by: Francesco Sansalvadore <francescosansalvadore@MacBook-Pro-2.local> Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com> Co-authored-by: Inian <inian1234@gmail.com>
34 lines
847 B
TypeScript
34 lines
847 B
TypeScript
import { useTheme } from 'next-themes'
|
|
import React from 'react'
|
|
import { cn } from 'ui'
|
|
import Panel from '~/components/Panel'
|
|
|
|
export default function LaunchWeekPrizeCard({
|
|
content,
|
|
className,
|
|
contentClassName,
|
|
}: {
|
|
content: any
|
|
className?: string
|
|
contentClassName?: string
|
|
}) {
|
|
const { resolvedTheme } = useTheme()
|
|
|
|
return (
|
|
<Panel
|
|
hasShimmer
|
|
outerClassName={cn('relative rounded-lg overflow-hidden', className)}
|
|
innerClassName={cn(
|
|
'relative h-full flex flex-col rounded-lg overflow-hidden',
|
|
contentClassName
|
|
)}
|
|
shimmerToColor={
|
|
resolvedTheme?.includes('dark') ? 'hsl(var(--background-alternative-default))' : undefined
|
|
}
|
|
shimmerFromColor={resolvedTheme?.includes('dark') ? 'hsl(var(--border-default))' : undefined}
|
|
>
|
|
{content}
|
|
</Panel>
|
|
)
|
|
}
|