Skip to content

Commit

Permalink
レイアウト別にグループ分け
Browse files Browse the repository at this point in the history
  • Loading branch information
takecchi committed Sep 2, 2023
1 parent 0e640e2 commit f28ac96
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/app/(menu)/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# @/app/(menu)
メニューを持つ画面グループです。
3 changes: 3 additions & 0 deletions src/app/(menu)/[userName]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Profile({ params }: { params: { userName: string } }) {
return <main>UserName: {params.userName}</main>;
}
2 changes: 1 addition & 1 deletion src/app/page.tsx → src/app/(menu)/home/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default function Home() {
return <main>Top</main>;
return <main>Home</main>;
}
2 changes: 2 additions & 0 deletions src/app/(plain)/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# @/app/(plain)
特に決まったレイアウトを持たない画面グループです。
3 changes: 3 additions & 0 deletions src/app/(plain)/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Top() {
return <main>Top</main>;
}

0 comments on commit f28ac96

Please sign in to comment.