diff --git a/src/routes/test/+page.svelte b/src/routes/test/+page.svelte new file mode 100644 index 0000000..377f218 --- /dev/null +++ b/src/routes/test/+page.svelte @@ -0,0 +1,276 @@ + + +
+ {#if isModalOpen} +
+
+
+ +
+ + +
+
+ {:else} +
+
document.getElementById("fileInput").click()} + > + + {#if !image} +
+ + + +

Перетащите изображение

+

или кликните для выбора

+
+ {/if} + + + {#if image} +
+ + + + + + + + + + + + + {#if text} + + + + {text} + + + + {text} + + {/if} + +
+ {/if} + + + validateAndLoadImage((e.target as HTMLInputElement).files[0])} + /> +
+ + {#if error} +

{error}

+ {/if} + +
+ + +
+ +
+ + +
{fontSize}
+
+ +

+ Размер изображения 512×512 пикселей +

+
+ {/if} +
+ + diff --git a/src/routes/test/image.png b/src/routes/test/image.png new file mode 100644 index 0000000..bfcd373 Binary files /dev/null and b/src/routes/test/image.png differ diff --git a/src/routes/test2/+page.svelte b/src/routes/test2/+page.svelte new file mode 100644 index 0000000..f9621e6 --- /dev/null +++ b/src/routes/test2/+page.svelte @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + {text} + + + + + \ No newline at end of file