提交代码
This commit is contained in:
@@ -3,13 +3,14 @@ withDefaults(
|
||||
defineProps<{
|
||||
items: string[]
|
||||
icon?: 'laser' | 'info'
|
||||
theme?: 'light' | 'dark'
|
||||
}>(),
|
||||
{ icon: undefined },
|
||||
{ icon: undefined, theme: 'light' },
|
||||
)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<footer class="status-footer">
|
||||
<footer class="status-footer" :class="{ 'status-footer--dark': theme === 'dark' }">
|
||||
<span v-if="icon" class="status-footer__icon" aria-hidden="true">
|
||||
<svg v-if="icon === 'laser'" viewBox="0 0 24 24">
|
||||
<path d="M4 17.5h8.5l2-3H22" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" />
|
||||
@@ -71,4 +72,19 @@ withDefaults(
|
||||
.status-footer__sep {
|
||||
color: #c5cdd8;
|
||||
}
|
||||
|
||||
.status-footer--dark {
|
||||
border-top: 1px solid rgba(130, 175, 255, 0.12);
|
||||
background: linear-gradient(180deg, rgba(8, 16, 34, 0.55) 0%, rgba(5, 10, 22, 0.94) 100%);
|
||||
color: rgba(178, 202, 232, 0.72);
|
||||
backdrop-filter: blur(14px);
|
||||
}
|
||||
|
||||
.status-footer--dark .status-footer__icon {
|
||||
color: rgba(120, 190, 255, 0.8);
|
||||
}
|
||||
|
||||
.status-footer--dark .status-footer__sep {
|
||||
color: rgba(120, 160, 210, 0.35);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user