2020-02-09 19:02:08 +01:00
|
|
|
<template>
|
2020-03-11 12:41:05 +01:00
|
|
|
<div id="softbox">
|
|
|
|
<img width="200px" :src="getImgUrl(img)" :alt='name'>
|
2020-02-09 19:02:08 +01:00
|
|
|
<h3>{{name}}</h3>
|
|
|
|
<p>{{desc}}</p>
|
2020-03-11 12:41:05 +01:00
|
|
|
<a target="_blank" :href="href" :class="buttonType">Aller</a>
|
|
|
|
<span class="licence">{{licence}}</span>
|
2020-02-09 19:02:08 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
2020-03-11 12:41:05 +01:00
|
|
|
|
|
|
|
|
2020-02-09 19:02:08 +01:00
|
|
|
export default {
|
|
|
|
|
|
|
|
props: {
|
|
|
|
img:String,
|
|
|
|
name:String,
|
2020-03-11 12:41:05 +01:00
|
|
|
desc:String,
|
|
|
|
href:String,
|
|
|
|
licence:String,
|
|
|
|
pubkey:String,
|
|
|
|
buttonType:String,
|
|
|
|
buttonValue:String,
|
2020-02-09 19:02:08 +01:00
|
|
|
},
|
|
|
|
|
2020-03-11 12:41:05 +01:00
|
|
|
methods: {
|
|
|
|
getImgUrl(pic) {
|
|
|
|
return require('../assets/'+pic)
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2020-02-09 19:02:08 +01:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style>
|
2020-03-11 12:41:05 +01:00
|
|
|
#softbox{
|
2020-02-09 19:02:08 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-03-11 12:41:05 +01:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
.licence{
|
|
|
|
margin-top:10px;
|
2020-02-09 19:02:08 +01:00
|
|
|
}
|
2020-02-24 19:15:52 +01:00
|
|
|
|
2020-02-09 19:02:08 +01:00
|
|
|
</style>
|