mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-21 15:31:47 +01:00
import tailwindcss v2
This commit is contained in:
36
src/components/Skill.vue
Normal file
36
src/components/Skill.vue
Normal file
@@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<div class="m-4 md:w-48 h-32 w-2/3 p-1 md:p-2 skill border-gray-900 border-2 bg-gray-300 duration-300 rounded-3xl" :class="'hover:bg-'+color">
|
||||
<div class="w-full h-full flex flex-col justify-center items-center">
|
||||
<div>
|
||||
COVER
|
||||
</div>
|
||||
<h1 class="md:text-2xl text-lg font-bold">{{skill}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "Skill",
|
||||
props: {
|
||||
skill: {
|
||||
type: String,
|
||||
default: "Rien"
|
||||
},
|
||||
color: {
|
||||
type: String,
|
||||
default: "red-100"
|
||||
},
|
||||
cover: {
|
||||
type: String,
|
||||
default: "https://api.arthurdanjou.fr/files/default.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.skill {
|
||||
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user