templates/team/index.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block title %}
  3. Join with us.
  4. {% endblock %}
  5. {% block body %}
  6.   <section class="relative bg-[#eeeef6] mx-auto py-16">
  7.     <div class="relative z-10">
  8.     <div class="mx-auto w-full py-8 px-6 text-center max-w-4xl">
  9.       <h1 class="mb-4 text-2xl md:text-4xl font-black text-brand">
  10.         Join with us
  11.       </h1>
  12.       <p class="mb-10 font-normal leading-relaxed text-neutral-600 lg:mb-12 text-2xl">
  13.         Support and connect with Overseas Nepalese Liaison Department (ONLD)
  14.       </p>
  15.     </div>
  16.     </div>
  17.   </section>
  18.     <section class="relative bg-white mx-auto lg:py-24 py-12">
  19.         {# <div class="grid grid-cols-1 gap-x-8 gap-y-10 mt-8 xl:mt-16 md:grid-cols-3 xl:grid-cols-4 py-8 px-6">
  20.             {% for i in 0..11 %}
  21.                 <div class="flex flex-col items-center p-4 border sm:p-6 rounded-xl group">
  22.                     <div class="w-full rounded-xl h-auto overflow-hidden">
  23.             <img class="object-cover w-full aspect-square saturate-0 group-hover:saturate-100 group-hover:scale-125 transition-all duration-700" src="{{ asset('/images/' ~ (i + 1) ~ '_large.jpg') }}" alt="member">
  24.           </div>
  25.                     <h1 class="mt-4 text-2xl font-semibold text-gray-700 capitalize">Lorem Ipsum</h1>
  26.                     <p class="mt-2 text-gray-500 capitalize">Dolor Isat</p>
  27.                     <div class="flex mt-3 -mx-2">
  28.             <a href="https://facebook.com" target="_blank" class="mx-2 text-gray-600 transition-colors duration-300 hover:text-brand">
  29.               <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" class="w-5 h-5 fill-current">
  30.                 <path d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"/>
  31.               </svg>
  32.             </a>
  33.             <a href="https://instagram.com" target="_blank" class="mx-2 text-gray-600 transition-colors duration-300 hover:text-brand">
  34.               <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="w-5 h-5 fill-current">
  35.                 <path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/>
  36.               </svg>
  37.             </a>
  38.             <a href="https://twitter.com" target="_blank" class="mx-2 text-gray-600 transition-colors duration-300 hover:text-brand">
  39.               <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="w-5 h-5 fill-current">
  40.                 <path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/>
  41.               </svg>
  42.             </a>
  43.             <a href="https://linkedin.com" target="_blank" class="mx-2 text-gray-600 transition-colors duration-300 hover:text-brand">
  44.               <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="w-5 h-5 fill-current">
  45.                 <path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"/>
  46.               </svg>
  47.             </a>
  48.                     </div>
  49.                 </div>
  50.             {% endfor %}
  51.         </div> #}
  52.     <div class="w-full px-6">
  53.       <nav
  54.         class="
  55.           flex
  56.           gap-6
  57.           md:mx-auto
  58.           md:max-w-screen-2xl
  59.           {% if departments|length > 2 %}
  60.           md:justify-center
  61.           justify-start
  62.           {% else %}
  63.           justify-center
  64.           {% endif %}
  65.           items-center
  66.           overflow-auto
  67.         "
  68.         aria-label="Tabs"
  69.       >
  70.         {% for department in departments %}
  71.           <button
  72.             data-department-code="{{ department.departmentCode }}"
  73.             class="tab-btn shrink-0 rounded-lg p-2 text-xl font-medium"
  74.           >
  75.             {{ department.name }}
  76.           </button>
  77.         {% endfor %}
  78.       </nav>
  79.       <div class="grid grid-cols-1 gap-x-8 gap-y-10 mt-8 xl:mt-16 md:grid-cols-4 xl:grid-cols-5 py-8 md:px-6">
  80.         {% for member in teamMembers %}
  81.           <div class="hidden {{ member.department.departmentCode }} tab items-center border rounded-xl group relative overflow-hidden">
  82.             <div class="w-full h-auto overflow-hidden">
  83.               {% if member.user.getUserImagesByuserImageTypeCode('LG') is not null %}
  84.                 {% set avatar = '/uploads/media/' ~ member.user.getUserImagesByuserImageTypeCode('LG').getImageMetaData().getName() %}
  85.               {% else %}
  86.                 {% set avatar = 'https://avatar.uimaterial.com/?setId=bWHeCqgK6m3HuS6KPXYH&name=' ~ member.user.firstName ~ '&size=512' %}
  87.               {% endif %}
  88.               <img
  89.                 class="object-cover w-full aspect-square saturate-0 group-hover:saturate-100 group-hover:scale-125 transition-all duration-700"
  90.                 src="{{ avatar }}"
  91.                 alt="{{ member.user.firstName ~ ' ' ~ member.user.lastName }}"
  92.               >
  93.             </div>
  94.             <div class="p-4 text-center">
  95.             <h3 class="mt-4 text-2xl xl:text-2xl md:text-xl font-semibold text-gray-700 capitalize">
  96.               {{ member.user.firstName ~ ' ' ~ member.user.lastName }}
  97.             </h3>
  98.             <p class="mt-2 text-gray-500 capitalize">
  99.               {{ member.designation.name }}
  100.             </p>
  101.             <div class="flex mt-3 -mx-2">
  102.               {% if member.user.userDetail and member.user.userDetail.facebook %}
  103.                 <a href="https://facebook.com/{{ member.user.userDetail.facebook }}" target="_blank" class="mx-2 text-gray-600 transition-colors duration-300 hover:text-brand">
  104.                   <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" class="w-5 h-5 fill-current">
  105.                     <path d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"/>
  106.                   </svg>
  107.                 </a>
  108.               {% endif %}
  109.               {% if member.user.userDetail and member.user.userDetail.instagram %}
  110.                 <a href="https://instagram.com/{{ member.user.userDetail.instagram }}" target="_blank" class="mx-2 text-gray-600 transition-colors duration-300 hover:text-brand">
  111.                   <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="w-5 h-5 fill-current">
  112.                     <path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/>
  113.                   </svg>
  114.                 </a>
  115.               {% endif %}
  116.               {% if member.user.userDetail and member.user.userDetail.twitter %}
  117.                 <a href="https://twitter.com/{{ member.user.userDetail.twitter }}" target="_blank" class="mx-2 text-gray-600 transition-colors duration-300 hover:text-brand">
  118.                   <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="w-5 h-5 fill-current">
  119.                     <path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/>
  120.                   </svg>
  121.                 </a>
  122.               {% endif %}
  123.               {% if member.user.userDetail and member.user.userDetail.linkedin %}
  124.                 <a href="https://linkedin.com/{{ member.user.userDetail.linkedin }}" target="_blank" class="mx-2 text-gray-600 transition-colors duration-300 hover:text-brand">
  125.                   <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="w-5 h-5 fill-current">
  126.                     <path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"/>
  127.                   </svg>
  128.                 </a>
  129.               {% endif %}
  130.             </div>
  131.             </div>
  132.           </div>
  133.         {% endfor %}
  134.       </div>
  135.     </div>
  136.     </section>
  137.    <script>
  138.     $(document).ready(function() {
  139.       $('.tab-btn').first().removeClass('text-gray-500 hover:bg-gray-50 hover:text-gray-700').addClass('bg-sky-100 text-sky-600')
  140.       let tabToDisplay = $('.tab-btn').first().data('department-code')
  141.       $('.tab').addClass('hidden')
  142.       $(`.${tabToDisplay}`).removeClass('hidden')
  143.       
  144.       $('.tab-btn').click(function() {
  145.         $('.tab-btn').removeClass('bg-sky-100 text-sky-600').addClass('text-gray-500 hover:bg-gray-50 hover:text-gray-700')
  146.         $(this).removeClass('text-gray-500 hover:bg-gray-50 hover:text-gray-700').addClass('bg-sky-100 text-sky-600')
  147.         let tabToDisplay = $(this).data('department-code')
  148.         $('.tab').addClass('hidden')
  149.         $(`.${tabToDisplay}`).removeClass('hidden')
  150.       })
  151.     })
  152.    </script>
  153. {% endblock %}