Files
caszl-next/app/layout.tsx

33 lines
1020 B
TypeScript
Raw Permalink Normal View History

2023-10-27 17:29:50 +08:00
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
2023-11-06 17:27:50 +08:00
import footer from "@/app/_assets/footer.jpg";
2023-10-27 17:29:50 +08:00
import Image from "next/image";
2023-11-06 17:27:50 +08:00
import banner from "@/app/_assets/banner.jpg";
2023-10-27 17:29:50 +08:00
import { ReactNode } from "react";
2023-11-06 17:27:50 +08:00
import MainNav from "@/app/_components/MainNav";
import BackToTop from "@/app/_components/BackToTop";
2023-10-27 09:30:22 +08:00
2023-10-27 17:29:50 +08:00
const inter = Inter({ subsets: ["latin"] });
2023-10-27 09:30:22 +08:00
export const metadata: Metadata = {
2023-10-27 17:29:50 +08:00
title: "中国科学院重庆绿色智能技术研究院合肥分院",
description: "Generated by create next app",
};
export default function RootLayout({ children }: { children: ReactNode }) {
2023-10-27 09:30:22 +08:00
return (
<html lang="en">
2023-10-27 17:29:50 +08:00
<body className={inter.className}>
2023-11-03 17:25:10 +08:00
<main className={"m-auto w-[1000px]"}>
2023-10-27 17:29:50 +08:00
<Image className={"w-full"} src={banner} alt={"banner"} />
2023-10-30 17:29:35 +08:00
<MainNav />
2023-10-27 17:29:50 +08:00
{children}
<Image src={footer} alt={"footer"} className={"mt-4"} />
</main>
2023-11-02 17:24:34 +08:00
<BackToTop />
2023-10-27 17:29:50 +08:00
</body>
2023-10-27 09:30:22 +08:00
</html>
2023-10-27 17:29:50 +08:00
);
2023-10-27 09:30:22 +08:00
}