Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add footer for HF tools #63

Merged
merged 4 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/components/features/calendar-month-select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<select
id="month-select"
bind:value={selectedMonth}
class="inline-block border-2 border-white rounded-lg bg-secondary text-black/70 py-2 px-2 ps-3 pe-4 focus:outline-0 w-full cursor-pointer leading-relaxed"
class="inline-block border-2 border-white rounded-lg bg-fristenkalender_secondary text-black/70 py-2 px-2 ps-3 pe-4 focus:outline-0 w-full cursor-pointer leading-relaxed"
>
{#each months as month}
<option value={month.value}>{month.label}</option>
Expand Down
12 changes: 7 additions & 5 deletions src/lib/components/features/calendar-table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
{#if isLoading}
<div class="flex flex-1 items-center justify-center">
<div>
<IconSpinner size={80} fillColor="fill-tint" />
<IconSpinner size={80} fillColor="fill-white" />
</div>
</div>
{:else if entries.length === 0}
Expand All @@ -130,25 +130,27 @@
<thead class="text-sm bg-white uppercase sticky top-0 z-10">
<tr class="text-black/50">
<th
class="pb-4 font-normal relative before:absolute before:bottom-0 before:left-0 before:right-0 before:h-0.5 before:bg-secondary"
class="pb-4 font-normal relative before:absolute before:bottom-0 before:left-0 before:right-0 before:h-0.5 before:bg-fristenkalender_secondary"
>
Datum
</th>
<th
class="pb-4 font-normal relative before:absolute before:bottom-0 before:left-0 before:right-0 before:h-0.5 before:bg-secondary"
class="pb-4 font-normal relative before:absolute before:bottom-0 before:left-0 before:right-0 before:h-0.5 before:bg-fristenkalender_secondary"
>
Werktag
</th>
<th
class="pb-4 font-normal relative before:absolute before:bottom-0 before:left-0 before:right-0 before:h-0.5 before:bg-secondary"
class="pb-4 font-normal relative before:absolute before:bottom-0 before:left-0 before:right-0 before:h-0.5 before:bg-fristenkalender_secondary"
>
Beschreibung
</th>
</tr>
</thead>
<tbody>
{#each entries as entry}
<tr class="font-medium border-b border-secondary/50 text-black/70">
<tr
class="font-medium border-b border-fristenkalender_secondary/50 text-black/70"
>
<td class="py-4 whitespace-nowrap">{entry.date}</td>
<td class="py-4 whitespace-nowrap"
>{formatWorkday(entry.workday)}</td
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/features/calendar-type-select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<select
id="type-select"
bind:value={selectedType}
class="inline-block border-2 border-white rounded-lg bg-secondary text-black/70 py-2 px-2 ps-3 pe-4 focus:outline-0 w-full cursor-pointer leading-relaxed"
class="inline-block border-2 border-white rounded-lg bg-fristenkalender_secondary text-black/70 py-2 px-2 ps-3 pe-4 focus:outline-0 w-full cursor-pointer leading-relaxed"
>
{#each types as type}
<option value={type.value}>{type.label}</option>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/features/calendar-year-select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<select
id="year-select"
bind:value={selectedYear}
class="inline-block border-2 border-white rounded-lg bg-secondary text-black/70 py-2 px-2 ps-3 pe-4 focus:outline-0 w-full cursor-pointer leading-relaxed"
class="inline-block border-2 border-white rounded-lg bg-fristenkalender_secondary text-black/70 py-2 px-2 ps-3 pe-4 focus:outline-0 w-full cursor-pointer leading-relaxed"
>
{#each years as year}
<option value={year}>{year}</option>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/features/download-button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { IconDownload, IconSpinner } from "$lib/components";
import { downloadCalendar } from "$lib/services/download-ics";

export let background = "bg-secondary";
export let background = "bg-fristenkalender_secondary";
export let textColor = "text-black";
export let selectedYear: number;

Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/features/glossary-toggle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</div>

<div
class="absolute inset-0 bg-secondary transition-opacity duration-300 rounded-r-lg"
class="absolute inset-0 bg-fristenkalender_secondary transition-opacity duration-300 rounded-r-lg"
class:opacity-99={isOpen}
class:opacity-100={!isOpen}
></div>
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// shared components
export { default as AuthButton } from "$lib/components/shared/auth-button.svelte";
export { default as Footer } from "$lib/components/shared/footer.svelte";
export { default as FooterTools } from "$lib/components/shared/footer-tools.svelte";
export { default as Header } from "$lib/components/shared/header.svelte";
export { default as IconDownload } from "$lib/components/shared/icon-download.svelte";
export { default as IconHeart } from "$lib/components/shared/icon-heart.svelte";
Expand Down
74 changes: 74 additions & 0 deletions src/lib/components/shared/footer-tools.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<script lang="ts">
export let background = "bg-off_white";
</script>

<footer class="flex items-center {background} px-3 py-3">
<div class="flex-1 flex justify-center">
<div class="flex items-center text-sm text-black/70 gap-10 text-center">
<a
href="https://ahb-tabellen.hochfrequenz.de"
target="_blank"
rel="noopener noreferrer"
class="flex flex-row items-center rounded-full bg-ahb_primary text-white text-lg px-5 py-2
shadow-lg
ring-1
ring-black/5
hover:ring-black/10
transition-all
duration-300
ease-in-out
hover:scale-110"
>
AHB-Tabellen
</a>
<a
href="https://bedingungsbaum.hochfrequenz.de"
target="_blank"
rel="noopener noreferrer"
class="flex flex-row items-center rounded-full bg-bedingungsbaum_primary text-white text-lg px-5 py-2
shadow-lg
ring-1
ring-black/5
hover:ring-black/10
transition-all
duration-300
ease-in-out
hover:scale-110"
>
Bedingungsbaum
</a>
<a
href="https://ebd.hochfrequenz.de"
target="_blank"
rel="noopener noreferrer"
class="flex flex-row items-center rounded-full bg-ebd_primary text-white text-lg px-5 py-2
shadow-lg
ring-1
ring-black/5
hover:ring-black/10
transition-all
duration-300
ease-in-out
hover:scale-110"
>
Entscheidungsbaumdiagramme
</a>
<a
href="https://fristenkalender.hochfrequenz.de"
target="_blank"
rel="noopener noreferrer"
class="flex flex-row items-center rounded-full bg-fristenkalender_primary text-white text-lg px-5 py-2
shadow-lg
ring-1
ring-black/5
hover:ring-black/10
transition-all
duration-300
ease-in-out
hover:scale-110"
>
Fristenkalender
</a>
</div>
</div>
</footer>
2 changes: 1 addition & 1 deletion src/lib/components/shared/footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { base } from "$app/paths";
import { IconHeart, IconLogo } from "$lib/components";

export let background = "bg-secondary";
export let background = "bg-fristenkalender_secondary";

type VersionInfo = {
version_tag: string;
Expand Down
7 changes: 5 additions & 2 deletions src/lib/components/shared/header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
} from "$lib/components";
import type { MonthValue } from "$lib/types/calendar-month";

export let background = "bg-primary";
export let background = "bg-fristenkalender_primary";
export let selectedYear: number;
export let selectedMonth: MonthValue;
export let selectedType: string;
Expand All @@ -33,6 +33,9 @@
</div>

<div class="flex-none py-2 pr-1">
<AuthButton background="bg-secondary" textColor="text-black/70" />
<AuthButton
background="bg-fristenkalender_secondary"
textColor="text-black/70"
/>
</div>
</header>
2 changes: 1 addition & 1 deletion src/lib/components/shared/icon-spinner.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div role="status">
<svg
aria-hidden="true"
class="animate-spin dark:text-secondary {fillColor}"
class="animate-spin dark:text-fristenkalender_secondary {fillColor}"
style="width: {size}px; height: {size}px;"
viewBox="0 0 100 101"
fill="none"
Expand Down
8 changes: 5 additions & 3 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
}
</script>

<section class="bg-primary flex-grow flex items-center justify-center">
<section
class="bg-fristenkalender_primary flex-grow flex items-center justify-center"
>
<div
class="rounded-3xl w-1/3 bg-secondary p-12
class="rounded-3xl w-1/3 bg-fristenkalender_secondary p-12
shadow-lg
transition-all
duration-300
Expand Down Expand Up @@ -52,7 +54,7 @@
<div class="mt-10 flex justify-center relative z-10">
<button
on:click={checkAuthentication}
class="flex flex-row items-center gap-2 rounded-full bg-primary text-white text-lg px-5 py-2
class="flex flex-row items-center gap-2 rounded-full bg-fristenkalender_primary text-white text-lg px-5 py-2
shadow-lg
ring-1
ring-black/5
Expand Down
3 changes: 3 additions & 0 deletions src/routes/fristenkalender/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<script lang="ts">
import "$src/app.scss";

import { FooterTools } from "$lib/components";
</script>

<div class="flex flex-col h-full">
<main class="flex-1 min-h-0">
<slot />
</main>
<FooterTools />
</div>
2 changes: 1 addition & 1 deletion src/routes/fristenkalender/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
}
</script>

<div class="flex flex-col h-full bg-tint relative">
<div class="flex flex-col h-full bg-white relative">
<Header bind:selectedYear bind:selectedMonth bind:selectedType />
<div class="flex flex-row justify-between">
<div class="flex flex-col px-24 py-12">
Expand Down
11 changes: 9 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ export default {
theme: {
extend: {
colors: {
primary: "#ABDCD3",
secondary: "#D4EDE8",
off_white: "#E7E6E5",
ahb_primary: "#EBBEC1",
ahb_secondary: "#F4E0E1",
bedingungsbaum_primary: "#E5BD5C",
bedingungsbaum_secondary: "#F4E2B9",
ebd_primary: "#8BA2D7",
ebd_secondary: "#C2CEE9",
fristenkalender_primary: "#ABDCD3",
fristenkalender_secondary: "#D4EDE8",
},
},
},
Expand Down
Loading