plein d'améliorations, flemme de lister

This commit is contained in:
OniriCorpe 2026-04-16 02:02:55 +02:00
parent 64f8279c1f
commit 07731d18a9
5 changed files with 137 additions and 15 deletions

View file

@ -2,9 +2,9 @@
<div class="section">
<div class="container is-desktop">
<div class="columns is-vcentered is-centered is-desktop">
<div class="columns is-centered is-desktop">
<div class="column is-narrow is-two-third-touch">
<div class="card has-background-primary-light">
<div class="card has-background-primary-light" style="position: sticky; top: 3em;">
<div class="card-content">
<div class="media">
<div class="media-left">
@ -17,11 +17,14 @@
<div class="media-content">
<h1 class="title is-1 has-text-primary-dark has-text-right">{{ config.title }}</h1>
<p class="subtitle is-4 has-text-primary-dark has-text-right">Créatrice d'objets singuliers</p>
{%- if page and page.title == "Contact" -%}
<a class="button is-link is-outlined is-pulled-right" href="/">Retour à l'accueil</a>
{%- else -%}
<div class="buttons has-addons is-pulled-right">
{%- if not current_path == "/" -%}
<a class="button is-link is-outlined is-pulled-right" href="/">Accueil</a>
{%- endif -%}
{%- if not page or page and not page.title == "Contact" -%}
<a class="button is-link is-outlined is-pulled-right" href="/contact">Me contacter</a>
{%- endif -%}
</div>
</div>
</div>
</div>
@ -39,15 +42,21 @@
{% for sect in section.subsections %}
{%- set sect = get_section(path=sect) %}
<section class="content-section">
<h2 class="title is-4"><a href="{{ get_url(path=sect.path | safe) }}">{{ sect.title }}</a></h2>
<p class="subtitle is-5">{{ sect.extra.subtitle }}</p>
{{- sect.content | safe -}}
{%- if sect.extra.button -%}
<p>
<a class="button is-pulled-right" href="{{ get_url(path=sect.path | safe) ~ '#continue-reading' }}">{{- sect.extra.button -}}</a>
</p>
<div class="columns is-mobile">
<div class="column">
<h2 class="title is-4"><a href="{{ get_url(path=sect.path | safe) }}">{{ sect.title }}</a></h2>
<p class="subtitle is-5">{{ sect.extra.subtitle }}</p>
</div>
{%- if sect.extra.button -%}
<div class="column is-pulled-right is-narrow">
<p>
<a class="button" href="{{ get_url(path=sect.path | safe) ~ '#continue-reading' }}">{{- sect.extra.button -}}</a>
</p>
</div>
{%- endif -%}
</div>
{{- sect.content | split(pat="<!-- cut -->") | first | safe -}}
<br>
{%- endif -%}
</section>
{% if not loop.last %} <hr> {% endif %}
{% endfor -%}

View file

@ -0,0 +1,44 @@
<div class="box cell">
<article class="media">
<div class="media-left">
<figure class="image is-64x64">
<img
src="https://raw.githubusercontent.com/YunoHost/apps/refs/heads/main/logos/{{ slug }}.png"
alt="Logo de {{ name }}"
loading="lazy"
/>
</figure>
</div>
<div class="media-content">
<div class="content">
<p><strong>{{ name }}</strong></p>
<p>{{ body | markdown(inline=true) | safe }}</p>
</div>
<nav class="is-mobile">
<div class="grid buttons">
<a
class="cell button"
aria-label="website"
href="{{ website }}"
>
<p>Site officiel</p>
</a>
<a
class="cell button"
aria-label="catalogue"
href="https://apps.yunohost.org/app/{{ slug }}"
>
<p>Catalogue YunoHost</p>
</a>
<a
class="cell button"
aria-label="repo"
href="https://github.com/YunoHost-Apps/{{ slug }}_ynh"
>
<p>Dépôt du code</p>
</a>
</div>
</nav>
</div>
</article>
</div>