1
+ import Head from 'next/head' ;
2
+ import Image from 'next/image' ;
3
+ import Link from 'next/link' ;
4
+ import index from '../pages/index' ;
5
+ import about from '../pages/about' ;
6
+ import tech from '../pages/tech' ;
7
+ import misc from '../pages/misc' ;
8
+
9
+ function Navbar ( ) {
10
+ return (
11
+ < >
12
+
13
+ < nav className = "relative bg-white border-b-2 border-gray-300 text-gray-900" >
14
+ < div className = "container mx-auto flex justify-between" >
15
+ /* < div className = "relative block p-4 lg:p-6 text-xl text-blue-600 font-bold" > Logo</ div > */
16
+ < ul className = "flex" >
17
+ { /*Regular Link*/ }
18
+ < li className = "hover:bg-blue-800 hover:text-white" >
19
+ < a href = "#" className = "relative block py-6 px-2 lg:p-6 text-sm lg:text-base font-bold" > Normal</ a >
20
+ </ li >
21
+ { /*Toggleable Link*/ }
22
+ < li className = "toggleable hover:bg-blue-800 hover:text-white" >
23
+ < input type = "checkbox" defaultValue = "selected" id = "toggle-one" className = "toggle-input" />
24
+ < label htmlFor = "toggle-one" className = "block cursor-pointer py-6 px-4 lg:p-6 text-sm lg:text-base font-bold" > Click</ label >
25
+ < div role = "toggle" className = "p-6 mega-menu mb-16 sm:mb-0 shadow-xl bg-blue-800" >
26
+ < div className = "container mx-auto w-full flex flex-wrap justify-between mx-2" >
27
+ < ul className = "px-4 w-full sm:w-1/2 lg:w-1/4 border-gray-600 border-b sm:border-r lg:border-b-0 pb-6 pt-6 lg:pt-3" >
28
+ < h3 className = "font-bold text-xl text-white text-bold mb-2" > Heading 1</ h3 >
29
+ < li >
30
+ < a href = "#" className = "block p-3 hover:bg-blue-600 text-gray-300 hover:text-white" > Category One Sublink</ a >
31
+ </ li >
32
+ < li >
33
+ < a href = "#" className = "block p-3 hover:bg-blue-600 text-gray-300 hover:text-white" > Category One Sublink</ a >
34
+ </ li >
35
+ < li >
36
+ < a href = "#" className = "block p-3 hover:bg-blue-600 text-gray-300 hover:text-white" > Category One Sublink</ a >
37
+ </ li >
38
+ < li >
39
+ < a href = "#" className = "block p-3 hover:bg-blue-600 text-gray-300 hover:text-white" > Category One Sublink</ a >
40
+ </ li >
41
+ < li >
42
+ < a href = "#" className = "block p-3 hover:bg-blue-600 text-gray-300 hover:text-white" > Category One Sublink</ a >
43
+ </ li >
44
+ </ ul >
45
+ < ul className = "px-4 w-full sm:w-1/2 lg:w-1/4 border-gray-600 border-b sm:border-r-0 lg:border-r lg:border-b-0 pb-6 pt-6 lg:pt-3" >
46
+ < h3 className = "font-bold text-xl text-white text-bold mb-2" > Heading 2</ h3 >
47
+ < li >
48
+ < a href = "#" className = "block p-3 hover:bg-blue-600 text-gray-300 hover:text-white" > Category One Sublink</ a >
49
+ </ li >
50
+ < li >
51
+ < a href = "#" className = "block p-3 hover:bg-blue-600 text-gray-300 hover:text-white" > Category One Sublink</ a >
52
+ </ li >
53
+ < li >
54
+ < a href = "#" className = "block p-3 hover:bg-blue-600 text-gray-300 hover:text-white" > Category One Sublink</ a >
55
+ </ li >
56
+ < li >
57
+ < a href = "#" className = "block p-3 hover:bg-blue-600 text-gray-300 hover:text-white" > Category One Sublink</ a >
58
+ </ li >
59
+ < li >
60
+ < a href = "#" className = "block p-3 hover:bg-blue-600 text-gray-300 hover:text-white" > Category One Sublink</ a >
61
+ </ li >
62
+ </ ul >
63
+ < ul className = "px-4 w-full sm:w-1/2 lg:w-1/4 border-gray-600 border-b sm:border-b-0 sm:border-r md:border-b-0 pb-6 pt-6 lg:pt-3" >
64
+ < h3 className = "font-bold text-xl text-white text-bold" > Heading 3</ h3 >
65
+ < li >
66
+ < a href = "#" className = "block p-3 hover:bg-blue-600 text-gray-300 hover:text-white" > Category One Sublink</ a >
67
+ </ li >
68
+ < li >
69
+ < a href = "#" className = "block p-3 hover:bg-blue-600 text-gray-300 hover:text-white" > Category One Sublink</ a >
70
+ </ li >
71
+ < li >
72
+ < a href = "#" className = "block p-3 hover:bg-blue-600 text-gray-300 hover:text-white" > Category One Sublink</ a >
73
+ </ li >
74
+ < li >
75
+ < a href = "#" className = "block p-3 hover:bg-blue-600 text-gray-300 hover:text-white" > Category One Sublink</ a >
76
+ </ li >
77
+ < li >
78
+ < a href = "#" className = "block p-3 hover:bg-blue-600 text-gray-300 hover:text-white" > Category One Sublink</ a >
79
+ </ li >
80
+ </ ul >
81
+ < ul className = "px-4 w-full sm:w-1/2 lg:w-1/4 border-gray-600 pb-6 pt-6 lg:pt-3" >
82
+ < h3 className = "font-bold text-xl text-white text-bold mb-2" > Heading 4</ h3 >
83
+ < li className = "pt-3" >
84
+ < img src = "https://placehold.it/205x172" />
85
+ </ li >
86
+ </ ul >
87
+ </ div >
88
+ </ div >
89
+ </ li >
90
+ { /* ## Toggleable Link Template ##
91
+
92
+ <li class="toggleable"><input type="checkbox" value="selected" id="toggle-xxx" class="toggle-input"><label for="toggle-xxx" class="cursor-pointer">Click</label><div role="toggle" class="mega-menu">
93
+ Add your mega menu content
94
+ </div></li>
95
+
96
+ */ }
97
+ { /*Hoverable Link*/ }
98
+ < li className = "hoverable hover:bg-blue-800 hover:text-white" >
99
+ < a href = "#" className = "relative block py-6 px-4 lg:p-6 text-sm lg:text-base font-bold hover:bg-blue-800 hover:text-white" > Hover</ a >
100
+ < div className = "p-6 mega-menu mb-16 sm:mb-0 shadow-xl bg-blue-800" >
101
+ < div className = "container mx-auto w-full flex flex-wrap justify-between mx-2" >
102
+ < div className = "w-full text-white mb-8" >
103
+ < h2 className = "font-bold text-2xl" > Main Hero Message for the menu section</ h2 >
104
+ < p > Sub-hero message, not too long and not too short. Make it just right!</ p >
105
+ </ div >
106
+ < ul className = "px-4 w-full sm:w-1/2 lg:w-1/4 border-gray-600 border-b sm:border-r lg:border-b-0 pb-6 pt-6 lg:pt-3" >
107
+ < div className = "flex items-center" >
108
+ < svg className = "h-8 mb-3 mr-3 fill-current text-white" xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 20 20" >
109
+ < path d = "M3 6c0-1.1.9-2 2-2h8l4-4h2v16h-2l-4-4H5a2 2 0 0 1-2-2H1V6h2zm8 9v5H8l-1.67-5H5v-2h8v2h-2z" />
110
+ </ svg >
111
+ < h3 className = "font-bold text-xl text-white text-bold mb-2" > Heading 1</ h3 >
112
+ </ div >
113
+ < p className = "text-gray-100 text-sm" > Quarterly sales are at an all-time low create spaces to explore the accountable talk and blind vampires.</ p >
114
+ < div className = "flex items-center py-3" >
115
+ < svg className = "h-6 pr-3 fill-current text-blue-300" xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 20 20" >
116
+ < path d = "M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0zm-8 2H5V8h5V5l5 5-5 5v-3z" />
117
+ </ svg >
118
+ < a href = "#" className = "text-white bold border-b-2 border-blue-300 hover:text-blue-300" > Find out more...</ a >
119
+ </ div >
120
+ </ ul >
121
+ < ul className = "px-4 w-full sm:w-1/2 lg:w-1/4 border-gray-600 border-b sm:border-r-0 lg:border-r lg:border-b-0 pb-6 pt-6 lg:pt-3" >
122
+ < div className = "flex items-center" >
123
+ < svg className = "h-8 mb-3 mr-3 fill-current text-white" xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 20 20" >
124
+ < path d = "M4.13 12H4a2 2 0 1 0 1.8 1.11L7.86 10a2.03 2.03 0 0 0 .65-.07l1.55 1.55a2 2 0 1 0 3.72-.37L15.87 8H16a2 2 0 1 0-1.8-1.11L12.14 10a2.03 2.03 0 0 0-.65.07L9.93 8.52a2 2 0 1 0-3.72.37L4.13 12zM0 4c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4z" />
125
+ </ svg >
126
+ < h3 className = "font-bold text-xl text-white text-bold mb-2" > Heading 2</ h3 >
127
+ </ div >
128
+ < p className = "text-gray-100 text-sm" > Prioritize these line items game-plan draw a line in the sand come up with something buzzworthy UX upstream selling.</ p >
129
+ < div className = "flex items-center py-3" >
130
+ < svg className = "h-6 pr-3 fill-current text-blue-300" xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 20 20" >
131
+ < path d = "M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0zm-8 2H5V8h5V5l5 5-5 5v-3z" />
132
+ </ svg >
133
+ < a href = "#" className = "text-white bold border-b-2 border-blue-300 hover:text-blue-300" > Find out more...</ a >
134
+ </ div >
135
+ </ ul >
136
+ < ul className = "px-4 w-full sm:w-1/2 lg:w-1/4 border-gray-600 border-b sm:border-b-0 sm:border-r md:border-b-0 pb-6 pt-6 lg:pt-3" >
137
+ < div className = "flex items-center" >
138
+ < svg className = "h-8 mb-3 mr-3 fill-current text-white" xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 20 20" >
139
+ < path d = "M2 4v14h14v-6l2-2v10H0V2h10L8 4H2zm10.3-.3l4 4L8 16H4v-4l8.3-8.3zm1.4-1.4L16 0l4 4-2.3 2.3-4-4z" />
140
+ </ svg >
141
+ < h3 className = "font-bold text-xl text-white text-bold mb-2" > Heading 3</ h3 >
142
+ </ div >
143
+ < p className = "text-gray-100 text-sm" > This proposal is a win-win situation which will cause a stellar paradigm shift, let's touch base off-line before we fire the new ux experience.</ p >
144
+ < div className = "flex items-center py-3" >
145
+ < svg className = "h-6 pr-3 fill-current text-blue-300" xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 20 20" >
146
+ < path d = "M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0zm-8 2H5V8h5V5l5 5-5 5v-3z" />
147
+ </ svg >
148
+ < a href = "#" className = "text-white bold border-b-2 border-blue-300 hover:text-blue-300" > Find out more...</ a >
149
+ </ div >
150
+ </ ul >
151
+ < ul className = "px-4 w-full sm:w-1/2 lg:w-1/4 border-gray-600 pb-6 pt-6 lg:pt-3" >
152
+ < div className = "flex items-center" >
153
+ < svg className = "h-8 mb-3 mr-3 fill-current text-white" xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 20 20" >
154
+ < path d = "M9 12H1v6a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-6h-8v2H9v-2zm0-1H0V5c0-1.1.9-2 2-2h4V2a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1h4a2 2 0 0 1 2 2v6h-9V9H9v2zm3-8V2H8v1h4z" />
155
+ </ svg >
156
+ < h3 className = "font-bold text-xl text-white text-bold mb-2" > Heading 4</ h3 >
157
+ </ div >
158
+ < p className = "text-gray-100 text-sm" > This is a no-brainer to wash your face, or we need to future-proof this high performance keywords granularity.</ p >
159
+ < div className = "flex items-center py-3" >
160
+ < svg className = "h-6 pr-3 fill-current text-blue-300" xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 20 20" >
161
+ < path d = "M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0zm-8 2H5V8h5V5l5 5-5 5v-3z" />
162
+ </ svg >
163
+ < a href = "#" className = "text-white bold border-b-2 border-blue-300 hover:text-blue-300" > Find out more...</ a >
164
+ </ div >
165
+ </ ul >
166
+ </ div >
167
+ </ div >
168
+ </ li >
169
+ { /* ## Hoverable Link Template ##
170
+
171
+ <li class="hoverable hover:bg-blue-800 hover:text-white"><a href="#" class="relative block">x</a><div class="mega-menu">
172
+ Add your mega menu content
173
+ </div></li>
174
+
175
+ */ }
176
+ </ ul >
177
+ </ div >
178
+ </ nav >
179
+
180
+
181
+ </ >
182
+ )
183
+ }
184
+
185
+ export default Navbar
0 commit comments