From 47aa722697cc7bfad4e53030bdae52adae41d88c Mon Sep 17 00:00:00 2001 From: m5r Date: Mon, 30 Aug 2021 05:11:45 +0800 Subject: [PATCH] start public pages footer --- app/public-area/components/footer.tsx | 41 +++++++++++++++++++ app/public-area/components/header.tsx | 2 +- .../components/referral-banner.tsx | 1 + app/public-area/pages/index.tsx | 3 ++ app/public-area/pages/open-metrics.tsx | 3 ++ app/public-area/pages/roadmap.tsx | 3 ++ 6 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 app/public-area/components/footer.tsx diff --git a/app/public-area/components/footer.tsx b/app/public-area/components/footer.tsx new file mode 100644 index 0000000..3990c04 --- /dev/null +++ b/app/public-area/components/footer.tsx @@ -0,0 +1,41 @@ +import type { FunctionComponent } from "react"; +import type { LinkProps } from "blitz"; +import { Link, Routes } from "blitz"; + +export default function Footer() { + // TODO + const isDisabled = true; + if (isDisabled) { + // return null; + } + + return ( + + ); +} + +type Props = { + href: LinkProps["href"]; + name: string; +}; + +const NavLink: FunctionComponent = ({ href, name }) => ( +
+ + {name} + +
+); diff --git a/app/public-area/components/header.tsx b/app/public-area/components/header.tsx index 1e8d83a..2370e98 100644 --- a/app/public-area/components/header.tsx +++ b/app/public-area/components/header.tsx @@ -1,5 +1,5 @@ import { Fragment, useState, useRef, useEffect } from "react"; -import type { LinkProps } from "next/link"; +import type { LinkProps } from "blitz"; import { Link, Routes } from "blitz"; import { Dialog, Transition } from "@headlessui/react"; import { XIcon } from "@heroicons/react/outline"; diff --git a/app/public-area/components/referral-banner.tsx b/app/public-area/components/referral-banner.tsx index a8c2fb9..31eeac1 100644 --- a/app/public-area/components/referral-banner.tsx +++ b/app/public-area/components/referral-banner.tsx @@ -1,6 +1,7 @@ import { XIcon } from "@heroicons/react/outline"; export default function ReferralBanner() { + // TODO const isDisabled = true; if (isDisabled) { return null; diff --git a/app/public-area/pages/index.tsx b/app/public-area/pages/index.tsx index 7c2155c..9da4a3a 100644 --- a/app/public-area/pages/index.tsx +++ b/app/public-area/pages/index.tsx @@ -5,6 +5,7 @@ import Header from "../components/header"; import ReferralBanner from "../components/referral-banner"; import Hero from "../components/hero"; import FAQs from "../components/faqs"; +import Footer from "../components/footer"; const LandingPage: BlitzPage = () => { return ( @@ -28,6 +29,8 @@ const LandingPage: BlitzPage = () => { + +