Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 9 additions & 20 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,14 @@ const maschenTop = maschen.filter((m) => m.id !== macheDerWoche?.id).slice(0, 6)
{maschenTop.length > 0 && (
<div class="maschen-grid">
{maschenTop.map((m) => (
<a class="masche-karte" href={pfad(`/maschen/${m.id}`)} data-reveal>
<span class="masche-karte__ic" aria-hidden="true">
<Icon name={MASCHE_ICON[m.data.code] ?? "lucide:shield-alert"} />
</span>
<strong>{m.data.titel}</strong>
<span class="muted">{m.data.kurz}</span>
<a class={`masche-card${m.data.kategorie === "flicc" ? "" : " masche-card--rhetorik"}`} href={pfad(`/maschen/${m.id}`)} data-reveal>
<div class="masche-card__top">
<span class="masche-ic" aria-hidden="true"><Icon name={MASCHE_ICON[m.data.code] ?? "lucide:shield-alert"} /></span>
{m.data.kategorie === "flicc" && <span class="masche-card__tag">Kerntechnik</span>}
</div>
<h3>{m.data.titel}</h3>
<p>{m.data.kurz}</p>
<span class="masche-card__more">Masche ansehen →</span>
</a>
))}
</div>
Expand Down Expand Up @@ -359,20 +361,7 @@ const maschenTop = maschen.filter((m) => m.id !== macheDerWoche?.id).slice(0, 6)
.maschen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.maschen-quiz { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-top: 1.25rem; padding: 1rem 1.25rem; background: color-mix(in srgb, var(--c-technik) 7%, var(--c-surface)); border: 1px solid var(--c-border); border-radius: var(--radius); }
.maschen-quiz span { font-weight: 600; }
.masche-karte {
display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem;
background: var(--c-surface); border: 1px solid var(--c-border); border-top: 3px solid var(--c-technik);
border-radius: var(--radius-sm); box-shadow: var(--shadow); text-decoration: none; color: inherit;
transition: border-color .15s, transform .15s, box-shadow .15s;
}
.masche-karte:hover { border-color: var(--c-technik); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.masche-karte__ic {
width: 2.4rem; height: 2.4rem; border-radius: 10px; display: flex; align-items: center; justify-content: center;
background: color-mix(in srgb, var(--c-technik) 12%, var(--c-surface)); color: var(--c-technik); margin-bottom: .2rem;
}
.masche-karte__ic svg { width: 1.3rem; height: 1.3rem; }
.masche-karte strong { font-size: 1.02rem; letter-spacing: -.01em; }
.masche-karte .muted { font-size: .9rem; line-height: 1.5; }
/* .masche-karte → jetzt geteilte .masche-card in global.css. */

.mitmach-cta { text-align: center; margin-top: 4rem; padding: 2.5rem 1.5rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.mitmach-cta h2 { margin-top: 0; }
Expand Down
24 changes: 1 addition & 23 deletions src/pages/maschen/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -113,29 +113,7 @@ function karte(m: (typeof maschen)[number]) {
.hinweis-fair { font-size: .95rem; border-left: 3px solid var(--c-technik); padding-left: .9rem; margin-top: 1.25rem; }
section { margin-top: 3rem; }
.masche-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.masche-card {
display: flex; flex-direction: column; gap: .5rem;
background: var(--c-surface); border: 1px solid var(--c-border);
border-top: 3px solid var(--c-technik);
border-radius: var(--radius); padding: 1.1rem 1.2rem;
text-decoration: none; color: inherit; box-shadow: var(--shadow);
transition: transform .15s ease, border-color .15s ease;
}
.masche-card--rhetorik { border-top-color: var(--c-border-strong); }
.masche-card:hover { transform: translateY(-2px); border-color: var(--c-technik); }
.masche-card__top { display: flex; align-items: center; gap: .7rem; }
.masche-ic {
width: 2.3rem; height: 2.3rem; flex: none; border-radius: 10px;
display: flex; align-items: center; justify-content: center;
background: color-mix(in srgb, var(--c-technik) 12%, var(--c-surface));
color: var(--c-technik);
}
.masche-card--rhetorik .masche-ic { background: var(--c-surface-2); color: var(--c-text-soft); }
.masche-ic svg { width: 1.25rem; height: 1.25rem; }
.masche-card__tag { font-size: .68rem; font-weight: 800; letter-spacing: .05em; color: var(--c-technik); text-transform: uppercase; }
.masche-card h3 { margin: 0; font-size: 1.12rem; }
.masche-card p { margin: 0; color: var(--c-text-soft); font-size: .92rem; line-height: 1.5; flex: 1; }
.masche-card__more { font-size: .85rem; font-weight: 700; color: var(--c-technik); }
/* .masche-card* leben jetzt zentral in global.css (geteilt mit der Startseite). */
.maschen-cta { padding: 1.75rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.maschen-cta h2 { margin-top: 0; }

Expand Down
25 changes: 25 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,31 @@ a.card:hover h3 { color: var(--c-accent); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

/* ---------- Masche-Card (geteilt: Startseite + Maschen-Liste) ---------- */
.masche-card {
display: flex; flex-direction: column; gap: .5rem;
background: var(--c-surface); border: 1px solid var(--c-border);
border-top: 3px solid var(--c-technik); border-radius: var(--radius);
padding: 1.1rem 1.2rem; text-decoration: none; color: inherit;
box-shadow: var(--shadow);
transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.masche-card--rhetorik { border-top-color: var(--c-border-strong); }
.masche-card:hover { transform: translateY(-2px); border-color: var(--c-technik); box-shadow: var(--shadow-lift); }
.masche-card__top { display: flex; align-items: center; gap: .7rem; }
.masche-ic {
width: 2.3rem; height: 2.3rem; flex: none; border-radius: 10px;
display: flex; align-items: center; justify-content: center;
background: color-mix(in srgb, var(--c-technik) 12%, var(--c-surface));
color: var(--c-technik);
}
.masche-card--rhetorik .masche-ic { background: var(--c-surface-2); color: var(--c-text-soft); }
.masche-ic svg { width: 1.25rem; height: 1.25rem; }
.masche-card__tag { font-size: .68rem; font-weight: 800; letter-spacing: .05em; color: var(--c-technik); text-transform: uppercase; }
.masche-card h3 { margin: 0; font-size: 1.12rem; }
.masche-card p { margin: 0; color: var(--c-text-soft); font-size: .92rem; line-height: 1.5; flex: 1; }
.masche-card__more { font-size: .85rem; font-weight: 700; color: var(--c-technik); }

/* ---------- Content-Boxen (aus remark-stufen) ---------- */
.box {
border: 1px solid var(--c-border);
Expand Down
Loading