-
Notifications
You must be signed in to change notification settings - Fork 11
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
9 changed files
with
199 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
.banner-technology { | ||
margin: 0 0 90px; | ||
padding: 0 110px; | ||
display: flex; | ||
align-items: flex-start; | ||
} | ||
|
||
.banner-technology__title { | ||
margin: 30px 0 0; | ||
display: inline-block; | ||
} | ||
|
||
.banner-technology__image { | ||
margin-left: 40px; | ||
min-width: 510px; | ||
position: relative; | ||
|
||
img { | ||
margin: 0; | ||
} | ||
|
||
.logo { | ||
padding: 25px; | ||
width: 180px; | ||
position: absolute; | ||
right: -110px; | ||
bottom: -40px; | ||
background: $color-secondary; | ||
} | ||
} | ||
|
||
@media (max-width: $screen-md) { | ||
.banner-technology { | ||
padding: 0; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
.banner-technology__title { | ||
margin: 0 40px 40px; | ||
max-width: 510px; | ||
} | ||
|
||
.banner-technology__image { | ||
margin-left: 0; | ||
} | ||
} | ||
|
||
@media (max-width: $screen-xs) { | ||
.banner-technology__image { | ||
min-width: unset; | ||
width: 100%; | ||
|
||
img { | ||
width: 100%; | ||
} | ||
|
||
.logo { | ||
display: none; | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
|
||
.article-list { | ||
margin: 0 auto; | ||
max-width: 1020px; | ||
max-width: 1060px; | ||
} | ||
} | ||
|
||
|
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,29 @@ | ||
.page-technology { | ||
padding: 0 110px; | ||
|
||
.article-list { | ||
.miniature-inline { | ||
max-width: 930px; | ||
|
||
&:first-of-type { | ||
margin-left: 110px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
@media (max-width: $screen-md) { | ||
.page-technology { | ||
padding: 0; | ||
|
||
.article-list { | ||
.miniature:first-of-type { | ||
margin-left: 0; | ||
} | ||
|
||
.miniature-inline { | ||
margin-left: 0; | ||
} | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,18 +1,91 @@ | ||
{% import "macros.html.twig" as macros %} | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block content %} | ||
{{ technology.content|raw }} | ||
<ol class="breadcrumb" itemscope itemtype="https://schema.org/BreadcrumbList"> | ||
<li class="breadcrumb__item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> | ||
<a itemprop="item" href="{{ path('homepage') }}"> | ||
<span itemprop="name">Accueil</span> | ||
</a> | ||
<meta itemprop="position" content="1" /> | ||
</li> | ||
<li class="breadcrumb__item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> | ||
<a itemprop="item" href="#"> | ||
<span itemprop="name">{{ technology.name }}</span> | ||
</a> | ||
<meta itemprop="position" content="2" /> | ||
</li> | ||
</ol> | ||
|
||
<h2>Articles liés</h2> | ||
<div> | ||
{% for article in articles %} | ||
<div> | ||
<img src="{{ asset(article.thumbnail) }}" /> | ||
{{ article.title }} | ||
<a href="{{ path('blog_article', { article: article.slug }) }}"> | ||
Lire l'article_ | ||
{# Todo : | ||
- permettre de couper le titre en 2 parties (Exemple : Nous utilisons Symfony pour créer <span>des applications robustes</span>) | ||
- trouver une image de bannière générique pour les technos | ||
- câbler le logo de la techno (parfois on a pas de logo, ne pas afficher l'image) | ||
#} | ||
<div class="banner-technology"> | ||
<h1 class="banner-technology__title"> | ||
{{ technology.title }} | ||
<span>fin du titre</span> | ||
</h1> | ||
<div class="banner-technology__image"> | ||
<img src="https://stevensegallery.com/510/270" alt=""> | ||
<img src="{{ asset('build/images/technos/symfony.svg') }}" alt="logo de Symfony" class="logo"> | ||
</div> | ||
</div> | ||
|
||
<div class="page-technology"> | ||
{{ technology.content|raw }} | ||
|
||
{# | ||
Todo : | ||
- câbler les études de cas liées à la techno (actuellement dans le contenu de chaque techno) | ||
- max 2 études de cas | ||
- ne pas afficher ce bloc si aucune étude de cas n'est liée | ||
#} | ||
<h2 class="h2--dash">Projets créés avec Symfony</h2> | ||
<ul class="article-list"> | ||
<li class="miniature-inline" data-aos="fade-up-left"> | ||
<a href="#" class="miniature-inline__image"> | ||
<span class="image" style="background-image: url(https://stevensegallery.com/510/270)"></span> | ||
</a> | ||
<div class="miniature-inline__content"> | ||
<span class="info">Client</span> | ||
<a href="#" class="title"> | ||
Titre | ||
</a> | ||
<p class="description">Pour les besoins d’une solution globale d’administration et de gestion de transport de déchets, nous avons opté pour Symfony afin de gérer un back-office solide.</p> | ||
<a href="#" class="btn btn--secondary btn--animated"> | ||
<span> | ||
Voir l'étude de cas | ||
<svg class="icon" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 40 20"> | ||
<path class="tip" d="M21,2.7 28.2,10.3 21,17.4"/> | ||
<path class="base" d="M28.2,10.3c-0.1,0-18.3,0-27.8,0"/> | ||
</svg> | ||
</span> | ||
</a> | ||
</div> | ||
</li> | ||
</ul> | ||
|
||
{# | ||
Todo : | ||
- câbler les articles liés à la techno (actuellement dans le contenu de chaque techno) | ||
- max 4 articles | ||
- ne pas afficher ce bloc si aucun article n'est lié | ||
#} | ||
<h2 class="h2--dash">Articles liés</h2> | ||
<ul class="article-list"> | ||
{% for article in articles %} | ||
<li class="miniature" data-aos="fade-in" data-aos-delay="{{ loop.index * 150 }}"> | ||
<a href="#" class="miniature__image"> | ||
<span class="image" style="{{ macros.backgroundImageSrcset(article.thumbnail, 'article_thumbnail.sm') }}"></span> | ||
</a> | ||
</div> | ||
{% endfor %} | ||
<div> | ||
<div class="miniature__content"> | ||
<a href="{{ path('blog_article', { article: article.slug }) }}" class="title">{{ article.title }}</a> | ||
<a href="{{ path('blog_article', { article: article.slug }) }}" class="link link--brand">Lire l'article</a> | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endblock content %} |