CLASSROOMIO-T-80: Replace sapper with sveltekit

This commit is contained in:
Rotimi Best
2023-08-02 19:35:27 +01:00
parent 8ffdf319b3
commit 7dfbb05451
320 changed files with 5207 additions and 18330 deletions
+28
View File
@@ -0,0 +1,28 @@
<script>
import ArrowUpIcon from 'carbon-icons-svelte/lib/ArrowUp.svelte';
import Chip from '../Chip/index.svelte';
export let value = 0;
export let upVote = () => {};
export let disabled = false;
</script>
<button
class="vote border-none {disabled ? 'cursor-not-allowed' : 'cursor-pointer'}"
on:click={disabled ? undefined : upVote}
>
<ArrowUpIcon size={16} />
<Chip {value} />
</button>
<style>
.vote {
display: flex;
flex-direction: column;
align-items: center;
min-width: 25px;
width: 25px;
justify-content: center;
margin-right: 10px;
}
</style>