File tree Expand file tree Collapse file tree 2 files changed +33
-15
lines changed
Expand file tree Collapse file tree 2 files changed +33
-15
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import "@fontsource/roboto/300.css";
44import "@fontsource/roboto/400.css" ;
55import "@fontsource/roboto/500.css" ;
66import "@fontsource/roboto/700.css" ;
7- import type { Viewport } from "next" ;
7+ import type { Metadata , Viewport } from "next" ;
88import Providers from "~/components/Providers" ;
99
1010export const viewport : Viewport = {
@@ -13,15 +13,16 @@ export const viewport: Viewport = {
1313 viewportFit : "cover" ,
1414} ;
1515
16+ export const metadata : Metadata = {
17+ title : "CourseMate (β版)" ,
18+ description : "同じ授業の人と友達になろう" ,
19+ } ;
20+
1621export default function RootLayout ( {
1722 children,
1823} : { children : React . ReactNode } ) {
1924 return (
2025 < html lang = "en" className = "h-full" >
21- < head >
22- < link rel = "icon" type = "image/svg+xml" href = "/course-mate-icon.svg" />
23- < title > CourseMate</ title >
24- </ head >
2526 < body className = "h-full" >
2627 < Providers > { children } </ Providers >
2728 </ body >
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ type Props = {
88} ;
99
1010export default function Header ( props : Props ) {
11- const { title, info } = props ;
11+ const { title } = props ;
1212 return (
1313 < header className = "fixed top-0 z-30 flex h-12 w-full items-center justify-center border-gray-200 border-b bg-white" >
1414 { title && (
@@ -20,23 +20,40 @@ export default function Header(props: Props) {
2020 < CourseMateIcon width = "30px" height = "30px" />
2121 </ Link >
2222 ) }
23-
2423 { title ? (
2524 < h1 className = "w-full flex-grow text-center text-black text-xl" >
2625 { title }
2726 </ h1 >
2827 ) : (
2928 < CourseMateIcon width = "30px" height = "30px" />
3029 ) }
31- { info && (
32- < Link
33- href = "/faq"
34- passHref
35- className = "-translate-y-1/2 absolute top-1/2 right-3 transform"
36- >
30+ < div className = "dropdown dropdown-end -translate-y-1/2 absolute top-1/2 right-3 transform" >
31+ < button tabIndex = { 0 } className = "btn btn-ghost btn-circle" type = "button" >
3732 < MdInfoOutline size = { 28 } className = "text-gray-500" />
38- </ Link >
39- ) }
33+ </ button >
34+ < div className = "dropdown-content z-[1] w-56 rounded-box bg-base-100 p-2 shadow" >
35+ < p className = "p-2 text-xs" > CourseMate は現在ベータ版です。</ p >
36+ < ul className = "menu p-0" >
37+ < li >
38+ < a
39+ href = "https://forms.gle/WvFTbsJoHjGp9Qt88"
40+ target = "_blank"
41+ rel = "noreferrer"
42+ >
43+ ご意見・バグ報告
44+ </ a >
45+ </ li >
46+ { /* <li
47+ <a>開発に参加する</a>
48+ </li> */ }
49+ < li >
50+ < Link href = "/faq" passHref >
51+ よくある質問
52+ </ Link >
53+ </ li >
54+ </ ul >
55+ </ div >
56+ </ div >
4057 </ header >
4158 ) ;
4259}
You can’t perform that action at this time.
0 commit comments