diff --git a/frontend/src/lib/components/dashboard/DashboardUploadCard.svelte b/frontend/src/lib/components/dashboard/DashboardUploadCard.svelte index e4c441d..9e9572c 100644 --- a/frontend/src/lib/components/dashboard/DashboardUploadCard.svelte +++ b/frontend/src/lib/components/dashboard/DashboardUploadCard.svelte @@ -5,22 +5,23 @@ export let filetype: 'PDF' | 'ZIP'; export let filesize: string; - let dashAnimationProgress = 0; - let dashAnimationInterval: NodeJS.Timer; + import FileDrop from 'filedrop-svelte'; - const dashAnimationStart = () => { - dashAnimationInterval = setInterval(() => { - dashAnimationProgress += 1; - if (dashAnimationProgress == 20) { - dashAnimationProgress = 0; - } - }, 30); - }; + let dashAnimationProgress = 0; + let dashAnimationInterval: NodeJS.Timer; - const dashAnimationStop = () => { - clearInterval(dashAnimationInterval); - }; + const dashAnimationStart = () => { + dashAnimationInterval = setInterval(() => { + dashAnimationProgress += 1; + if (dashAnimationProgress == 20) { + dashAnimationProgress = 0; + } + }, 30); + }; + const dashAnimationStop = () => { + clearInterval(dashAnimationInterval); + };
@@ -30,14 +31,18 @@
-
- Sem přetáhněte, - nebo nahrajte svůj motivační dopis +
+ +
+ Sem přetáhněte, + nebo nahrajte svůj motivační dopis +
+
@@ -48,24 +53,25 @@ @apply bg-[#f8fbfc]; @apply rounded-3xl; - @apply px-7 py-10; + @apply px-7 py-7; } .card h3 { @apply text-sspsBlue text-2xl xl:text-4xl font-semibold; } .card span { @apply opacity-60 text-sm; - @apply transition-all duration-300 + @apply transition-all duration-300; } .card .drag { - @apply transition duration-200; - @apply flex-grow; + @apply transition duration-200; + @apply min-h-full; @apply flex flex-col items-center justify-center; - @apply mt-10; - border-radius: 9px; + + /* TODO: Fix this hack */ + @apply p-10 sm:p-20 md:p-0; + } + .card .drag:hover span { + @apply opacity-100; } - .card .drag:hover span{ - @apply opacity-100; - }