@worksafevictoria/wcl7.5 1.1.0-beta.90 → 1.1.0-beta.91
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/package.json
CHANGED
|
@@ -1,45 +1,54 @@
|
|
|
1
|
+
<!-- When implemented, importing mock values for carousel to be removed. This was only for testing locally, while values not available from drupal. -->
|
|
2
|
+
|
|
1
3
|
<template>
|
|
2
|
-
<div class="homepage-header">
|
|
3
|
-
<
|
|
4
|
+
<div class="homepage-header">
|
|
5
|
+
<container>
|
|
4
6
|
<search
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
v-for="(link, i) in links"
|
|
22
|
-
:key="i"
|
|
23
|
-
class="iebtn"
|
|
24
|
-
:url="link.path"
|
|
25
|
-
type="dark"
|
|
26
|
-
:stretch="true"
|
|
27
|
-
>{{ link.text }}</cta-button
|
|
28
|
-
>
|
|
29
|
-
<cta-button
|
|
30
|
-
class="iebtn"
|
|
31
|
-
url="/choose-your-language"
|
|
32
|
-
type="dark"
|
|
33
|
-
:stretch="true"
|
|
34
|
-
:glyph="earthIcon"
|
|
35
|
-
:is-centred="false"
|
|
36
|
-
>Choose your language</cta-button
|
|
7
|
+
:page-limit="3"
|
|
8
|
+
:page-number="1"
|
|
9
|
+
:is-typeahead="true"
|
|
10
|
+
:content-parser="contentParser"
|
|
11
|
+
tabindex="0"
|
|
12
|
+
class="homepage-header__search"
|
|
13
|
+
/>
|
|
14
|
+
</container>
|
|
15
|
+
|
|
16
|
+
<div class="homepage-header__content-wrapper">
|
|
17
|
+
<container class="homepage-header__content-wrapper__content">
|
|
18
|
+
<row>
|
|
19
|
+
<column
|
|
20
|
+
class="homepage-header__content-wrapper__content-col col-12 col-md-7 homepage-header__content-wrapper__content-col--split wcl-rich-text--ltr"
|
|
21
|
+
:xs="7"
|
|
22
|
+
:md="7"
|
|
37
23
|
>
|
|
24
|
+
<carousel-component
|
|
25
|
+
:carouselItems="this.slideList"
|
|
26
|
+
:storybook="this.isStorybook"
|
|
27
|
+
/>
|
|
38
28
|
</column>
|
|
29
|
+
<column
|
|
30
|
+
md="4"
|
|
31
|
+
:offset-md="1"
|
|
32
|
+
class="homepage-header__side col-md-4 offset-md-1"
|
|
33
|
+
>
|
|
34
|
+
<div>
|
|
35
|
+
<cta-button
|
|
36
|
+
v-for="(link, i) in links"
|
|
37
|
+
:key="i"
|
|
38
|
+
class="iebtn"
|
|
39
|
+
:url="link.path"
|
|
40
|
+
type="dark"
|
|
41
|
+
:stretch="true"
|
|
42
|
+
>{{ link.text }}</cta-button
|
|
43
|
+
>
|
|
44
|
+
</div>
|
|
45
|
+
</column>
|
|
39
46
|
</row>
|
|
40
|
-
|
|
47
|
+
</container>
|
|
48
|
+
</div>
|
|
41
49
|
</div>
|
|
42
50
|
</template>
|
|
51
|
+
|
|
43
52
|
<script>
|
|
44
53
|
import Search from './../../SubComponents/Search/index.vue'
|
|
45
54
|
import CtaButton from './../../SubComponents/CtaButton/index.vue'
|
|
@@ -47,6 +56,7 @@ import earthIcon from './../../../assets/icons/earth.svg?url'
|
|
|
47
56
|
import CarouselComponent from './../../Containers/Carousel/index.vue'
|
|
48
57
|
import Row from './../../Containers/Row/index.vue'
|
|
49
58
|
import Column from './../../Containers/Column/index.vue'
|
|
59
|
+
// import { mockCarouselItems } from '../../../mock/carousel-items'
|
|
50
60
|
|
|
51
61
|
export default {
|
|
52
62
|
name: 'HomepageHeader',
|
|
@@ -55,7 +65,8 @@ export default {
|
|
|
55
65
|
CtaButton,
|
|
56
66
|
CarouselComponent,
|
|
57
67
|
Row,
|
|
58
|
-
Column
|
|
68
|
+
Column,
|
|
69
|
+
// mockCarouselItems
|
|
59
70
|
},
|
|
60
71
|
props: {
|
|
61
72
|
contentParser: {
|
|
@@ -69,6 +80,7 @@ export default {
|
|
|
69
80
|
slideList: {
|
|
70
81
|
type: Array,
|
|
71
82
|
required: true,
|
|
83
|
+
// default: mockCarouselItems
|
|
72
84
|
},
|
|
73
85
|
isStorybook: {
|
|
74
86
|
type: Boolean,
|
|
@@ -97,15 +109,18 @@ export default {
|
|
|
97
109
|
}
|
|
98
110
|
</script>
|
|
99
111
|
|
|
100
|
-
<!-- styles from the heroheader are still used for consistency,
|
|
101
|
-
even though the component itself is no longer imported. -->
|
|
102
|
-
|
|
103
112
|
<style lang="scss" scoped>
|
|
104
113
|
@import '../../../includes/scss/all';
|
|
105
114
|
@import './../../Global/HeroHeader/styles.scss';
|
|
106
115
|
|
|
116
|
+
|
|
107
117
|
.homepage-header {
|
|
118
|
+
position:relative;
|
|
119
|
+
margin-bottom: 10px;
|
|
120
|
+
display: block;
|
|
108
121
|
border-bottom: none !important;
|
|
122
|
+
height: auto;
|
|
123
|
+
align-items: normal;
|
|
109
124
|
|
|
110
125
|
:deep(.wysiwyg) {
|
|
111
126
|
h1 {
|
|
@@ -122,17 +137,44 @@ even though the component itself is no longer imported. -->
|
|
|
122
137
|
}
|
|
123
138
|
}
|
|
124
139
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
140
|
+
&__content-wrapper {
|
|
141
|
+
width: 100%;
|
|
142
|
+
position: relative;
|
|
143
|
+
margin-top: 80px;
|
|
144
|
+
@include mq('mm') {
|
|
145
|
+
margin-top: 10px !important;
|
|
146
|
+
}
|
|
128
147
|
|
|
129
|
-
|
|
130
|
-
|
|
148
|
+
&__content {
|
|
149
|
+
@include mq('md') {
|
|
150
|
+
max-width: 100%;
|
|
151
|
+
margin: 0;
|
|
152
|
+
padding: 0 30px;
|
|
131
153
|
}
|
|
154
|
+
&-col {
|
|
155
|
+
max-width: 69%;
|
|
156
|
+
z-index: 2;
|
|
157
|
+
@include mq('mm') {
|
|
158
|
+
max-width: 100%;
|
|
159
|
+
padding-right: 45px;
|
|
160
|
+
}
|
|
161
|
+
@include mq('xs') {
|
|
162
|
+
padding-right: 0px;
|
|
163
|
+
padding-left: 0px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&--split {
|
|
167
|
+
padding-right: 0;
|
|
168
|
+
}
|
|
132
169
|
|
|
170
|
+
.header-rich-text-wrap {
|
|
171
|
+
max-width: 100%;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
133
175
|
}
|
|
134
176
|
|
|
135
|
-
:deep(.
|
|
177
|
+
:deep(.homepage-header__wrap) {
|
|
136
178
|
display: block;
|
|
137
179
|
align-items: normal;
|
|
138
180
|
}
|
|
@@ -151,9 +193,11 @@ even though the component itself is no longer imported. -->
|
|
|
151
193
|
}
|
|
152
194
|
|
|
153
195
|
&__search {
|
|
154
|
-
|
|
196
|
+
margin-top: 10px;
|
|
155
197
|
z-index: 1;
|
|
156
198
|
width: auto;
|
|
199
|
+
position: relative;
|
|
200
|
+
|
|
157
201
|
|
|
158
202
|
@include mq('xs') {
|
|
159
203
|
padding-right: 0;
|
|
@@ -31,9 +31,10 @@
|
|
|
31
31
|
border: $app-header-active;
|
|
32
32
|
|
|
33
33
|
> a > span {
|
|
34
|
+
// border-bottom: 3px solid $app-header-active;
|
|
34
35
|
background-color: $app-header-active;
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
+
}
|
|
37
38
|
.isActiveChild {
|
|
38
39
|
> a {
|
|
39
40
|
background: $app-header-active;
|
|
@@ -48,7 +49,6 @@
|
|
|
48
49
|
|
|
49
50
|
// First Level Overrides
|
|
50
51
|
&__close {
|
|
51
|
-
|
|
52
52
|
&-button {
|
|
53
53
|
display: flex;
|
|
54
54
|
vertical-align: middle;
|
|
@@ -113,7 +113,6 @@
|
|
|
113
113
|
margin-right: 0;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
|
|
117
116
|
.search-string {
|
|
118
117
|
@media screen and (max-width: 1065px) and (min-width: 981px) {
|
|
119
118
|
display: none;
|
|
@@ -192,15 +191,15 @@
|
|
|
192
191
|
}
|
|
193
192
|
|
|
194
193
|
&__nav-menu {
|
|
195
|
-
|
|
194
|
+
|
|
196
195
|
.nav-item {
|
|
197
196
|
.sub-nav-container {
|
|
198
197
|
display: none;
|
|
199
198
|
position: fixed;
|
|
200
199
|
background: $app-menu-black;
|
|
201
|
-
top:
|
|
202
|
-
left:
|
|
203
|
-
right:
|
|
200
|
+
top: 165px;
|
|
201
|
+
left: 10px;
|
|
202
|
+
right: 10px;
|
|
204
203
|
bottom: 10px;
|
|
205
204
|
border-radius: 3px;
|
|
206
205
|
|
|
@@ -212,16 +211,15 @@
|
|
|
212
211
|
&__innermore {
|
|
213
212
|
overflow-x: auto;
|
|
214
213
|
height: max-content;
|
|
215
|
-
left:
|
|
216
|
-
right:
|
|
217
|
-
top:
|
|
214
|
+
left: 10px;
|
|
215
|
+
right: 10px;
|
|
216
|
+
top: 165px;
|
|
218
217
|
position: fixed;
|
|
219
218
|
padding-top: 15px !important;
|
|
220
219
|
background-color: $app-menu-black !important;
|
|
221
220
|
border-radius: 3px;
|
|
222
221
|
}
|
|
223
222
|
|
|
224
|
-
|
|
225
223
|
&__wrap {
|
|
226
224
|
position: relative;
|
|
227
225
|
margin: 0 auto;
|
|
@@ -248,11 +246,9 @@
|
|
|
248
246
|
|
|
249
247
|
&:last-of-type {
|
|
250
248
|
> a {
|
|
251
|
-
|
|
252
249
|
svg {
|
|
253
250
|
height: 23px;
|
|
254
251
|
width: 23px;
|
|
255
|
-
|
|
256
252
|
}
|
|
257
253
|
& > span {
|
|
258
254
|
margin-right: 10px;
|
|
@@ -307,14 +303,13 @@
|
|
|
307
303
|
}
|
|
308
304
|
> .sub-nav-group {
|
|
309
305
|
li.isActiveChild {
|
|
306
|
+
|
|
310
307
|
.sub-nav {
|
|
311
308
|
display: block;
|
|
312
|
-
|
|
313
309
|
|
|
314
310
|
.selected-title {
|
|
315
311
|
text-align: left;
|
|
316
312
|
top: 12px;
|
|
317
|
-
|
|
318
313
|
|
|
319
314
|
a {
|
|
320
315
|
padding: 5px 5px 15px 5px;
|