@burh/nuxt-core 1.0.18 → 1.0.19
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.
- package/assets/sass/burh-ds/organisms/_cards.scss +4 -0
- package/components/burh-ds/Cards/FunctionalityItem.vue +33 -0
- package/components/burh-ds/Cards/PerformanceCard.vue +63 -0
- package/components/burh-ds/Cards/PerformanceItem.vue +52 -0
- package/components/burh-ds/Groups/{SimpleProductGroup.vue → SimpleProductItem.vue} +12 -8
- package/components/layouts/burh-ds/navbar/BusinessGlobalNavbar.vue +1 -1
- package/components/layouts/burh-ds/navbar/SimpleNavbar.vue +130 -0
- package/package.json +1 -1
- package/.editorconfig +0 -13
- package/.nuxtignore +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<li class="functionality-item">
|
|
3
|
+
<i class="functionality-item--icone fas " :class="icone"></i>
|
|
4
|
+
<span class="functionality-item--text">{{ text }}</span>
|
|
5
|
+
</li>
|
|
6
|
+
</template>
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
name: "functionality-item",
|
|
10
|
+
props: {
|
|
11
|
+
icone: String,
|
|
12
|
+
text: String,
|
|
13
|
+
click: Function
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
<style lang="scss" scoped>
|
|
18
|
+
.functionality-item {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-items: center;
|
|
22
|
+
color: #258bf4;
|
|
23
|
+
line-height: 2.5;
|
|
24
|
+
|
|
25
|
+
&--icone {
|
|
26
|
+
font-size: 1.75rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&--text {
|
|
30
|
+
font-size: 1rem;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
</style>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<card class="card">
|
|
3
|
+
<h4 class="aria-text">Funcionalidades</h4>
|
|
4
|
+
<ul class="list line">
|
|
5
|
+
<functionality-item
|
|
6
|
+
class="cursor-pointer"
|
|
7
|
+
:icone="firstItemIcon"
|
|
8
|
+
:text="firstItemText"
|
|
9
|
+
@click="$emit('click-first-item')"/>
|
|
10
|
+
<functionality-item
|
|
11
|
+
class="cursor-pointer"
|
|
12
|
+
:icone="secondItemIcon"
|
|
13
|
+
:text="secondItemText"
|
|
14
|
+
@click="$emit('click-second-item')" />
|
|
15
|
+
</ul>
|
|
16
|
+
<hr>
|
|
17
|
+
<h4 class="list-title">{{title}}</h4>
|
|
18
|
+
<ul class="list">
|
|
19
|
+
<slot></slot>
|
|
20
|
+
</ul>
|
|
21
|
+
<p class="footer-text">{{context}}</p>
|
|
22
|
+
</card>
|
|
23
|
+
</template>
|
|
24
|
+
<script>
|
|
25
|
+
import FunctionalityItem from './FunctionalityItem'
|
|
26
|
+
export default {
|
|
27
|
+
name: 'performance-card',
|
|
28
|
+
components: {
|
|
29
|
+
FunctionalityItem,
|
|
30
|
+
},
|
|
31
|
+
props: {
|
|
32
|
+
title: String,
|
|
33
|
+
context: String,
|
|
34
|
+
firstItemText: String,
|
|
35
|
+
secondItemText: String,
|
|
36
|
+
firstItemIcon: String,
|
|
37
|
+
secondItemIcon: String,
|
|
38
|
+
subscribers: Number,
|
|
39
|
+
jobs: Number,
|
|
40
|
+
visualization: Number,
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
</script>
|
|
44
|
+
<style lang="scss" scoped>
|
|
45
|
+
.list {
|
|
46
|
+
margin: 3rem 0;
|
|
47
|
+
display: flex;
|
|
48
|
+
justify-content: space-evenly;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
.line ul:not(:first-child) {
|
|
53
|
+
border: 2px solid #e5e5e5;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.list-title {
|
|
57
|
+
font-size: 1.25rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.footer-text {
|
|
61
|
+
margin-left: 2rem;
|
|
62
|
+
}
|
|
63
|
+
</style>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<li class="performance-item" :class="primary && ' primary'">
|
|
3
|
+
<span class="performance-item--title">{{formatedTitle}}</span>
|
|
4
|
+
<span class="performance-item--value">{{formatedValue}} mil</span>
|
|
5
|
+
</li>
|
|
6
|
+
</template>
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
name: "performance-item",
|
|
10
|
+
props: {
|
|
11
|
+
title: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: "Visualizações"
|
|
14
|
+
},
|
|
15
|
+
value: {
|
|
16
|
+
type: Number,
|
|
17
|
+
default: 3910
|
|
18
|
+
},
|
|
19
|
+
primary: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
computed: {
|
|
25
|
+
formatedValue() {
|
|
26
|
+
return this.value/1000
|
|
27
|
+
},
|
|
28
|
+
formatedTitle() {
|
|
29
|
+
const title = this.title.toLowerCase();
|
|
30
|
+
return title[0].toUpperCase() + title.slice(1);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
</script>
|
|
35
|
+
<style lang="scss" scoped>
|
|
36
|
+
.performance-item {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
&--title {
|
|
40
|
+
font-size: 1rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&--value {
|
|
44
|
+
font-size: 1.75rem;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.primary {
|
|
49
|
+
color: #258bf4;
|
|
50
|
+
font-weight: 600;
|
|
51
|
+
}
|
|
52
|
+
</style>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<component :is="tag" class="product-
|
|
3
|
-
<img :src="avatar" :class="avatarClass" class="avatar avatar-xl rounded-circle product-
|
|
4
|
-
<
|
|
5
|
-
<component :is="titleTag" :class="titleClass" class="product-
|
|
6
|
-
<p :class="descriptionClass" class="product-
|
|
2
|
+
<component :is="tag" class="product-item" @click="$emit('click-product')">
|
|
3
|
+
<img :src="avatar" :class="avatarClass" class="avatar avatar-xl rounded-circle product-item--avatar" :alt="`Logo do Produto ${title}`">
|
|
4
|
+
<div :class="contentClass" class="product-item--content">
|
|
5
|
+
<component :is="titleTag" :class="titleClass" class="product-item--title">{{title}}</component>
|
|
6
|
+
<p :class="descriptionClass" class="product-item--description" v-if="description">{{description}}</p>
|
|
7
7
|
<badge :class="badgeClass" v-if="badge">{{badge}}</badge>
|
|
8
|
-
</
|
|
8
|
+
</div>
|
|
9
9
|
</component >
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
12
|
<script>
|
|
13
13
|
export default {
|
|
14
|
-
name: 'simple-product-
|
|
14
|
+
name: 'simple-product-item',
|
|
15
15
|
props: {
|
|
16
16
|
tag: {
|
|
17
17
|
type: String,
|
|
@@ -36,7 +36,7 @@ export default {
|
|
|
36
36
|
|
|
37
37
|
<style lang="scss">
|
|
38
38
|
|
|
39
|
-
.product-
|
|
39
|
+
.product-item {
|
|
40
40
|
display: inline-block;
|
|
41
41
|
|
|
42
42
|
&--avatar {
|
|
@@ -47,6 +47,10 @@ export default {
|
|
|
47
47
|
text-align: center;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
&--content {
|
|
51
|
+
text-align: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
50
54
|
figure {
|
|
51
55
|
margin: 0;
|
|
52
56
|
padding: 0;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<base-nav
|
|
3
|
+
id="business__nav"
|
|
4
|
+
v-model="showMenu"
|
|
5
|
+
container-classes="container-fluid container-fluid--bu"
|
|
6
|
+
class="border-bottom navbar-animated navbar-horizontal"
|
|
7
|
+
:class="navbarColor"
|
|
8
|
+
expand="lg"
|
|
9
|
+
type="primary"
|
|
10
|
+
>
|
|
11
|
+
<!--LEFT-->
|
|
12
|
+
|
|
13
|
+
<!--BRAND-->
|
|
14
|
+
<div slot="brand" class="navbar-wrapper">
|
|
15
|
+
<nuxt-link class="navbar-brand pt-2" to="/">
|
|
16
|
+
<img src="/img/brand/burh-imagotipo-white.svg" class="navbar-brand-img navbar-brand-img--full" alt="BURH: Suas vagas">
|
|
17
|
+
</nuxt-link>
|
|
18
|
+
</div>
|
|
19
|
+
<!--END USERS-->
|
|
20
|
+
<!--END RIGHT-->
|
|
21
|
+
<slot></slot>
|
|
22
|
+
</base-nav>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
import { CollapseTransition } from 'vue2-transitions';
|
|
27
|
+
// import BaseNav from '@/components/argon-core/Navbar/BaseNav.vue';
|
|
28
|
+
import BaseNav from '~/node_modules/@burh/nuxt-core/components/burh-ds/Navbar/BaseNav.vue';
|
|
29
|
+
import Modal from '~/node_modules/@burh/nuxt-core/components/argon-core/Modal.vue';
|
|
30
|
+
import moment from 'moment';
|
|
31
|
+
import 'moment/locale/pt-br';
|
|
32
|
+
import * as _ from 'lodash';
|
|
33
|
+
export default {
|
|
34
|
+
components: {
|
|
35
|
+
CollapseTransition,
|
|
36
|
+
BaseNav,
|
|
37
|
+
Modal,
|
|
38
|
+
},
|
|
39
|
+
props: {
|
|
40
|
+
type: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: 'default', // default|light
|
|
43
|
+
description: 'Look of the dashboard navbar. Default (Green) or light (gray)'
|
|
44
|
+
},
|
|
45
|
+
logoMini: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: '/img/content/carreiras/logo-laponia.jpg',
|
|
48
|
+
description: 'Logo for scrolled navbar'
|
|
49
|
+
},
|
|
50
|
+
logoFull: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: () => '/img/brand/burh-imagotipo.svg',
|
|
53
|
+
description: 'Brand da navbar'
|
|
54
|
+
},
|
|
55
|
+
navbarColor: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: () => 'navbar-light', //
|
|
58
|
+
description: 'Cor do navbar [atual]'
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
computed: {
|
|
62
|
+
routeName() {
|
|
63
|
+
const { name } = this.$route;
|
|
64
|
+
return this.capitalizeFirstLetter(name);
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
data() {
|
|
69
|
+
return {
|
|
70
|
+
showMenu: false,
|
|
71
|
+
baseURL: process.env.baseAppUrl,
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
methods: {
|
|
75
|
+
capitalizeFirstLetter(string) {
|
|
76
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
watch: {
|
|
80
|
+
},
|
|
81
|
+
mounted () {
|
|
82
|
+
window.addEventListener('scroll', this.handleScrollNavbar);
|
|
83
|
+
|
|
84
|
+
let header = document.querySelector('[data-menu="fixed"]');
|
|
85
|
+
let page = document.querySelector('html');
|
|
86
|
+
|
|
87
|
+
if (header) {
|
|
88
|
+
page.classList.remove('menu-fixed');
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
created() {
|
|
92
|
+
|
|
93
|
+
},
|
|
94
|
+
destroyed () {
|
|
95
|
+
window.removeEventListener('scroll', this.handleScrollNavbar);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
</script>
|
|
101
|
+
|
|
102
|
+
<style lang="scss">
|
|
103
|
+
@import "~bootstrap/scss/functions.scss";
|
|
104
|
+
@import "~bootstrap/scss/mixins.scss";
|
|
105
|
+
@import "node_modules/@burh/nuxt-core/assets/sass/burh-ds/variables.scss";
|
|
106
|
+
@import "node_modules/@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss";
|
|
107
|
+
.dropdown-menu{
|
|
108
|
+
min-width: 16rem;
|
|
109
|
+
}
|
|
110
|
+
.navbar {
|
|
111
|
+
.navbar-search-light {
|
|
112
|
+
&--focus {
|
|
113
|
+
box-shadow: 0 0 .5rem 0 darken($primary, 20%);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
.navbar-search-dark {
|
|
117
|
+
&--focus {
|
|
118
|
+
box-shadow: 0 0 2rem 0 $primary;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&-company__default {
|
|
123
|
+
position: fixed;
|
|
124
|
+
background-color: $primary;
|
|
125
|
+
border: 0 !important;
|
|
126
|
+
animation: navbarCompanyDefaultLoading .5s;
|
|
127
|
+
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
</style>
|
package/package.json
CHANGED
package/.editorconfig
DELETED
package/.nuxtignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pages/examples/*;
|