feat: add custom icons to the website
This commit adds icons from various sources as a single font file to the website. Icons can be inserted with the new Icon component.
This commit is contained in:
17
content/.vuepress/components/Icon.vue
Normal file
17
content/.vuepress/components/Icon.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<i :class="`icon phunic-${props.name}`" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const props = defineProps({
|
||||
name: {
|
||||
default: '',
|
||||
required: true,
|
||||
type: String,
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
@import '../styles/fonts.less';
|
||||
</style>
|
||||
Reference in New Issue
Block a user