Skip to content

Commit 04154aa

Browse files
author
gitgitWi
committed
Feat: index 페이지 typescript 적용
1 parent 5f7ea6a commit 04154aa

File tree

4 files changed

+21
-65
lines changed

4 files changed

+21
-65
lines changed

constants/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./texts";

constants/texts.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const MAIN_TITLE = "gitgitWi's space";
2+
export const MAIN_META_DESC = "gitgitWi's space on GitHub Pages";

pages/index.js

Lines changed: 0 additions & 65 deletions
This file was deleted.

pages/index.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import Head from "next/head";
2+
import { MAIN_META_DESC, MAIN_TITLE } from "../constants";
3+
4+
export default function Home() {
5+
return (
6+
<div>
7+
<Head>
8+
<title>{MAIN_TITLE}</title>
9+
<meta name="description" content={MAIN_META_DESC} />
10+
<link rel="icon" href="/favicon.ico" />
11+
</Head>
12+
13+
<main>
14+
<h1>{MAIN_TITLE}</h1>
15+
</main>
16+
</div>
17+
);
18+
}

0 commit comments

Comments
 (0)