diff --git a/src/components/AskPage.svelte b/src/components/AskPage.svelte new file mode 100644 index 00000000..b4c8e455 --- /dev/null +++ b/src/components/AskPage.svelte @@ -0,0 +1,83 @@ + + + + Спросить собшество вопрос + + + +
+

Спросить собшество вопрос

+
+
+ + {#each things as thing} +

{thing.id}

+ {/each} + + + {#if facultyFilterOpened} +
+ {#each faculties as faculty} +
+ + {faculty} +
+ {/each} +
+ {/if} +
+ +
+ + +
\ No newline at end of file diff --git a/src/components/Vote.svelte b/src/components/Vote.svelte index 35b211b5..a24df5ef 100644 --- a/src/components/Vote.svelte +++ b/src/components/Vote.svelte @@ -3,10 +3,17 @@ import Chip from "./Chip.svelte"; export let value = 0; + + function upVote() { + value = value + 1; + } -
+
diff --git a/src/routes/ask.svelte b/src/routes/ask.svelte index a5d452b6..5d682122 100644 --- a/src/routes/ask.svelte +++ b/src/routes/ask.svelte @@ -1,14 +1,23 @@ - @@ -17,17 +26,29 @@

Спросить собшество вопрос

-
- -
- {#each faculties as faculty} -
- - {faculty} +
+
+ + + {#if facultyFilterOpened} +
+ {#each faculties as faculty} +
+ + {faculty} +
+ {/each}
- {/each} + {/if}