mirror of
https://codeberg.org/angestoepselt/homepage.git
synced 2025-05-24 14:46:16 +00:00
Add newsroom styling
This commit is contained in:
parent
3eda352085
commit
a9f0cdaf60
4 changed files with 65 additions and 6 deletions
|
|
@ -1,13 +1,30 @@
|
||||||
---
|
---
|
||||||
layout: layouts/page.njk
|
layout: layouts/page.njk
|
||||||
|
eleventyNavigation:
|
||||||
|
key: Neuigkeiten
|
||||||
|
order: 70
|
||||||
---
|
---
|
||||||
|
|
||||||
<ol reversed class="post-list">
|
<h1>Unsere Pinnwand</h1>
|
||||||
{% for post in collections.posts | reverse %}
|
|
||||||
<li>
|
|
||||||
<a class="post-card" href="{{ post.url }}">
|
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Hier findest du alles aktuelle zu unserem Vereinsgeschehen.
|
||||||
|
Wir versuchen, hier regelmäßig über unsere Aktivitäten, durchgeführte Aktionen und über was wir sonst so treiben zu berichten.
|
||||||
|
Bei den üblichen sozialen Medien wirst du uns nicht finden, aber wir begrüßen dich gerne bei Mastodon:
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a class="cta-link" href="https://social.tchncs.de/@angestoepselt" target="_blank" rel="noreferrer noopener">Angestöpselt auf Mastodon</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="post-list">
|
||||||
|
{% for post in collections.posts | reverse %}
|
||||||
|
<article>
|
||||||
|
<a class="post-card" href="{{ post.url }}">
|
||||||
|
<h2>{{ post.data.title }}</h2>
|
||||||
|
<time datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate }}</time>
|
||||||
|
<p>{{ post.data.blurb }}</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</article>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ol>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
@use 'lib/colors';
|
||||||
@use 'lib/typography';
|
@use 'lib/typography';
|
||||||
@use 'components/markup';
|
@use 'components/markup';
|
||||||
@use 'components/site';
|
@use 'components/site';
|
||||||
|
|
|
||||||
|
|
@ -152,3 +152,43 @@ ul.link-grid {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-list {
|
||||||
|
@extend %content-gutter;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: layout.$normal-gap;
|
||||||
|
margin-top: layout.$huge-gap;
|
||||||
|
margin-bottom: layout.$huge-gap;
|
||||||
|
}
|
||||||
|
|
||||||
|
:any-link.post-card {
|
||||||
|
display: inline-block;
|
||||||
|
padding-left: layout.$normal-gap;
|
||||||
|
padding-right: layout.$normal-gap;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: background-color motion.$subtle, color motion.$subtle, box-shadow motion.$subtle;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
@include colors.card-shadow;
|
||||||
|
background-color: colors.$yellow-300;
|
||||||
|
color: colors.$blue-800;
|
||||||
|
}
|
||||||
|
|
||||||
|
> h2 {
|
||||||
|
@extend %subheading;
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ time {
|
||||||
|
margin-top: -1 * layout.$normal-gap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> time {
|
||||||
|
display: block;
|
||||||
|
color: colors.$gray-600;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ $blue-500: #08b2e3;
|
||||||
|
|
||||||
$yellow-600: #e8d823;
|
$yellow-600: #e8d823;
|
||||||
$yellow-500: #ffff00;
|
$yellow-500: #ffff00;
|
||||||
|
$yellow-300: #ffffa4;
|
||||||
|
|
||||||
$main-text: $gray-800;
|
$main-text: $gray-800;
|
||||||
$main-background: $gray-50;
|
$main-background: $gray-50;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue