From 5cf2ecfba6a99fd110886d49df0fbb99aba53a89 Mon Sep 17 00:00:00 2001 From: EETagent Date: Sun, 4 Dec 2022 18:59:17 +0100 Subject: [PATCH] feat: improve admin dashboard --- .../(authenticated)/dashboard/+page.svelte | 199 +++++++++++++----- 1 file changed, 150 insertions(+), 49 deletions(-) diff --git a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte index fb9e351..72b9da4 100644 --- a/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte +++ b/frontend/src/routes/(admin)/admin/(authenticated)/dashboard/+page.svelte @@ -1,61 +1,162 @@ +
-
-
- {#each candidates as candidate} -
-

{candidate.applicationId}

-
-

{candidate.name} {candidate.surname?.toUpperCase()}

-
-

Obor: {candidate.study}

-
-
-
- {/each} -
-
-

Details here

-
-
+
+
+
+ {#each filters as filter} +
+ + +
+ {/each} +
+
+

Uchazeči

+
+ + +
+
+
+
+
+ + + + + + + + + + + {#each Array(40) as item} + + + + + + + {/each} + +
# First Last + Handle +
1 + Mark + + Otto + + @mdo +
+
+
+
+
+
+
\ No newline at end of file + @apply border-r border-gray-400; + } + + .list div { + @apply p-3; + @apply mx-3 my-6; + @apply flex items-center; + @apply rounded-xl; + + @apply transition-all duration-300; + + @apply hover:bg-sspsBlue focus:bg-sspsBlue; + @apply hover:text-white focus:text-white; + } + + .list div :global(path) { + @apply transition-all duration-300; + } + + .list div:hover :global(path) { + @apply fill-white fill-white; + } + .list div:hover :global(path:nth-child(2)) { + @apply stroke-white stroke-white; + } + + .list .selected :global(path) { + @apply fill-white fill-white; + } + .list .selected :global(path:nth-child(2)) { + @apply stroke-white stroke-white; + } + + .list .selected { + @apply bg-sspsBlue; + @apply text-white; + } + .list div button { + @apply p-1; + @apply flex-1; + @apply text-left; + } + + .body { + @apply h-[100vh] w-[calc(100vw-96px)]; + @apply float-left overflow-hidden; + @apply my-6 mx-10; + } + + .body .controls { + @apply flex flex-row items-center justify-between; + } + + .candidatePreview { + @apply mt-5 h-20 w-full rounded-xl bg-gray-200; + @apply hover:cursor-pointer; + } +