start public pages footer
This commit is contained in:
parent
0ed516afc8
commit
47aa722697
41
app/public-area/components/footer.tsx
Normal file
41
app/public-area/components/footer.tsx
Normal file
@ -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 (
|
||||||
|
<footer className="bg-white">
|
||||||
|
<div className="max-w-7xl mx-auto py-12 px-4 overflow-hidden sm:px-6 lg:px-8">
|
||||||
|
<nav className="-mx-5 -my-2 flex flex-wrap justify-center" aria-label="Footer">
|
||||||
|
<NavLink href={Routes.Roadmap()} name="Roadmap" />
|
||||||
|
<NavLink href={Routes.Roadmap()} name="Roadmap" />
|
||||||
|
<NavLink href={Routes.Roadmap()} name="Roadmap" />
|
||||||
|
<NavLink href={Routes.Roadmap()} name="Roadmap" />
|
||||||
|
</nav>
|
||||||
|
{/*<p className="mt-8 text-center text-base text-gray-400">© 2021 Capsule Corp. Dev Pte. Ltd. All rights reserved.</p>*/}
|
||||||
|
<p className="mt-8 text-center text-base text-gray-400">
|
||||||
|
© 2021 Mokhtar Mial All rights reserved.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
href: LinkProps["href"];
|
||||||
|
name: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
const NavLink: FunctionComponent<Props> = ({ href, name }) => (
|
||||||
|
<div className="px-5 py-2">
|
||||||
|
<Link href={href}>
|
||||||
|
<a className="text-base text-gray-500 hover:text-gray-900">{name}</a>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
);
|
@ -1,5 +1,5 @@
|
|||||||
import { Fragment, useState, useRef, useEffect } from "react";
|
import { Fragment, useState, useRef, useEffect } from "react";
|
||||||
import type { LinkProps } from "next/link";
|
import type { LinkProps } from "blitz";
|
||||||
import { Link, Routes } from "blitz";
|
import { Link, Routes } from "blitz";
|
||||||
import { Dialog, Transition } from "@headlessui/react";
|
import { Dialog, Transition } from "@headlessui/react";
|
||||||
import { XIcon } from "@heroicons/react/outline";
|
import { XIcon } from "@heroicons/react/outline";
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { XIcon } from "@heroicons/react/outline";
|
import { XIcon } from "@heroicons/react/outline";
|
||||||
|
|
||||||
export default function ReferralBanner() {
|
export default function ReferralBanner() {
|
||||||
|
// TODO
|
||||||
const isDisabled = true;
|
const isDisabled = true;
|
||||||
if (isDisabled) {
|
if (isDisabled) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -5,6 +5,7 @@ import Header from "../components/header";
|
|||||||
import ReferralBanner from "../components/referral-banner";
|
import ReferralBanner from "../components/referral-banner";
|
||||||
import Hero from "../components/hero";
|
import Hero from "../components/hero";
|
||||||
import FAQs from "../components/faqs";
|
import FAQs from "../components/faqs";
|
||||||
|
import Footer from "../components/footer";
|
||||||
|
|
||||||
const LandingPage: BlitzPage = () => {
|
const LandingPage: BlitzPage = () => {
|
||||||
return (
|
return (
|
||||||
@ -28,6 +29,8 @@ const LandingPage: BlitzPage = () => {
|
|||||||
<Hero />
|
<Hero />
|
||||||
<FAQs />
|
<FAQs />
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<Footer />
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</>
|
</>
|
||||||
|
@ -4,6 +4,7 @@ import { Head, useQuery } from "blitz";
|
|||||||
import getMetrics from "../queries/get-metrics";
|
import getMetrics from "../queries/get-metrics";
|
||||||
|
|
||||||
import Header from "../components/header";
|
import Header from "../components/header";
|
||||||
|
import Footer from "../components/footer";
|
||||||
|
|
||||||
const initialData = {
|
const initialData = {
|
||||||
phoneNumbers: 0,
|
phoneNumbers: 0,
|
||||||
@ -48,6 +49,8 @@ const OpenMetrics: BlitzPage = () => {
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<Footer />
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</>
|
</>
|
||||||
|
@ -4,6 +4,7 @@ import clsx from "clsx";
|
|||||||
import { CheckIcon, XIcon, TerminalIcon } from "@heroicons/react/solid";
|
import { CheckIcon, XIcon, TerminalIcon } from "@heroicons/react/solid";
|
||||||
|
|
||||||
import Header from "../components/header";
|
import Header from "../components/header";
|
||||||
|
import Footer from "../components/footer";
|
||||||
|
|
||||||
const Roadmap: BlitzPage = () => {
|
const Roadmap: BlitzPage = () => {
|
||||||
return (
|
return (
|
||||||
@ -97,6 +98,8 @@ const Roadmap: BlitzPage = () => {
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<Footer />
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</>
|
</>
|
||||||
|
Loading…
Reference in New Issue
Block a user