Skip to content

Commit 09ae78c

Browse files
committed
Jsdoc
1 parent 062e87b commit 09ae78c

File tree

1 file changed

+59
-14
lines changed

1 file changed

+59
-14
lines changed

components/Layout/LayoutNavbar.vue

Lines changed: 59 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,78 @@
11
<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+
>
36
<div class="flex flex-wrap lg:px-4">
47
<div class="w-9/12 pr-2 my-2 overflow-hidden lg:w-3/12 md:w-10/12">
58
<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+
/>
715
</div>
816
</div>
917
<LayoutMobileMenu />
1018
<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+
>
1223
<div class="px-6 lg:px-0 lg:pt-5 xl:pt-7">
1324
<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+
>
1736
<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+
>
1940
Home
2041
</span>
2142
</NuxtLink>
2243
</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+
>
2447
<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+
>
2651
</NuxtLink>
2752
</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+
>
2956
<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+
>
3161
</NuxtLink>
3262
</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+
>
3466
<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+
>
3671
</NuxtLink>
3772
</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+
>
3976
<LayoutCart />
4077
</li>
4178
</ul>
@@ -47,6 +84,14 @@
4784
</header>
4885
</template>
4986

87+
<script setup>
88+
/**
89+
*
90+
* Vue.js template for a header section of a web page.
91+
*
92+
*/
93+
</script>
94+
5095
<style scoped>
5196
header {
5297
max-width: 1400px;

0 commit comments

Comments
 (0)