diff --git a/config/community_forums.php b/config/community_forums.php
index 3b34e5d..05e52c3 100644
--- a/config/community_forums.php
+++ b/config/community_forums.php
@@ -31,9 +31,9 @@ return [
'title' => 'Alltag mit Kindern',
'boards' => [
[
- 'slug' => 'kleinkindalter',
- 'title' => 'Kleinkindalter',
- 'description' => 'Erfahrungen, Fragen und Gedanken rund um die ersten Jahre mit Kindern.',
+ 'slug' => 'kinderalltag',
+ 'title' => 'Kinderalltag',
+ 'description' => 'Erfahrungen, Fragen und Gedanken rund um das tägliche Leben mit Kindern.',
'icon' => '🧸',
],
[
diff --git a/partials/landing/community/index.php b/partials/landing/community/index.php
index 9747466..078c1d9 100644
--- a/partials/landing/community/index.php
+++ b/partials/landing/community/index.php
@@ -78,12 +78,24 @@ $roleAssignments = $canManageRoles && $access ? $access->listRoleAssignments() :
Community
Fragen stellen, Erfahrungen teilen, Antworten finden und gemeinsam weiterdenken.
-
@@ -147,21 +159,14 @@ $roleAssignments = $canManageRoles && $access ? $access->listRoleAssignments() :
-
= htmlspecialchars($selectedBoard['title'] ?? 'Themenübersicht', ENT_QUOTES) ?>
+
= htmlspecialchars($selectedBoard['title'] ?? 'Neueste Themen', ENT_QUOTES) ?>
- = htmlspecialchars($selectedBoard['description'] ?? 'Hier findest du die neuesten Themen, Antworten und laufenden Gespräche.', ENT_QUOTES) ?>
+ = htmlspecialchars($selectedBoard['description'] ?? 'Hier siehst du die zuletzt erstellten oder zuletzt aktiven Themen aus der Community.', ENT_QUOTES) ?>
-
+
+
Alle Bereiche anzeigen
+
diff --git a/public/assets/css/app.css b/public/assets/css/app.css
index cb0b004..33a00bc 100755
--- a/public/assets/css/app.css
+++ b/public/assets/css/app.css
@@ -154,6 +154,8 @@ body {
.forum-hero h1 { margin: 6px 0 8px; }
.forum-hero__copy { margin: 0; max-width: 70ch; color: var(--color-muted); font-size: 16px; }
.forum-hero__actions { display: flex; align-items: center; gap: 12px; }
+.forum-hero__actions--stack { flex-direction: column; align-items: stretch; min-width: min(100%, 360px); }
+.forum-hero__cta { display: flex; justify-content: flex-end; }
.forum-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 18px 0 24px; }
.forum-stats--compact { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 540px; }
.forum-stat { padding: 18px 20px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
@@ -176,6 +178,7 @@ body {
.forum-board__head { display: flex; justify-content: space-between; gap: 20px; align-items: end; padding: 22px 24px; border-bottom: 1px solid var(--color-border); background: #fffdfa; }
.forum-board__head h2 { margin: 0 0 6px; }
.forum-search { display: grid; gap: 8px; min-width: min(100%, 360px); }
+.forum-search--hero { width: 100%; }
.forum-search__row { display: flex; gap: 10px; }
.forum-list__header { display: grid; grid-template-columns: minmax(0, 1fr) 120px 220px; gap: 16px; padding: 14px 24px; background: #f8f4ec; color: var(--color-muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .35px; }
.forum-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 220px; gap: 16px; padding: 20px 24px; border-top: 1px solid var(--color-border); align-items: start; }
diff --git a/src/App/Community.php b/src/App/Community.php
index 14fa2e5..0b27a4f 100755
--- a/src/App/Community.php
+++ b/src/App/Community.php
@@ -466,6 +466,15 @@ final class Community
]);
}
}
+
+ // Migrate legacy uncategorized threads into a default board once board support is available.
+ if ($this->hasColumn('forum_threads', 'board_id')) {
+ $defaultBoard = $this->getBoardBySlug('wochenendideen');
+ if ($defaultBoard && !empty($defaultBoard['id'])) {
+ $stmt = $this->pdo->prepare('UPDATE forum_threads SET board_id = :boardId WHERE board_id IS NULL');
+ $stmt->execute(['boardId' => (int)$defaultBoard['id']]);
+ }
+ }
}
private function hasTable(string $table): bool