Files
Aether/frontend/src/components/HeaderLogo.vue
T

43 lines
874 B
Vue
Raw Normal View History

2025-12-10 20:52:44 +08:00
<template>
<div
class="relative group cursor-pointer"
2025-12-10 20:52:44 +08:00
:class="containerClass"
>
<!-- Logo SVG -->
<svg
xmlns="http://www.w3.org/2000/svg"
:viewBox="viewBox"
class="transition-colors duration-500 ease-out"
:class="[logoClass]"
2025-12-10 20:52:44 +08:00
>
<path
:d="aetherFullPath"
fill-rule="evenodd"
2025-12-10 20:52:44 +08:00
fill="currentColor"
/>
</svg>
</div>
</template>
<script setup lang="ts">
import { AETHER_FULL_PATH, AETHER_SVG_VIEWBOX } from '@/constants/logoPaths'
2025-12-10 20:52:44 +08:00
interface Props {
size?: string
className?: string
}
const props = withDefaults(defineProps<Props>(), {
size: 'h-8 w-8',
className: ''
})
const aetherFullPath = AETHER_FULL_PATH
const viewBox = AETHER_SVG_VIEWBOX
const containerClass = `${props.size} ${props.className}`.trim()
2025-12-10 20:52:44 +08:00
const logoClass = 'w-full h-full'
</script>
<style scoped>
</style>