From c41fea755d134e8e27a35f0d83c97955e9ad37f9 Mon Sep 17 00:00:00 2001 From: m5r Date: Wed, 1 Sep 2021 23:44:15 +0800 Subject: [PATCH] rework header --- app/public-area/components/header.tsx | 78 +++++++++++++++++++++++---- app/public-area/components/hero.tsx | 2 +- app/public-area/pages/features.tsx | 12 +++++ app/public-area/pages/pricing.tsx | 12 +++++ 4 files changed, 93 insertions(+), 11 deletions(-) create mode 100644 app/public-area/pages/features.tsx create mode 100644 app/public-area/pages/pricing.tsx diff --git a/app/public-area/components/header.tsx b/app/public-area/components/header.tsx index 95c1276..e271401 100644 --- a/app/public-area/components/header.tsx +++ b/app/public-area/components/header.tsx @@ -6,8 +6,56 @@ import { XIcon } from "@heroicons/react/outline"; function Header() { return ( -
-
+
+
+ +
+
+ ); +} + +function Headerold() { + return ( +
+
@@ -18,13 +66,19 @@ function Header() {
@@ -43,9 +97,7 @@ type NavLinkProps = { function DesktopNavLink({ href, label }: NavLinkProps) { return ( - - {label} - + {label} ); } @@ -132,7 +184,7 @@ function MobileNav() { leaveFrom="translate-x-0" leaveTo="translate-x-full" > -
+
@@ -153,7 +205,10 @@ function MobileNav() {
-
    +
      +
    • + +
    • @@ -163,6 +218,9 @@ function MobileNav() { label="Open Metrics" /> +
    • + +
@@ -179,7 +237,7 @@ function MobileNav() { function MobileNavLink({ href, label }: NavLinkProps) { return ( - setMobileNavOpen(false)} className="flex text-gray-600 hover:text-gray-900 py-2"> + setMobileNavOpen(false)} className="text-base flex text-gray-600 hover:text-gray-900"> {label} @@ -187,4 +245,4 @@ function MobileNav() { } } -export default Header; +export default Headerold; diff --git a/app/public-area/components/hero.tsx b/app/public-area/components/hero.tsx index 320699a..fb381d2 100644 --- a/app/public-area/components/hero.tsx +++ b/app/public-area/components/hero.tsx @@ -9,7 +9,7 @@ export default function Hero() {
-
+

Take your phone number diff --git a/app/public-area/pages/features.tsx b/app/public-area/pages/features.tsx new file mode 100644 index 0000000..f3b2acd --- /dev/null +++ b/app/public-area/pages/features.tsx @@ -0,0 +1,12 @@ +import type { BlitzPage } from "blitz"; + +import Layout from "../components/layout"; + +const Features: BlitzPage = () => { + return
Coming soon! Please come back later 👋
; +}; + +Features.getLayout = (page) => {page}; +Features.suppressFirstRenderFlicker = true; + +export default Features; diff --git a/app/public-area/pages/pricing.tsx b/app/public-area/pages/pricing.tsx new file mode 100644 index 0000000..5b4fda1 --- /dev/null +++ b/app/public-area/pages/pricing.tsx @@ -0,0 +1,12 @@ +import type { BlitzPage } from "blitz"; + +import Layout from "../components/layout"; + +const Pricing: BlitzPage = () => { + return
Coming soon! Please come back later 👋
; +}; + +Pricing.getLayout = (page) => {page}; +Pricing.suppressFirstRenderFlicker = true; + +export default Pricing;