Refactor Training Framework Programs List Page with Enhanced Styling and New Utility Functions
Test Suite / playwright-tests (push) Waiting to run
Deploy Development / deploy (push) Successful in 40s
Test Suite / pytest-backend (push) Successful in 36s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Has been cancelled
Test Suite / playwright-tests (push) Waiting to run
Deploy Development / deploy (push) Successful in 40s
Test Suite / pytest-backend (push) Successful in 36s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Has been cancelled
- Updated the TrainingFrameworkProgramsListPage to utilize new CSS classes for improved layout and styling. - Removed deprecated components and functions, streamlining the codebase for better maintainability. - Introduced utility functions for splitting aggregated strings, enhancing data handling for framework program attributes. - Enhanced the user interface with loading and empty state indicators, improving overall user experience.
This commit is contained in:
1 parent
9d122d4808
commit
a4548f5587
6 files changed
+617
-219
No files matched your search
+356
-1
@@ -5380,7 +5380,362 @@ html.modal-scroll-locked .app-main {
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
/* Liste Rahmenprogramme: Abstand nur über gap (kein .card+.card zwischen li) */
|
||||
/* —— Rahmenprogramm-Bibliothek (Liste) —— */
|
||||
.fw-prog-page__header {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 1rem 1.25rem;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
.fw-prog-page__intro {
|
||||
flex: 1 1 16rem;
|
||||
min-width: 0;
|
||||
max-width: 40rem;
|
||||
}
|
||||
.fw-prog-page__title {
|
||||
margin-bottom: 0.35rem;
|
||||
}
|
||||
.fw-prog-page__lead {
|
||||
margin: 0;
|
||||
color: var(--text2);
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.55;
|
||||
max-width: 36rem;
|
||||
}
|
||||
.fw-prog-page__help {
|
||||
margin-top: 10px;
|
||||
max-width: 36rem;
|
||||
}
|
||||
.fw-prog-page__cta {
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.fw-prog-page__error {
|
||||
border-left: 4px solid var(--danger);
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text1);
|
||||
}
|
||||
.fw-prog-page__loading {
|
||||
text-align: center;
|
||||
padding: 2.5rem 1.5rem;
|
||||
}
|
||||
.fw-prog-page__loading p {
|
||||
margin: 0.75rem 0 0;
|
||||
color: var(--text2);
|
||||
}
|
||||
.fw-prog-page__empty {
|
||||
text-align: center;
|
||||
padding: 2rem 1.25rem 1.75rem;
|
||||
}
|
||||
.fw-prog-page__empty--filter {
|
||||
margin-top: 1rem;
|
||||
padding: 1.5rem 1.25rem;
|
||||
}
|
||||
.fw-prog-page__empty-icon {
|
||||
font-size: 2.25rem;
|
||||
line-height: 1;
|
||||
margin-bottom: 0.75rem;
|
||||
opacity: 0.85;
|
||||
}
|
||||
.fw-prog-page__empty-title {
|
||||
margin: 0 0 0.5rem;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 700;
|
||||
color: var(--text1);
|
||||
}
|
||||
.fw-prog-page__empty-text {
|
||||
margin: 0 0 1.25rem;
|
||||
color: var(--text2);
|
||||
font-size: 0.92rem;
|
||||
line-height: 1.5;
|
||||
max-width: 28rem;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.fw-prog-page__empty .btn-full {
|
||||
max-width: 20rem;
|
||||
margin: 0 auto;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.fw-prog-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
}
|
||||
.fw-prog-list > li {
|
||||
margin: 0;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.fw-prog-card {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
margin-bottom: 0;
|
||||
transition: box-shadow 0.15s ease, border-color 0.15s ease;
|
||||
}
|
||||
.fw-prog-card:hover {
|
||||
border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
.fw-prog-card__accent {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 4px;
|
||||
background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
|
||||
border-radius: 12px 0 0 12px;
|
||||
}
|
||||
.fw-prog-card__inner {
|
||||
padding: 1.1rem 1.15rem 1.15rem 1.35rem;
|
||||
min-width: 0;
|
||||
}
|
||||
.fw-prog-card__head {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 1rem 1.25rem;
|
||||
margin-bottom: 0.85rem;
|
||||
}
|
||||
.fw-prog-card__title-block {
|
||||
flex: 1 1 12rem;
|
||||
min-width: 0;
|
||||
}
|
||||
.fw-prog-card__title {
|
||||
margin: 0;
|
||||
font-size: 1.12rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.3;
|
||||
}
|
||||
.fw-prog-card__title-link {
|
||||
color: var(--accent-dark);
|
||||
text-decoration: none;
|
||||
word-break: break-word;
|
||||
}
|
||||
.fw-prog-card__title-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.fw-prog-card__desc {
|
||||
margin: 0.45rem 0 0;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.5;
|
||||
color: var(--text2);
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
.fw-prog-card__stats {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.fw-prog-card__stat {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 4.5rem;
|
||||
padding: 0.45rem 0.65rem;
|
||||
border-radius: 10px;
|
||||
background: var(--surface2);
|
||||
border: 1px solid var(--border);
|
||||
text-align: center;
|
||||
}
|
||||
.fw-prog-card__stat--duration {
|
||||
background: var(--accent-light);
|
||||
border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
|
||||
}
|
||||
.fw-prog-card__stat--duration .fw-prog-card__stat-value {
|
||||
color: var(--accent-dark);
|
||||
font-weight: 700;
|
||||
}
|
||||
.fw-prog-card__stat--muted .fw-prog-card__stat-value {
|
||||
color: var(--text3);
|
||||
font-weight: 500;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
.fw-prog-card__stat-label {
|
||||
font-size: 0.68rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
color: var(--text3);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.fw-prog-card__stat-value {
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
color: var(--text1);
|
||||
line-height: 1.25;
|
||||
max-width: 6.5rem;
|
||||
word-break: break-word;
|
||||
}
|
||||
.fw-prog-card__section {
|
||||
margin-top: 0.75rem;
|
||||
padding-top: 0.75rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
.fw-prog-card__section-title {
|
||||
margin: 0 0 0.5rem;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--text3);
|
||||
}
|
||||
.fw-prog-card__goal-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px 8px;
|
||||
}
|
||||
.fw-prog-card__goal {
|
||||
font-size: 0.84rem;
|
||||
font-weight: 600;
|
||||
color: var(--text1);
|
||||
padding: 5px 11px;
|
||||
border-radius: 999px;
|
||||
background: var(--accent-light);
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
|
||||
line-height: 1.35;
|
||||
max-width: 100%;
|
||||
word-break: break-word;
|
||||
}
|
||||
.fw-prog-card__catalog {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
|
||||
gap: 0.65rem 1rem;
|
||||
}
|
||||
.fw-prog-card__catalog-group {
|
||||
min-width: 0;
|
||||
}
|
||||
.fw-prog-card__catalog-label {
|
||||
display: block;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 600;
|
||||
color: var(--text3);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.fw-prog-card__chip-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px 6px;
|
||||
}
|
||||
.fw-prog-card__chip {
|
||||
font-size: 0.78rem;
|
||||
padding: 3px 8px;
|
||||
border-radius: 6px;
|
||||
background: var(--surface2);
|
||||
color: var(--text2);
|
||||
border: 1px solid var(--border);
|
||||
line-height: 1.35;
|
||||
word-break: break-word;
|
||||
}
|
||||
.fw-prog-card__catalog-group--focus .fw-prog-card__chip {
|
||||
border-color: color-mix(in srgb, var(--accent) 18%, var(--border));
|
||||
background: color-mix(in srgb, var(--accent-light) 60%, var(--surface2));
|
||||
}
|
||||
.fw-prog-card__actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-top: 1rem;
|
||||
padding-top: 0.85rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
.fw-prog-card__btn-primary {
|
||||
text-decoration: none;
|
||||
flex: 1 1 auto;
|
||||
min-width: 7rem;
|
||||
justify-content: center;
|
||||
}
|
||||
.fw-prog-card__btn-danger {
|
||||
flex: 0 1 auto;
|
||||
}
|
||||
.fw-prog-card__btn-danger:hover {
|
||||
border-color: var(--danger);
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.fw-prog-card__actions {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.fw-prog-card__btn-primary {
|
||||
flex: 0 1 auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 900px) {
|
||||
.fw-prog-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
align-items: stretch;
|
||||
}
|
||||
.fw-prog-card {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.fw-prog-card__inner {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.fw-prog-card__actions {
|
||||
margin-top: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 479px) {
|
||||
.fw-prog-page__header {
|
||||
flex-direction: column;
|
||||
}
|
||||
.fw-prog-page__cta {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
.fw-prog-card__head {
|
||||
flex-direction: column;
|
||||
}
|
||||
.fw-prog-card__stats {
|
||||
width: 100%;
|
||||
justify-content: stretch;
|
||||
}
|
||||
.fw-prog-card__stat {
|
||||
flex: 1 1 0;
|
||||
min-width: 0;
|
||||
}
|
||||
.fw-prog-card__catalog {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.fw-prog-card__actions .btn {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
/* Legacy-Klasse (falls noch referenziert) */
|
||||
.framework-programs-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
|
||||
Reference in new issue
Block a user