mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-14 12:14:42 +01:00
35 lines
777 B
Vue
35 lines
777 B
Vue
<template>
|
|
<div class="m-2 p-1 md:p-2 h-48 w-48 border-gray-900 dark:border-dark-800 border-2 duration-300 rounded-3xl hover:bg-opacity-25" :class="'hover:bg-'+color+'-600'">
|
|
<div class="w-full h-full flex flex-col justify-center items-center">
|
|
<div>
|
|
<img class="rounded-sm" alt="Skill Img" :src="require(`@/assets/img/skills/${cover}.png`)">
|
|
</div>
|
|
<h1 class="md:text-xl text-lg font-bold text-center">{{ skill }}</h1>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "WorkSkill",
|
|
props: {
|
|
skill: {
|
|
type: String,
|
|
default: "Rien"
|
|
},
|
|
color: {
|
|
type: String,
|
|
default: "red-100"
|
|
},
|
|
cover: {
|
|
type: String,
|
|
default: "logo.jpg"
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|