💻 | Update all components with Composition API and TypeScript & Add images

This commit is contained in:
2021-03-22 21:48:26 +01:00
parent f2d420a87a
commit 03db9ff299
49 changed files with 770 additions and 69 deletions

View File

@@ -14,9 +14,9 @@
</template>
<script lang="ts">
import { computed } from '@nuxtjs/composition-api'
import {computed} from '@nuxtjs/composition-api'
interface WorkProp {
interface WorkProps {
title: string,
url: string,
cover: string,
@@ -43,7 +43,7 @@ export default {
default: 'white'
}
},
setup(props: WorkProp) {
setup(props: WorkProps) {
const formatLink = computed(() => props.url.replace('https://', '').replace('http://', ''))
const getColor = computed(() => `hover:bg-${props.color}-600`)
const getCoverLink = computed(() => `@/assets/images/works/${props.cover}.png`)