|
1 | 1 | <template> |
2 | | - <header role="banner" class="container flex flex-col justify-center px-0 pt-6 mx-auto mb-6"> |
| 2 | + <header |
| 3 | + role="banner" |
| 4 | + class="container flex flex-col justify-center px-0 pt-6 mx-auto mb-6" |
| 5 | + > |
3 | 6 | <div class="flex flex-wrap lg:px-4"> |
4 | 7 | <div class="w-9/12 pr-2 my-2 overflow-hidden lg:w-3/12 md:w-10/12"> |
5 | 8 | <div class="ml-4 lg:ml-0"> |
6 | | - <img alt="Logo" class="h-20 lg:h-24" aria-label="Nettbutikk logo" src="~/assets/svg/Logo.svg" /> |
| 9 | + <img |
| 10 | + alt="Logo" |
| 11 | + class="h-20 lg:h-24" |
| 12 | + aria-label="Nettbutikk logo" |
| 13 | + src="~/assets/svg/Logo.svg" |
| 14 | + /> |
7 | 15 | </div> |
8 | 16 | </div> |
9 | 17 | <LayoutMobileMenu /> |
10 | 18 | <div class="hidden lg:w-1/12 lg:block" /> |
11 | | - <div id="nav-content" class="hidden w-full mt-4 bg-black lg:w-8/12 lg:block lg:bg-white lg:mt-0 lg:text-right"> |
| 19 | + <div |
| 20 | + id="nav-content" |
| 21 | + class="hidden w-full mt-4 bg-black lg:w-8/12 lg:block lg:bg-white lg:mt-0 lg:text-right" |
| 22 | + > |
12 | 23 | <div class="px-6 lg:px-0 lg:pt-5 xl:pt-7"> |
13 | 24 | <div> |
14 | | - <nav id="block-main" role="navigation" aria-labelledby="block-main-menu"> |
15 | | - <ul class="items-center justify-end flex-1 pr-4 -mr-4 list-reset lg:flex"> |
16 | | - <li class="inline-block py-2 text-xl font-semibold no-underline lg:text-base lg:px-4"> |
| 25 | + <nav |
| 26 | + id="block-main" |
| 27 | + role="navigation" |
| 28 | + aria-labelledby="block-main-menu" |
| 29 | + > |
| 30 | + <ul |
| 31 | + class="items-center justify-end flex-1 pr-4 -mr-4 list-reset lg:flex" |
| 32 | + > |
| 33 | + <li |
| 34 | + class="inline-block py-2 text-xl font-semibold no-underline lg:text-base lg:px-4" |
| 35 | + > |
17 | 36 | <NuxtLink to="/"> |
18 | | - <span class="text-xl text-white no-underline lg:text-black is-active"> |
| 37 | + <span |
| 38 | + class="text-xl text-white no-underline lg:text-black is-active" |
| 39 | + > |
19 | 40 | Home |
20 | 41 | </span> |
21 | 42 | </NuxtLink> |
22 | 43 | </li> |
23 | | - <li class="inline-block py-2 text-xl font-semibold no-underline lg:text-base lg:px-4"> |
| 44 | + <li |
| 45 | + class="inline-block py-2 text-xl font-semibold no-underline lg:text-base lg:px-4" |
| 46 | + > |
24 | 47 | <NuxtLink to="/products"> |
25 | | - <span class="text-xl text-white no-underline lg:text-black">Products</span> |
| 48 | + <span class="text-xl text-white no-underline lg:text-black" |
| 49 | + >Products</span |
| 50 | + > |
26 | 51 | </NuxtLink> |
27 | 52 | </li> |
28 | | - <li class="inline-block py-2 text-xl font-semibold no-underline lg:text-base lg:px-4"> |
| 53 | + <li |
| 54 | + class="inline-block py-2 text-xl font-semibold no-underline lg:text-base lg:px-4" |
| 55 | + > |
29 | 56 | <NuxtLink to="/categories"> |
30 | | - <span class="text-xl text-white no-underline lg:text-black is-active">Categories</span> |
| 57 | + <span |
| 58 | + class="text-xl text-white no-underline lg:text-black is-active" |
| 59 | + >Categories</span |
| 60 | + > |
31 | 61 | </NuxtLink> |
32 | 62 | </li> |
33 | | - <li class="inline-block py-2 text-xl font-semibold no-underline lg:text-base lg:px-4"> |
| 63 | + <li |
| 64 | + class="inline-block py-2 text-xl font-semibold no-underline lg:text-base lg:px-4" |
| 65 | + > |
34 | 66 | <NuxtLink to="/search"> |
35 | | - <span class="text-xl text-white no-underline lg:text-black is-active">Search</span> |
| 67 | + <span |
| 68 | + class="text-xl text-white no-underline lg:text-black is-active" |
| 69 | + >Search</span |
| 70 | + > |
36 | 71 | </NuxtLink> |
37 | 72 | </li> |
38 | | - <li class="inline-block py-2 text-xl font-semibold no-underline lg:text-base lg:px-4"> |
| 73 | + <li |
| 74 | + class="inline-block py-2 text-xl font-semibold no-underline lg:text-base lg:px-4" |
| 75 | + > |
39 | 76 | <LayoutCart /> |
40 | 77 | </li> |
41 | 78 | </ul> |
|
47 | 84 | </header> |
48 | 85 | </template> |
49 | 86 |
|
| 87 | +<script setup> |
| 88 | +/** |
| 89 | + * |
| 90 | + * Vue.js template for a header section of a web page. |
| 91 | + * |
| 92 | + */ |
| 93 | +</script> |
| 94 | + |
50 | 95 | <style scoped> |
51 | 96 | header { |
52 | 97 | max-width: 1400px; |
|
0 commit comments