game-village-politics-frontend/app/components/icon/Ui.vue

100 lines
2.9 KiB
Vue
Raw Normal View History

<script setup lang="ts">
export type UiIconName =
| 'close'
| 'clock'
| 'hammer'
| 'up'
| 'minus'
| 'plus'
| 'pin'
| 'users'
| 'globe'
| 'logout'
| 'attack'
| 'support'
| 'return'
| 'report'
| 'eye'
| 'edit'
| 'home'
| 'book'
| 'rank'
| 'chat'
defineProps<{ name: UiIconName }>()
</script>
<!-- Interface glyphs in currentColor. -->
<template>
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
aria-hidden="true"
class="shrink-0"
>
<path v-if="name === 'close'" d="M6 6l12 12M18 6L6 18" />
<g v-else-if="name === 'clock'">
<circle cx="12" cy="12" r="9" />
<path d="M12 7v5l3 2" />
</g>
<g v-else-if="name === 'hammer'">
<path d="M14 7l-9.5 9.5a1.8 1.8 0 0 0 2.5 2.5L16.5 9.5" />
<path d="M12.5 5.5l3-3 6 6-3 3z" />
</g>
<path v-else-if="name === 'up'" d="M12 19V5M6 11l6-6 6 6" />
<path v-else-if="name === 'minus'" d="M6 12h12" />
<path v-else-if="name === 'plus'" d="M12 6v12M6 12h12" />
<path v-else-if="name === 'rank'" d="M4 20V13h5v7M9 20V8h6v12M15 20v-9h5v9M3 20h18" />
<g v-else-if="name === 'pin'">
<path d="M12 21s-6-5.5-6-11a6 6 0 0 1 12 0c0 5.5-6 11-6 11z" />
<circle cx="12" cy="10" r="2" />
</g>
<g v-else-if="name === 'users'">
<circle cx="9" cy="8" r="3.5" />
<path d="M2.5 20c.5-3.5 3-5.5 6.5-5.5s6 2 6.5 5.5" />
<path d="M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5c2 .6 3.2 2.5 3.5 5.5" />
</g>
<g v-else-if="name === 'globe'">
<circle cx="12" cy="12" r="9" />
<path d="M3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9s-1.3 6.3-3.8 9c-2.5-2.7-3.8-5.7-3.8-9S9.5 5.7 12 3z" />
</g>
<g v-else-if="name === 'attack'">
<path d="M4 4l10 10M4 4h3l9 9M4 4v3l9 9" />
<path d="M13 17l4-4M15 19l4-4M17 17l3 3" />
</g>
<g v-else-if="name === 'support'">
<path d="M12 3l7 3v5c0 4.5-3 8-7 10-4-2-7-5.5-7-10V6z" />
</g>
<g v-else-if="name === 'return'">
<path d="M9 14l-5-5 5-5" />
<path d="M4 9h10a6 6 0 0 1 0 12h-3" />
</g>
<g v-else-if="name === 'report'">
<path d="M6 3h9l4 4v14H6z" />
<path d="M14 3v5h5M9 12h7M9 16h7" />
</g>
<g v-else-if="name === 'home'">
<path d="M3 11l9-7 9 7" />
<path d="M5 10v10h14V10M10 20v-6h4v6" />
</g>
<path v-else-if="name === 'edit'" d="M4 20l1-4L16 5l3 3L8 19zM14 7l3 3" />
<path v-else-if="name === 'chat'" d="M4 5h16v11H9l-5 4z" />
<g v-else-if="name === 'book'">
<path d="M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2z" />
<path d="M4 21V5M8 7h7M8 11h5" />
</g>
<g v-else-if="name === 'eye'">
<path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z" />
<circle cx="12" cy="12" r="3" />
</g>
<g v-else>
<path d="M15 4h3a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-3" />
<path d="M10 16l-4-4 4-4M6 12h10" />
</g>
</svg>
</template>