mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-02-02 21:27:52 +01:00
Add new color
This commit is contained in:
@@ -40,17 +40,19 @@ export default defineComponent({
|
|||||||
|
|
||||||
const getBackgroundColor = computed(() => {
|
const getBackgroundColor = computed(() => {
|
||||||
switch (announce.value.color) {
|
switch (announce.value.color) {
|
||||||
case 'black': {
|
case 'black':
|
||||||
return 'bg-black text-white dark:(bg-white text-black)'
|
return 'bg-black text-white dark:(bg-white text-black)'
|
||||||
}
|
case 'red':
|
||||||
|
return 'bg-red-600 text-white'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const getHoverColor = computed(() => {
|
const getHoverColor = computed(() => {
|
||||||
switch (announce.value.hover_color) {
|
switch (announce.value.hover_color) {
|
||||||
case 'gray': {
|
case 'gray':
|
||||||
return 'hover:bg-gray-800 dark:hover:bg-gray-300'
|
return 'hover:bg-gray-800 dark:hover:bg-gray-300'
|
||||||
}
|
case 'red':
|
||||||
|
return 'bg-red-800 text-white'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user