-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚧 restructures, add more result views
- Loading branch information
Showing
12 changed files
with
322 additions
and
158 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 @@ | ||
<script setup lang="ts"> | ||
import Popper from 'vue3-popper' | ||
import type { Answer } from '../content.config' | ||
import IconLess from '~icons/material-symbols/stat-minus-2-rounded' | ||
import IconMore from '~icons/material-symbols/stat-2-rounded' | ||
import IconRight from '~icons/material-symbols/check-rounded' | ||
import IconUnknown from '~icons/material-symbols/shield-question-outline-rounded' | ||
import IconNeutral from '~icons/material-symbols/circle-outline' | ||
import { answerLabels } from '../store' | ||
defineProps<{ | ||
answer: Answer | ||
}>() | ||
const styles: Record<Answer, any> = { | ||
'zu weit': { icon: IconLess, class: 'bg-red-500' }, | ||
richtig: { icon: IconRight, class: 'bg-green-500' }, | ||
'nicht weit genug': { icon: IconMore, class: 'bg-orange-500' }, | ||
'/': { icon: IconUnknown, class: 'bg-gray-600' }, | ||
'-': { icon: IconNeutral, class: 'bg-gray-700' }, | ||
} | ||
</script> | ||
|
||
<template> | ||
<Popper arrow :hover="true" placement="top" :content="answerLabels[answer]"> | ||
<div | ||
class="w-8 h-8 text-white rounded-full flex items-center justify-center" | ||
:class="[styles[answer].class]" | ||
> | ||
<component :is="styles[answer].icon" class="w-6 h-6" /> | ||
</div> | ||
</Popper> | ||
</template> |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.