mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-01-29 01:28:59 -05:00
Add footer
This commit is contained in:
parent
3cb7285e8f
commit
c0e1caf543
2 changed files with 27 additions and 4 deletions
15
src/components/Footer.tsx
Normal file
15
src/components/Footer.tsx
Normal 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;
|
|
@ -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>
|
||||
)}
|
||||
|
|
Loading…
Add table
Reference in a new issue