templates/sites/microsite/templates/models/news-item.html.twig line 1

Open in your IDE?
  1. {% extends "sites/microsite/layouts/master.html.twig" %}
  2. {% block bodyClass %}tpl-news-item{% endblock %}
  3. {% block siteHeader %}
  4.     {% include 'sites/microsite/organisms/site-header.html.twig' %}
  5. {% endblock %}
  6. {% block pageHeader %}
  7.     {% include 'molecules/page-header.html.twig' with {
  8.         breadcrumb: [
  9.             { path: path('journal_frontpage'), title: 'Xornal' }
  10.         ]
  11.     } %}
  12. {% endblock %}
  13. {% block pageContent %}
  14.     <article class="news-item-wrapper">
  15.         {% include 'molecules/tags-list.html.twig' %}
  16.         <p class="at-title is-2 is-light is-pretitle">Dentro das xornadas de acción social</p>
  17.         <h1 class="at-title is-1 is-light">Un titular para unha nova ou entrevista de varias liñas de lonxitude</h1>
  18.         <div class="news-item-content-wrapper">
  19.             <div class="news-item-header">
  20.                 <figure class="at-image is-news-item-main-image">
  21.                     <img src="https://picsum.photos/900/507" alt="">
  22.                     <figcaption class="image-caption">
  23.                         Pé de foto descritivo &copy; Universiade de Santiago de Compostela
  24.                     </figcaption>
  25.                 </figure>
  26.                 <div class="news-item-intro">
  27.                     <div class="at-lead-text">
  28.                         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra eros quis ex malesuada pellentesque. Suspendisse mauris mauris, ultricies id egestas ac, consectetur a tortor. Vestibulum ac convallis lectus. Proin in nibh imperdiet, iaculis dui in, aliquet augue.</p>
  29.                     </div>
  30.                     {% include 'molecules/social-button-list.html.twig' %}
  31.                 </div>
  32.             </div>
  33.             <div class="news-item-content">
  34.                 <div class="news-item-body-wrapper">
  35.                     <div class="news-item-body">
  36.                         <p class="news-item-campus">Lugo, Santiago</p>
  37.                         <time datetime="2019-06-03" class="news-item-datetime">Luns 3 de xuño de 2019</time>
  38.                         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra eros quis ex malesuada pellentesque. Suspendisse mauris mauris, ultricies id egestas ac, consectetur a tortor. Vestibulum ac convallis lectus. Proin in nibh imperdiet, iaculis dui in, aliquet augue.</p>
  39.                         <figure class="at-image">
  40.                             <img src="https://picsum.photos/900/507" alt="">
  41.                         </figure>
  42.                         <h3 class="at-title is-subhead">Lorem ipsum dolor sit amet</h3>
  43.                         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra eros quis ex malesuada pellentesque. Suspendisse mauris mauris, ultricies id egestas ac, consectetur a tortor. Vestibulum ac convallis lectus. Proin in nibh imperdiet, iaculis dui in, aliquet augue.</p>
  44.                         <usc-carousel>
  45.                             <template slot-scope="carouselSlotProps">
  46.                                 <usc-carousel-item v-on:enlarge-carousel="carouselSlotProps.enlarge">
  47.                                     <template slot-scope="itemSlotProps">
  48.                                         <figure class="at-image">
  49.                                             <a href="https://picsum.photos/800/507" @click.prevent="itemSlotProps.enlargeCarousel">
  50.                                                 <img src="https://picsum.photos/800/507" alt="">
  51.                                             </a>
  52.                                             <figcaption class="image-caption">Descrición da imaxe</figcaption>
  53.                                         </figure>
  54.                                     </template>
  55.                                 </usc-carousel-item>
  56.                                 <usc-carousel-item v-on:enlarge-carousel="carouselSlotProps.enlarge">
  57.                                     <template slot-scope="itemSlotProps">
  58.                                         <figure class="at-image">
  59.                                             <a href="https://picsum.photos/800/507" @click.prevent="itemSlotProps.enlargeCarousel">
  60.                                                 <img src="https://picsum.photos/800/507" alt="">
  61.                                             </a>
  62.                                             <figcaption class="image-caption">Descrición da imaxe</figcaption>
  63.                                         </figure>
  64.                                     </template>
  65.                                 </usc-carousel-item>
  66.                                 <usc-carousel-item v-on:enlarge-carousel="carouselSlotProps.enlarge">
  67.                                     <template slot-scope="itemSlotProps">
  68.                                         <figure class="at-image">
  69.                                             <a href="https://picsum.photos/800/507" @click.prevent="itemSlotProps.enlargeCarousel">
  70.                                                 <img src="https://picsum.photos/800/507" alt="">
  71.                                             </a>
  72.                                             <figcaption class="image-caption">Descrición da imaxe</figcaption>
  73.                                         </figure>
  74.                                     </template>
  75.                                 </usc-carousel-item>
  76.                             </template>
  77.                         </usc-carousel>
  78.                         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra eros quis ex malesuada pellentesque. Suspendisse mauris mauris, ultricies id egestas ac, consectetur a tortor. Vestibulum ac convallis lectus. Proin in nibh imperdiet, iaculis dui in, aliquet augue.</p>
  79.                     </div>
  80.                     <div class="news-item-author">
  81.                         {% include 'molecules/authors/summary.html.twig' %}
  82.                     </div>
  83.                 </div>
  84.             </div>
  85.         </div>
  86.     </article>
  87.     <section class="org-tier">
  88.         <div class="tier-header">
  89.             <h2 class="tier-title">Novas relacionadas</h2>
  90.         </div>
  91.         <div class="tier-content">
  92.             <div class="org-modules-container">
  93.                 {% include 'molecules/news/l.html.twig' %}
  94.                 {% include 'molecules/news/m.html.twig' with { hasImage: true } %}
  95.                 {% include 'molecules/news/m.html.twig' with { hasImage: true } %}
  96.             </div>
  97.         </div>
  98.     </section>
  99. {% endblock %}
  100. {% block siteFooter %}
  101.     {% include 'sites/microsite/organisms/site-footer.html.twig' %}
  102. {% endblock %}