diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 0000000..68ea04d
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1 @@
+tabWidth: 4
\ No newline at end of file
diff --git a/app/layout.tsx b/app/layout.tsx
index 4ba8473..8d925f0 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -3,32 +3,32 @@ import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
const geistSans = Geist({
- variable: "--font-geist-sans",
- subsets: ["latin"],
+ variable: "--font-geist-sans",
+ subsets: ["latin"],
});
const geistMono = Geist_Mono({
- variable: "--font-geist-mono",
- subsets: ["latin"],
+ variable: "--font-geist-mono",
+ subsets: ["latin"],
});
export const metadata: Metadata = {
- title: "tuna2134",
- description: "tuna2134 official website",
+ title: "tuna2134",
+ description: "tuna2134 official website",
};
export default function RootLayout({
- children,
+ children,
}: Readonly<{
- children: React.ReactNode;
+ children: React.ReactNode;
}>) {
- return (
-
-
- {children}
-
-
- );
+ return (
+
+
+ {children}
+
+
+ );
}
diff --git a/app/page.tsx b/app/page.tsx
index 850ad25..8f7a7ab 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -2,32 +2,33 @@ import Timeline from "@/components/pages/home/timeline";
import Header from "@/components/pages/home/header";
export default function Home() {
- return (
- <>
-
-
-
-
- >
- );
+ return (
+ <>
+
+
+
+
+ >
+ );
}
diff --git a/components/pages/home/header.tsx b/components/pages/home/header.tsx
index 2f59d9f..0cc332d 100644
--- a/components/pages/home/header.tsx
+++ b/components/pages/home/header.tsx
@@ -1,30 +1,30 @@
import Image from "next/image";
const Header: React.FC = async () => {
- const res = await fetch(
- "https://discord.com/api/v10/users/739702692393517076",
- {
- headers: {
- Authorization: `Bot ${process.env.DISCORD_TOKEN}`,
- },
- },
- );
- const data = await res.json();
- const avatarURL = `https://cdn.discordapp.com/avatars/739702692393517076/${data.avatar}.png?size=1024`;
- return (
-
- );
+ const res = await fetch(
+ "https://discord.com/api/v10/users/739702692393517076",
+ {
+ headers: {
+ Authorization: `Bot ${process.env.DISCORD_TOKEN}`,
+ },
+ },
+ );
+ const data = await res.json();
+ const avatarURL = `https://cdn.discordapp.com/avatars/739702692393517076/${data.avatar}.png?size=1024`;
+ return (
+
+ );
};
export default Header;
diff --git a/components/pages/home/timeline.tsx b/components/pages/home/timeline.tsx
index d0fc6a9..7247290 100644
--- a/components/pages/home/timeline.tsx
+++ b/components/pages/home/timeline.tsx
@@ -1,28 +1,28 @@
export interface TimelineData {
- title: string;
- datetime: string;
- description: string;
+ title: string;
+ datetime: string;
+ description: string;
}
interface Props {
- timeline: TimelineData[];
+ timeline: TimelineData[];
}
const Timeline: React.FC = ({ timeline }) => {
- return (
-
- {timeline.map((data, index) => (
- -
-
-
{data.datetime}
-
- {data.title}
-
- {data.description}
-
- ))}
-
- );
+ return (
+
+ {timeline.map((data, index) => (
+ -
+
+
{data.datetime}
+
+ {data.title}
+
+ {data.description}
+
+ ))}
+
+ );
};
export default Timeline;
diff --git a/next.config.ts b/next.config.ts
index fa7572d..cd3c8b9 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -1,18 +1,18 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
- images: {
- remotePatterns: [
- {
- protocol: "https",
- hostname: "cdn.discordapp.com",
- },
- ],
- },
+ images: {
+ remotePatterns: [
+ {
+ protocol: "https",
+ hostname: "cdn.discordapp.com",
+ },
+ ],
+ },
};
if (process.env.OUTPUT === "standalone") {
- nextConfig.output = "standalone";
+ nextConfig.output = "standalone";
}
export default nextConfig;