This commit is contained in:
2021-03-21 22:17:18 +01:00
parent 738056477a
commit 2060c843ae
22 changed files with 1579 additions and 136 deletions

47
src/components/Skill.vue Normal file
View File

@@ -0,0 +1,47 @@
<template>
<div class="mb-3 mr-2 p-1 md:p-2 h-32 w-32 border-gray-900 dark:border-dark-200 border-2 duration-300 rounded-3xl hover:bg-opacity-25" :class="getColor">
<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-lg text-md font-bold text-center">{{ skill }}</h1>
</div>
</div>
</template>
<script lang="ts">
import { computed } from '@nuxtjs/composition-api'
interface SkillProp {
skill: string,
color: string,
cover: string
}
export default {
name: "Skill",
props: {
skill: {
type: String,
default: "Rien"
},
color: {
type: String,
default: "red"
},
cover: {
type: String,
default: "logo.jpg"
}
},
setup(props: SkillProp) {
const getColor = computed(() => `hover:bg-${props.color}-400`)
return {
getColor
}
}
}
</script>
<style scoped lang="scss">
</style>