Redesign the News page around D8's list + preview split view
Replaces the flat news list with a D8-style two-pane layout: a filterable list on the left (All/Drafts/Scheduled/Published chips with counts) and a preview of whichever item is selected on the right, reusing the same article/photos/publish markup news_detail.html already had (now factored into _news_preview.html so both pages share it). Adds an NL/EN language toggle to the article preview -- the club's two content languages are now switchable in place, with a fallback note when a translation is missing, instead of a separate "English" card that only appeared once translated. The standalone news_detail.html permalink page is unchanged behaviourally. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ECGMEwrc2k4D8VQuwjstj9
This commit is contained in:
@@ -3696,6 +3696,9 @@
|
||||
.h-\[180px\] {
|
||||
height: 180px;
|
||||
}
|
||||
.h-\[190px\] {
|
||||
height: 190px;
|
||||
}
|
||||
.h-full {
|
||||
height: 100%;
|
||||
}
|
||||
@@ -3789,6 +3792,9 @@
|
||||
.w-\[236px\] {
|
||||
width: 236px;
|
||||
}
|
||||
.w-\[380px\] {
|
||||
width: 380px;
|
||||
}
|
||||
.w-auto {
|
||||
width: auto;
|
||||
}
|
||||
@@ -4162,6 +4168,9 @@
|
||||
.border-success {
|
||||
border-color: var(--color-success);
|
||||
}
|
||||
.border-transparent {
|
||||
border-color: transparent;
|
||||
}
|
||||
.border-warning {
|
||||
border-color: var(--color-warning);
|
||||
}
|
||||
@@ -4303,6 +4312,9 @@
|
||||
.p-6 {
|
||||
padding: calc(var(--spacing) * 6);
|
||||
}
|
||||
.p-10 {
|
||||
padding: calc(var(--spacing) * 10);
|
||||
}
|
||||
.p-\[18px\] {
|
||||
padding: 18px;
|
||||
}
|
||||
@@ -4549,6 +4561,10 @@
|
||||
--tw-leading: .96;
|
||||
line-height: .96;
|
||||
}
|
||||
.leading-\[1\.05\] {
|
||||
--tw-leading: 1.05;
|
||||
line-height: 1.05;
|
||||
}
|
||||
.leading-\[1\.5\] {
|
||||
--tw-leading: 1.5;
|
||||
line-height: 1.5;
|
||||
@@ -5120,6 +5136,12 @@
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
.md\:text-4xl {
|
||||
@media (width >= 48rem) {
|
||||
font-size: var(--text-4xl);
|
||||
line-height: var(--tw-leading, var(--text-4xl--line-height));
|
||||
}
|
||||
}
|
||||
.lg\:flex {
|
||||
@media (width >= 64rem) {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user