templates/website/pages/portfolio.html.twig line 1

Open in your IDE?
  1. {% extends 'website/base.html.twig' %}
  2. {% block title %}Portfolio{% endblock %}
  3. {% block css %}
  4.     <style>
  5.         .portfolio-item-blur .portfolio-item-image:before {
  6.             background: linear-gradient(to right, #933eff, #3e74ff);
  7.         }
  8.     </style>
  9. {% endblock %}
  10. {% block body %}
  11.     <section class="position-relative bg-fit overlay-black-50 page-header-bg">
  12.         <div class="position-absolute" style="right: 0;
  13.         background-color: white;
  14.   bottom: 0;
  15.   z-index: -1;
  16.   min-width: 100%;
  17.   min-height: 100%;">
  18.             <video autoplay muted loop playsinline>
  19.                 <source src="{{ asset('assets/images/background/hero-section.webm') }}" type="video/webm">
  20.                 Your browser does not support the video tag.
  21.             </video>
  22.         </div>
  23.         <div class="container">
  24.             <div class="row text-center justify-content-center">
  25.                 <div class="col-lg-8">
  26.                     <h1 class="text-white">Portfolio</h1>
  27.                     <h2 class="scroll-down"></h2>
  28.                 </div>
  29.             </div>
  30.         </div>
  31.     </section>
  32.     <!--==========
  33.       End of page header ==========-->
  34.     <!--==========
  35.       Start of portfolio section ==========-->
  36.     <section class="slice-ptb">
  37.         <div class="container">
  38.             <div class="row">
  39.                 <div class="col-12">
  40.                     <div class="text-center">
  41.                         <!--===== Start of filters =====-->
  42.                         <div class="filters filter-button-group">
  43.                             <ul>
  44.                                 <li class="active" data-filter="*">All</li>
  45.                                 {% for category in categories %}
  46.                                     <li data-filter=".category_{{ category.id }}">{{ category.name }}</li>
  47.                                 {% endfor %}
  48.                             </ul>
  49.                         </div>
  50.                         <!--===== End of filters =====-->
  51.                     </div>
  52.                     <div class="grid portfolio-column-3 popup-container grid-spacing-05">
  53.                         {% for portfo in portfolios %}
  54.                             <div class="grid-item category_{{ portfo.cat_id }}">
  55.                                 <div class="portfolio-item-blur">
  56.                                     <div class="portfolio-item-image">
  57.                                         <img class="img-fluid" src="{{ portfo.image }}" alt="{{ portfo.alt }}">
  58.                                         <div class="portfolio-item-hover">
  59.                                             <a class="d-flex align-items-center" href="{{ path('website.portfolio_detail',{'slug':portfo.slug}) }}"> <span>{{ portfo.name }}</span></a>
  60.                                             <ul class="list-unstyled portfolio-item-category">
  61.                                                 <li><a href="{{ path('website.portfolio_detail',{'slug':portfo.slug}) }}">{{ portfo.cat_name }}</a></li>
  62.                                             </ul>
  63.                                         </div>
  64.                                     </div>
  65.                                 </div>
  66.                             </div>
  67.                         {% endfor %}
  68.                     </div>
  69.                 </div>
  70.             </div>
  71.         </div>
  72.     </section>
  73. {% endblock %}