templates/Theme/Produit/Service/Service/articlesdemo.html.twig line 17

Open in your IDE?
  1. <div class="my-container">
  2. <div class="row">
  3.     <div class="col-md-12" style="margin-bottom: 7px;">
  4.     <div class="step-indicator" style="display: inline-block; width: 100%; margin: 0px; background: #f9f9f9;">
  5.         <a class="stepcard completed" href="" style="display: inline-block; width: 22%;"><div class="coustom-my-text">{{ site }}</div></a>
  6.         <a class="stepcard completed" href="" style="display: inline-block; width: 22%;"><div class="coustom-my-text">Démo</div></a>
  7.         <a class="stepcard" href="#!" style="display: inline-block;  width: 22%;"><div class="coustom-my-text">Plateformes d'essais</div></a>
  8.     </div>
  9.     </div>
  10. </div>
  11. </div>
  12. <div style="background: #f5f7f8; padding-top: 20px;">
  13.     <div class="my-container">
  14.         <div class="row">
  15.         <div class="col-md-4">
  16.             {{ render(controller("App\\Controller\\Produit\\Service\\ServiceController:menuarticle", {'position': position})) }}
  17.         </div>
  18.         <div class="col-md-8">
  19.         
  20. <style>
  21. .wrap {
  22.   max-width: 100%;
  23.   margin: 0 auto;
  24.   display: flex;
  25.   flex-wrap: wrap;
  26. }
  27. .card {
  28.   flex: 1;
  29.   min-width: 100%;
  30.   max-width: 31%;
  31.   overflow: hidden;
  32.   border-radius: 0;
  33.   background: #fff;
  34.   margin: 0px;
  35.   box-shadow: 0px 5px 0px rgba(0, 0, 0, 0.03);
  36. }
  37. @media (max-width: 68em) {
  38.   .card {
  39.     min-width: 48%;
  40.   }
  41. }
  42. @media (max-width: 48em) {
  43.   .card {
  44.     min-width: 98%;
  45.   }
  46. }
  47. .card .head {
  48.   
  49. }
  50. .card .head:hover {
  51.   background-position: -79% 21.5%;
  52. }
  53. .card .head h3 {
  54.   margin: 0;
  55.   padding: 1em 1.5em;
  56.   align-self: flex-end;
  57.   display: block;
  58.   width: 100%;
  59.   font-weight: 400;
  60.   text-shadow: 0px 1px 0px #000;
  61.   background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjEuMCIgeDI9IjAuNSIgeTI9IjAuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjAiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyYWQpIiAvPjwvc3ZnPiA=');
  62.   background-size: 100%;
  63.   background-image: linear-gradient(to top, #000000, rgba(0, 0, 0, 0));
  64. }
  65. .card .head h3 i.fa {
  66.   font-size: 120%;
  67.   position: relative;
  68.   top: 2px;
  69. }
  70. .card .head h3 span.time {
  71.   float: right;
  72.   font-weight: 200;
  73. }
  74. .card article {
  75.   padding: .5em 1.5em;
  76. }
  77. .card article h2:nth-of-type(1) {
  78.   margin-top: .5em;
  79.   font-weight: 400;
  80.   font-size: 205%;
  81.   line-height: 1.2em;
  82.   margin-bottom: .45em;
  83. }
  84. .card article p {
  85.   line-height: 1.55em;
  86.   text-align: justify;
  87. }
  88. .card article p:nth-of-type(1) {
  89.   margin-top: 0;
  90. }
  91. .card .foot {
  92.   border-top: 3px solid rgba(0, 0, 0, 0.1);
  93.   margin: 0 1.5em;
  94.   padding: 2em 0;
  95. }
  96. .card .foot .profile-pic {
  97.   max-width: 52px;
  98.   height: auto;
  99.   border-radius: 50%;
  100.   margin: 0 1em 0 0;
  101.   display: inline-block;
  102. }
  103. .card .foot .author {
  104.   font-weight: bold;
  105. }
  106. .card .foot .author a {
  107.   text-decoration: none;
  108.   color: tomato;
  109.   position: relative;
  110.   top: -.95em;
  111.   font-size: 1.25em;
  112. }
  113. .card .foot .social {
  114.   display: inline-block;
  115.   float: right;
  116.   font-size: 2.5em;
  117. }
  118. .card .foot .social a {
  119.   margin-left: .5em;
  120.   color: rgba(0, 0, 0, 0.3);
  121. }
  122. .card .foot .social a:hover {
  123.   color: rgba(0, 0, 0, 0.5);
  124. }
  125. </style>
  126.         
  127.         {% for article in liste_article %}
  128.         <div class="wrap">
  129.         <div class="card" style="background-image:'{% if article.imgservice != null %}{{ asset(article.imgservice.getwebpath) }}{% else %}{{ asset('template/images/bglogin2.png') }}{% endif %}';">
  130.           <style>
  131.             #bg-card-{{ article.id }}{
  132.                 background: url({% if article.imgservice != null %}{{ asset(article.imgservice.getwebpath) }}{% else %}{{ asset('template/images/bglogin2.png') }}{% endif %}) -59% 51.5%;
  133.                 min-height: 250px;
  134.                   color: #fff;
  135.                   position: relative;
  136.                   display: flex;
  137.                   transition: all 1.5s ease-in-out;
  138.                   background-repeat: no-repeat;
  139.                   background-size: cover;
  140.             }
  141.             #bg-card-{{ article.id }}:hover {
  142.               background-position: -79% 21.5%;
  143.             }
  144.           </style>
  145.           <a href="{{ article.link }}" style="display: block;" target="_blank">
  146.           <header id="bg-card-{{ article.id }}" class="head">
  147.           <h3>
  148.              <span style="color: #fff;"><img src="{% if article.logo != null and article.logo.imgevenement != null %}{{ asset(article.logo.imgevenement.getwebpath) }}{% else %}{{ asset('template/images/1settings.png') }}{% endif %}" style="width: 36px; height: 36px; border-radius: 18px; background: #fff;"/> {{ article.breve }}</span><span class="time" style="color: #fff; font-size: 16px; margin-top: 15px;"><span class="fa fa-clock-o"></span> {{ moisText(article.date|date('M')) }} {{ article.date|date('Y') }} - En cours</span>
  149.           </h3>
  150.           </header>
  151.           </a>
  152.           <article>
  153.             <h2><a href="{{ article.link }}" class="btn btn-primary pull-right" target="_blank">Essayer <span class="fa fa-external-link" style="font-size: 12px;"></span></a> {{ article.nom }} </h2>
  154.             <p>{{ article.description }}</p>
  155.             
  156.             <div style="margin-top: 20px;"><strong style="color: green;">Essayer les fonctionnalités <a href="#!">{{ site }}</a> sur <a href="{{ article.link }}" target="_blank">{{ article.breve }}</a> </strong></div>
  157.             {% set liste_partie = article.getPartiearticles %}
  158.             {% for partie in liste_partie %}
  159.               <div class="topic">
  160.                 <div class="open">
  161.                 <span class="faq-t" style="top: 40px;"></span>
  162.                 <div class="question">
  163.                 <img src="{% if partie.imgevenement != null %}{{ asset(partie.imgevenement.getwebpath) }}{% else %}{{ asset('template/images/boost2.png') }}{% endif %} " alt="..." style="width: 100px; height: 100px; float: left; margin-right: 7px; background: #ddd; margin-top: -20px;" >  
  164.                 <span style="font-size: 25px;">{{ partie.nom }}</span>
  165.                 <div style="color: #333; margin-top: 10px;">
  166.                    {{ partie.breve }} <a href="{{ partie.link }}" class="btn btn-primary pull-right" target="_blank">Essayer <span class="fa fa-external-link" style="font-size: 12px;"></span></a> 
  167.                 </div>
  168.                 </div> 
  169.                 </div>
  170.                 <div class="answer">
  171.                 {{ partie.description }}</br>
  172.                 </div>
  173.               </div>
  174.             {% endfor %}    
  175.           </article>
  176.         </div>
  177.         </div>
  178.         
  179.         <div style="background: rgba(145, 186, 28, 0.2); padding: 10px; text-align: center;">
  180.         <div><strong style="color: green;">Suivre <a href="{{ article.link }}" target="_blank">{{ article.breve }}</a> sur les réseaux sociaux.</strong></div>
  181.         <div class="social-btns">
  182.             {% if article.facebook != null %}
  183.             <a class="social-btn facebook" href="{{ article.facebook }}" target="_blank"><i class="fa fa-facebook"></i></a>
  184.             {% else %}
  185.             <a class="social-btn facebook" href="#!" title="Lien Indisponible"><i class="fa fa-facebook"></i></a>
  186.             {% endif %}
  187.             {% if article.twitter != null %}
  188.             <a class="social-btn linkedin" href="{{ article.twitter }}" target="_blank"><i class="fa fa-twitter"></i></a>
  189.             {% else %}
  190.             <a class="social-btn linkedin" href="#!" title="Lien Indisponible"><i class="fa fa-twitter"></i></a>
  191.             {% endif %}
  192.             {% if article.google != null %}
  193.             <a class="social-btn instagram" href="{{ article.google }}" target="_blank"><i class="fa fa-google-plus"></i></a>
  194.             {% else %}
  195.             <a class="social-btn instagram" href="#!" title="Lien Indisponible"><i class="fa fa-google-plus"></i></a>
  196.             {% endif %}
  197.             {% if article.linkedin != null %}
  198.             <a class="social-btn github" href="{{ article.linkedin }}" target="_blank"><i class="fa fa-linkedin"></i></a>
  199.             {% else %}
  200.             <a class="social-btn instagram" href="#!" title="Lien Indisponible"><i class="fa fa-linkedin"></i></a>
  201.             {% endif %}
  202.         </div>
  203.       </div>
  204.         {% else %}
  205.         <div class="col-md-12" style="height: 400px; border-left: 4px solid #3565ae; margin-left: 12px;">
  206.             <div style="border-left: 5px solid #3565ae; padding: 3px; background: #f5f5f5; color: red;">{{ 'Aucune donnée disponible pour cette requête'|trans }}</div>
  207.         </div>
  208.         {% endfor %}
  209.         
  210.         
  211.         </div>
  212.         </div>
  213.     </div>
  214. </div>