-
-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathLicenseIcons.vue
45 lines (45 loc) · 1.07 KB
/
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
41
42
43
44
45
<template>
<a
:href="url"
class="photo-license-icons"
target="_blank"
rel="noopener noreferrer"
@click.stop="() => false"
>
<img
class="photo-license-icon"
alt="CC icon"
title="CC icon"
src="../assets/license-icons/cc_icon.svg"
>
<img
v-for="(license, index) in iconsArr"
:key="index"
class="photo-license-icon"
:alt="license + ' icon'"
:title="license + ' icon'"
:src="require(`../assets/license-icons/cc-${license.toLowerCase()}_icon.svg`)"
>
</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: middle;
margin-right:3px;
}
.photo-license-icon {
height: 2rem;
width: auto;
margin-right: 3px;
}
</style>