@mirweb/mir-web-components 1.15.3 → 2.0.0
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/README.md +2 -2
- package/dist/assets/index-Cl4fzBs2.js +17 -0
- package/dist/assets/scss/globals.scss +231 -0
- package/dist/assets/scss/index.scss +4 -0
- package/dist/assets/scss/normalize.scss +393 -0
- package/dist/assets/scss/reset.scss +102 -0
- package/dist/assets/scss/variables.scss +95 -0
- package/dist/components/atoms/button/button.vue +81 -0
- package/dist/components/atoms/checkbox/checkbox.vue +125 -0
- package/dist/components/atoms/chip/chip.vue +55 -0
- package/dist/components/atoms/dropdown/dropdown.vue +490 -0
- package/dist/components/atoms/image/image.vue +42 -0
- package/dist/components/atoms/label/label.vue +52 -0
- package/dist/components/atoms/link/link.vue +166 -0
- package/dist/components/atoms/radio-button/radio-button.vue +110 -0
- package/dist/components/atoms/select/select.vue +116 -0
- package/dist/components/atoms/select-multiple/select-multiple.vue +210 -0
- package/dist/components/atoms/slider/slider.vue +322 -0
- package/dist/components/atoms/text-field/text-field.vue +273 -0
- package/dist/components/atoms/textarea/textarea.vue +179 -0
- package/dist/components/atoms/video/video.vue +98 -0
- package/dist/components/blocks/accordion/accordion.vue +222 -0
- package/dist/components/blocks/card-display/card-display.vue +125 -0
- package/dist/components/blocks/column-grid/column-grid.vue +201 -0
- package/dist/components/blocks/facts/facts.vue +156 -0
- package/dist/components/blocks/features/features.vue +176 -0
- package/dist/components/blocks/flashcards/flashcards.vue +212 -0
- package/dist/components/blocks/form-script/form-script.vue +172 -0
- package/dist/components/blocks/frontpage-hero/frontpage-hero.vue +214 -0
- package/dist/components/blocks/headline/headline.vue +93 -0
- package/dist/components/blocks/hero/hero.vue +173 -0
- package/dist/components/blocks/image/image.vue +93 -0
- package/dist/components/blocks/image-gallery/image-gallery.vue +289 -0
- package/dist/components/blocks/logo-wall/logo-wall.vue +125 -0
- package/dist/components/blocks/micro-stories/micro-stories.vue +316 -0
- package/dist/components/blocks/pallet-jack/pallet-jack.vue +440 -0
- package/dist/components/blocks/policy/policy.vue +106 -0
- package/dist/components/blocks/product-hero/product-hero.vue +140 -0
- package/dist/components/blocks/promo/promo.vue +403 -0
- package/dist/components/blocks/quote/quote.vue +127 -0
- package/dist/components/blocks/rich-text/rich-text-columns.vue +159 -0
- package/dist/components/blocks/rich-text/rich-text.vue +296 -0
- package/dist/components/blocks/timeline/timeline.vue +232 -0
- package/dist/components/blocks/vimeo/vimeo.vue +52 -0
- package/dist/components/index.ts +51 -0
- package/dist/components/molecules/address/address.vue +123 -0
- package/dist/components/molecules/bullet-list/bullet-list.vue +99 -0
- package/dist/components/molecules/card/card.vue +302 -0
- package/dist/components/molecules/column-card/column-card.vue +178 -0
- package/dist/components/molecules/event-card/event-card.vue +111 -0
- package/dist/components/molecules/flashcard/flashcard.vue +293 -0
- package/dist/components/molecules/modal/modal.vue +113 -0
- package/dist/components/molecules/text-card/text-card.vue +74 -0
- package/dist/components/organisms/404/404.vue +79 -0
- package/dist/components/organisms/filter/filter.vue +89 -0
- package/dist/components/organisms/footer/footer.vue +356 -0
- package/dist/components/organisms/header/header.vue +754 -0
- package/dist/components/organisms/language-switcher/language-switcher.vue +68 -0
- package/dist/components/organisms/pagination/pagination.vue +85 -0
- package/dist/components/organisms/search/search.vue +153 -0
- package/dist/components/templates/404-error-page.vue +0 -0
- package/dist/directives/clickOutside.ts +15 -0
- package/dist/fonts/OpenSans-Light.woff2 +0 -0
- package/dist/fonts/OpenSans-Medium.woff2 +0 -0
- package/dist/fonts/OpenSans-Regular.woff2 +0 -0
- package/dist/fonts/OpenSans-SemiBold.woff2 +0 -0
- package/dist/fonts/Oscine_Bd.woff2 +0 -0
- package/dist/fonts/Oscine_Lt.woff2 +0 -0
- package/dist/fonts/Oscine_Rg.woff2 +0 -0
- package/dist/index.html +12 -0
- package/dist/main.css +1 -0
- package/package.json +8 -10
- package/dist/components/atoms/button/button.vue.d.ts +0 -5
- package/dist/components/atoms/button/button.vue.d.ts.map +0 -1
- package/dist/components/atoms/checkbox/checkbox.vue.d.ts +0 -5
- package/dist/components/atoms/checkbox/checkbox.vue.d.ts.map +0 -1
- package/dist/components/atoms/chip/chip.vue.d.ts +0 -5
- package/dist/components/atoms/chip/chip.vue.d.ts.map +0 -1
- package/dist/components/atoms/dropdown/dropdown.vue.d.ts +0 -5
- package/dist/components/atoms/dropdown/dropdown.vue.d.ts.map +0 -1
- package/dist/components/atoms/image/image.vue.d.ts +0 -5
- package/dist/components/atoms/image/image.vue.d.ts.map +0 -1
- package/dist/components/atoms/label/label.vue.d.ts +0 -5
- package/dist/components/atoms/label/label.vue.d.ts.map +0 -1
- package/dist/components/atoms/link/link.vue.d.ts +0 -5
- package/dist/components/atoms/link/link.vue.d.ts.map +0 -1
- package/dist/components/atoms/radio-button/radio-button.vue.d.ts +0 -5
- package/dist/components/atoms/radio-button/radio-button.vue.d.ts.map +0 -1
- package/dist/components/atoms/select/select.vue.d.ts +0 -5
- package/dist/components/atoms/select/select.vue.d.ts.map +0 -1
- package/dist/components/atoms/select-multiple/select-multiple.vue.d.ts +0 -5
- package/dist/components/atoms/select-multiple/select-multiple.vue.d.ts.map +0 -1
- package/dist/components/atoms/slider/slider.vue.d.ts +0 -5
- package/dist/components/atoms/slider/slider.vue.d.ts.map +0 -1
- package/dist/components/atoms/text-field/text-field.vue.d.ts +0 -5
- package/dist/components/atoms/text-field/text-field.vue.d.ts.map +0 -1
- package/dist/components/atoms/textarea/textarea.vue.d.ts +0 -5
- package/dist/components/atoms/textarea/textarea.vue.d.ts.map +0 -1
- package/dist/components/atoms/video/video.vue.d.ts +0 -5
- package/dist/components/atoms/video/video.vue.d.ts.map +0 -1
- package/dist/components/blocks/accordion/accordion.vue.d.ts +0 -5
- package/dist/components/blocks/accordion/accordion.vue.d.ts.map +0 -1
- package/dist/components/blocks/card-display/card-display.vue.d.ts +0 -6
- package/dist/components/blocks/card-display/card-display.vue.d.ts.map +0 -1
- package/dist/components/blocks/column-grid/column-grid.vue.d.ts +0 -5
- package/dist/components/blocks/column-grid/column-grid.vue.d.ts.map +0 -1
- package/dist/components/blocks/facts/facts.vue.d.ts +0 -5
- package/dist/components/blocks/facts/facts.vue.d.ts.map +0 -1
- package/dist/components/blocks/features/features.vue.d.ts +0 -5
- package/dist/components/blocks/features/features.vue.d.ts.map +0 -1
- package/dist/components/blocks/flashcards/flashcards.vue.d.ts +0 -5
- package/dist/components/blocks/flashcards/flashcards.vue.d.ts.map +0 -1
- package/dist/components/blocks/form-script/form-script.vue.d.ts +0 -5
- package/dist/components/blocks/form-script/form-script.vue.d.ts.map +0 -1
- package/dist/components/blocks/frontpage-hero/frontpage-hero.vue.d.ts +0 -5
- package/dist/components/blocks/frontpage-hero/frontpage-hero.vue.d.ts.map +0 -1
- package/dist/components/blocks/headline/headline.vue.d.ts +0 -5
- package/dist/components/blocks/headline/headline.vue.d.ts.map +0 -1
- package/dist/components/blocks/hero/hero.vue.d.ts +0 -5
- package/dist/components/blocks/hero/hero.vue.d.ts.map +0 -1
- package/dist/components/blocks/image/image.vue.d.ts +0 -5
- package/dist/components/blocks/image/image.vue.d.ts.map +0 -1
- package/dist/components/blocks/image-gallery/image-gallery.vue.d.ts +0 -5
- package/dist/components/blocks/image-gallery/image-gallery.vue.d.ts.map +0 -1
- package/dist/components/blocks/logo-wall/logo-wall.vue.d.ts +0 -5
- package/dist/components/blocks/logo-wall/logo-wall.vue.d.ts.map +0 -1
- package/dist/components/blocks/micro-stories/micro-stories.vue.d.ts +0 -5
- package/dist/components/blocks/micro-stories/micro-stories.vue.d.ts.map +0 -1
- package/dist/components/blocks/pallet-jack/pallet-jack.vue.d.ts +0 -5
- package/dist/components/blocks/pallet-jack/pallet-jack.vue.d.ts.map +0 -1
- package/dist/components/blocks/policy/policy.vue.d.ts +0 -4
- package/dist/components/blocks/policy/policy.vue.d.ts.map +0 -1
- package/dist/components/blocks/product-hero/product-hero.vue.d.ts +0 -5
- package/dist/components/blocks/product-hero/product-hero.vue.d.ts.map +0 -1
- package/dist/components/blocks/promo/promo.vue.d.ts +0 -5
- package/dist/components/blocks/promo/promo.vue.d.ts.map +0 -1
- package/dist/components/blocks/quote/quote.vue.d.ts +0 -5
- package/dist/components/blocks/quote/quote.vue.d.ts.map +0 -1
- package/dist/components/blocks/rich-text/rich-text-columns.vue.d.ts +0 -4
- package/dist/components/blocks/rich-text/rich-text-columns.vue.d.ts.map +0 -1
- package/dist/components/blocks/rich-text/rich-text.vue.d.ts +0 -5
- package/dist/components/blocks/rich-text/rich-text.vue.d.ts.map +0 -1
- package/dist/components/blocks/timeline/timeline.vue.d.ts +0 -5
- package/dist/components/blocks/timeline/timeline.vue.d.ts.map +0 -1
- package/dist/components/blocks/vimeo/vimeo.vue.d.ts +0 -5
- package/dist/components/blocks/vimeo/vimeo.vue.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -51
- package/dist/components/main.d.ts +0 -59
- package/dist/components/molecules/address/address.vue.d.ts +0 -5
- package/dist/components/molecules/address/address.vue.d.ts.map +0 -1
- package/dist/components/molecules/bullet-list/bullet-list.vue.d.ts +0 -5
- package/dist/components/molecules/bullet-list/bullet-list.vue.d.ts.map +0 -1
- package/dist/components/molecules/card/card.vue.d.ts +0 -5
- package/dist/components/molecules/card/card.vue.d.ts.map +0 -1
- package/dist/components/molecules/column-card/column-card.vue.d.ts +0 -5
- package/dist/components/molecules/column-card/column-card.vue.d.ts.map +0 -1
- package/dist/components/molecules/event-card/event-card.vue.d.ts +0 -5
- package/dist/components/molecules/event-card/event-card.vue.d.ts.map +0 -1
- package/dist/components/molecules/flashcard/flashcard.vue.d.ts +0 -5
- package/dist/components/molecules/flashcard/flashcard.vue.d.ts.map +0 -1
- package/dist/components/molecules/modal/modal.vue.d.ts +0 -5
- package/dist/components/molecules/modal/modal.vue.d.ts.map +0 -1
- package/dist/components/molecules/text-card/text-card.vue.d.ts +0 -5
- package/dist/components/molecules/text-card/text-card.vue.d.ts.map +0 -1
- package/dist/components/organisms/404/404.vue.d.ts +0 -5
- package/dist/components/organisms/404/404.vue.d.ts.map +0 -1
- package/dist/components/organisms/filter/filter.vue.d.ts +0 -5
- package/dist/components/organisms/filter/filter.vue.d.ts.map +0 -1
- package/dist/components/organisms/footer/footer.vue.d.ts +0 -5
- package/dist/components/organisms/footer/footer.vue.d.ts.map +0 -1
- package/dist/components/organisms/header/header.vue.d.ts +0 -6
- package/dist/components/organisms/header/header.vue.d.ts.map +0 -1
- package/dist/components/organisms/language-switcher/language-switcher.vue.d.ts +0 -5
- package/dist/components/organisms/language-switcher/language-switcher.vue.d.ts.map +0 -1
- package/dist/components/organisms/pagination/pagination.vue.d.ts +0 -5
- package/dist/components/organisms/pagination/pagination.vue.d.ts.map +0 -1
- package/dist/components/organisms/search/search.vue.d.ts +0 -4
- package/dist/components/organisms/search/search.vue.d.ts.map +0 -1
- package/dist/directives/clickOutside.d.ts +0 -3
- package/dist/main.d.ts +0 -1
- package/dist/mir-web-components.cjs.js +0 -1
- package/dist/mir-web-components.css +0 -1
- package/dist/mir-web-components.es.js +0 -3187
- package/dist/mir-web-components.umd.js +0 -2
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="[
|
|
4
|
+
'rich-text',
|
|
5
|
+
bgColor === 'blue' ? 'rich-text--blue' : 'rich-text--white',
|
|
6
|
+
]"
|
|
7
|
+
>
|
|
8
|
+
<div class="rich-text__wrapper">
|
|
9
|
+
<atom-label v-if="label" :text="label" :label-dark="false" />
|
|
10
|
+
<h2
|
|
11
|
+
v-if="headline"
|
|
12
|
+
:class="[
|
|
13
|
+
'rich-text__headline',
|
|
14
|
+
leftAligned
|
|
15
|
+
? 'rich-text__headline--left-aligned'
|
|
16
|
+
: bulletList || image
|
|
17
|
+
? 'rich-text__headline--left-aligned'
|
|
18
|
+
: 'rich-text__headline--centered',
|
|
19
|
+
]"
|
|
20
|
+
>
|
|
21
|
+
{{ headline }}
|
|
22
|
+
</h2>
|
|
23
|
+
<div
|
|
24
|
+
:class="[
|
|
25
|
+
'rich-text__content',
|
|
26
|
+
leftAligned
|
|
27
|
+
? 'rich-text__content--left-aligned'
|
|
28
|
+
: bulletList || image
|
|
29
|
+
? 'rich-text__content--left-aligned'
|
|
30
|
+
: 'rich-text__content--centered',
|
|
31
|
+
]"
|
|
32
|
+
>
|
|
33
|
+
<div
|
|
34
|
+
:class="[
|
|
35
|
+
'rich-text__body',
|
|
36
|
+
bulletList || image ? 'rich-text__body--content-right' : '',
|
|
37
|
+
]"
|
|
38
|
+
>
|
|
39
|
+
<slot name="rich-text-content" />
|
|
40
|
+
<div v-if="links" class="rich-text__links">
|
|
41
|
+
<slot name="rich-text-links" />
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
<div v-if="bulletList" class="rich-text__bullet-list">
|
|
45
|
+
<slot name="rich-text-bullet-list" />
|
|
46
|
+
</div>
|
|
47
|
+
<div
|
|
48
|
+
v-if="image"
|
|
49
|
+
:class="[
|
|
50
|
+
'rich-text__image',
|
|
51
|
+
imageClip ? 'rich-text__image--clip' : '',
|
|
52
|
+
]"
|
|
53
|
+
>
|
|
54
|
+
<atom-image>
|
|
55
|
+
<slot name="rich-text-image" v-bind="{ width: 865, height: 307 }" />
|
|
56
|
+
</atom-image>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
|
|
63
|
+
<script setup lang="ts">
|
|
64
|
+
import AtomImage from "../../atoms/image/image.vue";
|
|
65
|
+
import AtomLabel from "../../atoms/label/label.vue";
|
|
66
|
+
|
|
67
|
+
export type Props = {
|
|
68
|
+
headline?: string;
|
|
69
|
+
leftAligned?: boolean;
|
|
70
|
+
links?: boolean;
|
|
71
|
+
bulletList?: boolean;
|
|
72
|
+
image?: boolean;
|
|
73
|
+
imageClip?: boolean;
|
|
74
|
+
bgColor?: string;
|
|
75
|
+
label?: string;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
withDefaults(defineProps<Props>(), {
|
|
79
|
+
headline: "",
|
|
80
|
+
leftAligned: false,
|
|
81
|
+
links: false,
|
|
82
|
+
bulletList: false,
|
|
83
|
+
image: false,
|
|
84
|
+
imageClip: true,
|
|
85
|
+
bgColor: "white",
|
|
86
|
+
label: "",
|
|
87
|
+
});
|
|
88
|
+
</script>
|
|
89
|
+
|
|
90
|
+
<style scoped lang="scss">
|
|
91
|
+
@use "../../../assets/scss/variables.scss" as *;
|
|
92
|
+
|
|
93
|
+
.rich-text {
|
|
94
|
+
width: 100%;
|
|
95
|
+
|
|
96
|
+
&--blue {
|
|
97
|
+
background-color: $blue-100;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&--white {
|
|
101
|
+
background-color: none;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&__wrapper {
|
|
105
|
+
max-width: $max-width;
|
|
106
|
+
margin: 0 auto;
|
|
107
|
+
padding: 30px 30px;
|
|
108
|
+
:deep(img) {
|
|
109
|
+
width: 100%;
|
|
110
|
+
}
|
|
111
|
+
@include md {
|
|
112
|
+
padding: 30px 0px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
:deep(.label__wrapper) {
|
|
116
|
+
margin-bottom: 30px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&__headline {
|
|
121
|
+
margin-bottom: 30px;
|
|
122
|
+
width: 100%;
|
|
123
|
+
max-width: 658px;
|
|
124
|
+
|
|
125
|
+
&--centered {
|
|
126
|
+
margin: 0px auto 15px auto;
|
|
127
|
+
|
|
128
|
+
@media screen and (max-width: 942px) {
|
|
129
|
+
margin: 0px 0 15px 0;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&__body {
|
|
135
|
+
max-width: 658px;
|
|
136
|
+
width: 100%;
|
|
137
|
+
|
|
138
|
+
&--content-right {
|
|
139
|
+
max-width: 658px;
|
|
140
|
+
|
|
141
|
+
@include sm {
|
|
142
|
+
max-width: 499px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@media screen and (max-width: 942px) {
|
|
146
|
+
max-width: 658px;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
:deep(h2) {
|
|
151
|
+
margin: 1.375rem 0;
|
|
152
|
+
font-weight: 300;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:deep(h3) {
|
|
156
|
+
margin: 1rem 0;
|
|
157
|
+
font-weight: 300;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
:deep(p) {
|
|
161
|
+
padding-bottom: 1rem;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:deep(b),
|
|
165
|
+
:deep(strong) {
|
|
166
|
+
font-weight: 600;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
:deep(ol) {
|
|
170
|
+
padding-left: 1rem;
|
|
171
|
+
list-style-type: decimal;
|
|
172
|
+
font-family: $font-opensans;
|
|
173
|
+
font-weight: 300;
|
|
174
|
+
|
|
175
|
+
li {
|
|
176
|
+
margin: 5px 0;
|
|
177
|
+
p {
|
|
178
|
+
padding-bottom: 0px;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
:deep(ul) {
|
|
184
|
+
list-style-type: none;
|
|
185
|
+
font-family: $font-opensans;
|
|
186
|
+
font-weight: 300;
|
|
187
|
+
padding-left: 1rem;
|
|
188
|
+
|
|
189
|
+
li {
|
|
190
|
+
margin: 5px 0;
|
|
191
|
+
list-style: none;
|
|
192
|
+
position: relative;
|
|
193
|
+
left: 0;
|
|
194
|
+
|
|
195
|
+
p {
|
|
196
|
+
padding-bottom: 0px;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
li::before {
|
|
201
|
+
content: "\2022";
|
|
202
|
+
position: absolute;
|
|
203
|
+
left: -0.8em;
|
|
204
|
+
font-size: 1.1em;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:deep(h2),
|
|
209
|
+
:deep(h3),
|
|
210
|
+
:deep(p),
|
|
211
|
+
:deep(ol),
|
|
212
|
+
:deep(ul) {
|
|
213
|
+
a {
|
|
214
|
+
color: $blue-600;
|
|
215
|
+
text-decoration: 0.3px underline;
|
|
216
|
+
font-weight: 500;
|
|
217
|
+
|
|
218
|
+
&:hover {
|
|
219
|
+
color: $blue-800;
|
|
220
|
+
transition: $transition-color;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&__bullet-list {
|
|
227
|
+
margin: 30px -30px -30px -30px;
|
|
228
|
+
|
|
229
|
+
@media screen and (min-width: 942px) {
|
|
230
|
+
margin: 0;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&__image {
|
|
235
|
+
margin: 30px -30px -30px -30px;
|
|
236
|
+
|
|
237
|
+
@include sm {
|
|
238
|
+
height: 307px;
|
|
239
|
+
width: 100%;
|
|
240
|
+
margin: 30px auto -30px auto;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@media screen and (min-width: 942px) {
|
|
244
|
+
margin: 0;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
&--clip {
|
|
248
|
+
:slotted(img) {
|
|
249
|
+
clip-path: polygon(
|
|
250
|
+
0 0,
|
|
251
|
+
calc(100% - 43px) 0,
|
|
252
|
+
100% 43px,
|
|
253
|
+
100% 100%,
|
|
254
|
+
0 100%
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
:slotted(img) {
|
|
260
|
+
object-position: center;
|
|
261
|
+
object-fit: cover;
|
|
262
|
+
height: 100%;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
&__content {
|
|
267
|
+
margin: 0px auto;
|
|
268
|
+
display: flex;
|
|
269
|
+
flex-direction: column;
|
|
270
|
+
justify-content: space-between;
|
|
271
|
+
gap: 0;
|
|
272
|
+
|
|
273
|
+
&--left-aligned {
|
|
274
|
+
margin-left: 0;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&--centered {
|
|
278
|
+
justify-content: center;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
@media screen and (min-width: 942px) {
|
|
282
|
+
flex-direction: row;
|
|
283
|
+
gap: 41px;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
&__links {
|
|
288
|
+
margin: 30px auto 0px auto;
|
|
289
|
+
display: flex;
|
|
290
|
+
flex-direction: row;
|
|
291
|
+
align-items: center;
|
|
292
|
+
flex-wrap: wrap;
|
|
293
|
+
gap: 30px;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
</style>
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="timeline__wrapper">
|
|
3
|
+
<div class="timeline__content">
|
|
4
|
+
<div class="timeline__items">
|
|
5
|
+
<div
|
|
6
|
+
v-for="item in timelineItems"
|
|
7
|
+
:key="item.year"
|
|
8
|
+
class="timeline__item faded"
|
|
9
|
+
>
|
|
10
|
+
<div class="item__left">
|
|
11
|
+
{{ item.year }}
|
|
12
|
+
</div>
|
|
13
|
+
<div class="item__elements">
|
|
14
|
+
<div class="circle"></div>
|
|
15
|
+
<div class="line"></div>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="item__right">
|
|
18
|
+
<atom-image>
|
|
19
|
+
<slot
|
|
20
|
+
v-if="item.media.src"
|
|
21
|
+
name="timeline-image"
|
|
22
|
+
v-bind="{ src: item.media.src, alt: item.media.alt }"
|
|
23
|
+
></slot>
|
|
24
|
+
</atom-image>
|
|
25
|
+
<div
|
|
26
|
+
:style="[!item.media.src ? 'margin-top: 0px' : '']"
|
|
27
|
+
class="rich-text"
|
|
28
|
+
v-html="item.text"
|
|
29
|
+
></div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script setup lang="ts">
|
|
38
|
+
import { onMounted } from "vue";
|
|
39
|
+
import AtomImage from "../../atoms/image/image.vue";
|
|
40
|
+
|
|
41
|
+
interface TimelineItem {
|
|
42
|
+
year: string;
|
|
43
|
+
media: {
|
|
44
|
+
src?: string;
|
|
45
|
+
alt?: string;
|
|
46
|
+
};
|
|
47
|
+
text: JSON;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
defineProps({
|
|
51
|
+
timelineItems: {
|
|
52
|
+
type: Array as () => TimelineItem[],
|
|
53
|
+
required: true,
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
onMounted(() => {
|
|
58
|
+
const items = document.querySelectorAll(".timeline__item");
|
|
59
|
+
const observer = new IntersectionObserver(
|
|
60
|
+
(entries) => {
|
|
61
|
+
entries.forEach((entry) => {
|
|
62
|
+
if (entry.isIntersecting) {
|
|
63
|
+
entry.target.classList.add("visible");
|
|
64
|
+
entry.target.classList.remove("faded");
|
|
65
|
+
observer.unobserve(entry.target);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
threshold: 1,
|
|
71
|
+
},
|
|
72
|
+
);
|
|
73
|
+
items.forEach((item) => {
|
|
74
|
+
observer.observe(item);
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
</script>
|
|
78
|
+
<style lang="scss" scoped>
|
|
79
|
+
@use "../../../assets/scss/variables.scss" as *;
|
|
80
|
+
.timeline {
|
|
81
|
+
&__wrapper {
|
|
82
|
+
width: 100%;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&__content {
|
|
86
|
+
display: flex;
|
|
87
|
+
max-width: $max-width;
|
|
88
|
+
margin: 0 auto;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
align-items: center;
|
|
91
|
+
|
|
92
|
+
padding: 0 30px;
|
|
93
|
+
|
|
94
|
+
@include md {
|
|
95
|
+
padding: 0;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&__items {
|
|
100
|
+
width: 100%;
|
|
101
|
+
|
|
102
|
+
&:last-child {
|
|
103
|
+
margin-bottom: 60px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&__item {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: row;
|
|
110
|
+
align-items: stretch;
|
|
111
|
+
justify-content: center;
|
|
112
|
+
gap: 30px;
|
|
113
|
+
width: 100%;
|
|
114
|
+
transition: all 0.6s ease;
|
|
115
|
+
|
|
116
|
+
&:first-child {
|
|
117
|
+
margin-top: 120px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@include sm {
|
|
121
|
+
gap: 60px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.visible {
|
|
125
|
+
opacity: 1;
|
|
126
|
+
color: $blue-900;
|
|
127
|
+
.circle {
|
|
128
|
+
background-color: $blue-900;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.line {
|
|
132
|
+
background-color: $blue-900;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
&.faded {
|
|
136
|
+
opacity: 0.3;
|
|
137
|
+
color: $blue-300;
|
|
138
|
+
.circle {
|
|
139
|
+
background-color: $white;
|
|
140
|
+
border: 2px solid $blue-900;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.line {
|
|
144
|
+
background-color: $blue-300;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.item {
|
|
149
|
+
&__left {
|
|
150
|
+
text-align: right;
|
|
151
|
+
font-size: $font-size-lg;
|
|
152
|
+
font-family: $font-oscine;
|
|
153
|
+
line-height: $line-height-md;
|
|
154
|
+
font-weight: 300;
|
|
155
|
+
min-width: 62px;
|
|
156
|
+
|
|
157
|
+
@include sm {
|
|
158
|
+
font-size: $font-size-xlg;
|
|
159
|
+
line-height: $line-height-lg;
|
|
160
|
+
min-width: 125px;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&__elements {
|
|
165
|
+
display: flex;
|
|
166
|
+
flex-direction: column;
|
|
167
|
+
align-items: stretch;
|
|
168
|
+
justify-content: center;
|
|
169
|
+
position: relative;
|
|
170
|
+
|
|
171
|
+
.circle {
|
|
172
|
+
width: 12px;
|
|
173
|
+
height: 12px;
|
|
174
|
+
border-radius: 50%;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.line {
|
|
178
|
+
width: 1px;
|
|
179
|
+
height: calc(100% - 12px);
|
|
180
|
+
margin: 0 auto;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&__right {
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-direction: column;
|
|
187
|
+
max-width: 328px;
|
|
188
|
+
width: 100%;
|
|
189
|
+
|
|
190
|
+
:deep(ul) {
|
|
191
|
+
list-style-type: none;
|
|
192
|
+
font-family: $font-opensans;
|
|
193
|
+
font-weight: 300;
|
|
194
|
+
padding-left: 1rem;
|
|
195
|
+
|
|
196
|
+
li {
|
|
197
|
+
position: relative;
|
|
198
|
+
left: 0;
|
|
199
|
+
margin: 5px 0;
|
|
200
|
+
|
|
201
|
+
p {
|
|
202
|
+
padding-bottom: 0px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&::before {
|
|
206
|
+
content: "\2022";
|
|
207
|
+
position: absolute;
|
|
208
|
+
left: -0.8em;
|
|
209
|
+
font-size: 1.1em;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.media {
|
|
215
|
+
img {
|
|
216
|
+
max-width: 297px;
|
|
217
|
+
width: 100%;
|
|
218
|
+
height: auto;
|
|
219
|
+
max-height: 354px;
|
|
220
|
+
margin-bottom: 30px;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.rich-text {
|
|
225
|
+
margin-top: 30px;
|
|
226
|
+
margin-bottom: 120px;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
</style>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vimeo">
|
|
3
|
+
<div class="vimeo__wrapper">
|
|
4
|
+
<h2 v-if="headline" class="vimeo__headline">
|
|
5
|
+
{{ headline }}
|
|
6
|
+
</h2>
|
|
7
|
+
<slot name="vimeo-content" />
|
|
8
|
+
<p v-if="description" class="vimeo__description">
|
|
9
|
+
{{ description }}
|
|
10
|
+
</p>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script setup lang="ts">
|
|
16
|
+
defineProps({
|
|
17
|
+
headline: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "",
|
|
20
|
+
},
|
|
21
|
+
description: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "",
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<style scoped lang="scss">
|
|
29
|
+
@use "../../../assets/scss/variables.scss" as *;
|
|
30
|
+
.vimeo {
|
|
31
|
+
width: 100%;
|
|
32
|
+
|
|
33
|
+
&__wrapper {
|
|
34
|
+
max-width: $max-width;
|
|
35
|
+
margin: 0 auto;
|
|
36
|
+
padding: $padding-mobile;
|
|
37
|
+
|
|
38
|
+
@include md {
|
|
39
|
+
padding: $padding-desktop;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__headline {
|
|
44
|
+
margin-bottom: 30px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__description {
|
|
48
|
+
font-size: $font-size-xsm;
|
|
49
|
+
margin-top: 15px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
</style>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export { default as AtomButton } from "./atoms/button/button.vue";
|
|
2
|
+
export { default as AtomCheckbox } from "./atoms/checkbox/checkbox.vue";
|
|
3
|
+
export { default as AtomChip } from "./atoms/chip/chip.vue";
|
|
4
|
+
export { default as AtomDropdown } from "./atoms/dropdown/dropdown.vue";
|
|
5
|
+
export { default as AtomImage } from "./atoms/image/image.vue";
|
|
6
|
+
export { default as AtomLabel } from "./atoms/label/label.vue";
|
|
7
|
+
export { default as AtomLink } from "./atoms/link/link.vue";
|
|
8
|
+
export { default as AtomRadioButton } from "./atoms/radio-button/radio-button.vue";
|
|
9
|
+
export { default as AtomSelect } from "./atoms/select/select.vue";
|
|
10
|
+
export { default as AtomSelectMultiple } from "./atoms/select-multiple/select-multiple.vue";
|
|
11
|
+
export { default as AtomSlider } from "./atoms/slider/slider.vue";
|
|
12
|
+
export { default as AtomTextarea } from "./atoms/textarea/textarea.vue";
|
|
13
|
+
export { default as AtomTextField } from "./atoms/text-field/text-field.vue";
|
|
14
|
+
export { default as AtomVideo } from "./atoms/video/video.vue";
|
|
15
|
+
export { default as MoleculeAddress } from "./molecules/address/address.vue";
|
|
16
|
+
export { default as MoleculeBulletList } from "./molecules/bullet-list/bullet-list.vue";
|
|
17
|
+
export { default as MoleculeCard } from "./molecules/card/card.vue";
|
|
18
|
+
export { default as MoleculeColumnCard } from "./molecules/column-card/column-card.vue";
|
|
19
|
+
export { default as MoleculeEventCard } from "./molecules/event-card/event-card.vue";
|
|
20
|
+
export { default as MoleculeFlashcard } from "./molecules/flashcard/flashcard.vue";
|
|
21
|
+
export { default as MoleculeModal } from "./molecules/modal/modal.vue";
|
|
22
|
+
export { default as MoleculeTextCard } from "./molecules/text-card/text-card.vue";
|
|
23
|
+
export { default as BlockAccordion } from "./blocks/accordion/accordion.vue";
|
|
24
|
+
export { default as BlockCardDisplay } from "./blocks/card-display/card-display.vue";
|
|
25
|
+
export { default as BlockColumnGrid } from "./blocks/column-grid/column-grid.vue";
|
|
26
|
+
export { default as BlockFacts } from "./blocks/facts/facts.vue";
|
|
27
|
+
export { default as BlockFeatures } from "./blocks/features/features.vue";
|
|
28
|
+
export { default as BlockFlashcards } from "./blocks/flashcards/flashcards.vue";
|
|
29
|
+
export { default as BlockFormScript } from "./blocks/form-script/form-script.vue";
|
|
30
|
+
export { default as BlockHeadline } from "./blocks/headline/headline.vue";
|
|
31
|
+
export { default as BlockHero } from "./blocks/hero/hero.vue";
|
|
32
|
+
export { default as BlockImage } from "./blocks/image/image.vue";
|
|
33
|
+
export { default as BlockImageGallery } from "./blocks/image-gallery/image-gallery.vue";
|
|
34
|
+
export { default as BlockLogoWall } from "./blocks/logo-wall/logo-wall.vue";
|
|
35
|
+
export { default as BlockMicroStories } from "./blocks/micro-stories/micro-stories.vue";
|
|
36
|
+
export { default as BlockPolicy } from "./blocks/policy/policy.vue";
|
|
37
|
+
export { default as BlockProductHero } from "./blocks/product-hero/product-hero.vue";
|
|
38
|
+
export { default as BlockPromo } from "./blocks/promo/promo.vue";
|
|
39
|
+
export { default as BlockQuote } from "./blocks/quote/quote.vue";
|
|
40
|
+
export { default as BlockRichText } from "./blocks/rich-text/rich-text.vue";
|
|
41
|
+
export { default as BlockRichTextColumns } from "./blocks/rich-text/rich-text-columns.vue";
|
|
42
|
+
export { default as BlockTimeline } from "./blocks/timeline/timeline.vue";
|
|
43
|
+
export { default as BlockVimeo } from "./blocks/vimeo/vimeo.vue";
|
|
44
|
+
export { default as BlockFrontPageHero } from "./blocks/frontpage-hero/frontpage-hero.vue";
|
|
45
|
+
export { default as Organism404 } from "./organisms/404/404.vue";
|
|
46
|
+
export { default as OrganismFilter } from "./organisms/filter/filter.vue";
|
|
47
|
+
export { default as OrganismFooter } from "./organisms/footer/footer.vue";
|
|
48
|
+
export { default as OrganismHeader } from "./organisms/header/header.vue";
|
|
49
|
+
export { default as OrganismLanguageSwitcher } from "./organisms/language-switcher/language-switcher.vue";
|
|
50
|
+
export { default as OrganismPagination } from "./organisms/pagination/pagination.vue";
|
|
51
|
+
export { default as OrganismSearch } from "./organisms/search/search.vue";
|