chg: [front:score-panel] Improved UI for first completion
This commit is contained in:
parent
ed1a6dedd3
commit
cc8f955b02
1 changed files with 6 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
||||||
import { active_exercises as exercises, progresses, userCount, setCompletedState } from "@/socket";
|
import { active_exercises as exercises, progresses, userCount, setCompletedState } from "@/socket";
|
||||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
||||||
import { faCheck, faTimes, faMedal, faHourglassHalf } from '@fortawesome/free-solid-svg-icons'
|
import { faCheck, faTimes, faMedal, faHourglassHalf } from '@fortawesome/free-solid-svg-icons'
|
||||||
|
import { faCircleCheck } from '@fortawesome/free-regular-svg-icons'
|
||||||
import LiveLogsUserActivityGraph from "../LiveLogsUserActivityGraph.vue"
|
import LiveLogsUserActivityGraph from "../LiveLogsUserActivityGraph.vue"
|
||||||
|
|
||||||
const props = defineProps(['exercise', 'exercise_index'])
|
const props = defineProps(['exercise', 'exercise_index'])
|
||||||
|
@ -135,8 +136,11 @@
|
||||||
<span class="text-nowrap">
|
<span class="text-nowrap">
|
||||||
<FontAwesomeIcon
|
<FontAwesomeIcon
|
||||||
v-if="progress.exercises[exercise.uuid].tasks_completion[task.uuid]"
|
v-if="progress.exercises[exercise.uuid].tasks_completion[task.uuid]"
|
||||||
:icon="faCheck"
|
:icon="progress.exercises[exercise.uuid].tasks_completion[task.uuid].first_completion ? faCircleCheck : faCheck"
|
||||||
:class="`text-xl ${progress.exercises[exercise.uuid].tasks_completion[task.uuid] ? 'dark:text-green-400 text-green-600' : 'dark:text-slate-500 text-slate-400'}`"
|
:class="`
|
||||||
|
${progress.exercises[exercise.uuid].tasks_completion[task.uuid] ? 'dark:text-green-400 text-green-600' : 'dark:text-slate-500 text-slate-400'}
|
||||||
|
${progress.exercises[exercise.uuid].tasks_completion[task.uuid].first_completion ? 'text-lg' : 'text-xl'}
|
||||||
|
`"
|
||||||
/>
|
/>
|
||||||
<FontAwesomeIcon
|
<FontAwesomeIcon
|
||||||
v-else-if="task.requirements?.inject_uuid !== undefined && !progress.exercises[exercise.uuid].tasks_completion[task.requirements.inject_uuid]"
|
v-else-if="task.requirements?.inject_uuid !== undefined && !progress.exercises[exercise.uuid].tasks_completion[task.requirements.inject_uuid]"
|
||||||
|
|
Loading…
Reference in a new issue