-
-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathLicenseIcons.vue
40 lines (39 loc) · 991 Bytes
/
LicenseIcons.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
<template>
<a :href="url"
@click.stop="() => false"
class="photo-license-icons"
target="_blank"
rel="noopener noreferrer">
<img class="photo-license-icon"
src="../assets/license-icons/cc_icon.svg">
<img v-for="(license, index) in iconsArr"
class="photo-license-icon"
:src="require(`../assets/license-icons/cc-${license.toLowerCase()}_icon.svg`)"
:key="index">
</a>
</template>
<script>
const LicenseIcons = {
name: 'license-icons',
components: {},
props: ['url', 'iconsArr']
}
export default LicenseIcons
</script>
<style lang="scss" scoped>
.photo-license-icons {
display: inline-block;
white-space: nowrap;
vertical-align: text-bottom;
opacity: .7;
margin-right:3px;
height: 22px !important;
&:hover {
opacity: 1;
}
}
.photo-license-icon {
height: inherit;
margin-left: 3px;
}
</style>