1
0
Fork 0
infojune/src/components/SoftBox.vue

48 lines
684 B
Vue
Raw Normal View History

2020-02-09 19:02:08 +01:00
<template>
<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>
<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-02-09 19:02:08 +01:00
export default {
props: {
img:String,
name:String,
desc:String,
href:String,
licence:String,
pubkey:String,
buttonType:String,
buttonValue:String,
2020-02-09 19:02:08 +01:00
},
methods: {
getImgUrl(pic) {
return require('../assets/'+pic)
},
}
2020-02-09 19:02:08 +01:00
}
</script>
<style>
#softbox{
2020-02-09 19:02:08 +01:00
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.licence{
margin-top:10px;
2020-02-09 19:02:08 +01:00
}
2020-02-09 19:02:08 +01:00
</style>