-
-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathChooser.vue
66 lines (63 loc) · 1.58 KB
/
Chooser.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<template>
<div class='container'>
<div class='columns'>
<Stepper
v-model="selected"
/>
<LicenseCard
v-model="selected"
@dropdown-clicked="goToAttributionDetails()"
/>
</div>
</div>
</template>
<script>
import Stepper from './Stepper'
import LicenseCard from './LicenseCard'
export default {
name: 'Chooser',
components: {
Stepper,
LicenseCard
},
data() {
return {
selected: {
shortName: 'CC BY 4.0',
fullName: 'Attribution 4.0 International',
attributionDetails: {
creatorName: '',
creatorProfileUrl: '',
workTitle: '',
workUrl: ''
}
}
}
},
methods: {
goToAttributionDetails() {
const lastStep = this.$children[0].$children[0].stepItems.length - 1
this.$children[0].$children[0].changeStep(lastStep)
}
}
}
</script>
<style lang="scss">
header.card-header {
justify-content: center;
padding-top:1rem;
h2.vocab-h2 {
font-family: Roboto Condensed;
font-style: normal;
font-weight: bold;
font-size: 28px;
line-height: 36px;
/* identical to box height, or 129% */
letter-spacing: 0.02em;
text-transform: uppercase;
}
}
div.card-content {
padding: 0.5rem 2rem 2rem;
}
</style>