@@ -12,61 +12,60 @@ import Hamburger from './Hamburger.component';
12
12
const Navbar = ( ) => {
13
13
return (
14
14
< header >
15
- < nav id = "header" className = "fixed top-0 z-50 w-full py-1 bg-white " >
16
- < div
17
- id = "navbar-div"
18
- className = "container flex flex-wrap items-center justify-between px-6 py-3 mt-0 "
19
-
20
- >
21
- < Hamburger />
15
+ < nav id = "header" className = "fixed top-0 z-50 w-full py-1 bg-white " >
22
16
< div
23
- className = "order-3 hidden w-full md:flex md:items-center md:w-auto md:order-1 "
24
- id = "menu "
17
+ id = "navbar-div "
18
+ className = "container flex flex-wrap items-center justify-between px-6 py-3 mt-0 "
25
19
>
26
- < ul className = "items-center justify-between pt-4 text-base text-gray-700 md:flex md:pt-0" >
27
- < li >
28
- < Link href = "/produkter" >
29
- < a className = "inline-block px-4 py-2 no-underline hover:text-black hover:underline" >
30
- Produkter
31
- </ a >
32
- </ Link >
33
- </ li >
34
- < li >
35
- < Link href = "/kategorier" >
36
- < a className = "inline-block px-4 py-2 no-underline hover:text-black hover:underline" >
37
- Kategorier
38
- </ a >
39
- </ Link >
40
- </ li >
41
- </ ul >
20
+ < Hamburger />
21
+ < div
22
+ className = "order-3 hidden w-full md:flex md:items-center md:w-auto md:order-1"
23
+ id = "menu"
24
+ >
25
+ < ul className = "items-center justify-between pt-4 text-base text-gray-700 md:flex md:pt-0" >
26
+ < li >
27
+ < Link href = "/produkter" >
28
+ < a className = "inline-block px-4 py-2 no-underline hover:text-black hover:underline" >
29
+ Produkter
30
+ </ a >
31
+ </ Link >
32
+ </ li >
33
+ < li >
34
+ < Link href = "/kategorier" >
35
+ < a className = "inline-block px-4 py-2 no-underline hover:text-black hover:underline" >
36
+ Kategorier
37
+ </ a >
38
+ </ Link >
39
+ </ li >
40
+ </ ul >
41
+ </ div >
42
+ < div className = "order-1 md:order-2" >
43
+ < Link href = "/" >
44
+ < a className = "flex items-center text-xl font-bold tracking-wide text-gray-800 no-underline hover:no-underline " >
45
+ < svg
46
+ className = "mr-2 text-gray-800 fill-current"
47
+ xmlns = "http://www.w3.org/2000/svg"
48
+ width = "24"
49
+ height = "24"
50
+ viewBox = "0 0 24 24"
51
+ >
52
+ < path d = "M5,22h14c1.103,0,2-0.897,2-2V9c0-0.553-0.447-1-1-1h-3V7c0-2.757-2.243-5-5-5S7,4.243,7,7v1H4C3.447,8,3,8.447,3,9v11 C3,21.103,3.897,22,5,22z M9,7c0-1.654,1.346-3,3-3s3,1.346,3,3v1H9V7z M5,10h2v2h2v-2h6v2h2v-2h2l0.002,10H5V10z" />
53
+ </ svg >
54
+ NETTBUTIKK
55
+ </ a >
56
+ </ Link >
57
+ </ div >
58
+ < div
59
+ className = "flex items-center order-2 md:order-3"
60
+ id = "nav-content"
61
+ >
62
+ < Search />
63
+ < SVGMobileSearchIcon />
64
+ < Cart />
65
+ </ div >
42
66
</ div >
43
- < div className = "order-1 md:order-2" >
44
- < Link href = "/" >
45
- < a className = "flex items-center text-xl font-bold tracking-wide text-gray-800 no-underline hover:no-underline " >
46
- < svg
47
- className = "mr-2 text-gray-800 fill-current"
48
- xmlns = "http://www.w3.org/2000/svg"
49
- width = "24"
50
- height = "24"
51
- viewBox = "0 0 24 24"
52
- >
53
- < path d = "M5,22h14c1.103,0,2-0.897,2-2V9c0-0.553-0.447-1-1-1h-3V7c0-2.757-2.243-5-5-5S7,4.243,7,7v1H4C3.447,8,3,8.447,3,9v11 C3,21.103,3.897,22,5,22z M9,7c0-1.654,1.346-3,3-3s3,1.346,3,3v1H9V7z M5,10h2v2h2v-2h6v2h2v-2h2l0.002,10H5V10z" />
54
- </ svg >
55
- NETTBUTIKK
56
- </ a >
57
- </ Link >
58
- </ div >
59
- < div
60
- className = "flex items-center order-2 md:order-3"
61
- id = "nav-content"
62
- >
63
- < Search />
64
- < SVGMobileSearchIcon />
65
- < Cart />
66
- </ div >
67
- </ div >
68
- </ nav >
69
- </ header >
67
+ </ nav >
68
+ </ header >
70
69
) ;
71
70
} ;
72
71
0 commit comments