Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"prettier.singleQuote": true
"prettier.singleQuote": true,
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
18 changes: 18 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import "../src/styles/globals.css";

export const metadata = {
title: "Othello",
description: "Othello app developed with next.js",
};

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="ja">
<body>{children}</body>
</html>
);
}
11 changes: 2 additions & 9 deletions src/pages/index.tsx → app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
import type { NextPage } from "next";
import Head from "next/head";
import styles from "../styles/Home.module.css";
import PlayGround from "../components/views/playground";
import styles from "../src/styles/Home.module.css";
import PlayGround from "../src/components/views/playground";

const Home: NextPage = () => {
return (
<div className={styles.container}>
<Head>
<title>Othello</title>
<meta name="description" content="Othello app developed with next.js" />
<link rel="icon" href="/favicon.ico" />
</Head>

<main className={styles.main}>
<h1 className={styles.title}>
<span className="font-thin text-slate-500">Othello</span>
Expand Down
1 change: 1 addition & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
experimental: {
appDir: true,
},
};

module.exports = nextConfig;
Loading