-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
71 additions
and
7 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
<div class="relative dj-rating shrink-0"> | ||
<img class="absolute" :src="card" alt="Rating background"> | ||
<div class="h-full flex items-center justify-center -translate-y-[2px]"> | ||
<img class="z-10 mr-2" :src="rating" width="18" alt="Rating icon"> | ||
<div class="z-10 flex items-baseline justify-center text-sm font-medium rating-color"> | ||
<span>{{ value.split('.')[0] }}</span> | ||
<span>.</span> | ||
<span class="text-xs opacity-50">{{ value.split('.')[1] }}</span> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import card from '/djmax/card.svg'; | ||
import rating from '/djmax/rating-high-class-iii.png'; | ||
defineProps({ | ||
value: String | ||
}); | ||
</script> | ||
|
||
<style scoped> | ||
.rating-color { | ||
color: #FFBE00; | ||
} | ||
.dj-rating { | ||
width: 110px; | ||
height: 32px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters