91 lines
2.3 KiB
Vue
91 lines
2.3 KiB
Vue
<script setup lang="ts">
|
|
withDefaults(
|
|
defineProps<{
|
|
items: string[]
|
|
icon?: 'laser' | 'info'
|
|
theme?: 'light' | 'dark'
|
|
}>(),
|
|
{ icon: undefined, theme: 'light' },
|
|
)
|
|
</script>
|
|
|
|
<template>
|
|
<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" />
|
|
<path d="M4 17.5v2.2M9 17.5v2.2M14 17.5v2.2M19 17.5v2.2" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" />
|
|
<path d="m15 4 3 3M18 4l-3 3M12 7h3M13.5 5.5v3" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
|
|
</svg>
|
|
<svg v-else viewBox="0 0 24 24">
|
|
<circle cx="12" cy="12" r="9" fill="none" stroke="currentColor" stroke-width="1.6" />
|
|
<path d="M12 10.5v5.5M12 7.5v.6" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" />
|
|
</svg>
|
|
</span>
|
|
|
|
<span class="status-footer__text">
|
|
<template v-for="(item, index) in items" :key="item">
|
|
<span>{{ item }}</span>
|
|
<span v-if="index < items.length - 1" class="status-footer__sep" aria-hidden="true">|</span>
|
|
</template>
|
|
</span>
|
|
</footer>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.status-footer {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
height: 62px;
|
|
padding: 0 42px;
|
|
border-top: 1px solid #dde3eb;
|
|
background: #fff;
|
|
color: #4d5968;
|
|
font-size: 20px;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.status-footer__icon {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
color: #7d8a99;
|
|
}
|
|
|
|
.status-footer__icon svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
.status-footer__text {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
|
|
.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>
|