-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.tsx
62 lines (59 loc) · 1.73 KB
/
layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import { siteTitle } from "../site-config";
import Image from "next/image";
import { GoogleAnalytics } from "@next/third-parties/google";
const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
title: siteTitle,
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="ja">
<GoogleAnalytics gaId={"G-301PMSJ9EB"} />
<body className={inter.className}>
<header className="bg-gray-800 text-white">
<nav className="flex items-center justify-between p-4">
<a href="/">
<h1 className="text-2xl font-bold">
<Image
src="/images/title.webp"
alt="荒音の夜(サイトロゴ)"
width={100}
height={100}
></Image>
</h1>
</a>
<ul className="flex right-4 text-right space-x-5">
<li>
<a href="/about">About</a>
</li>
<li>
<a href="/download">Download</a>
</li>
<li>
<a href="/license">License</a>
</li>
<li>
<a href="/contact">Contact</a>
</li>
</ul>
</nav>
</header>
{children}
<footer className="p-4 bg-gray-800 text-white text-center">
<p>
© Yuito Akatsuki 2024, ramura 2024. Designed by Mitsuru
Akatsuki
</p>
</footer>
</body>
</html>
);
}