Skip to content

Commit

Permalink
deploy: 26e2ecf
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle committed May 21, 2024
1 parent afe43f2 commit 0be3000
Show file tree
Hide file tree
Showing 50 changed files with 872 additions and 199 deletions.
11 changes: 11 additions & 0 deletions components/atoms/picture/picture-news-thumb.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{% if light_image %}
<picture>
<source media="(min-width: 1140px)" srcset="./images/styleguide/news-thumbs/news_thumb_02-95x53.jpg 1x, ./images/styleguide/news-thumbs/news_thumb_02-190x107.jpg 2x">
<source media="(min-width: 960px)" srcset="./images/styleguide/news-thumbs/news_thumb_02-95x53.jpg 1x, ./images/styleguide/news-thumbs/news_thumb_02-190x107.jpg 2x">
<source media="(min-width: 720px)" srcset="./images/styleguide/news-thumbs/news_thumb_02-80x45.jpg 1x, ./images/styleguide/news-thumbs/news_thumb_02-160x90.jpg 2x">
<source media="(min-width: 541px)" srcset="./images/styleguide/news-thumbs/news_thumb_02-120x68.jpg 1x, ./images/styleguide/news-thumbs/news_thumb_02-240x135.jpg 2x">
<source media="(max-width: 540px)" srcset="./images/styleguide/news-thumbs/news_thumb_02-540x304.jpg 1x, ./images/styleguide/news-thumbs/news_thumb_02-1080x608.jpg 2x">
<img src="./images/styleguide/news-thumbs/news_thumb_02-95x53.jpg" class="img-fluid" alt="ALT">
</picture>
{% else %}
<picture>
<source media="(min-width: 1140px)" srcset="./images/styleguide/news-thumbs/news_thumb-95x53.jpg 1x, ./images/styleguide/news-thumbs/news_thumb-190x107.jpg 2x">
<source media="(min-width: 960px)" srcset="./images/styleguide/news-thumbs/news_thumb-95x53.jpg 1x, ./images/styleguide/news-thumbs/news_thumb-190x107.jpg 2x">
Expand All @@ -6,3 +16,4 @@
<source media="(max-width: 540px)" srcset="./images/styleguide/news-thumbs/news_thumb-540x304.jpg 1x, ./images/styleguide/news-thumbs/news_thumb-1080x608.jpg 2x">
<img src="./images/styleguide/news-thumbs/news_thumb-95x53.jpg" class="img-fluid" alt="ALT">
</picture>
{% endif %}
36 changes: 36 additions & 0 deletions components/content-types/news/news-horizontal-listing-gray.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<div class="card-slider-wrapper">
<div class="card-slider">
{% for i in 1..10 %}
<div class="card-slider-cell">
<a href="#" class="card link-trapeze-horizontal">
<div class="card-body">
{% include '@atoms/picture/picture.twig' with {'variant':'news-thumb'} %}
<div itemscope itemtype="http://schema.org/Article">
<h3 class="card-title h5 mt-3" itemprop="name">Physics: new e-books for the AIAA Education Series</h3>
<p>
<time datetime="2018-03-26" itemprop="datePublished"><span class="sr-only">Published:</span>26.03.2018</time>
<span class="text-muted" itemprop="description">— Lorem ipsum dolor sit amet, consectetur adipiscing elit. Si enim ad populum me vocas, eum. Quid enim me prohiberet
Epicureum esse, si probarem, quae ille diceret?</span>
</p>
</div>
</div>
</a>
</div>
{% endfor %}
</div>

<div class="card-slider-footer">
<div>
<button role="button" id="card-slider-prev" class="card-slider-btn link-trapeze-horizontal disabled">
<svg class="icon" aria-hidden="true">
<use xlink:href="#icon-chevron-left"></use>
</svg>
</button>
<button role="button" id="card-slider-next" class="card-slider-btn link-trapeze-horizontal">
<svg class="icon" aria-hidden="true">
<use xlink:href="#icon-chevron-right"></use>
</svg>
</button>
</div>
</div>
</div>
36 changes: 36 additions & 0 deletions components/content-types/news/news-horizontal-listing.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<div class="card-slider-wrapper">
<div class="card-slider">
{% for i in 1..10 %}
<div class="card-slider-cell">
<a href="#" class="card card-gray link-trapeze-horizontal">
<div class="card-body">
{% include '@atoms/picture/picture.twig' with {'variant':'news-thumb'} %}
<div itemscope itemtype="http://schema.org/Article">
<h3 class="card-title h5 mt-3" itemprop="name">Physics: new e-books for the AIAA Education Series</h3>
<p>
<time datetime="2018-03-26" itemprop="datePublished"><span class="sr-only">Published:</span>26.03.2018</time>
<span class="text-muted" itemprop="description">— Lorem ipsum dolor sit amet, consectetur adipiscing elit. Si enim ad populum me vocas, eum. Quid enim me prohiberet
Epicureum esse, si probarem, quae ille diceret?</span>
</p>
</div>
</div>
</a>
</div>
{% endfor %}
</div>

<div class="card-slider-footer">
<div>
<button role="button" id="card-slider-prev" class="card-slider-btn link-trapeze-horizontal disabled">
<svg class="icon" aria-hidden="true">
<use xlink:href="#icon-chevron-left"></use>
</svg>
</button>
<button role="button" id="card-slider-next" class="card-slider-btn link-trapeze-horizontal">
<svg class="icon" aria-hidden="true">
<use xlink:href="#icon-chevron-right"></use>
</svg>
</button>
</div>
</div>
</div>
7 changes: 7 additions & 0 deletions components/content-types/news/news.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
title: News
name: news
variants:
- name: horizontal-listing
title: Horizontal Listing
notes: Don't forget to wrap your card slider with a wrapper that will hide the overflow (`.overflow-hidden` helper class will achieve just that).
- name: horizontal-listing-gray
title: Horizontal Listing with gray background
notes: Don't forget to wrap your card slider with a wrapper that will hide the overflow (`.overflow-hidden` helper class will achieve just that).
wrapper: bg-gray-100 py-4 my-4
- name: highlighted
title: Highlighted
- name: highlighted-carousel
Expand Down
69 changes: 69 additions & 0 deletions components/molecules/breadcrumb/breadcrumb-dropdown.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<nav aria-label="breadcrumb" class="breadcrumb-wrapper">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a class="bread-link bread-home" href="#">
{% include '@atoms/icon/icon.twig' with { icon: 'icon-home' } %}
</a>
</li>
<li class="breadcrumb-item expand-links">
<button class="btn btn-expand-links" aria-expanded="false" title="Display the complete path">
<span class="dots" aria-hidden="true">…</span>
<span class="sr-only">Display the complete path</span>
</button>
</li>
<li class="breadcrumb-item">
<a class="bread-link" href="#">Schools</a>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-controls="dropdown-menu-1">
{% include '@atoms/icon/icon.twig' with { icon: 'arrow-down-circle', icon_classes:'feather' } %}
<span class="sr-only">Display same level pages – Schools</span>
</button>
<ul class="dropdown-menu" id="dropdown-menu-1">
<li class="dropdown-item"><a href="#">About</a></li>
<li class="dropdown-item"><a href="#">Education</a></li>
<li class="dropdown-item"><a href="#">Research</a></li>
<li class="dropdown-item"><a href="#">Innovation</a></li>
<li class="dropdown-item current-menu-item-parent"><a href="#">Schools</a></li>
<li class="dropdown-item"><a href="#">Campus</a></li>
</ul>
</div>
</li>
<li class="breadcrumb-item">
<a class="bread-link" href="#">School of Architecture, Civil and Environmental Engineering</a>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-controls="dropdown-menu-2">
{% include '@atoms/icon/icon.twig' with { icon: 'arrow-down-circle', icon_classes:'feather' } %}
<span class="sr-only">Display same level pages – School of Architecture, Civil and Environmental Engineering</span>
</button>
<ul class="dropdown-menu" id="dropdown-menu-2">
<li class="dropdown-item current-menu-item-parent"><a href="#">School of Architecture, Civil and Environmental Engineering</a></li>
<li class="dropdown-item"><a href="#">School of Computer and Communication Sciences</a></li>
<li class="dropdown-item"><a href="#">School of Basic Sciences</a></li>
<li class="dropdown-item"><a href="#">School of Engineering</a></li>
<li class="dropdown-item"><a href="#">School of Life Sciences</a></li>
<li class="dropdown-item"><a href="#">College of Management of Technology</a></li>
<li class="dropdown-item"><a href="#">College of Humanities</a></li>
<li class="dropdown-item"><a href="#">Sections</a></li>
</ul>
</div>
</li>
<li class="breadcrumb-item">
<a class="bread-link" href="#">Sustainability challenges</a>
</li>
<li class="breadcrumb-item active" aria-current="page">
<span class="bread-item">FUSTIC association</span>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-controls="dropdown-menu-3">
{% include '@atoms/icon/icon.twig' with { icon: 'arrow-down-circle', icon_classes:'feather' } %}
<span class="sr-only">Display same level pages – FUSTIC association</span>
</button>
<ul class="dropdown-menu" id="dropdown-menu-3">
<li class="dropdown-item"><a href="#">ENAC Clusters</a></li>
<li class="dropdown-item"><a href="#">Interdisciplinary Centers</a></li>
<li class="dropdown-item current-menu-item-parent"><a href="#">FUSTIC association</a></li>
<li class="dropdown-item"><a href="#">Sustainability grants</a></li>
</ul>
</div>
</li>
</ol>
</nav>
63 changes: 59 additions & 4 deletions components/molecules/breadcrumb/breadcrumb-tagged.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,64 @@
<a href="#" class="tag tag-primary">Innovation</a>
<a href="#" class="tag tag-primary">W3C</a>
</li>
<li class="breadcrumb-item"><a href="#">Schools</a></li>
<li class="breadcrumb-item"><a href="#">ENAC</a></li>
<li class="breadcrumb-item"><a href="#">Formations</a></li>
<li class="breadcrumb-item active" aria-current="page">Projets</li>
<li class="breadcrumb-item expand-links">
<button class="btn btn-expand-links" aria-expanded="false" title="Display the complete path">
<span class="dots" aria-hidden="true">…</span>
<span class="sr-only">Display the complete path</span>
</button>
</li>
<li class="breadcrumb-item">
<a class="bread-link" href="#">Schools</a>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-controls="dropdown-menu-1">
{% include '@atoms/icon/icon.twig' with { icon: 'arrow-down-circle', icon_classes:'feather' } %}
<span class="sr-only">Display same level pages – Schools</span>
</button>
<ul class="dropdown-menu" id="dropdown-menu-1">
<li class="dropdown-item"><a href="#">About</a></li>
<li class="dropdown-item"><a href="#">Education</a></li>
<li class="dropdown-item"><a href="#">Research</a></li>
<li class="dropdown-item"><a href="#">Innovation</a></li>
<li class="dropdown-item current-menu-item-parent"><a href="#">Schools</a></li>
<li class="dropdown-item"><a href="#">Campus</a></li>
</ul>
</div>
</li>
<li class="breadcrumb-item">
<a class="bread-link" href="#">School of Architecture, Civil and Environmental Engineering</a>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-controls="dropdown-menu-2">
{% include '@atoms/icon/icon.twig' with { icon: 'arrow-down-circle', icon_classes:'feather' } %}
<span class="sr-only">Display same level pages – School of Architecture, Civil and Environmental Engineering</span>
</button>
<ul class="dropdown-menu" id="dropdown-menu-2">
<li class="dropdown-item current-menu-item-parent"><a href="#">School of Architecture, Civil and Environmental Engineering</a></li>
<li class="dropdown-item"><a href="#">School of Computer and Communication Sciences</a></li>
<li class="dropdown-item"><a href="#">School of Basic Sciences</a></li>
<li class="dropdown-item"><a href="#">School of Engineering</a></li>
<li class="dropdown-item"><a href="#">School of Life Sciences</a></li>
<li class="dropdown-item"><a href="#">College of Management of Technology</a></li>
<li class="dropdown-item"><a href="#">College of Humanities</a></li>
<li class="dropdown-item"><a href="#">Sections</a></li>
</ul>
</div>
</li>
<li class="breadcrumb-item active" aria-current="page">
<span class="bread-item">ENAC Faculty</span>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-controls="dropdown-menu-3">
{% include '@atoms/icon/icon.twig' with { icon: 'arrow-down-circle', icon_classes:'feather' } %}
<span class="sr-only">Display same level pages – ENAC Faculty</span>
</button>
<ul class="dropdown-menu" id="dropdown-menu-3">
<li class="dropdown-item"><a href="#">News</a></li>
<li class="dropdown-item current-menu-item-parent"><a href="#">ENAC Faculty</a></li>
<li class="dropdown-item"><a href="#">Education</a></li>
<li class="dropdown-item"><a href="#">Research</a></li>
<li class="dropdown-item"><a href="#">Sustainability challenges</a></li>
<li class="dropdown-item"><a href="#">Intranet ENAC</a></li>
</ul>
</div>
</li>
</ol>
</nav>
10 changes: 8 additions & 2 deletions components/molecules/breadcrumb/breadcrumb.twig
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
<nav aria-label="breadcrumb" class="breadcrumb-wrapper">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="#">
<a class="bread-link bread-home" href="#">
{% include '@atoms/icon/icon.twig' with { icon: 'icon-home' } %}
</a>
</li>
<li class="breadcrumb-item"><a href="#">Schools</a></li>
<li class="breadcrumb-item expand-links">
<button class="btn btn-expand-links" aria-expanded="false" title="Display the complete path">
<span class="dots" aria-hidden="true">…</span>
<span class="sr-only">Display the complete path</span>
</button>
</li>
<li class="breadcrumb-item"><a class="bread-link" href="#">Schools</a></li>
<li class="breadcrumb-item active" aria-current="page">ENAC</li>
</ol>
</nav>
4 changes: 4 additions & 0 deletions components/molecules/breadcrumb/breadcrumb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ name: breadcrumb
notes: |
The breadcrumb is your compass, on every page. It helps you to understand where you are, so you can decide where to go next.
variants:
- name: dropdown
title: Dropdown
notes: |
Breadcrumb dropdowns are used to display same level pages.
- name: tagged
title: Tagged
23 changes: 23 additions & 0 deletions components/molecules/key-number/key-number-hn-link.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% set icon = icon|default("https://via.placeholder.com/") %}
<a class="card link-trapeze-horizontal" href="#">
<div class="card border-0 bg-white m-0 h-100">
<div class="card-header border-0">
<div class="row">
<div class="col-md-6">
<p class="h4">près de 18'000</p>
</div>
<div class="col-md-6 text-right">
<img src="images/styleguide/key-numbers/students.png" class="d-block m-auto" alt="Pictogramme avec deux personnages" />
</div>
</div>
</div>
<div class="card-body pt-0">
<div class="row">
<div class="col-md-12">
<hr />
<p>étudiant·es, collaborateurs et collaboratrices font de l'EPFL une petite ville trépidante et dynamique</p>
</div>
</div>
</div>
</div>
</a>
23 changes: 23 additions & 0 deletions components/molecules/key-number/key-number-hn.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% set icon = icon|default("https://via.placeholder.com/") %}
<div class="card">
<div class="card border-0 bg-white m-0 h-100">
<div class="card-header border-0">
<div class="row">
<div class="col-md-6">
<p class="h4">près de 18'000</p>
</div>
<div class="col-md-6 text-right">
<img src="images/styleguide/key-numbers/students.png" class="d-block m-auto" alt="Pictogramme avec deux personnages" />
</div>
</div>
</div>
<div class="card-body pt-0">
<div class="row">
<div class="col-md-12">
<hr />
<p>étudiant·es, collaborateurs et collaboratrices font de l'EPFL une petite ville trépidante et dynamique</p>
</div>
</div>
</div>
</div>
</div>
4 changes: 4 additions & 0 deletions components/molecules/key-number/key-number.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ variants:
- name: large
title: Large
wrapper: 'bg-gray-100'
- name: hn
title: Highlighted number
- name: hn-link
title: Highlighted number with link
36 changes: 35 additions & 1 deletion components/molecules/list-group/list-group-teasers.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="list-group">
{% for i in 1..4 %}
{% for i in 1..2 %}

<div class="list-group-teaser list-group-item list-group-teaser-container">
<div class="list-group-teaser-thumbnail">
Expand All @@ -18,6 +18,40 @@
</div>
{% endfor %}

<div class="list-group-teaser list-group-item list-group-teaser-container">
<div class="list-group-teaser-thumbnail">
<a href="#" class="link-trapeze-horizontal">
{% include '@atoms/picture/picture-news-thumb.twig' %}
<div class="news-video-overlay"></div>
</a>
</div>
<div class="list-group-teaser-content">
<h3 class="h5"><a href="#">Physics: new e-books for the AIAA Education Series</a></h3>
<p>
<time datetime="2018-03-26"><span class="sr-only">Published:</span>26.03.2018</time>
<span class="text-muted">— Lorem ipsum dolor sit amet, consectetur adipiscing elit. Si enim ad populum me vocas, eum. Quid enim me prohiberet
Epicureum esse, si probarem, quae ille diceret?</span>
</p>
</div>
</div>

<div class="list-group-teaser list-group-item list-group-teaser-container">
<div class="list-group-teaser-thumbnail">
<a href="#" class="link-trapeze-horizontal">
{% include '@atoms/picture/picture-news-thumb.twig' with { light_image: true } %}
<div class="news-video-overlay"></div>
</a>
</div>
<div class="list-group-teaser-content">
<h3 class="h5"><a href="#">Physics: new e-books for the AIAA Education Series</a></h3>
<p>
<time datetime="2018-03-26"><span class="sr-only">Published:</span>26.03.2018</time>
<span class="text-muted">— Lorem ipsum dolor sit amet, consectetur adipiscing elit. Si enim ad populum me vocas, eum. Quid enim me prohiberet
Epicureum esse, si probarem, quae ille diceret?</span>
</p>
</div>
</div>

<div class="list-group-teaser list-group-item list-group-teaser-container teaser-img-right">
<div class="list-group-teaser-thumbnail">
<a href="#" class="link-trapeze-horizontal">
Expand Down
Loading

0 comments on commit 0be3000

Please sign in to comment.