Skip to content

Commit

Permalink
feat: footer
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxtuneLee committed May 17, 2024
1 parent cfebad0 commit fa2789d
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 13 deletions.
Binary file added public/logo-long.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/qrcode.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 15 additions & 13 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,28 @@ import { Inter } from "next/font/google";
import "./globals.css";
import Header from "@/components/Header";
import BackToTop from "@/components/BackToTop";
import Footer from "@/components/Footer";

const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
title: "南京邮电大学开源软件镜像站",
description: "Generated by create next app",
title: "南京邮电大学开源软件镜像站",
description: "Generated by create next app",
};

export default function RootLayout({
children,
children,
}: Readonly<{
children: React.ReactNode;
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={inter.className}>
<Header />
<div className="pt-[92px]">{children}</div>
<BackToTop />
</body>
</html>
);
return (
<html lang="en" className="min-h-full">
<body className="font-sans flex flex-col min-h-[100vh]">
<Header />
<div className="pt-[92px] flex-1">{children}</div>
<BackToTop />
<Footer />
</body>
</html>
);
}
67 changes: 67 additions & 0 deletions src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import Image from "next/image";
export default function Footer() {
return (
<footer className="w-full bg-black mt-8 text-white text-sm">
<div className=" mx-auto max-w-7xl p-6 w-full">
<div className="flex justify-between items-center">
<div className="w-full flex gap-3 flex-wrap justify-between">
<div className="pt-10">
<h1 className="text-xl font-bold">Contact us</h1>
<div className="mt-2">
<ul className="flex flex-col gap-2">
<li className="text-gray-400 hover:text-white">
<a href="https://github.com/NJUPT-Mirrors-Group">github</a>
</li>
<li className="text-gray-400 hover:text-white">
<a href="Mailto:[email protected]">
[email protected]
</a>
</li>
</ul>
</div>
</div>
<div className="pt-10">
<h1 className="text-xl font-bold">Links</h1>
<div className="mt-2">
<ul className="flex flex-col gap-2">
<li className="text-gray-400 hover:text-white">
<a href="https://xxb.njupt.edu.cn">南邮信息办</a>
</li>
<li className="text-gray-400 hover:text-white">
<a href="https://qingyou.njupt.edu.cn">青柚工作室</a>
</li>
<li className="text-gray-400 hover:text-white">
<a href="https://sast.fun">南邮校大学生科协</a>
</li>
</ul>
</div>
</div>

<div className="pt-10">
<h1 className="text-xl font-bold">Feishu Group</h1>
<div className="mt-2">
<Image
src="/qrcode.jpeg"
alt="qrcode"
width={100}
height={100}
/>
</div>
</div>
<div>
<Image src="/logo-long.png" alt="logo" width={200} height={30} />
</div>
</div>
</div>
<div className="mt-9 pb-10 text-gray-400">
<p>
本站由南京邮电大学信息化建设和管理办公室支持并创办,由南京邮电大学NMG小组运行维护。
</p>
<p>
Powered by <a href="https://mxte.cc">Maxtune Lee</a>
</p>
</div>
</div>
</footer>
);
}

0 comments on commit fa2789d

Please sign in to comment.