4
0
mirror of https://git.coop/cotech/website.git synced 2025-06-26 08:30:47 +00:00

Style service/technology pages

This commit is contained in:
Chris Lowis
2025-06-25 21:34:58 +01:00
parent 97e868dc91
commit 06c0d8f45f
3 changed files with 45 additions and 34 deletions

View File

@ -6,25 +6,26 @@
<body>
{% include header.html %}
<section>
<h1>Coops that offer <span>{{ page.name }}</span></h1>
{% if page.description %}
<p>{{ page.description }}</p>
{% endif %}
</section>
<div class="default-wrapper">
<section class="page-heading">
<h2>Coops that offer <span>{{ page.name }}</span></h2>
{% if page.description %}
<p>{{ page.description }}</p>
{% endif %}
</section>
<section>
{% for coop in site.coops %}
{% if coop.services contains page.slug %}
<div>
<a href="{{ coop.url | relative_url }}" class="coop-thumb" id="#{{ coop.slug }}">
<img src="/images/coops/{{ coop.slug }}" alt="{{ coop.name }}">
<div class="logo-grid">
{% for coop in site.coops %}
{% if coop.services contains page.slug %}
<a class="logo-grid_link" href="{{ coop.url | relative_url }}">
<div class="logo-grid_item">
<img class="logo-grid_img" src="/images/coops/{{ coop.slug }}" alt="{{ coop.name }}" />
</div>
</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endfor %}
</section>
</div>
{% include footer.html %}
</body>
</html>

View File

@ -6,25 +6,26 @@
<body>
{% include header.html %}
<section>
<h1>Coops that use <span>{{ page.name }}</span></h1>
{% if page.description %}
<p>{{ page.description }}</p>
{% endif %}
</section>
<div class="default-wrapper">
<section class="page-heading">
<h2>Coops that use <span>{{ page.name }}</span></h2>
{% if page.description %}
<p>{{ page.description }}</p>
{% endif %}
</section>
<section>
{% for coop in site.coops %}
{% if coop.technologies contains page.slug %}
<div>
<a href="{{ coop.url | relative_url }}" class="coop-thumb" id="#{{ coop.slug }}">
<img src="/images/coops/{{ coop.slug }}" alt="{{ coop.name }}">
<div class="logo-grid">
{% for coop in site.coops %}
{% if coop.technologies contains page.slug %}
<a class="logo-grid_link" href="{{ coop.url | relative_url }}">
<div class="logo-grid_item">
<img class="logo-grid_img" src="/images/coops/{{ coop.slug }}" alt="{{ coop.name }}" />
</div>
</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endfor %}
</section>
</div>
{% include footer.html %}
</body>

View File

@ -45,18 +45,27 @@ h1, h2, h3, h4, h5, h6 {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-lg);
margin-bottom: var(--space-lg);
}
.page-heading {
display: flex;
justify-content: center;
padding: 1rem;
flex-direction: column;
align-items: center;
gap: var(--space-md);
padding: var(--space-md);
text-align: center;
}
.page-heading h1 {
font-size: 2.5rem;
}
.page-heading p {
max-width: 60ch;
}
section.content {
padding: var(--space-sm);
max-width: 900px;