From cd8cd9b975ac16d53ff4b0155eb5c3eef5c06c4a Mon Sep 17 00:00:00 2001 From: Terry Sutton Date: Tue, 21 Feb 2023 16:41:47 -0330 Subject: [PATCH] Move lw6 to subdir --- apps/www/components/Nav/index.tsx | 38 +- apps/www/pages/launch-week/6/index.tsx | 1243 ++++++++++++++++ .../6/styles/launchWeek6.module.css | 25 + .../launch-week/6/styles/utils6.module.css | 76 + apps/www/pages/launch-week/6/types6.d.ts | 43 + apps/www/pages/launch-week/index.tsx | 1253 +---------------- .../pages/launch-week/launchWeek.module.css | 26 +- apps/www/public/rss.xml | 310 ++-- 8 files changed, 1607 insertions(+), 1407 deletions(-) create mode 100644 apps/www/pages/launch-week/6/index.tsx create mode 100644 apps/www/pages/launch-week/6/styles/launchWeek6.module.css create mode 100644 apps/www/pages/launch-week/6/styles/utils6.module.css create mode 100644 apps/www/pages/launch-week/6/types6.d.ts diff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsx index 387aefacc5d..edbfd03169f 100644 --- a/apps/www/components/Nav/index.tsx +++ b/apps/www/components/Nav/index.tsx @@ -1,5 +1,6 @@ import React, { useState } from 'react' import Link from 'next/link' +import { useRouter } from 'next/router' import { Button, Badge, IconStar, IconChevronDown } from 'ui' import FlyOut from '~/components/UI/FlyOut' @@ -19,6 +20,8 @@ import * as supabaseLogoWordmarkLight from 'common/assets/images/supabase-logo-w const Nav = () => { const { isDarkMode } = useTheme() + const { pathname } = useRouter() + const isLauchWeekPage = pathname.includes('launch-week') const [open, setOpen] = useState(false) const [openProduct, setOpenProduct] = useState(false) @@ -160,6 +163,7 @@ const Nav = () => { px-1 text-sm font-medium transition-colors + ${isLauchWeekPage ? '!text-white' : ''} ` + props.active } onClick={props.onClick} @@ -172,7 +176,11 @@ const Nav = () => { (props.active && ' rotate-180 transform transition-all duration-100') } > - + @@ -182,8 +190,16 @@ const Nav = () => { <> {/* */}
-
-