Skip to content

Commit

Permalink
feat:add footer
Browse files Browse the repository at this point in the history
  • Loading branch information
jundm committed Mar 29, 2022
1 parent d84b61f commit d6e84f0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions frontend/components/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from "react";

interface FooterProps {}

function Footer({}: FooterProps) {
return (
<footer
className="h-4 bottom-0 outline-hidden"
style={{ borderTop: "0 none" }}
>
© 2022 by LazyJun.
</footer>
);
}

export default Footer;
2 changes: 2 additions & 0 deletions frontend/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { useAppSelector, useAppDispatch } from "@utils/Toolkit/hook";
import { name, userName } from "@utils/Toolkit/Slice/userSlice";
import { useRouter } from "next/router";
import { parseJwt, setVerifyToken } from "@utils/Cookies/TokenManager";
import Footer from "@components/Footer";

function App({ Component, pageProps }: AppProps) {
const router = useRouter();
Expand Down Expand Up @@ -77,6 +78,7 @@ function App({ Component, pageProps }: AppProps) {
<div className="container">
<Component {...pageProps} />
</div>
<Footer />
</>
);
}
Expand Down

0 comments on commit d6e84f0

Please sign in to comment.