Feat/evaluation #1

Merged
robin merged 15 commits from feat/evaluation into main 2026-08-03 16:46:56 +00:00
Showing only changes of commit d74e8b3fcf - Show all commits
+18 -3
View File
@@ -83,8 +83,6 @@ export default async function EvaluationPage({ params }: PageProps) {
return ( return (
<main> <main>
<h1>Meine Kalender-Events</h1>
<section> <section>
<h2>Gesamtdauer pro Kategorie</h2> <h2>Gesamtdauer pro Kategorie</h2>
{Object.keys(times).length === 0 ? ( {Object.keys(times).length === 0 ? (
@@ -122,7 +120,24 @@ export default async function EvaluationPage({ params }: PageProps) {
<p><strong>Beschreibung:</strong> {getIcalText(event.description)}</p> <p><strong>Beschreibung:</strong> {getIcalText(event.description)}</p>
)} )}
{event.categories && ( {event.categories && (
<p><strong>Kategorien:</strong> {getIcalText(event.categories)}</p> <div>
<strong>Kategorien: </strong>
{getCategories(event.categories).map((cat, i) => (
<span
key={i}
style={{
display: 'inline-block',
background: "white",
color: "black",
padding: '2px 8px',
borderRadius: '4px',
marginRight: '0.5rem'
}}
>
{cat}
</span>
))}
</div>
)} )}
</li> </li>
); );