Dateien nach "/" hochladen

Release v0.42.0 Modern UI
This commit is contained in:
2026-06-30 09:57:21 +00:00
parent 2c24b4d71d
commit 1b4c99c08d
3 changed files with 461 additions and 180 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const APP_VERSION = 'v0.41.1'; const APP_VERSION = 'v0.42.0';
const fileInput = document.getElementById('csvFile'); const fileInput = document.getElementById('csvFile');
const dropZone = document.getElementById('dropZone'); const dropZone = document.getElementById('dropZone');
+53 -21
View File
@@ -7,22 +7,35 @@
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
</head> </head>
<body> <body>
<header class="topbar">
<div class="brand">
<span class="brand-icon" aria-hidden="true"></span>
<div>
<strong>qPlanner</strong>
<span>Arbeitszeit-Auswertung</span>
</div>
</div>
</header>
<main class="app"> <main class="app">
<section class="hero"> <section class="hero">
<div> <div class="hero-content">
<p class="eyebrow">qPlanner CSV-Auswertung</p> <p class="eyebrow">qPlanner CSV-Auswertung</p>
<h1>Arbeitszeit-Saldo berechnen</h1> <h1>Arbeitszeit-Saldo berechnen</h1>
<p class="intro">CSV-Datei hochladen, Netto-Arbeitszeiten auslesen und Plus-/Minusstunden berechnen. Samstage, Sonntage und gesetzliche Feiertage im gewählten Bundesland werden mit 0:00 Stunden Sollzeit bewertet.</p> <p class="intro">CSV-Datei hochladen, Netto-Arbeitszeiten auslesen und Plus-/Minusstunden berechnen. Samstage, Sonntage und gesetzliche Feiertage im gewählten Bundesland werden mit 0:00 Stunden Sollzeit bewertet.</p>
</div>
</section>
<section class="settings" aria-label="Einstellungen"> <section class="settings" aria-label="Einstellungen">
<label> <label class="setting-card">
Sollzeit pro Arbeitstag Montag bis Freitag <span class="setting-icon clock" aria-hidden="true"></span>
<span class="setting-content">
<span class="setting-label">Sollzeit pro Arbeitstag (MoFr)</span>
<input id="targetTime" type="time" value="08:00" step="60"> <input id="targetTime" type="time" value="08:00" step="60">
</span>
</label> </label>
<label> <label class="setting-card">
Bundesland / Feiertagsregel <span class="setting-icon location" aria-hidden="true"></span>
<span class="setting-content">
<span class="setting-label">Bundesland / Feiertagsregel</span>
<select id="federalState"> <select id="federalState">
<option value="NW">Nordrhein-Westfalen</option> <option value="NW">Nordrhein-Westfalen</option>
<option value="BY">Bayern</option> <option value="BY">Bayern</option>
@@ -30,44 +43,60 @@
<option value="NI">Niedersachsen</option> <option value="NI">Niedersachsen</option>
<option value="HH">Hamburg</option> <option value="HH">Hamburg</option>
</select> </select>
</span>
</label> </label>
</section> </section>
</div>
<section id="dropZone" class="drop-zone"> <section id="dropZone" class="drop-zone" aria-label="CSV-Datei hochladen">
<input id="csvFile" type="file" accept=".csv,text/csv"> <input id="csvFile" type="file" accept=".csv,text/csv">
<div class="drop-content"> <div class="drop-content">
<span class="upload-icon" aria-hidden="true"></span>
<strong>CSV-Datei hier ablegen</strong> <strong>CSV-Datei hier ablegen</strong>
<span>oder Datei auswählen</span> <span>oder klicken zum Auswählen</span>
<em>Unterstützt: .csv Dateien</em>
</div> </div>
</section> </section>
</section>
<section id="errorBox" class="error hidden"></section> <section id="errorBox" class="error hidden"></section>
<p id="formatHint" class="format-hint"></p> <p id="formatHint" class="format-hint"></p>
<section id="summary" class="summary hidden" aria-live="polite"> <section id="summary" class="summary hidden" aria-live="polite">
<article class="card"> <article class="stat-card stat-days">
<span class="stat-icon" aria-hidden="true"></span>
<span>Arbeitstage</span> <span>Arbeitstage</span>
<strong id="totalDays">0</strong> <strong id="totalDays">0</strong>
<small>Tage mit Arbeitszeit</small>
</article> </article>
<article class="card"> <article class="stat-card stat-work">
<span class="stat-icon" aria-hidden="true"></span>
<span>Arbeitszeit gesamt</span> <span>Arbeitszeit gesamt</span>
<strong id="totalWork">0:00</strong> <strong id="totalWork">0:00</strong>
<small>Stunden</small>
</article> </article>
<article class="card"> <article class="stat-card stat-target">
<span class="stat-icon" aria-hidden="true"></span>
<span>Sollzeit gesamt</span> <span>Sollzeit gesamt</span>
<strong id="totalTarget">0:00</strong> <strong id="totalTarget">0:00</strong>
<small>Stunden</small>
</article> </article>
<article class="card saldo-card"> <article class="stat-card stat-saldo">
<span class="stat-icon" aria-hidden="true"></span>
<span>Saldo gesamt</span> <span>Saldo gesamt</span>
<strong id="totalSaldo">±0:00</strong> <strong id="totalSaldo">±0:00</strong>
<small>Stunden</small>
</article> </article>
</section> </section>
<section id="results" class="results hidden"> <section id="results" class="results hidden">
<div class="panel table-panel">
<div class="table-header"> <div class="table-header">
<div class="section-title">
<span aria-hidden="true"></span>
<h2>Monatsübersicht</h2> <h2>Monatsübersicht</h2>
<button id="exportCsv" type="button">Ergebnis als CSV exportieren</button> </div>
<button id="exportCsv" type="button">⇩ Ergebnis als CSV exportieren</button>
</div> </div>
<div class="table-wrap"> <div class="table-wrap">
<table> <table>
@@ -84,9 +113,13 @@
<tbody id="monthTable"></tbody> <tbody id="monthTable"></tbody>
</table> </table>
</div> </div>
</div>
<details class="details"> <details class="panel details" open>
<summary>Tagesdetails anzeigen</summary> <summary>
<span class="section-title"><span aria-hidden="true"></span><strong>Tagesdetails</strong></span>
<span class="summary-hint">ein-/ausblenden</span>
</summary>
<div class="table-wrap"> <div class="table-wrap">
<table> <table>
<thead> <thead>
@@ -110,11 +143,10 @@
</section> </section>
</main> </main>
<footer class="app-footer">
<footer class="app-footer" aria-label="Projektinformationen"> <span id="appVersion">v0.42.0</span>
<span id="appVersion">v0.41.1</span>
<span aria-hidden="true"></span> <span aria-hidden="true"></span>
<a href="https://git.mike-lindner.net/mike/qplanner-arbeitszeit-auswertung" target="_blank" rel="noopener noreferrer">Repository</a> <a href="https://git.mike-lindner.net/mike/qplanner-arbeitszeit-auswertung" target="_blank" rel="noopener noreferrer">Repository</a>
</footer> </footer>
<script src="app.js"></script> <script src="app.js"></script>
+374 -125
View File
@@ -1,118 +1,243 @@
:root { :root {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --bg: #f5f8fd;
color: #172033; --surface: rgba(255, 255, 255, .92);
background: #f3f6fb; --surface-solid: #ffffff;
--text: #0f1f3d;
--muted: #5c6b84;
--line: #dbe5f2;
--blue: #2563eb;
--blue-soft: #eaf2ff;
--green: #119b6b;
--green-soft: #e7f8f1;
--orange: #f28c18;
--orange-soft: #fff3df;
--red: #dc2626;
--red-soft: #fff1f2;
--shadow: 0 18px 48px rgba(29, 52, 92, .10);
--shadow-soft: 0 10px 26px rgba(29, 52, 92, .07);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: var(--text);
background: var(--bg);
} }
* { box-sizing: border-box; } * { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { body {
margin: 0; margin: 0;
min-height: 100vh; min-height: 100vh;
background:
radial-gradient(circle at top left, rgba(37, 99, 235, .10), transparent 34rem),
radial-gradient(circle at 72% 12%, rgba(17, 155, 107, .09), transparent 24rem),
linear-gradient(180deg, #fbfdff 0%, var(--bg) 55%, #f8fbff 100%);
}
body::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
background-image:
linear-gradient(rgba(37, 99, 235, .035) 1px, transparent 1px),
linear-gradient(90deg, rgba(37, 99, 235, .035) 1px, transparent 1px);
background-size: 48px 48px;
mask-image: linear-gradient(to bottom, black, transparent 72%);
}
.topbar {
position: sticky;
top: 0;
z-index: 20;
backdrop-filter: blur(18px);
background: rgba(255, 255, 255, .78);
border-bottom: 1px solid rgba(219, 229, 242, .9);
}
.brand {
width: min(1360px, calc(100% - 32px));
margin: 0 auto;
height: 70px;
display: flex;
align-items: center;
gap: 14px;
}
.brand-icon {
width: 38px;
height: 38px;
display: grid;
place-items: center;
border-radius: 14px;
color: var(--blue);
background: var(--blue-soft);
box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .13);
font-size: 1.35rem;
}
.brand strong {
display: block;
font-size: 1.25rem;
letter-spacing: -.03em;
}
.brand span:last-child {
display: block;
color: var(--muted);
font-size: .9rem;
margin-top: 1px;
} }
.app { .app {
width: min(1180px, calc(100% - 32px)); position: relative;
width: min(1360px, calc(100% - 32px));
margin: 0 auto; margin: 0 auto;
padding: 40px 0; padding: 44px 0 80px;
} }
.hero { .hero {
display: flex; display: grid;
justify-content: space-between; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
gap: 24px; gap: 32px;
align-items: end; align-items: stretch;
margin-bottom: 24px; margin-bottom: 22px;
}
.hero-content {
position: relative;
min-height: 300px;
} }
.eyebrow { .eyebrow {
margin: 0 0 8px; margin: 0 0 12px;
color: #566277; color: var(--blue);
font-weight: 700; font-weight: 800;
letter-spacing: .08em; letter-spacing: .10em;
text-transform: uppercase; text-transform: uppercase;
font-size: .8rem; font-size: .78rem;
} }
h1 { h1 {
margin: 0; margin: 0;
font-size: clamp(2rem, 4vw, 3.2rem); max-width: 760px;
font-size: clamp(2.35rem, 5vw, 4.2rem);
line-height: .98;
letter-spacing: -.06em;
} }
.intro { .intro {
max-width: 760px; max-width: 770px;
color: #566277; margin: 20px 0 30px;
line-height: 1.6; color: var(--muted);
} line-height: 1.75;
font-size: 1.04rem;
.settings,
.card,
.results {
background: white;
border: 1px solid #dde5f2;
box-shadow: 0 12px 30px rgba(29, 45, 68, .08);
}
.version-card {
border-radius: 18px;
padding: 14px 18px;
min-width: 130px;
text-align: center;
}
.version-card span {
display: block;
color: #566277;
font-size: .82rem;
}
.version-card strong {
display: block;
margin-top: 4px;
font-size: 1.25rem;
} }
.settings { .settings {
display: grid; display: grid;
grid-template-columns: repeat(2, minmax(220px, 1fr)); grid-template-columns: repeat(2, minmax(250px, 1fr));
gap: 16px; gap: 18px;
border-radius: 18px; max-width: 820px;
padding: 16px;
margin-bottom: 24px;
} }
.settings label { .setting-card,
.stat-card,
.panel,
.drop-zone {
background: var(--surface);
border: 1px solid rgba(219, 229, 242, .95);
box-shadow: var(--shadow-soft);
backdrop-filter: blur(16px);
}
.setting-card {
min-height: 124px;
border-radius: 22px;
padding: 18px;
display: flex;
align-items: center;
gap: 18px;
}
.setting-icon,
.stat-icon {
flex: 0 0 auto;
width: 56px;
height: 56px;
border-radius: 18px;
display: grid;
place-items: center;
font-size: 1.55rem;
font-weight: 800;
}
.setting-icon.clock,
.stat-days .stat-icon { color: var(--blue); background: var(--blue-soft); }
.setting-icon.location,
.stat-work .stat-icon,
.stat-saldo .stat-icon { color: var(--green); background: var(--green-soft); }
.stat-target .stat-icon { color: var(--orange); background: var(--orange-soft); }
.setting-content {
display: grid; display: grid;
gap: 8px; gap: 8px;
font-size: .9rem; width: 100%;
color: #566277; }
.setting-label,
.stat-card > span:not(.stat-icon) {
color: #31415d;
font-size: .92rem;
font-weight: 750;
} }
.settings input, .settings input,
.settings select { .settings select {
border: 1px solid #cbd5e1; width: 100%;
border-radius: 10px; border: 1px solid #cfd9e8;
padding: 10px 12px; border-radius: 14px;
padding: 12px 14px;
font: inherit; font: inherit;
color: #172033; color: var(--text);
background: white; background: #fff;
outline: none;
box-shadow: inset 0 1px 0 rgba(15, 31, 61, .03);
transition: border-color .18s ease, box-shadow .18s ease;
}
.settings input:focus,
.settings select:focus {
border-color: rgba(37, 99, 235, .6);
box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
} }
.drop-zone { .drop-zone {
position: relative; position: relative;
display: grid; display: grid;
place-items: center; place-items: center;
min-height: 190px; min-height: 302px;
border: 2px dashed #9aa8bd; border: 2px dashed rgba(37, 99, 235, .48);
border-radius: 24px; border-radius: 28px;
background: white;
cursor: pointer; cursor: pointer;
transition: .2s ease; overflow: hidden;
transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
} }
.drop-zone::before {
content: "";
position: absolute;
inset: 18px;
border-radius: 22px;
background: radial-gradient(circle, rgba(37, 99, 235, .12), transparent 52%);
opacity: .8;
}
.drop-zone:hover,
.drop-zone.dragover { .drop-zone.dragover {
border-color: #2f6feb; transform: translateY(-2px);
background: #edf4ff; border-color: var(--blue);
background: rgba(234, 242, 255, .84);
box-shadow: var(--shadow);
} }
.drop-zone input { .drop-zone input {
@@ -120,67 +245,131 @@ h1 {
inset: 0; inset: 0;
opacity: 0; opacity: 0;
cursor: pointer; cursor: pointer;
z-index: 3;
} }
.drop-content { .drop-content {
position: relative;
z-index: 2;
display: grid; display: grid;
justify-items: center;
gap: 8px; gap: 8px;
text-align: center; text-align: center;
color: #566277; color: var(--muted);
}
.upload-icon {
width: 84px;
height: 84px;
display: grid;
place-items: center;
border-radius: 28px;
color: var(--blue);
background: #fff;
box-shadow: var(--shadow-soft);
font-size: 2.8rem;
line-height: 1;
} }
.drop-content strong { .drop-content strong {
color: #172033; color: var(--text);
font-size: 1.25rem; font-size: 1.15rem;
margin-top: 8px;
}
.drop-content em {
margin-top: 8px;
font-style: normal;
font-size: .88rem;
color: var(--muted);
} }
.error { .error {
margin-top: 18px; margin: 18px 0 0;
padding: 14px 16px; padding: 16px 18px;
border-radius: 14px; border-radius: 18px;
background: #fff1f2; background: var(--red-soft);
color: #be123c; color: #be123c;
border: 1px solid #fecdd3; border: 1px solid #fecdd3;
font-weight: 650;
} }
.hidden { display: none !important; } .hidden { display: none !important; }
.format-hint { .format-hint {
color: #566277; min-height: 26px;
min-height: 22px; margin: 14px 0 0;
color: var(--muted);
font-size: .94rem;
} }
.summary { .summary {
display: grid; display: grid;
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 16px; gap: 18px;
margin: 24px 0; margin: 24px 0;
} }
.card { .stat-card {
border-radius: 18px; position: relative;
padding: 18px; min-height: 146px;
border-radius: 22px;
padding: 22px;
display: grid;
grid-template-columns: 64px 1fr;
grid-template-areas:
"icon label"
"icon value"
"icon hint";
align-items: center;
column-gap: 16px;
overflow: hidden;
} }
.card span { .stat-card::after {
display: block; content: "";
color: #566277; position: absolute;
margin-bottom: 8px; left: 0;
right: 0;
top: 0;
height: 3px;
background: var(--blue);
} }
.card strong { .stat-work::after,
font-size: 1.8rem; .stat-saldo::after { background: var(--green); }
.stat-target::after { background: var(--orange); }
.stat-icon { grid-area: icon; }
.stat-card > span:not(.stat-icon) { grid-area: label; }
.stat-card strong {
grid-area: value;
font-size: clamp(1.7rem, 3vw, 2.25rem);
letter-spacing: -.04em;
}
.stat-card small {
grid-area: hint;
color: var(--muted);
} }
.saldo-card strong.positive { color: #15803d; } .stat-saldo strong.positive { color: var(--green); }
.saldo-card strong.negative { color: #b91c1c; } .stat-saldo strong.negative { color: var(--red); }
.results { .results {
border-radius: 24px; display: grid;
padding: 22px; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
gap: 18px;
align-items: start;
} }
.table-header { .panel {
border-radius: 24px;
padding: 22px;
overflow: hidden;
}
.table-header,
.details summary {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@@ -188,44 +377,80 @@ h1 {
margin-bottom: 16px; margin-bottom: 16px;
} }
.table-header h2 { .section-title {
display: inline-flex;
align-items: center;
gap: 10px;
}
.section-title > span {
width: 30px;
height: 30px;
display: grid;
place-items: center;
border-radius: 10px;
background: var(--blue-soft);
color: var(--blue);
font-weight: 900;
}
.table-header h2,
.details summary strong {
margin: 0; margin: 0;
font-size: 1.2rem;
letter-spacing: -.02em;
} }
button { button {
border: none; border: 1px solid rgba(37, 99, 235, .18);
border-radius: 12px; border-radius: 14px;
padding: 10px 14px; padding: 10px 14px;
background: #172033; background: #fff;
color: white; color: var(--blue);
font: inherit; font: inherit;
font-weight: 750;
cursor: pointer; cursor: pointer;
box-shadow: var(--shadow-soft);
transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
} }
button:hover { opacity: .9; } button:hover {
transform: translateY(-1px);
background: var(--blue-soft);
}
.table-wrap { .table-wrap {
overflow-x: auto; overflow-x: auto;
margin: 0 -22px -22px;
} }
table { table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
font-size: .95rem; font-size: .93rem;
} }
th, th,
td { td {
padding: 12px 10px; padding: 14px 22px;
border-bottom: 1px solid #e5eaf3; border-bottom: 1px solid #e8eef6;
text-align: left; text-align: left;
white-space: nowrap; white-space: nowrap;
} }
th { th {
color: #566277; color: #3c4a63;
font-weight: 700; font-size: .82rem;
background: #f8fafc; font-weight: 850;
background: #f8fbff;
}
tbody tr {
transition: background .15s ease;
}
tbody tr:hover td {
background: rgba(234, 242, 255, .55);
} }
tr.holiday-row td { tr.holiday-row td {
@@ -236,54 +461,78 @@ tr.weekend-row td {
background: #f8fafc; background: #f8fafc;
} }
.positive { color: #15803d; font-weight: 700; } .positive { color: var(--green); font-weight: 850; }
.negative { color: #b91c1c; font-weight: 700; } .negative { color: var(--red); font-weight: 850; }
.neutral { color: #566277; font-weight: 700; } .neutral { color: var(--muted); font-weight: 850; }
.details { .details {
margin-top: 20px; margin: 0;
} }
.details summary { .details summary {
cursor: pointer; cursor: pointer;
font-weight: 700; list-style: none;
margin-bottom: 14px;
} }
.details summary::-webkit-details-marker { display: none; }
.summary-hint {
color: var(--muted);
border: 1px solid var(--line);
border-radius: 12px;
padding: 8px 10px;
font-size: .86rem;
background: #fff;
}
.app-footer { .app-footer {
position: fixed; position: fixed;
right: 16px; right: 18px;
bottom: 10px; bottom: 12px;
z-index: 30;
display: inline-flex; display: inline-flex;
gap: 6px;
align-items: center; align-items: center;
font-size: 12px; gap: 8px;
color: #6b7280; padding: 8px 10px;
background: rgba(255, 255, 255, .85);
border: 1px solid #e5eaf3;
border-radius: 999px; border-radius: 999px;
padding: 5px 10px; color: var(--muted);
box-shadow: 0 6px 18px rgba(29, 45, 68, .08); background: rgba(255, 255, 255, .78);
backdrop-filter: blur(6px); border: 1px solid rgba(219, 229, 242, .9);
backdrop-filter: blur(14px);
box-shadow: 0 8px 22px rgba(29, 52, 92, .08);
font-size: .82rem;
} }
.app-footer a { .app-footer a {
color: inherit; color: var(--blue);
text-decoration: none; text-decoration: none;
font-weight: 750;
} }
.app-footer a:hover { .app-footer a:hover { text-decoration: underline; }
text-decoration: underline;
@media (max-width: 1100px) {
.hero,
.results { grid-template-columns: 1fr; }
.drop-zone { min-height: 240px; }
} }
@media (max-width: 820px) { @media (max-width: 820px) {
.hero { align-items: start; flex-direction: column; } .app { padding-top: 28px; }
.settings { grid-template-columns: 1fr; } .settings,
.summary { grid-template-columns: 1fr 1fr; } .summary { grid-template-columns: 1fr 1fr; }
.brand { height: 62px; }
.hero { gap: 22px; }
} }
@media (max-width: 540px) { @media (max-width: 620px) {
.app,
.brand { width: min(100% - 22px, 1360px); }
.settings,
.summary { grid-template-columns: 1fr; } .summary { grid-template-columns: 1fr; }
.app-footer { right: 8px; bottom: 8px; font-size: 11px; } .setting-card,
.stat-card { border-radius: 18px; }
.table-header,
.details summary { align-items: flex-start; flex-direction: column; }
.app-footer { left: 12px; right: 12px; justify-content: center; }
} }