diff options
Diffstat (limited to 'src/components/Navbar.vue')
-rw-r--r-- | src/components/Navbar.vue | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index d3ceaf8..fd57156 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue | |||
@@ -3,6 +3,12 @@ | |||
3 | <nav class="navbar" role="navigation" aria-label="main navigation"> | 3 | <nav class="navbar" role="navigation" aria-label="main navigation"> |
4 | <div class="container"> | 4 | <div class="container"> |
5 | <div class="navbar-brand"> | 5 | <div class="navbar-brand"> |
6 | <SearchInput | ||
7 | class="search-bar search-bar-mobile is-hidden-desktop" | ||
8 | @input="filterServices" | ||
9 | @search:open="navigateToFirstService" | ||
10 | @search:cancel="filterServices" | ||
11 | /> | ||
6 | <a | 12 | <a |
7 | role="button" | 13 | role="button" |
8 | aria-label="menu" | 14 | aria-label="menu" |
@@ -36,6 +42,13 @@ | |||
36 | </div> | 42 | </div> |
37 | <div class="navbar-end"> | 43 | <div class="navbar-end"> |
38 | <slot></slot> | 44 | <slot></slot> |
45 | |||
46 | <SearchInput | ||
47 | class="navbar-item is-inline-block-mobile is-hidden-touch" | ||
48 | @input="filterServices" | ||
49 | @search:open="navigateToFirstService" | ||
50 | @search:cancel="filterServices" | ||
51 | /> | ||
39 | </div> | 52 | </div> |
40 | </div> | 53 | </div> |
41 | </div> | 54 | </div> |
@@ -44,14 +57,21 @@ | |||
44 | </template> | 57 | </template> |
45 | 58 | ||
46 | <script> | 59 | <script> |
60 | import SearchInput from "./SearchInput.vue"; | ||
61 | |||
47 | export default { | 62 | export default { |
48 | name: "Navbar", | 63 | name: "Navbar", |
64 | components: { | ||
65 | SearchInput, | ||
66 | }, | ||
49 | props: { | 67 | props: { |
50 | open: { | 68 | open: { |
51 | type: Boolean, | 69 | type: Boolean, |
52 | default: false, | 70 | default: false, |
53 | }, | 71 | }, |
54 | links: Array, | 72 | links: Array, |
73 | navigateToFirstService: { type: Function }, | ||
74 | filterServices: { type: Function }, | ||
55 | }, | 75 | }, |
56 | computed: { | 76 | computed: { |
57 | showMenu: function () { | 77 | showMenu: function () { |