@burh/nuxt-core 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/assets/css/variables.css +3 -0
  2. package/assets/sass/argon-panna.scss +106 -0
  3. package/assets/sass/argon-test-online.scss +106 -0
  4. package/assets/sass/burh-ds/_variables.scss +1 -0
  5. package/assets/sass/burh-ds/organisms/_cards.scss +36 -4
  6. package/assets/sass/burh-ds/variables/_colors-panna.scss +303 -0
  7. package/assets/sass/burh-ds/variables/_colors-test-online.scss +303 -0
  8. package/assets/sass/burh-ds/variables/_colors.scss +0 -1
  9. package/assets/sass/custom/_variables.scss +1 -0
  10. package/components/argon-core/BaseDropdown.vue +1 -1
  11. package/components/argon-core/Modal.vue +1 -1
  12. package/components/burh-ds/Avatar/AvatarLink.vue +24 -18
  13. package/components/burh-ds/Button/ExportButton.vue +3 -8
  14. package/components/burh-ds/Cards/TestCard.vue +181 -0
  15. package/components/burh-ds/Cards/WelcomeCard.vue +48 -42
  16. package/components/burh-ds/Dropdown/AppLinkArea.vue +125 -39
  17. package/components/burh-ds/Dropdown/DropdownItem.vue +21 -16
  18. package/components/burh-ds/Dropdown/DropdownSection.vue +26 -26
  19. package/components/burh-ds/Dropdown/FaqVideoArea.vue +79 -65
  20. package/components/burh-ds/Dropdown/SignOutItem.vue +6 -6
  21. package/components/burh-ds/Dropdown/UserMenuDropdown.vue +54 -48
  22. package/components/burh-ds/Groups/SimpleProductItem.vue +26 -11
  23. package/components/burh-ds/Headings/AppHeader.vue +46 -47
  24. package/components/burh-ds/Headings/StepHeader.vue +95 -51
  25. package/components/burh-ds/Link/DefaultLink.vue +31 -0
  26. package/components/burh-ds/Lists/ListNavLinks.vue +47 -34
  27. package/components/burh-ds/Modals/AppConfigModal.vue +158 -156
  28. package/components/burh-ds/Modals/SendTest.vue +170 -0
  29. package/components/burh-ds/Modals/VideoModal.vue +15 -5
  30. package/components/burh-ds/Navbar/BaseNav.vue +2 -2
  31. package/components/burh-ds/Pagination/NamedPagination.vue +179 -0
  32. package/components/burh-ds/Questions/Question.vue +76 -36
  33. package/components/burh-ds/Questions/QuestionAttach.vue +1 -1
  34. package/components/burh-ds/Questions/QuestionRadio.vue +79 -73
  35. package/components/burh-ds/Questions/QuestionRadioItem.vue +25 -18
  36. package/components/burh-ds/Questions/QuestionText.vue +53 -22
  37. package/components/burh-ds/Tabs/TesteTab.vue +100 -0
  38. package/components/layouts/burh-ds/navbar/AppNavbar.vue +73 -35
  39. package/components/layouts/burh-ds/navbar/BusinessGlobalNavbar.vue +385 -242
  40. package/package.json +2 -2
  41. package/components/burh-ds/Cards/RecentTestCard.vue +0 -51
  42. package/data/ListNavLinksMock.json +0 -113
@@ -1,233 +1,374 @@
1
1
  <template>
2
- <base-nav
3
- id="business__nav"
4
- v-model="showMenu"
5
- container-classes="container-fluid container-fluid--bu"
6
- class="navbar-main navbar-blue"
7
- expand="lg"
8
- type="primary"
9
- >
10
- <div
11
- slot="brand"
12
- class="navbar-wrapper d-flex"
13
- v-if="!appMode"
14
- >
15
- <nuxt-link class="navbar-brand d-flex pt-2" to="/">
16
- <img
17
- src="/img/brand/burh-imagotipo-white.svg"
18
- class="navbar-brand-img navbar-brand-img--full"
19
- alt="BURH: Suas vagas"
20
- >
21
- </nuxt-link>
2
+ <base-nav
3
+ id="business__nav"
4
+ v-model="showMenu"
5
+ container-classes="container-fluid container-fluid--bu"
6
+ class="navbar-main navbar-blue"
7
+ expand="lg"
8
+ type="primary"
9
+ >
10
+ <div
11
+ slot="brand"
12
+ class="navbar-wrapper d-flex"
13
+ >
14
+ <nuxt-link class="navbar-brand d-flex" to="/">
15
+ <img
16
+ src="/img/brand/burh-imagotipo-white.svg"
17
+ class="navbar-brand-img navbar-brand-img--full"
18
+ alt="BURH: Suas vagas"
19
+ >
20
+ </nuxt-link>
22
21
 
23
- <ul class= "navbar-nav align-items-center d-none d-lg-flex flex-row mr-sm-auto">
24
- <navbar-links
25
- v-for="(item, index) in listOfLinks" :key="index"
26
- :name="item.name"
27
- :id="item.id"
28
- :link="item.link"
29
- :children="item.children"
30
- />
31
- </ul>
32
- </div>
22
+ <ul class= "navbar-nav align-items-center d-none d-lg-flex flex-row mr-sm-auto">
23
+ <navbar-links
24
+ v-for="(item, index) in listOfLinks" :key="index"
25
+ :name="item.name"
26
+ :id="item.id"
27
+ :link="item.link"
28
+ :children="item.children"
29
+ />
30
+ </ul>
31
+ </div>
33
32
 
34
- <ul class="navbar-nav navbar-nav--menu align-items-center mr-md-auto">
35
- <template v-if="currentUser == null">
36
- <li class="nav-item">
37
- <button
38
- @click="toLogin()"
39
- class="btn btn-block"
40
- :class="{'btn-outline-light': !showMenu, 'btn-primary': showMenu, 'btn-light': !showMenu}"
41
- >
42
- Entrar
43
- </button>
44
- <hr class="d-lg-none mt-3 mb-3">
45
- </li>
46
- <li class="nav-item">
47
- <a
48
- v-if="showMenu"
49
- href="javascript:void(0)"
50
- @click="$router.push('/empresas/cadastro/criar-conta')"
51
- class="btn"
52
- :class="{'btn-light': !showMenu, 'btn-outline-primary': showMenu}"
53
- >
54
- Cadastrar-se
55
- </a>
56
- </li>
57
- </template>
58
- </ul>
33
+ <ul class="navbar-nav navbar-nav--menu align-items-center mr-md-auto">
34
+ <template v-if="currentUser == null">
35
+ <li class="nav-item">
36
+ <button
37
+ @click="toLogin()"
38
+ class="btn btn-block"
39
+ :class="{'btn-outline-light': !showMenu, 'btn-primary': showMenu, 'btn-light': !showMenu}"
40
+ >
41
+ Entrar
42
+ </button>
43
+ <hr class="d-lg-none mt-3 mb-3">
44
+ </li>
45
+ <li class="nav-item">
46
+ <a
47
+ v-if="showMenu"
48
+ href="javascript:void(0)"
49
+ @click="$router.push('/empresas/cadastro/criar-conta')"
50
+ class="btn"
51
+ :class="{'btn-light': !showMenu, 'btn-outline-primary': showMenu}"
52
+ >
53
+ Cadastrar-se
54
+ </a>
55
+ </li>
56
+ </template>
57
+ </ul>
59
58
 
60
- <faq-video-area
61
- v-if="currentUser != null"
62
- :videos="listOfVideos"
63
- v-on:open-video-modal="openModalVideo"
64
- class="white-block"
65
- />
66
- <video-modal
67
- :show="videoModalProperties.showModal"
68
- :link="this.videoModalProperties.link"
69
- :title="this.videoModalProperties.title"
70
- />
59
+ <faq-video-area
60
+ v-if="currentUser != null"
61
+ :videos="listOfVideos"
62
+ v-on:open-video-modal="openModalVideo"
63
+ class="white-block"
64
+ />
65
+ <video-modal
66
+ :show="videoModalProperties.showModal"
67
+ :link="this.videoModalProperties.link"
68
+ :title="this.videoModalProperties.title"
69
+ />
71
70
 
72
- <app-link-area
73
- v-if="currentUser != null"
74
- class="white-block"
75
- />
76
- <user-menu-dropdown
77
- slot="user"
78
- v-if="currentUser != null"
79
- :text="userMenuText"
80
- :userAvatar="currentUser.avatar"
81
- :userName="currentUser.name"
82
- :companyLogo="currentCompany.logo"
83
- :companyName="currentCompany.name"
84
- class="text-color"
85
- />
86
- <slot></slot>
87
- </base-nav>
71
+ <app-link-area
72
+ v-if="currentUser != null"
73
+ class="white-block"
74
+ :showableProducts="showableProducts"
75
+ :activeProducts="activeProducts"
76
+ :apps="gridApps"
77
+ />
78
+ <user-menu-dropdown
79
+ slot="user"
80
+ v-if="currentUser != null"
81
+ :text="userMenuText"
82
+ :userAvatar="currentUser.avatar"
83
+ :userName="currentUser.name"
84
+ :companies="currentUser.companies"
85
+ :companyLogo="currentCompany.logo"
86
+ :companyName="currentCompany.name"
87
+ @logout="$emit('logout')"
88
+ >
89
+ <avatar-link
90
+ slot="companies"
91
+ v-for="company in currentUser.companies"
92
+ :key="company.name"
93
+ :logo="company.logo"
94
+ :name="company.name"
95
+ class="dropdown-item"
96
+ :data="company"
97
+ @avatar-click="handleAvatarClick(company)"
98
+ />
99
+ </user-menu-dropdown>
100
+ <slot></slot>
101
+ </base-nav>
88
102
  </template>
89
103
 
90
104
  <script>
91
- import { CollapseTransition } from 'vue2-transitions';
92
- import UserMenuDropdown from '@burh/nuxt-core/components/burh-ds/Dropdown/UserMenuDropdown.vue';
93
- import BaseNav from '@burh/nuxt-core/components/burh-ds/Navbar/BaseNav.vue';
94
- import VideoModal from '@burh/nuxt-core/components/burh-ds/Modals/VideoModal.vue';
95
- import NavbarLinks from '@burh/nuxt-core/components/burh-ds/Lists/ListNavLinks.vue';
96
- import AppLinkArea from '@burh/nuxt-core/components/burh-ds/Dropdown/AppLinkArea.vue';
97
- import FaqVideoArea from '@burh/nuxt-core/components/burh-ds/Dropdown/FaqVideoArea.vue';
98
- import Modal from '@burh/nuxt-core/components/argon-core/Modal.vue';
99
- import * as ListofLinksNavbar from '@burh/nuxt-core/data/ListNavLinksMock.json';
100
- import * as ListVideos from '@burh/nuxt-core/data/ListVideoLinksMock.json';
101
- import moment from 'moment';
102
- import 'moment/locale/pt-br';
103
- import * as _ from 'lodash';
104
- export default {
105
- components: {
106
- CollapseTransition,
107
- BaseNav,
108
- Modal,
109
- AppLinkArea,
110
- FaqVideoArea,
111
- NavbarLinks,
112
- VideoModal,
113
- UserMenuDropdown,
114
- },
115
- props: {
116
- type: {
117
- type: String,
118
- default: 'primary', // default|light
119
- description: 'Look of the dashboard navbar. primary (blue) or ligte (white)'
120
- },
121
- logoMini: {
122
- type: String,
123
- default: '/img/content/carreiras/logo-laponia.jpg',
124
- description: 'Logo for scrolled navbar'
125
- },
126
- logoFull: {
127
- type: String,
128
- default: () => '/img/brand/burh-imagotipo.svg',
129
- description: 'Brand da navbar'
130
- },
131
- navbarColor: {
132
- type: String,
133
- default: () => 'navbar-light', //
134
- description: 'Cor do navbar [atual]'
135
- },
136
- currentUser: {
137
- type: Object,
138
- default: () => null,
139
- description: 'Usuário logado atual'
140
- },
141
- currentCompany: {
142
- type: Object,
143
- default: () => null,
144
- description: 'Empresa selecionada atual'
145
- },
146
- listOfLinks: {
147
- type: Array,
148
- default: () => ListofLinksNavbar.default,
149
- description: 'Lista de links da navbar atual'
150
- },
151
- listOfVideos:{
152
- type: Array,
153
- default: () => ListVideos.default,
154
- description: 'Lista de videos em exibição no dropdown de videos'
155
- },
156
- userMenuText: {
157
- type:Object,
158
- description: 'Contains the text for the user menu'
159
- }
160
- },
161
- computed: {
162
- routeName() {
163
- const { name } = this.$route;
164
- return this.capitalizeFirstLetter(name);
165
- }
166
- },
105
+ import UserMenuDropdown from '@burh/nuxt-core/components/burh-ds/Dropdown/UserMenuDropdown.vue';
106
+ import BaseNav from '@burh/nuxt-core/components/burh-ds/Navbar/BaseNav.vue';
107
+ import AvatarLink from '../../../burh-ds/Avatar/AvatarLink';
108
+ import VideoModal from '@burh/nuxt-core/components/burh-ds/Modals/VideoModal.vue';
109
+ import NavbarLinks from '@burh/nuxt-core/components/burh-ds/Lists/ListNavLinks.vue';
110
+ import AppLinkArea from '@burh/nuxt-core/components/burh-ds/Dropdown/AppLinkArea.vue';
111
+ import FaqVideoArea from '@burh/nuxt-core/components/burh-ds/Dropdown/FaqVideoArea.vue';
112
+ import * as ListVideos from '@burh/nuxt-core/data/ListVideoLinksMock.json';
113
+ import moment from 'moment';
114
+ import 'moment/locale/pt-br';
115
+ import * as _ from 'lodash';
116
+ export default {
117
+ components: {
118
+ BaseNav,
119
+ AppLinkArea,
120
+ FaqVideoArea,
121
+ NavbarLinks,
122
+ VideoModal,
123
+ UserMenuDropdown,
124
+ AvatarLink,
125
+ },
126
+ props: {
127
+ type: {
128
+ type: String,
129
+ default: 'primary', // default|light
130
+ description: 'Look of the dashboard navbar. primary (blue) or ligte (white)'
131
+ },
132
+ logoMini: {
133
+ type: String,
134
+ default: '/img/content/carreiras/logo-laponia.jpg',
135
+ description: 'Logo for scrolled navbar'
136
+ },
137
+ logoFull: {
138
+ type: String,
139
+ default: () => '/img/brand/burh-imagotipo.svg',
140
+ description: 'Brand da navbar'
141
+ },
142
+ navbarColor: {
143
+ type: String,
144
+ default: () => 'navbar-light', //
145
+ description: 'Cor do navbar [atual]'
146
+ },
147
+ currentUser: {
148
+ listOfLinks: {
149
+ type: Array,
150
+ default: () => ListofLinksNavbar.default,
151
+ description: 'Lista de links da navbar atual'
152
+ },
153
+ type: Object,
154
+ default: () => null,
155
+ description: 'Usuário logado atual'
156
+ },
157
+ currentCompany: {
158
+ type: Object,
159
+ default: () => null,
160
+ description: 'Empresa selecionada atual'
161
+ },
162
+ listOfVideos:{
163
+ type: Array,
164
+ default: () => ListVideos.default,
165
+ description: 'Lista de videos em exibição no dropdown de videos'
166
+ },
167
+ userMenuText: {
168
+ type:Object,
169
+ description: 'Contains the text for the user menu'
170
+ },
171
+ showableProducts: Object,
172
+ activeProducts: Array,
173
+ apps: {
174
+ type: Array,
175
+ default: () => [],
176
+ description: 'Apps that will me showed in header app section'
177
+ },
178
+ gridApps: Array
179
+ },
167
180
 
168
- data() {
169
- return {
170
- showMenu: false,
171
- baseURL: process.env.baseAppUrl,
172
- videoModalProperties: {
173
- showModal: false,
174
- link: "",
175
- title: ""
176
- },
177
- };
178
- },
179
- methods: {
180
- capitalizeFirstLetter(string) {
181
- return string.charAt(0).toUpperCase() + string.slice(1);
182
- },
183
- isElementClassContain(element, typeClass) {
184
- return element.classList.contains(typeClass)
185
- },
186
- fromNow(date) {
187
- return moment(date).locale('pt-BR').fromNow();
188
- },
189
- openModalVideo(video){
190
- this.videoModalProperties.showModal = true;
191
- this.videoModalProperties.link = video.link;
192
- this.videoModalProperties.title = video.title;
193
- }
194
- },
195
- watch: {
196
- '$route.path'(newRoute, oldRoute) {
197
- if (this.showMenu) {
198
- this.closeMenu();
199
- }
181
+ computed: {
182
+ routeName() {
183
+ const { name } = this.$route;
184
+ return this.capitalizeFirstLetter(name);
185
+ }
186
+ },
200
187
 
201
- if(this.navbarSearch && newRoute != '/busca'){
202
- this.menuSearch = ''
203
- } else {
204
- this.menuSearch = this.$route.query.term
205
- }
188
+ data() {
189
+ return {
190
+ showMenu: false,
191
+ baseURL: process.env.baseAppUrl,
192
+ videoModalProperties: {
193
+ showModal: false,
194
+ link: '',
195
+ title: ''
196
+ },
197
+ listOfLinks: [
198
+ {
199
+ 'id' : 'Busca',
200
+ 'name' : 'Busca',
201
+ 'link' : '/',
202
+ 'children' : [
203
+ {
204
+ 'id' : 'Buscar',
205
+ 'name' : 'Buscar',
206
+ 'link' : `${process.env.oldBusinessUrl}/app/search`,
207
+ 'isVisible': !this.companyHasProduct(this.showableProducts['BUSCA_AVANCADA']),
208
+ 'hasBadge': false,
209
+ },
210
+ {
211
+ 'id' : 'Busca-Avançada',
212
+ 'name' : 'Busca Avançada',
213
+ 'link' : this.linkProduct('BUSCA_AVANCADA', '/app/search'),
214
+ 'isVisible': true,
215
+ 'hasBadge': !this.companyHasProduct(this.showableProducts['BUSCA_AVANCADA']),
216
+ },
217
+ {
218
+ 'id' : 'Buscar-Estágio',
219
+ 'name' : 'Buscar Estágio',
220
+ 'link' : this.linkProduct('BUSCA_AVANCADA', '/search'),
221
+ 'isVisible': true,
222
+ 'hasBadge': !this.companyHasProduct(this.showableProducts['BUSCA_AVANCADA']),
223
+ },
224
+ {
225
+ 'id' : 'Buscar-PCD',
226
+ 'name' : 'Buscar PCD',
227
+ 'link' : this.linkProduct('BUSCA_AVANCADA', '/search'),
228
+ 'isVisible': true,
229
+ 'hasBadge': !this.companyHasProduct(this.showableProducts['BUSCA_AVANCADA']),
230
+ },
231
+ {
232
+ 'id' : 'Buscar-Terceira-Idade',
233
+ 'name' : 'Buscar Terceira Idade',
234
+ 'link' : this.linkProduct('BUSCA_AVANCADA', '/search'),
235
+ 'isVisible': true,
236
+ 'hasBadge': !this.companyHasProduct(this.showableProducts['BUSCA_AVANCADA']),
237
+ },
238
+ {
239
+ 'id' : 'Buscar-Jovem-Aprendiz',
240
+ 'name' : 'Buscar Jovem Aprendiz',
241
+ 'link' : this.linkProduct('BUSCA_AVANCADA', '/search'),
242
+ 'isVisible': true,
243
+ 'hasBadge': !this.companyHasProduct(this.showableProducts['BUSCA_AVANCADA']),
244
+ }
245
+ ]
246
+ },
247
+ {
248
+ 'id' : 'Recrutamento',
249
+ 'name' : 'Recrutamento',
250
+ 'link' : 'burh.com.br',
251
+ 'children' : [
252
+ {
253
+ 'id' : 'Abrir-Vaga',
254
+ 'name' : 'Abrir Vaga',
255
+ 'link' : `${process.env.oldBusinessUrl}/${this.currentCompany.slug}/vagas/criar`,
256
+ 'isVisible': !this.companyHasProduct(this.showableProducts['ABRIR_VAGAS_COM_FILTROS_AVANCADOS']),
257
+ 'hasBadge': false,
258
+ },
259
+ {
260
+ 'id' : 'Abrir-Vaga-Avançada',
261
+ 'name' : 'Abrir Vaga Avançada',
262
+ 'link' : this.linkProduct('ABRIR_VAGAS_COM_FILTROS_AVANCADOS', `/${this.currentCompany.slug}/vagas/criar`),
263
+ 'isVisible': true,
264
+ 'hasBadge': !this.companyHasProduct(this.showableProducts['ABRIR_VAGAS_COM_FILTROS_AVANCADOS']),
265
+ },
266
+ {
267
+ 'id' : 'Gerenciar-Vagas',
268
+ 'name' : 'Gerenciar Vagas',
269
+ 'link' : `${process.env.oldBusinessUrl}/${this.currentCompany.slug}/vagas`,
270
+ 'isVisible': true,
271
+ 'hasBadge': false,
272
+ }
273
+ ]
274
+ },
275
+ {
276
+ 'id' : 'Universidades',
277
+ 'name' : 'Universidades',
278
+ 'link' : `${process.env.oldBusinessUrl}/app/university`,
279
+ 'children' : []
280
+ },
281
+ {
282
+ 'id' : 'Loja',
283
+ 'name' : 'Loja',
284
+ 'link' : 'burh.com.br',
285
+ 'children' : [
286
+ {
287
+ 'id' : 'Teste-DISC',
288
+ 'name' : 'Teste Disc',
289
+ 'link' : this.linkProduct('TESTE_DISC', '/app/profiler'),
290
+ 'isVisible': true,
291
+ 'hasBadge': !this.companyHasProduct(this.showableProducts['TESTE_DISC']),
292
+ },
293
+ {
294
+ 'id' : 'Teste-Personalizado',
295
+ 'name' : 'Teste Personalizado',
296
+ 'link' : this.linkProduct('TESTE_PERSONALIZADO', '/app/testes'),
297
+ 'isVisible': true,
298
+ 'hasBadge': !this.companyHasProduct(this.showableProducts['TESTE_PERSONALIZADO']),
299
+ },
300
+ {
301
+ 'id' : 'Teste-Proeficiencia',
302
+ 'name' : 'Teste de proeficiência',
303
+ 'link' : this.linkProduct('TESTE_PROFICIENCIA', '/app/fluenglish'),
304
+ 'isVisible': true,
305
+ 'hasBadge': !this.companyHasProduct(this.showableProducts['TESTE_PROFICIENCIA']),
306
+ },
307
+ {
308
+ 'id' : 'Enviar-SMS',
309
+ 'name' : 'Enviar SMS',
310
+ 'link' : this.linkProduct('SMS', `/${this.currentCompany.slug}/apps/sms`),
311
+ 'isVisible': true,
312
+ 'hasBadge': !this.companyHasProduct(this.showableProducts['SMS']),
206
313
 
207
- }
208
- },
209
- mounted () {
210
- console.log("userMenuText", this.userMenuText)
211
- window.addEventListener('scroll', this.handleScrollNavbar);
314
+ }
315
+ ]
316
+ }
317
+ ]
318
+ };
319
+ },
320
+ methods: {
321
+ capitalizeFirstLetter(string) {
322
+ return string.charAt(0).toUpperCase() + string.slice(1);
323
+ },
324
+ isElementClassContain(element, typeClass) {
325
+ return element.classList.contains(typeClass);
326
+ },
327
+ fromNow(date) {
328
+ return moment(date).locale('pt-BR').fromNow();
329
+ },
330
+ openModalVideo(video){
331
+ this.videoModalProperties.showModal = true;
332
+ this.videoModalProperties.link = video.link;
333
+ this.videoModalProperties.title = video.title;
334
+ },
335
+ handleAvatarClick(company) {
336
+ this.$emit('company-click', company);
337
+ }
338
+ },
339
+ watch: {
340
+ '$route.path'(newRoute, oldRoute) {
341
+ if (this.showMenu) {
342
+ this.closeMenu();
343
+ }
212
344
 
213
- let header = document.querySelector('[data-menu="fixed"]');
214
- let page = document.querySelector('html');
345
+ if(this.navbarSearch && newRoute != '/busca'){
346
+ this.menuSearch = '';
347
+ } else {
348
+ this.menuSearch = this.$route.query.term;
349
+ }
215
350
 
216
- if (header) {
217
- page.classList.remove('menu-fixed');
218
- }
351
+ }
352
+ },
353
+ mounted () {
354
+ window.addEventListener('scroll', this.handleScrollNavbar);
219
355
 
220
- if(this.$route.path == '/busca') {
221
- this.menuSearch = this.$route.query.term
222
- }
223
- console.log(ListVideos)
224
- },
225
- created() {
356
+ let header = document.querySelector('[data-menu="fixed"]');
357
+ let page = document.querySelector('html');
226
358
 
227
- },
228
- destroyed () {
229
- window.removeEventListener('scroll', this.handleScrollNavbar);
230
- }
359
+ if (header) {
360
+ page.classList.remove('menu-fixed');
361
+ }
362
+
363
+ if(this.$route.path == '/busca') {
364
+ this.menuSearch = this.$route.query.term;
365
+ }
366
+ },
367
+ created() {
368
+ },
369
+ destroyed () {
370
+ window.removeEventListener('scroll', this.handleScrollNavbar);
371
+ }
231
372
 
232
373
  };
233
374
 
@@ -242,51 +383,53 @@
242
383
  min-width: 16rem;
243
384
  }
244
385
 
386
+ .white-block {
387
+ .dropdown-menu {
388
+ min-width: 21rem;
389
+ }
390
+ }
391
+
245
392
  .navbar-blue {
246
393
  background-color: #258bf4 !important;
394
+ .nav-link{
395
+ &:hover{
396
+ color: white;
397
+ }
398
+ }
247
399
  }
248
400
 
249
401
  .navbar {
250
402
  .navbar-search-light {
251
- &--focus {
252
- box-shadow: 0 0 .5rem 0 darken($primary, 20%);
253
- }
254
- }
255
- .navbar-search-dark {
256
- &--focus {
257
- box-shadow: 0 0 2rem 0 $primary;
403
+ &--focus {
404
+ box-shadow: 0 0 .5rem 0 darken($primary, 20%);
405
+ }
258
406
  }
259
- }
260
407
 
261
- &-company__default {
262
- position: fixed;
263
- background-color: $primary;
264
- border: 0 !important;
265
- animation: navbarCompanyDefaultLoading .5s;
408
+ .navbar-search-dark {
409
+ &--focus {
410
+ box-shadow: 0 0 2rem 0 $primary;
411
+ }
412
+ }
266
413
 
267
- }
414
+ &-company__default {
415
+ position: fixed;
416
+ background-color: $primary;
417
+ border: 0 !important;
418
+ animation: navbarCompanyDefaultLoading .5s;
419
+ }
268
420
 
269
- &--white{
270
- .nav-link {
271
- color: $white;
272
- &:hover {
273
- color: $color-dark;
274
- }
421
+ &--white{
422
+ .nav-link {
423
+ color: $white;
424
+ }
275
425
  }
276
- }
277
426
  }
278
427
 
279
428
  .text-color {
280
429
  color: #fff !important;
281
- &:hover {
282
- color: #515e7e !important;
283
- }
284
430
  }
285
431
 
286
432
  .white-block {
287
433
  color: white;
288
- &:hover {
289
- color: #515e7e;
290
- }
291
434
  }
292
435
  </style>