1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-07-02 07:20:38 +02:00

Add footer

This commit is contained in:
Elias Schneider 2022-05-11 14:18:36 +02:00
parent 3cb7285e8f
commit c0e1caf543
No known key found for this signature in database
GPG Key ID: D5EC1C72D93244FD
2 changed files with 27 additions and 4 deletions

15
src/components/Footer.tsx Normal file
View File

@ -0,0 +1,15 @@
import { Anchor, Center, Footer as MFooter, Text } from "@mantine/core";
const Footer = () => {
return (
<MFooter height="auto" p={10}>
<Center>
<Text size="xs" color="dimmed">
Made with 🖤 by <Anchor size="xs" href="https://eliasschneider.com" target="_blank">Elias Schneider</Anchor>
</Text>
</Center>
</MFooter>
);
};
export default Footer;

View File

@ -1,8 +1,10 @@
import {
ColorScheme,
Container,
Group,
LoadingOverlay,
MantineProvider,
Stack,
} from "@mantine/core";
import { ModalsProvider } from "@mantine/modals";
import { NotificationsProvider } from "@mantine/notifications";
@ -11,6 +13,7 @@ import { GetServerSidePropsContext } from "next";
import type { AppProps } from "next/app";
import { useEffect, useState } from "react";
import "../../styles/globals.css";
import Footer from "../components/Footer";
import ThemeProvider from "../components/mantine/ThemeProvider";
import Header from "../components/navBar/NavBar";
import globalStyle from "../styles/global.style";
@ -56,10 +59,15 @@ function App(
<ConfigContext.Provider value={environmentVariables}>
<IsSignedInContext.Provider value={isSignedIn}>
<LoadingOverlay visible={isLoading} overlayOpacity={1} />
<Header />
<Container>
<Component {...pageProps} />
</Container>
<Stack justify="space-between" sx={{ minHeight: "100vh" }}>
<div>
<Header />
<Container>
<Component {...pageProps} />
</Container>
</div>
<Footer />
</Stack>
</IsSignedInContext.Provider>
</ConfigContext.Provider>
)}