The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
lw8: create current day highlight widget
Francesco Sansalvadorec917ff23eb7c
diff --git a/apps/www/components/LaunchWeek/8/Releases/DayHighlightWidget.tsx b/apps/www/components/LaunchWeek/8/Releases/DayHighlightWidget.tsxnew file mode 100644index 00000000000..c0edcfe5a25--- /dev/null+++ b/apps/www/components/LaunchWeek/8/Releases/DayHighlightWidget.tsx@@ -0,0 +1,36 @@+import React from 'react'+import { SmallCard } from './components'+import Link from 'next/link'+import Image from 'next/image'++const DayHighlightWidget = () => {+ return (+ <div className="w-full max-w-xl">+ <SmallCard+ className="hover:from-scale-900 hover:to-scale-900 border border-surface-200"+ innerClassName="bg-opacity-20 group-hover:bg-opacity-100"+ >+ <Link href="#currentDay">+ <a className="flex flex-row justify-between items-center w-full h-full gap-2">+ <div className="relative flex-shrink flex items-center p-2 w-2/3 lg:w-1/2 md:w-auto">+ <div className="flex flex-col gap-1 sm:pl-4">+ <span className="text-white">Join us daily at Twitter Spaces </span>+ <span className="">Next up: Monday – Opening Day</span>+ </div>+ </div>+ <div className="relative flex !aspect-video h-[80px] md:h-[100px] gap-2 z-10 rounded overflow-hidden">+ <Image+ src="/images/launchweek/8/twitter-spaces-thumb.svg"+ alt="twitter spaces thumbnail"+ layout="fill"+ objectFit="cover"+ />+ </div>+ </a>+ </Link>+ </SmallCard>+ </div>+ )+}++export default DayHighlightWidgetdiff --git a/apps/www/components/LaunchWeek/8/Releases/components/index.tsx b/apps/www/components/LaunchWeek/8/Releases/components/index.tsxindex b90558e2e6e..5d8632623ab 100644--- a/apps/www/components/LaunchWeek/8/Releases/components/index.tsx+++ b/apps/www/components/LaunchWeek/8/Releases/components/index.tsx@@ -81,10 +81,18 @@ export const HackernewsSvg = () => (</svg>)-export const SmallCard = ({ className, children }: { className?: string; children: any }) => (+export const SmallCard = ({+ className,+ innerClassName,+ children,+}: {+ className?: string+ innerClassName?: string+ children: any+}) => (<divclassName={[- 'relative p-[1px] bg-gradient-to-b from-[#111718] to-[#1C1C1C60] rounded-2xl overflow-hidden shadow-lg',+ 'group relative p-[1px] bg-gradient-to-b from-[#11171890] to-[#1C1C1C60] rounded-2xl overflow-hidden shadow-lg',className,].join(' ')}>@@ -92,6 +100,7 @@ export const SmallCard = ({ className, children }: { className?: string; childreclassName={['rounded-2xl text-sm text-[#9296AA] p-2 flex flex-row justify-between items-center backdrop-blur-md h-full','bg-[#030A0C]',+ innerClassName,].join(' ')}>{children}diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsxindex d7405a095ad..8e643fa9d2b 100644--- a/apps/www/pages/launch-week/index.tsx+++ b/apps/www/pages/launch-week/index.tsx@@ -14,6 +14,7 @@ import SectionContainer from '~/components/Layouts/SectionContainer'import { LaunchWeekLogoHeader } from '~/components/LaunchWeek/8/LaunchWeekLogoHeader'import { Meetup } from '~/components/LaunchWeek/8/LW8Meetups'import LW8CalloutsSection from '~/components/LaunchWeek/8/LW8CalloutsSection'+import DayHighlightWidget from '~/components/LaunchWeek/8/Releases/DayHighlightWidget'import { useTheme } from 'common/Providers'@@ -142,7 +143,10 @@ export default function TicketHome({ users, meetups }: Props) {<div className="absolute bottom-0 z-10 w-full justify-center flex items-end"><LaunchWeekLogoHeader /></div>- <div className="absolute inset-0 z-0">+ <div className="absolute inset-0 z-0 flex items-center justify-center">+ <div className="absolute z-40 w-full flex justify-center -translate-y-6">+ <DayHighlightWidget />+ </div><AnimatedParticles /><Imagesrc="/images/launchweek/8/stars.svg"