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

View File

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

View File

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