-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from osgsm/app-router
Migrate to App Router
- Loading branch information
Showing
13 changed files
with
271 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import Image from 'next/image'; | ||
|
||
import '../styles/global.css'; | ||
|
||
export const metadata = { | ||
title: { | ||
default: "osgsm's personal website", | ||
template: "%s | osgsm's personal website", | ||
}, | ||
openGraph: { | ||
title: "osgsm's personal website", | ||
url: 'https://osgsm.io', | ||
images: '/assets/osgsm-banner.png', | ||
type: 'website', | ||
}, | ||
twitter: { | ||
title: "osgsm's personal website", | ||
card: 'summary_large_image', | ||
}, | ||
}; | ||
|
||
const RootLayout = ({ children }) => { | ||
return ( | ||
<html lang="ja"> | ||
<body> | ||
<div className="mx-auto mt-12 mb-16 max-w-2xl px-4 md:px-6"> | ||
<header className="flex flex-col items-center"> | ||
<> | ||
<Image | ||
priority | ||
src="/assets/profile.png" | ||
className="rounded-full" | ||
height={108} | ||
width={108} | ||
alt="" | ||
/> | ||
<h1 className="mt-2 text-xl">osgsm</h1> | ||
</> | ||
</header> | ||
<main>{children}</main> | ||
</div> | ||
</body> | ||
</html> | ||
); | ||
}; | ||
|
||
export default RootLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import Link from 'next/link'; | ||
|
||
const NotFound = () => { | ||
return ( | ||
<> | ||
<h1 className="mt-12 text-3xl">Not Found</h1> | ||
<p className="mt-4">リクエストされたページが見つかりません</p> | ||
<div className="mt-6"> | ||
<Link | ||
className="inline-block rounded-md border border-gray-300 | ||
bg-gray-100 p-3 text-sm text-gray-700 | ||
hover:border-gray-300 hover:bg-gray-200 hover:text-gray-800" | ||
href="/" | ||
> | ||
ホームにもどる | ||
</Link> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default NotFound; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f4a86e0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
osgsm – ./
osgsm.vercel.app
www.osgsm.io
osgsm-git-main-osgsm.vercel.app
osgsm.io
osgsm-osgsm.vercel.app