barbican-reset 1.2.8 → 1.2.9
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/components/display_stream.vue +58 -0
- package/components/fluid_iframe.vue +39 -0
- package/components/help_row.vue +33 -0
- package/components/type_text.vue +14 -14
- package/helpers/mixins/_buttons.scss +14 -2
- package/index.js +7 -1
- package/package.json +1 -1
- package/scss/_btn.scss +4 -0
- package/scss/card/_video-help.scss +31 -0
- package/scss/card/index.scss +1 -0
- package/scss/index.scss +0 -1
- package/scss/_type-text.scss +0 -9
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="$style.component">
|
|
3
|
+
<img :class="$style.image" :src="image">
|
|
4
|
+
<div v-if="expired" :class="$style.title">
|
|
5
|
+
<h4>Expired</h4>
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
export default {
|
|
12
|
+
name: "DisplayStream",
|
|
13
|
+
mounted() {
|
|
14
|
+
console.log(this.$props);
|
|
15
|
+
},
|
|
16
|
+
props: {
|
|
17
|
+
image: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
expired: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: false,
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<style lang="scss" module>
|
|
30
|
+
|
|
31
|
+
.component {
|
|
32
|
+
border-radius: $border-radius-lg;
|
|
33
|
+
padding-top: 56.25%;
|
|
34
|
+
position: relative;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
color: $white;
|
|
37
|
+
|
|
38
|
+
.image {
|
|
39
|
+
position: absolute;
|
|
40
|
+
height: auto;
|
|
41
|
+
width: 100%;
|
|
42
|
+
inset: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.title {
|
|
46
|
+
background-color: rgba($c-grey-night, 0.8);
|
|
47
|
+
place-items: center;
|
|
48
|
+
position: absolute;
|
|
49
|
+
display: grid;
|
|
50
|
+
inset: 0;
|
|
51
|
+
|
|
52
|
+
h4 {
|
|
53
|
+
font-size: $h2-font-size;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
</style>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="$style.component">
|
|
3
|
+
<iframe
|
|
4
|
+
scrolling="auto"
|
|
5
|
+
allowfullscreen
|
|
6
|
+
frameborder="0"
|
|
7
|
+
height="100%"
|
|
8
|
+
width="100%"
|
|
9
|
+
:src="src" />
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
export default {
|
|
15
|
+
name: 'FluidIframe',
|
|
16
|
+
props: {
|
|
17
|
+
src: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: true
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<style lang="scss" module>
|
|
26
|
+
|
|
27
|
+
.component {
|
|
28
|
+
border-radius: $border-radius-lg;
|
|
29
|
+
padding-top: 56.25%;
|
|
30
|
+
position: relative;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.component > iframe {
|
|
35
|
+
position: absolute;
|
|
36
|
+
inset: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
</style>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<b-card video-help no-body>
|
|
3
|
+
<b-card-header>
|
|
4
|
+
<b-button variant="video-help" v-b-toggle="`help-${id}`">
|
|
5
|
+
{{ title }}
|
|
6
|
+
</b-button>
|
|
7
|
+
</b-card-header>
|
|
8
|
+
<b-collapse :id="`help-${id}`">
|
|
9
|
+
<b-card-body>
|
|
10
|
+
<slot />
|
|
11
|
+
</b-card-body>
|
|
12
|
+
</b-collapse>
|
|
13
|
+
</b-card>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
import { BCard, BCardHeader, BCollapse, BCardBody, BButton } from 'bootstrap-vue'
|
|
18
|
+
|
|
19
|
+
export default {
|
|
20
|
+
name: 'HelpRow',
|
|
21
|
+
components: { BCard, BCardHeader, BCollapse, BCardBody, BButton },
|
|
22
|
+
props: {
|
|
23
|
+
id: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: true,
|
|
26
|
+
},
|
|
27
|
+
title: {
|
|
28
|
+
type: String,
|
|
29
|
+
required: true,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
</script>
|
package/components/type_text.vue
CHANGED
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<p ref="checking"
|
|
3
|
-
|
|
2
|
+
<p ref="checking" :class="$style.component">
|
|
3
|
+
<slot />
|
|
4
4
|
</p>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
|
-
import { gsap } from
|
|
9
|
-
import { TextPlugin } from
|
|
8
|
+
import { gsap } from 'gsap'
|
|
9
|
+
import { TextPlugin } from 'gsap/TextPlugin'
|
|
10
10
|
gsap.registerPlugin(TextPlugin);
|
|
11
11
|
|
|
12
12
|
export default {
|
|
13
|
-
props: {
|
|
14
|
-
message: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: "Loading",
|
|
17
|
-
},
|
|
18
|
-
slim: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: false,
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
13
|
methods: {
|
|
24
14
|
loadingAnim(target) {
|
|
25
15
|
const message = target.innerText;
|
|
@@ -54,3 +44,13 @@ export default {
|
|
|
54
44
|
},
|
|
55
45
|
};
|
|
56
46
|
</script>
|
|
47
|
+
|
|
48
|
+
<style lang="scss" module>
|
|
49
|
+
|
|
50
|
+
.component {
|
|
51
|
+
font-size: $h4-font-size;
|
|
52
|
+
min-height: 2.25rem;
|
|
53
|
+
text-align: center;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
</style>
|
|
@@ -148,17 +148,29 @@
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
+
@mixin btn-video-help {
|
|
152
|
+
@include button-link(
|
|
153
|
+
$padding: 1.25rem,
|
|
154
|
+
$background: $c-grey-alpine) {
|
|
155
|
+
background-color: $c-grey-steel;
|
|
156
|
+
color: $white;
|
|
157
|
+
}
|
|
158
|
+
font-weight: 700;
|
|
159
|
+
text-align: left;
|
|
160
|
+
width: 100%;
|
|
161
|
+
}
|
|
162
|
+
|
|
151
163
|
@mixin btn-exit {
|
|
152
164
|
@include button-link {
|
|
153
165
|
@include single-box($c-grey-night);
|
|
154
166
|
background-color: $white;
|
|
155
167
|
border-radius: 50%;
|
|
156
168
|
|
|
157
|
-
|
|
169
|
+
[data-outline], [data-cross] {
|
|
158
170
|
fill: $white;
|
|
159
171
|
}
|
|
160
172
|
|
|
161
|
-
|
|
173
|
+
[data-fill] {
|
|
162
174
|
fill: $c-grey-night;
|
|
163
175
|
}
|
|
164
176
|
}
|
package/index.js
CHANGED
|
@@ -21,6 +21,9 @@ import RadioGroup from './components/radio_group'
|
|
|
21
21
|
import FooterUpper from './components/footer_upper'
|
|
22
22
|
import FooterLogos from './components/footer_logos'
|
|
23
23
|
import FooterLower from './components/footer_lower'
|
|
24
|
+
import FluidIframe from './components/fluid_iframe'
|
|
25
|
+
import HelpRow from './components/help_row'
|
|
26
|
+
import DisplayStream from './components/display_stream'
|
|
24
27
|
|
|
25
28
|
export {
|
|
26
29
|
LoadingAnimation,
|
|
@@ -44,5 +47,8 @@ export {
|
|
|
44
47
|
CardDeck,
|
|
45
48
|
FooterUpper,
|
|
46
49
|
FooterLogos,
|
|
47
|
-
FooterLower
|
|
50
|
+
FooterLower,
|
|
51
|
+
FluidIframe,
|
|
52
|
+
HelpRow,
|
|
53
|
+
DisplayStream
|
|
48
54
|
};
|
package/package.json
CHANGED
package/scss/_btn.scss
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
$border: 1px solid $c-grey-pearl;
|
|
3
|
+
|
|
4
|
+
.card[video-help] {
|
|
5
|
+
margin-bottom: 0;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
border: $border;
|
|
8
|
+
|
|
9
|
+
&:not(:first-of-type) {
|
|
10
|
+
border-top-right-radius: 0;
|
|
11
|
+
border-top-left-radius: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:not(:last-of-type) {
|
|
15
|
+
border-bottom-right-radius: 0;
|
|
16
|
+
border-bottom-left-radius: 0;
|
|
17
|
+
border-bottom: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.card-header {
|
|
21
|
+
border-radius: 0;
|
|
22
|
+
border-bottom: 0;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
padding: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.card-body {
|
|
28
|
+
border-top: $border;
|
|
29
|
+
padding: 1.25rem;
|
|
30
|
+
}
|
|
31
|
+
}
|
package/scss/card/index.scss
CHANGED
package/scss/index.scss
CHANGED