diff --git a/app/page.tsx b/app/page.tsx index bb59e8c..4ad938c 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -6,23 +6,27 @@ export default function Home() { <>
- +
); diff --git a/components/pages/home/header.tsx b/components/pages/home/header.tsx index bfb6dba..2f59d9f 100644 --- a/components/pages/home/header.tsx +++ b/components/pages/home/header.tsx @@ -1,24 +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 ( -
-
- avatar -

tuna2134

-
-
- ) -} + 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 ( +
+
+ avatar +

tuna2134

+
+
+ ); +}; -export default Header; \ No newline at end of file +export default Header; diff --git a/components/pages/home/timeline.tsx b/components/pages/home/timeline.tsx index f5a0a5c..d0fc6a9 100644 --- a/components/pages/home/timeline.tsx +++ b/components/pages/home/timeline.tsx @@ -1,26 +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) => ( -
  1. -
    -

    {data.datetime}

    -

    {data.title}

    -

    {data.description}

    -
  2. - ))} -
- ) -} + return ( +
    + {timeline.map((data, index) => ( +
  1. +
    +

    {data.datetime}

    +

    + {data.title} +

    +

    {data.description}

    +
  2. + ))} +
+ ); +}; -export default Timeline; \ No newline at end of file +export default Timeline; diff --git a/next.config.ts b/next.config.ts index 5eea982..fa7572d 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; diff --git a/package.json b/package.json index 167edba..c18f6ee 100644 --- a/package.json +++ b/package.json @@ -6,19 +6,21 @@ "dev": "next dev --turbopack", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "format": "prettier -w './**/*.{tsx,ts}'" }, "dependencies": { + "next": "15.3.1", "react": "^19.0.0", - "react-dom": "^19.0.0", - "next": "15.3.1" + "react-dom": "^19.0.0" }, "devDependencies": { - "typescript": "^5", + "@tailwindcss/postcss": "^4", "@types/node": "^22.0.0", "@types/react": "^19", "@types/react-dom": "^19", - "@tailwindcss/postcss": "^4", - "tailwindcss": "^4" + "prettier": "^3.5.3", + "tailwindcss": "^4", + "typescript": "^5" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ffe099c..e4a42dc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,6 +30,9 @@ importers: '@types/react-dom': specifier: ^19 version: 19.1.2(@types/react@19.1.2) + prettier: + specifier: ^3.5.3 + version: 3.5.3 tailwindcss: specifier: ^4 version: 4.1.4 @@ -458,6 +461,11 @@ packages: resolution: {integrity: sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==} engines: {node: ^10 || ^12 || >=14} + prettier@3.5.3: + resolution: {integrity: sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==} + engines: {node: '>=14'} + hasBin: true + react-dom@19.1.0: resolution: {integrity: sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==} peerDependencies: @@ -848,6 +856,8 @@ snapshots: picocolors: 1.1.1 source-map-js: 1.2.1 + prettier@3.5.3: {} + react-dom@19.1.0(react@19.1.0): dependencies: react: 19.1.0