init
This commit is contained in:
15
src/pages/_app.tsx
Normal file
15
src/pages/_app.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { AppProps } from "next/app";
|
||||
import Head from "next/head";
|
||||
import "../../styles/global.css";
|
||||
import "../../styles/index.css";
|
||||
|
||||
export default function MyApp({ Component, pageProps }: AppProps) {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>Free Chess</title>
|
||||
</Head>
|
||||
<Component {...pageProps} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
15
src/pages/_document.tsx
Normal file
15
src/pages/_document.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Head, Html, Main, NextScript } from "next/document";
|
||||
|
||||
export default function Document() {
|
||||
return (
|
||||
<Html lang="en">
|
||||
<Head>
|
||||
<link rel="icon" href="/favicon.png" />
|
||||
</Head>
|
||||
<body>
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
</Html>
|
||||
);
|
||||
}
|
||||
24
src/pages/index.tsx
Normal file
24
src/pages/index.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import TopBar from "@/sections/index/topBar";
|
||||
import Board from "@/sections/index/board";
|
||||
import ReviewPanelBody from "@/sections/index/reviewPanelBody";
|
||||
import ReviewPanelToolBar from "@/sections/index/reviewPanelToolbar";
|
||||
|
||||
export default function HomePage() {
|
||||
return (
|
||||
<>
|
||||
<TopBar />
|
||||
|
||||
<div className="center">
|
||||
<div id="review-container">
|
||||
<Board />
|
||||
|
||||
<div id="review-panel">
|
||||
<ReviewPanelBody />
|
||||
|
||||
<ReviewPanelToolBar />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user