Fix border color

This commit is contained in:
2020-12-22 13:36:19 +01:00
parent 971b5a0392
commit 6666a843de

View File

@@ -1,7 +1,7 @@
<template>
<h1
class="mt-16 md:mt-32 font-bold text-2xl md:text-4xl mr-2 inline mb-4 border-b-2 border-solid"
:class="' border-'+ color +'-400'"
:class="getColor"
>
{{ $t(title) }}
<slot />
@@ -20,6 +20,20 @@ export default {
default: 'red',
type: String
}
},
computed: {
getColor() {
switch (this.color) {
case 'orange':
return 'border-orange-400'
case 'purple':
return 'border-purple-400'
case 'blue':
return 'border-blue-400'
case 'green':
return 'border-orange-400'
}
}
}
}
</script>