@@ -4,37 +4,44 @@ import { ThemeToggle } from "./[docs_id]/themeToggle";
44export function Navbar ( ) {
55 return (
66 < >
7- { /* fixedのヘッダーの分だけスクロールするコンテンツを下に移動するためのdiv */ }
8- < div className = "h-16 lg:hidden" />
7+ { /* fixedのヘッダーの分だけスクロールするコンテンツを下に移動するためのdiv */ }
8+ < div className = "h-16 lg:hidden" />
99
10- < div className = "h-16 navbar bg-base-200 w-full fixed lg:hidden flex gap-4 z-40 shadow-md" >
11- < div className = "flex-none" >
12- { /* サイドバーを開閉するボタン */ }
13- < label
14- htmlFor = "drawer-toggle"
15- aria-label = "open sidebar"
16- className = "btn btn-square btn-ghost"
17- >
18- < svg
19- xmlns = "http://www.w3.org/2000/svg"
20- fill = "none"
21- viewBox = "0 0 24 24"
22- className = "inline-block h-6 w-6 stroke-current"
10+ < div className = "h-16 navbar bg-base-200 w-full fixed lg:hidden flex gap-4 z-40 shadow-md" >
11+ < div className = "flex-none" >
12+ { /* サイドバーを開閉するボタン */ }
13+ < label
14+ htmlFor = "drawer-toggle"
15+ aria-label = "open sidebar"
16+ className = "btn btn-square btn-ghost"
2317 >
24- < path
25- strokeLinecap = "round"
26- strokeLinejoin = "round"
27- strokeWidth = "2"
28- d = "M4 6h16M4 12h16M4 18h16"
29- />
30- </ svg >
31- </ label >
18+ < svg
19+ xmlns = "http://www.w3.org/2000/svg"
20+ fill = "none"
21+ viewBox = "0 0 24 24"
22+ className = "inline-block h-6 w-6 stroke-current"
23+ >
24+ < path
25+ strokeLinecap = "round"
26+ strokeLinejoin = "round"
27+ strokeWidth = "2"
28+ d = "M4 6h16M4 12h16M4 18h16"
29+ />
30+ </ svg >
31+ </ label >
32+ </ div >
33+ { /* サイドバーが常時表示されている場合のみ */ }
34+ < Link href = "/" className = "flex-1 font-bold text-xl" >
35+ < img
36+ src = "/icon.svg"
37+ alt = "icon"
38+ className = "inline-block w-8 h-8 mr-2"
39+ />
40+ my.code();
41+ </ Link >
42+ < ThemeToggle />
43+ < AccountMenu />
3244 </ div >
33- { /* サイドバーが常時表示されている場合のみ */ }
34- < Link href = "/" className = "flex-1 font-bold text-xl" > my.code();</ Link >
35- < ThemeToggle />
36- < AccountMenu />
37- </ div >
3845 </ >
3946 ) ;
4047}
0 commit comments