-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
assets/components/organisms/fullwidth-teaser/fullwidth-teaser-left.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<div class="fullwidth-teaser fullwidth-teaser-left"> | ||
<picture> | ||
{% if not img %}{% set img %}./images/basic_page_teaser.jpg{% endset %}{% endif %} | ||
<img src="{{img}}" aria-labelledby="background-label" alt="An image description"/> | ||
</picture> | ||
|
||
<div class="fullwidth-teaser-text"> | ||
|
||
<div class="fullwidth-teaser-header"> | ||
<div class="fullwidth-teaser-title"> | ||
<h3> | ||
{% if not title %}{% set title %}Des océans plus froids que ce que nous le pensions{% endset %}{% endif %} | ||
{{title}} | ||
</h3> | ||
<ul class="list-inline mt-2"> | ||
<li class="list-inline-item">Actualités</li> | ||
<li class="list-inline-item">Biologie</li> | ||
</ul> | ||
</div> | ||
<a href="#" aria-label="Link to read more of that page" class="btn btn-primary triangle-outer-top-right d-none d-xl-block"> | ||
Lire l'article | ||
<span class="sr-only">sur Tech Transfer.</span> | ||
{% include '@atoms/icon/icon.twig' with {icon: 'icon-chevron-right'} %} | ||
</a> | ||
</div> | ||
|
||
<div class="fullwidth-teaser-content"> | ||
<p> | ||
{% if not content %} | ||
{% set content %}Une équipe de chercheurs de l’EPFL et européenne a découvert une erreur dans la façon dont ont été estimées jusqu’ici les températures des océans, faisant potentiellement du réchauffement climatique actuel un évènement sans précédent ces cent derniers millions d’années.{% endset %} | ||
{% endif %} | ||
{{content}} | ||
</p> | ||
</div> | ||
|
||
<div class="fullwidth-teaser-footer"> | ||
<a href="#" aria-label="Link to read more of that page" class="btn btn-primary btn-block d-xl-none">En savoir plus</a> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters