From 8de961784e4c32721b2273f8f15f5d180e3b7b39 Mon Sep 17 00:00:00 2001 From: Andriamanitra Date: Thu, 2 Mar 2023 21:15:49 +0200 Subject: [PATCH] show more info about clashes in search results --- frontend/src/App.svelte | 22 +----- frontend/src/lib/ClashCard.svelte | 112 ++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+), 19 deletions(-) create mode 100644 frontend/src/lib/ClashCard.svelte diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 1ed1328..c7d56ff 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -1,5 +1,6 @@ + +
+ + {clash.title} + + by + {clash.nickname || "Anonymous"} + + + + +
+

{removeFormatting(statement)}

+
+
{testCases[0].testIn}
+
{testCases[0].testOut}
+
+
+ Details +

Input description

+
{removeFormatting(inputDescription)}
+

Output description

+
{removeFormatting(outputDescription)}
+ {#if constraints} +

Constraints

+
{removeFormatting(constraints)}
+ {/if} +
+
+ All test cases +
+ {#each testCases as testCase} +
{testCase.testIn}
+
{testCase.testOut}
+ {/each} +
+
+
+
+ +