From 675bfbbdfddf83aeece772a3b08bcef964b7ad6a Mon Sep 17 00:00:00 2001 From: Jonathan Summers-Muir Date: Sun, 14 Aug 2022 23:31:32 -0500 Subject: [PATCH] chore: update launch sections ready for day 1 --- .../LaunchWeek/LaunchSection/index.tsx | 71 ++++++++++++++++--- apps/www/components/LaunchWeek/types.d.ts | 1 + apps/www/styles/index.css | 15 ++++ 3 files changed, 77 insertions(+), 10 deletions(-) diff --git a/apps/www/components/LaunchWeek/LaunchSection/index.tsx b/apps/www/components/LaunchWeek/LaunchSection/index.tsx index 3036a1754d6..e10f77d4b91 100644 --- a/apps/www/components/LaunchWeek/LaunchSection/index.tsx +++ b/apps/www/components/LaunchWeek/LaunchSection/index.tsx @@ -1,8 +1,9 @@ -import { TruckIcon } from '@heroicons/react/outline' -import { Badge } from '@supabase/ui' +import { PlayIcon, TruckIcon, XIcon } from '@heroicons/react/outline' +import { Badge, Modal } from '@supabase/ui' -import _days from './../days.json' +import { useState } from 'react' import { Article, Product, WeekDayProps } from '../types' +import _days from './../days.json' import ArticleButtonListItem from './ArticleButtonListItem' import ProductButton from './ProductButton' import ProductButtonListItem from './ProductButtonListItem' @@ -12,6 +13,7 @@ const days = _days as WeekDayProps[] export const LaunchSection = (props: WeekDayProps) => { const lastIndex = props.index === days.length - 1 const nextDayNotShipped = props.shipped && !days[props.index + 1]?.shipped + const [videoVisible, setVideoVisible] = useState(false) return (
@@ -26,13 +28,62 @@ export const LaunchSection = (props: WeekDayProps) => { />
) : ( -
- Supabase -
+ <> +
+ Supabase +
setVideoVisible(true)} + className=" + absolute + top-0 + left-0 + flex + h-full + w-full + items-center + justify-center + " + > + +
+
+ + setVideoVisible(false)} + hideFooter + header={ +
+ {props.title} + + setVideoVisible(false)} + /> +
+ } + > +
+
+