diff --git a/src/App.svelte b/src/App.svelte index 926e73b..be190a0 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,15 +1,23 @@
-

Embroidery Viewer

+ + Embroidery viewer logo. +
diff --git a/src/app.css b/src/app.css index 11a731c..ab1414c 100644 --- a/src/app.css +++ b/src/app.css @@ -5,12 +5,15 @@ font-weight: 400; font-synthesis: none; text-rendering: optimizeLegibility; - background-color: #f4f4f4; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; } +* { + box-sizing: border-box; +} + body { display: flex; justify-content: center; @@ -23,7 +26,7 @@ body { display: flex; flex-direction: column; align-items: center; - width: 80%; - background-color: #e5e5e5; + width: 100%; + background-color: #F2F6F5; z-index: 10; } \ No newline at end of file diff --git a/src/assets/logo.webp b/src/assets/logo.webp new file mode 100644 index 0000000..b98b27d Binary files /dev/null and b/src/assets/logo.webp differ diff --git a/src/lib/Counter.svelte b/src/lib/Counter.svelte index e2dab4f..c090a9c 100644 --- a/src/lib/Counter.svelte +++ b/src/lib/Counter.svelte @@ -9,6 +9,7 @@ function onSubmitHandler(evt) { evt.stopPropagation(); evt.preventDefault(); + for (var i = 0, file; (file = files[i]); i++) { const canvasContainer = document.getElementById("canvas-container") const canvasCard = document.createElement(`div`) @@ -39,6 +40,7 @@ function onSubmitHandler(evt) { startFileRead(file, canvasEl); } } + document.getElementById("selected-files-container").remove(); } function handleDragOver(evt) { @@ -88,19 +90,34 @@ function handleOnKeydown(evt) {
- +
+
+{#if files} +

Selected files:

+ {#each Array.from(files) as file} +
+

{file.name} ({file.size/1000} kb)

+
+ {/each} +{/if} +
+