mirror of
https://github.com/muerwre/muerwre.github.io.git
synced 2025-04-25 02:46:39 +07:00
added whole content
This commit is contained in:
parent
1b5df685cb
commit
8b25e0631a
70 changed files with 5962 additions and 19 deletions
51
components/ui/UiStars.vue
Normal file
51
components/ui/UiStars.vue
Normal file
|
@ -0,0 +1,51 @@
|
|||
<template>
|
||||
<div :class="$style.rating">
|
||||
<IconsIconStar
|
||||
v-for="i in 5"
|
||||
:width="22"
|
||||
height="22"
|
||||
:class="[$style.star, { [$style.filled]: i > count }]"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
interface Props {
|
||||
count: number;
|
||||
}
|
||||
|
||||
defineProps<Props>();
|
||||
</script>
|
||||
|
||||
<style lang="scss" module>
|
||||
@import "~~/assets/css/mixins";
|
||||
|
||||
.rating {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin-left: -3px;
|
||||
|
||||
& > img {
|
||||
margin-right: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.star {
|
||||
stroke: none;
|
||||
fill: currentColor;
|
||||
|
||||
@include color_per_child(
|
||||
(
|
||||
var(--color-rating-1),
|
||||
var(--color-rating-2),
|
||||
var(--color-rating-3),
|
||||
var(--color-rating-4),
|
||||
var(--color-rating-5)
|
||||
)
|
||||
);
|
||||
|
||||
&.filled {
|
||||
fill: var(--color-line);
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue