Social links

This commit is contained in:
2025-03-31 22:59:08 +02:00
parent d72eb71f9b
commit a049dbcb2a
6 changed files with 136 additions and 35 deletions

View File

@@ -0,0 +1,43 @@
<template>
<div class="network">
<RouterLink v-if="routerLink" :to="link">
<img :src="img">
</RouterLink>
<a v-else :href="link" target="_blank">
<img :src="img">
</a>
</div>
</template>
<script setup>
import { RouterLink } from 'vue-router';
defineProps({
img: {
type:String,
required:true
},
link:{
type:String,
required: true
},
routerLink:{
required:false,
type:Boolean,
default:false
}
})
</script>
<style scoped>
.network{
height: 50px;
width: 50px;
margin-left: 15px;
}
.network img{
border-radius: 50%;
height: 100%;
width: 100%;
}
</style>