From 72cbe793b12eaf94a49c6e6c8e7b525221a3d120 Mon Sep 17 00:00:00 2001 From: harshbaz Date: Wed, 18 Oct 2023 09:21:12 +0530 Subject: [PATCH] Add up-down vote components --- .../src/components/up-down/UpDownVote.svelte | 14 +++++ .../up-down/UpDownVoteControls.svelte | 58 +++++++++++++++++++ .../up-down/UpDownVoteOutcome.svelte | 0 3 files changed, 72 insertions(+) create mode 100644 packages/web-client/src/components/up-down/UpDownVote.svelte create mode 100644 packages/web-client/src/components/up-down/UpDownVoteControls.svelte create mode 100644 packages/web-client/src/components/up-down/UpDownVoteOutcome.svelte diff --git a/packages/web-client/src/components/up-down/UpDownVote.svelte b/packages/web-client/src/components/up-down/UpDownVote.svelte new file mode 100644 index 000000000..b369dde7e --- /dev/null +++ b/packages/web-client/src/components/up-down/UpDownVote.svelte @@ -0,0 +1,14 @@ + + + + {#if votePlaced === false} + + {:else} + + {/if} + diff --git a/packages/web-client/src/components/up-down/UpDownVoteControls.svelte b/packages/web-client/src/components/up-down/UpDownVoteControls.svelte new file mode 100644 index 000000000..39692b925 --- /dev/null +++ b/packages/web-client/src/components/up-down/UpDownVoteControls.svelte @@ -0,0 +1,58 @@ + + +
+
+ + + +
+
+
+
+ +
+
Down
+
+
+
100
+
Current scrore
+
+
+
+ +
+
Up
+
+
+
diff --git a/packages/web-client/src/components/up-down/UpDownVoteOutcome.svelte b/packages/web-client/src/components/up-down/UpDownVoteOutcome.svelte new file mode 100644 index 000000000..e69de29bb