@@ -4,55 +4,73 @@ import {
44 typstOfficialDocsUrl ,
55 typstOfficialUrl ,
66} from "../../../metadata" ;
7- import { DiscordIcon , GitHubIcon } from "../../icons" ;
7+ import { DiscordIcon , GitHubIcon , MenuIcon } from "../../icons" ;
88import { SiteTitle } from "./SiteTitle" ;
99
1010export const Header = ( ) => {
1111 return (
12- < header class = "boring sticky top-0 z-40 bg-white border-b border-gray-200" >
13- < div class = "flex justify-between items-center py-3 px-6" >
14- < SiteTitle />
15- < nav class = "ml-auto" >
16- < ul class = "flex items-center gap-4" >
17- < li class = "social" >
18- < a
19- href = { discordServerUrl }
20- class = "text-gray-600 hover:text-gray-800 transition-colors"
21- >
22- < div class = "w-4 h-4" >
23- < DiscordIcon />
24- </ div >
25- </ a >
26- </ li >
27- < li class = "social" >
28- < a
29- href = { githubRepositoryUrl }
30- class = "text-gray-600 hover:text-gray-800 transition-colors"
31- >
32- < div class = "w-4 h-4 text-gray-600 hover:text-gray-800 transition-colors" >
33- < GitHubIcon />
34- </ div >
35- </ a >
36- </ li >
37- < li class = "secondary" >
38- < a
39- href = { typstOfficialUrl }
40- class = "text-sm text-gray-600 hover:text-gray-800 transition-colors"
41- >
42- Typst公式サイト
43- </ a >
44- </ li >
45- < li class = "secondary" >
46- < a
47- href = { typstOfficialDocsUrl }
48- class = "text-sm text-gray-600 hover:text-gray-800 transition-colors"
49- >
50- Typst公式ドキュメント
51- </ a >
52- </ li >
53- </ ul >
54- </ nav >
55- </ div >
56- </ header >
12+ < >
13+ < header class = "boring sticky top-0 z-40 bg-white border-b border-gray-200 hidden lg:block" >
14+ < div class = "flex justify-between items-center py-3 px-6" >
15+ < SiteTitle />
16+ < nav class = "ml-auto" >
17+ < ul class = "flex items-center gap-4" >
18+ < li class = "social" >
19+ < a
20+ href = { discordServerUrl }
21+ class = "text-gray-600 hover:text-gray-800 transition-colors"
22+ >
23+ < div class = "w-4 h-4" >
24+ < DiscordIcon />
25+ </ div >
26+ </ a >
27+ </ li >
28+ < li class = "social" >
29+ < a
30+ href = { githubRepositoryUrl }
31+ class = "text-gray-600 hover:text-gray-800 transition-colors"
32+ >
33+ < div class = "w-4 h-4 text-gray-600 hover:text-gray-800 transition-colors" >
34+ < GitHubIcon />
35+ </ div >
36+ </ a >
37+ </ li >
38+ < li class = "secondary" >
39+ < a
40+ href = { typstOfficialUrl }
41+ class = "text-sm text-gray-600 hover:text-gray-800 transition-colors"
42+ >
43+ Typst公式サイト
44+ </ a >
45+ </ li >
46+ < li class = "secondary" >
47+ < a
48+ href = { typstOfficialDocsUrl }
49+ class = "text-sm text-gray-600 hover:text-gray-800 transition-colors"
50+ >
51+ Typst公式ドキュメント
52+ </ a >
53+ </ li >
54+ </ ul >
55+ </ nav >
56+ </ div >
57+ </ header >
58+
59+ < header class = "sticky top-0 z-30 bg-white border-b border-gray-200 flex lg:hidden items-center justify-between px-4" >
60+ < div class = "flex justify-between items-center py-3 w-full" >
61+ < SiteTitle />
62+ < button
63+ type = "button"
64+ class = "p-1 bg-white rounded-md border border-gray-200"
65+ x-on :click = "sidebarOpen = !sidebarOpen"
66+ aria-label = "メニューを開く"
67+ >
68+ < div class = "w-6 h-6 text-gray-600 hover:text-gray-800 transition-colors" >
69+ < MenuIcon />
70+ </ div >
71+ </ button >
72+ </ div >
73+ </ header >
74+ </ >
5775 ) ;
5876} ;
0 commit comments