diff --git a/web/src/lib/ExportModal.svelte b/web/src/lib/ExportModal.svelte index e1da309..8ff4a6d 100644 --- a/web/src/lib/ExportModal.svelte +++ b/web/src/lib/ExportModal.svelte @@ -1,41 +1,105 @@ + + { + selectedTab = 0; + }} + class="tab {selectedTab === 0 ? 'tab-active' : ''}" + > + Datum + + { + selectedTab = 1; + }} + class="tab {selectedTab === 1 ? 'tab-active' : ''}" + > + Jahr + + - - Von: - - + {#if selectedTab === 0} + + + Von: + + - - Bis: - - + + Bis: + + + + {/if} + + {#if selectedTab === 1} + + + Kalendar Jahr: + + {#each generateYears() as year} + {year} + {/each} + + + + {/if} @reference "../app.css"; + .tab { + @apply px-4 py-2 rounded-t-lg bg-indigo-600 hover:bg-indigo-700 font-medium border-b-2 border-transparent cursor-pointer transition-colors duration-200; + } + + .tab-active { + @apply px-4 py-2 bg-indigo-500 font-semibold border-b-2 border-blue-600 shadow-sm cursor-pointer; + } + .form-row { - @apply flex justify-between; + @apply flex justify-between my-1; } .form-input { - @apply ml-10; + @apply ml-20; }