Skip to content

Commit

Permalink
Template: Revue de presse
Browse files Browse the repository at this point in the history
Ajout d'un template pour le site des revues de presse rdp.epfl.ch
  • Loading branch information
xentenza committed Aug 15, 2024
1 parent 54a2b74 commit 5284db9
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="press-teaser">
<div class="press-teaser mb-5">
<h4 class="mb-4"><time datetime="2018-01-19">19.01.2018</time></h4>
{% for i in [1,2,3] %}
<button
Expand Down
73 changes: 73 additions & 0 deletions assets/components/pages/press-review/press-review.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{% set isSpecial = true %}

{% extends "@templates/base/base.twig" %}

{% block header %}
<header role="banner" class="header header-light">
<div class="header-light-content">
<a class="logo" href="#">
<img src="svg/epfl-logo.svg" alt="Logo EPFL, École polytechnique fédérale de Lausanne" class="img-fluid">
</a>
<h1>Revue de presse</h1>
<ul aria-hidden="true" class="nav-header d-none d-xl-flex">
<li id="menu-item-{{ loop.index }}" {% if loop.index == 2 %} class="current-menu-item"{% endif %}>
<a class="nav-item" href="#">S'abonner</a>
</li>
</ul>
{% include '@molecules/search/search-mobile.twig' %}
{% include '@molecules/search/search.twig' %}
{% include '@atoms/nav-lang/nav-lang-short.twig' %}
{% include '@atoms/nav-toggle-mobile/nav-toggle-mobile.twig' %}
</div>
</header>
{% endblock %}
{% block content %}

<div class="container">
<h1 class="h2 mb-5">Revues de presse</h1>
</div>

<div class="container">
<div class="row">
<div class="col-md-5 col-lg-4">
<aside>
<div class="mb-5">
<form method="get">
<h2 class="h6 mb-2">Rechercher</h2>
<div class="form-group">
<input type="text" name="keywords" class="form-control" value="">
</div>
<button class="btn btn-primary" type="submit" name="search">Rechercher</button>
</form>
</div>
</aside>
<div class="mb-5">
<h2 class="h6">Abonnement</h2>
<a href="#">
Recevez la revue de presse par e-mail
</a>
</div>
</div>
<div class="col-md-8">
{% for i in 1..3 %}
{% include '@content-types/press-review/press-review.twig' %}
{% endfor %}
<div class="mt-3">
{% include '@molecules/pagination/pagination.twig' %}
</div>
</div>
</div>
</div>
{% endblock %}

{% block footer_container %}
<div class="bg-gray-100 pt-5">
<div class="container">
{% block footer %}
{% include '@organisms/footer/footer-light.twig' %}
{% endblock %}
</div>
</div>
{% endblock %}
</div>
</div>
2 changes: 2 additions & 0 deletions assets/components/pages/press-review/press-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: Press review
name: press-review

0 comments on commit 5284db9

Please sign in to comment.