From 70edf6f11e890521e95c80f04a67e97cc7b4d9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= Date: Fri, 18 Nov 2022 11:56:45 -0300 Subject: [PATCH] Refactor CanvasCard to CardList --- src/app.css | 18 ++++++++++ .../{CanvasCard.svelte => CardList.svelte} | 32 ++++++++++++----- src/lib/FileViewer.svelte | 36 ++----------------- 3 files changed, 43 insertions(+), 43 deletions(-) rename src/lib/{CanvasCard.svelte => CardList.svelte} (50%) diff --git a/src/app.css b/src/app.css index ab1414c..227035f 100644 --- a/src/app.css +++ b/src/app.css @@ -29,4 +29,22 @@ body { width: 100%; background-color: #F2F6F5; z-index: 10; +} + +input[type="submit"] { + width: 100%; + font-size: 20px; + margin-top: 20px; + background-color: #05345f; + font-weight: 700; + color: white; + padding: 10px; + -webkit-appearance: none; + border-radius: 0; +} + +input[type="submit"]:hover { + cursor: pointer; + background-color: black; + color: white; } \ No newline at end of file diff --git a/src/lib/CanvasCard.svelte b/src/lib/CardList.svelte similarity index 50% rename from src/lib/CanvasCard.svelte rename to src/lib/CardList.svelte index 5154225..cc47925 100644 --- a/src/lib/CanvasCard.svelte +++ b/src/lib/CardList.svelte @@ -5,16 +5,26 @@ let canvasRefs = []; -{#each Array.from(files) as file, i} -
- -

{file.name}

-
- {canvasRefs[i] && startFileRead(file, canvasRefs[i])} -{/each} +
+ {#each Array.from(files) as file, i} +
+ +

{file.name}

+
+ {canvasRefs[i] && startFileRead(file, canvasRefs[i])} + {/each} +
diff --git a/src/lib/FileViewer.svelte b/src/lib/FileViewer.svelte index 2b5d9ea..45e1574 100644 --- a/src/lib/FileViewer.svelte +++ b/src/lib/FileViewer.svelte @@ -1,5 +1,5 @@