src/views/headers/_index.twig line 1

Open in your IDE?
  1. {% import 'utility/_macros.twig' as macros %}
  2. {{ macros.langswitch() }}
  3. {{ macros.mobilesearch() }}
  4.  <div>
  5.  <!-- Carousel -->
  6. <div id="demo" class="carousel slide" data-bs-ride="carousel">
  7.   <!-- Indicators/dots -->
  8.   <div class="carousel-indicators">
  9.     <button type="button" data-bs-target="#demo" data-bs-slide-to="0" class="active"></button>
  10.     <button type="button" data-bs-target="#demo" data-bs-slide-to="1"></button>
  11.     <button type="button" data-bs-target="#demo" data-bs-slide-to="2"></button>
  12.   </div>
  13.   
  14.   <!-- The slideshow/carousel -->
  15.   <div id="bannerCarousel" class="carousel slide" data-ride="carousel">
  16.     <div class="carousel-inner">
  17.         {% for banner in data.banners %}
  18.             <div class="carousel-item {% if loop.first %}active{% endif %}">
  19.                 <div class="row carousel_item_bg">
  20.                     <div class="col-xl-11 col-lg-11 col-md-11 col-sm-12 m-auto">
  21.                         <div class="row">
  22.                             <div class="col-xl-5 col-lg-5 col-md-5 col-sm-12 order-last text-center">
  23.                                 <div class="carousel_img">
  24.                                     <img src="{{ asset('uploads/banners/' ~ banner.cover) }}" alt="{{ banner.title }}" class="d-block" style="width:70%;">
  25.                                 </div>
  26.                             </div>
  27.                             <div class="col-xl-7 col-lg-7 col-md-7 col-sm-12">
  28.                                 <div class="carousel_item_text">
  29.                                     <h2 class="text-bold">{{ banner.title }}</h2>
  30.                                     <p class="text-muted">{{ banner.description }}</p>
  31.                                    {# <a class="btn btn-warning rounded-5 mt-4" href="#" style="width: 135px;">{{ 'home.readmore'|trans }} <img style="height: 10px;" src="./assets/images/long-arrow.png" alt="long-arrow"></a>#}
  32.                                 </div>
  33.                             </div>
  34.                         </div>
  35.                     </div>
  36.                 </div>
  37.             </div>
  38.         {% else %}
  39.             <div class="carousel-item active">
  40.                 <div class="row carousel_item_bg">
  41.                     <div class="col-xl-11 col-lg-11 col-md-11 col-sm-12 m-auto">
  42.                         <div class="row">
  43.                             <div class="col-xl-12 text-center">
  44.                                 <h2>No banners available at the moment.</h2>
  45.                             </div>
  46.                         </div>
  47.                     </div>
  48.                 </div>
  49.             </div>
  50.         {% endfor %}
  51.     </div>
  52.     <a class="carousel-control-prev" href="#bannerCarousel" role="button" data-slide="prev">
  53.         <span class="carousel-control-prev-icon" aria-hidden="true"></span>
  54.         <span class="sr-only">Previous</span>
  55.     </a>
  56.     <a class="carousel-control-next" href="#bannerCarousel" role="button" data-slide="next">
  57.         <span class="carousel-control-next-icon" aria-hidden="true"></span>
  58.         <span class="sr-only">Next</span>
  59.     </a>
  60. </div>
  61.     {#<div class="carousel-item ">
  62.       <div class="row carousel_item_bg">
  63.           <div class="col-xl-11 col-lg-11 col-md-11 col-sm-12 m-auto">
  64.               <div class="row">
  65.                 <div class="col-xl-5 col-lg-5 col-md-5 col-sm-12 order-last">
  66.                    <div class="carousel_img">
  67.                   <img src="./assets/images/banner_2.png" alt="Banner_2" class="d-block" style="width:70%;">
  68.                     </div>
  69.                 </div>
  70.                 <div class="col-xl-7 col-lg-7 col-md-7 col-sm-12">
  71.                 <div class="carousel_item_text">
  72.                   <h2 class="text-bold">{{ 'home.hbanner5'|trans }}, <br>
  73.           {{ 'home.hbanner6'|trans }} <br>{{ 'home.hbanner8'|trans }}</h2>
  74.               <p class="text-muted">
  75.                 {{ 'home.hbanner7'|trans }}
  76.                     </p>
  77.                     <a class="btn btn-warning rounded-5 mt-4" href="#" style="width: 135px;">{{ 'home.readmore'|trans }} <img style="height: 10px;" src="./assets/images/long-arrow.png" alt="long-arrow"></a>
  78.                     </div>
  79.                 </div>
  80.                 </div>
  81.                 
  82.             </div>
  83.         </div>
  84.     </div>
  85.     <div class="carousel-item ">
  86.       <div class="row carousel_item_bg">
  87.           <div class="col-xl-11 col-lg-11 col-md-11 col-sm-12 m-auto">
  88.               <div class="row">
  89.                 <div class="col-xl-5 col-lg-5 col-md-5 col-sm-12 order-last">
  90.                    <div class="carousel_img">
  91.                   <img src="./assets/images/banner_3.png" alt="Banner_3" class="d-block" style="width:70%;">
  92.                     </div>
  93.                 </div>
  94.                 <div class="col-xl-7 col-lg-7 col-md-7 col-sm-12">
  95.                 <div class="carousel_item_text">
  96.                   <h2 class="text-bold">{{ 'home.hbanner9'|trans }}, <br>
  97.           {{ 'home.hbanner10'|trans }} <br>{{ 'home.hbanner12'|trans }}</h2>
  98.               <p class="text-muted">
  99.                 {{ 'home.hbanner11'|trans }}
  100.                     </p>
  101.                     <a class="btn btn-warning rounded-5  mt-4" href="#" style="width: 135px;">{{ 'home.readmore'|trans }} <img style="height: 10px;" src="./assets/images/long-arrow.png" alt="long-arrow"></a>
  102.                     </div>
  103.                 </div>
  104.                 </div>
  105.                 
  106.             </div>
  107.         </div>
  108.     </div>
  109.     </div>#}
  110.   
  111.   <!-- Left and right controls/icons -->
  112.   <button class="carousel-control-prev" type="button" data-bs-target="#demo" data-bs-slide="prev">
  113.     <span class="carousel-control-prev-icon"></span>
  114.   </button>
  115.   <button class="carousel-control-next" type="button" data-bs-target="#demo" data-bs-slide="next">
  116.     <span class="carousel-control-next-icon"></span>
  117.   </button>
  118. </div>
  119.  </div>
  120. <header class="header">
  121.   <div class="header--wrapper1">
  122.     <div class="header__news d-none">
  123.       <div class="introduction">
  124.         <h2 class="heading--display semibold introduction--title">{{ 'home.introduction'|trans }}</h2>
  125.         {% if data.intro[0] %}
  126.           <p class="introduction--desc">{{ data.intro[0].introduction|raw|nl2br }}</p>
  127.         {% else %}
  128.           <div class="alert alert--warning alert--100">{{ 'no_records_found'|trans }}</div>
  129.         {% endif %}
  130.       </div>
  131.       <div class="newsarticles">
  132.         <h1 class="heading--display semibold header__news--head">{{ 'home.updates'|trans }}</h1>
  133.         <div class="articles">
  134.           {% for update in data.updates %}
  135.             {% if update.category == 'article' %}
  136.               <div class="article news">
  137.                 <p class="article--title">{{ update.title|raw }}</p>
  138.                 <a class="article--link" href="{{ update.link }}" target="_blank">{{ 'home.read'|trans }}></a>
  139.               </div>
  140.             {% else %}
  141.               <div class="article notification">
  142.                 <p class="article--title">{{ update.title|raw }}</p>
  143.               </div>
  144.             {% endif %}
  145.           {% else %}
  146.             <div class="alert alert--warning alert--100">{{ 'no_records_found'|trans }}</div>
  147.           {% endfor %}
  148.         </div>
  149.         <div class="articles--mobile">
  150.           <div class="splide" id="news">
  151.             <div class="splide__slider">
  152.               <div class="splide__arrows">
  153.                 <button class="splide__arrow splide__arrow--prev"></button>
  154.                 <button class="splide__arrow splide__arrow--next"></button>
  155.               </div>
  156.               <div class="splide__track">
  157.                 <ul class="splide__list">
  158.                   {% for update in data.updates %}
  159.                     <li class="splide__slide">
  160.                       {% if update.category == 'article' %}
  161.                         <div class="article news">
  162.                           <p class="article--title">{{ update.title|raw }}</p>
  163.                           <a class="article--link" href="{{ update.link }}" target="_blank">{{ 'home.read'|trans }}></a>
  164.                         </div>
  165.                       {% else %}
  166.                         <div class="article notification">
  167.                           <p class="article--title">{{ update.title|raw }}</p>
  168.                         </div>
  169.                       {% endif %}
  170.                     </li>
  171.                   {% endfor %}
  172.                 </ul>
  173.               </div>
  174.             </div>
  175.           </div>
  176.         </div>
  177.       </div>
  178.     </div>
  179.    
  180.     <div class="header__map__new">
  181.     
  182.       <div class="mapcontainer">
  183.         <div class="mapcontainer__content">
  184.           <h2 class="heading--l2 medium mapcontainer__content--head">{{ 'home.key_fp_indicators'|trans }}</h2>
  185.           <p class="mapcontainer__content--tag">{{ 'home.click_on_state'|trans }}</p>
  186.         </div>
  187.         <div class="map" id="map"></div>
  188.       </div>
  189.       <div class="indicators" id="showMapData">
  190.         <h2 class="heading--l2 medium indicators--state"></h2>
  191.         <div class="indicators--labels">
  192.           <div class="indicator indicator--1" data-indicator="#indicator1"></div>
  193.           <div class="indicator indicator--2" data-indicator="#indicator2"></div>
  194.           <div class="indicator indicator--3" data-indicator="#indicator3"></div>
  195.           <div class="indicator indicator--4" data-indicator="#indicator4"></div>
  196.           <div class="indicator indicator--5" data-indicator="#indicator5"></div>
  197.         </div>
  198.         <small class="indicators--info">
  199.           {{ 'home.arrow_depicts'|trans }}
  200.           <br />
  201.           <span style="color: #ace207;">{{ 'green'|trans }}</span>: {{ 'home.improvement'|trans }} |
  202.           <span style="color: #ff003c;">{{ 'red'|trans }}</span>: {{ 'home.deterioration'|trans }} |
  203.           <span style="color: #ffd800;">{{ 'yellow'|trans }}</span>: {{ 'home.no_change'|trans }}
  204.         </small>
  205.         <ul class="indicators__details" style="padding: 0px;">
  206.           <li class="indicators__details--li active" id="indicator1">{{ 'home.sex_ratio_at'|trans }}</li>
  207.           <li class="indicators__details--li" id="indicator2" style="color: #f99420">{{ 'home.total_fertility_rate'|trans }}</li>
  208.           <li class="indicators__details--li" id="indicator3" style="color: #dc2695">{{ 'home.women_age'|trans }}</li>
  209.           <li class="indicators__details--li" id="indicator4" style="color: #3dc9e1">{{ 'home.current_use'|trans }}</li>
  210.           <li class="indicators__details--li" id="indicator5" style="color: #a24be7">{{ 'home.total_umnet'|trans }}</li>
  211.         </ul>
  212.         <div class="indicators__source">
  213.           <span class="indicators__source--label">{{ 'home.source'|trans }}</span>
  214.           <span class="indicators__source--link"></span>
  215.         </div>
  216.         <hr class="indicators--hr" />
  217.         <div class="indicators__dashboard">
  218.           <a class="btn btn--primary-211 btn-lg btn-warning anchor--dashboard rounded-5">{{ 'home.view_full_dashboard'|trans }} <img src="./assets/images/long-arrow.png"/></a>
  219.           <p class="indicators--info-2">{{ 'home.click_to_see'|trans }}</p>
  220.         </div>
  221.       </div>
  222.     </div>
  223.   </div>
  224. </header>