Skip to content

Commit

Permalink
Add footer
Browse files Browse the repository at this point in the history
  • Loading branch information
albingroen committed Feb 22, 2023
1 parent 5d0f514 commit 21751bb
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ import "../styles/globals.css";
import "react-cmdk/dist/cmdk.css";
import PricingModal from "../components/PricingModal";
import Seo from "../components/Seo";
import Stack from "../components/Stack";
import WelcomeModal from "../components/WelcomeModal";
import axios from "axios";
import splitbee from "@splitbee/web";
import type { AppProps } from "next/app";
import { Inter } from "@next/font/google";
import { SchemaContext } from "../lib/context";
import { Toaster } from "react-hot-toast";
import { classNames } from "react-cmdk";
import { useEffect, useState } from "react";
import { useRouter } from "next/dist/client/router";
import { classNames } from "react-cmdk";

export const inter = Inter({
subsets: ["latin"],
Expand Down Expand Up @@ -106,7 +107,7 @@ function MyApp({ Component, pageProps }: AppProps) {
},
}}
>
<main className={classNames(inter.variable, "font-sans h-screen flex")}>
<main className={classNames(inter.variable, "font-sans")}>
{!hasSeenWelcomeModal && (
<WelcomeModal onClose={onCloseWelcomeModal} />
)}
Expand All @@ -115,12 +116,30 @@ function MyApp({ Component, pageProps }: AppProps) {
<PricingModal onClose={onClosePricingModal} />
)}

<Component {...pageProps} />
<Toaster
toastOptions={{
className: "dark:!bg-neutral-900 dark:!text-white",
}}
/>
<div className="h-screen flex">
<Component {...pageProps} />
<Toaster
toastOptions={{
className: "dark:!bg-neutral-900 dark:!text-white",
}}
/>
</div>

<footer className="bg-gray-100 dark:bg-neutral-800 p-10 border-t dark:border-neutral-700">
<Stack align="center" justify="center">
<p className="text-sm text-gray-500 dark:text-neutral-400">
Maintained by{" "}
<a
target="_blank"
href="https://abgn.me"
rel="noopener noreferrer"
className="text-indigo-600 dark:text-blue-500 hover:underline"
>
Albin Groen
</a>
</p>
</Stack>
</footer>
</main>
</SchemaContext.Provider>
</>
Expand Down

1 comment on commit 21751bb

@vercel
Copy link

@vercel vercel bot commented on 21751bb Feb 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.