Logo.vue 773 字节
Newer Older
L
LeoKu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
<template>
  <!-- <div
    class="logo"
    :style="{ width: `${props.size}rem`, height: `${props.size}rem` }"
  /> -->
  <img
    style="width: 40px; height: 40px"
    :src="LogoSvg"
    :style="{ width: `${props.size}rem`, height: `${props.size}rem` }"
  />
</template>

<script lang="ts" setup>
import LogoSvg from '@/assets/logo.svg'

const props = withDefaults(defineProps<{ size?: number }>(), {
  size: 2.5,
})
</script>

<!-- <style lang="scss" scoped>
.logo {
  position: relative;
  overflow: hidden;
  background-color: $color-accent;
  border-radius: 25%;

  &::after {
    position: absolute;
    top: -40%;
    right: -40%;
    width: 100%;
    height: 100%;
    background-color: $color-secondary;
    border-radius: 50%;
    content: '';
  }
}
</style> -->