{% extends 'base.html.twig' %}
{% block title %}
{{ 'about_us'|trans }}
{% endblock %}
{% block css %}
<style>
.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){
border-color: transparent!important;
}
.ck.ck-editor__main>.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{
border: transparent!important;
}
.main-timeline{
font-family: 'Sanchez', serif;
position: relative;
}
.main-timeline:before{
content: '';
height: 100%;
width: 2px;
border: 2px solid {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
transform: translateX(-50%);
position: absolute;
left: 50%;
top: 0;
}
.main-timeline:after{
content: '';
display: block;
clear: both;
}
.main-timeline .timeline{
width: 50.05%;
display:inline-block;
float: left;
position: relative;
z-index: 1;
}
.main-timeline .timeline:before,
.main-timeline .timeline:after{
content: '';
background-color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
border-radius: 50%;
transform: translateY(-50%);
position: absolute;
top: 50%;
right: -12px;
}
.main-timeline .timeline:after{
height: 5px;
width: 100px;
border-radius: 0;
right: 0;
}
.main-timeline .timeline-content{
text-align: justify;
min-height: 155px;
max-height: 300px;
padding: 20px 230px 15px 12px;
display:block;
overflow: hidden;
}
.main-timeline .timeline-content:hover{ text-decoration: none; }
.main-timeline .timeline-year{
color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
background-color: #fff;
font-size: 14px;
font-weight: 600;
text-align: center;
line-height: 50px;
height: auto;
width: 120px;
border: 2px solid {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
transform: translateY(-50%);
position: absolute;
right: 50px;
top: 50%;
z-index: 1;
}
.main-timeline .title{
color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
font-size: 22px;
font-weight: 600;
text-transform: capitalize;
letter-spacing: 1px;
margin: 0 0 5px;
}
.main-timeline .description{
color: #101010;
font-size: 15px;
letter-spacing: 1px;
margin: 0;
background-color: #fcfcfd;
}
.main-timeline .timeline:nth-child(even){ float: right; }
.main-timeline .timeline:nth-child(even):before{
right: auto;
left: -12px;
}
.main-timeline .timeline:nth-child(even):after{
right: auto;
left: 0;
}
.main-timeline .timeline:nth-child(even) .timeline-content{
padding: 20px 12px 15px 230px;
text-align: left;
}
.main-timeline .timeline:nth-child(even) .timeline-year{
right: auto;
left: 100px;
}
.main-timeline .timeline:nth-child(5n+2):before,
.main-timeline .timeline:nth-child(5n+2):after{
background-color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
}
.main-timeline .timeline:nth-child(5n+2) .timeline-year{
color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
border-color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
}
.main-timeline .timeline:nth-child(5n+2) .title{ color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %}; }
.main-timeline .timeline:nth-child(5n+3):before,
.main-timeline .timeline:nth-child(5n+3):after{
background-color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
}
.main-timeline .timeline:nth-child(5n+3) .timeline-year{
color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
border-color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
}
.main-timeline .timeline:nth-child(5n+3) .title{ color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %}; }
.main-timeline .timeline:nth-child(5n+4):before,
.main-timeline .timeline:nth-child(5n+4):after{
background-color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
}
.main-timeline .timeline:nth-child(5n+4) .timeline-year{
color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
border-color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
}
.main-timeline .timeline:nth-child(5n+4) .title{ color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %}; }
@media screen and (max-width:990px){
.main-timeline .timeline-year{ right: 30px; }
.main-timeline .timeline-content{ padding: 15px 160px 15px 15px; }
.main-timeline .timeline:nth-child(even) .timeline-year{ left: 30px; }
.main-timeline .timeline:nth-child(even) .timeline-content{ padding: 15px 15px 15px 160px; }
}
@media screen and (max-width:767px){
.main-timeline:before{
transform: translateX(0);
left: -3px;
}
.main-timeline .timeline{
width: 100%;
margin-bottom: 20px;
}
.main-timeline .timeline:before,
.main-timeline .timeline:after,
.main-timeline .timeline:nth-child(even):before,
.main-timeline .timeline:nth-child(even):after{
transform: translateY(0);
top: 14px;
}
.main-timeline .timeline:before,
.main-timeline .timeline:after{
right: auto;
left: -12px;
}
.main-timeline .timeline:after{ left: 0; }
.main-timeline .timeline:after,
.main-timeline .timeline:nth-child(even):after{
width: 50px;
top: 17px;
}
.main-timeline .timeline .timeline-content,
.main-timeline .timeline:nth-child(even) .timeline-content{
text-align: left;
padding: 70px 10px 10px 20px;
}
.main-timeline .timeline .timeline-year,
.main-timeline .timeline:nth-child(even) .timeline-year{
line-height: 40px;
height: 50px;
width: 120px;
border-width: 5px;
transform: translateY(0);
top: 0;
left: 45px;
}
}
.team3 {
font-size: 16px;
}
.team3 h1,
.team3 h2,
.team3 h3,
.team3 h4,
.team3 h5,
.team3 h6 {
color: #3e4555;
}
.team3 .font-weight-medium {
font-weight: 500;
}
.team3 .bg-light {
background-color: #f4f8fa !important;
}
.team3 .subtitle {
color: #8d97ad;
line-height: 24px;
font-size: 13px;
}
.team3 ul {
margin-top: 30px;
}
.team3 h5 {
line-height: 22px;
font-size: 18px;
}
.team3 ul li a {
color: #8d97ad;
padding-right: 15px;
-webkit-transition: 0.1s ease-in;
-o-transition: 0.1s ease-in;
transition: 0.1s ease-in;
}
.team3 ul li a:hover {
-webkit-transform: translate3d(0px, -5px, 0px);
transform: translate3d(0px, -5px, 0px);
color: #316ce8;
}
.team3 .title {
margin: 30px 0 0 0;
}
.team3 .subtitle {
margin: 0 0 0px 0;
font-size: 13px;
}
</style>
{% endblock %}
{% block body %}
<div class=" d-flex flex-column flex-row-fluid">
<div class="card-body row pt-head">
{% if page_about is not null %}
<div class="row container-fluid scrool-div" id="{{ page_about.slug }}">
<div class="richText">
<h2 class="bold text-center text-primary mt-5 mb-5">{{ page_about.name }}</h2>
<div class="ck ck-content ck-editor__editable ck-rounded-corners ck-editor__editable_inline ck-read-only ck-blurred" lang="en" dir="ltr" role="textbox" aria-label="Rich Text Editor, main" contenteditable="false">
{{ page_about.richText|raw }}
</div>
</div>
</div>
{% endif %}
<div class="row container-fluid " style="margin-top: 80px;">
{% if page_story is not null %}
<div class="container scrool-div" id="{{ page_story.slug }}">
<h2 class="bold text-center text-primary mb-5 mt-5">{{ page_story.name }}</h2>
<div class="row">
<div class="col-md-12">
<div class="main-timeline">
{% for s in stories %}
<div class="timeline">
<a href="javascript:void(0)" class="timeline-content btn-show" data-id="{{ s.id }}" >
<span class="timeline-year">{{ s.storyDate }}</span>
{% if s.image != '' %}
<img style="max-width: 300px;max-height: 190px" src="{{ asset('uploads/'~s.image) }}"/>
{% endif %}
<p class="description" style="text-align: {% if loop.index % 2 ==0 %} justify {% else %} justify {% endif %}">
{{ s.description|striptags|u.truncate(100, '...')|raw }}
</p>
</a>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{% endif %}
</div>
<div class="row container-fluid" style="margin-top: 80px;">
{% if page_team is not null %}
<div class="container scrool-div" id="{{ page_team.slug }}">
<h2 class="bold text-center text-primary mb-5 mt-5">{{ page_team.name }}</h2>
<div class="py-5 team3 ">
<div class="container">
<div class="row">
{% for t in teams %}
<div class="col-lg-3 col-md-4 mb-4">
<div class="row">
<div class="col-md-12">
{% if t.image =='' %}
<img style="width: 270px;height: 250px" src="{{ asset('assets/media/avatars/user.png') }}" alt="wrapkit" class="img-thumbnail img-fluid" />
{% else %}
<img style="width: 270px;height: 250px" src="{{ asset('uploads/'~t.image) }}" alt="wrapkit" class="img-thumbnail img-fluid" />
{% endif %}
</div>
<div class="col-md-12">
<div class="pt-2">
<h3 class="mt-4 font-weight-medium mb-0">{{ t.name }}</h3>
<h4 class="subtitle">{{ t.position.name }}</h4>
<h4 class="subtitle">{{ t.department.name }}</h4>
<a style="display: block" href = "mailto: {{ t.email }}" class="subtitle"> {{ t.email }}</a>
<a style="display: block" href = "tel: {{ t.phone }}" class="subtitle"> {{ t.phone }}</a>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
</div>
<div class="modal fade" data-bs-focus="false" tabindex="-1" id="kt_modal_show">
<div class="modal-dialog modal-fullscreen">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modal_show_title">
<span class="fa fa-spin fa-satellite"></span>
</h5>
<div class="btn btn-icon btn-sm btn-active-light-primary ms-2" data-bs-dismiss="modal" aria-label="Close">
<span class="fa fa-window-close"></span>
</div>
<!--end::Close-->
</div>
<div class="modal-body">
<div class=" d-flex flex-column flex-row-fluid " id="modal_show_img">
</div>
<div class=" d-flex flex-column flex-row-fluid" id="modal_show_content">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light" data-bs-dismiss="modal">{{ 'close'|trans }}</button>
</div>
</div>
</div>
</div>
{% endblock %}
{% block js %}
<script src="{{ asset('assets/plugins/custom/ckeditor/ckeditor-classic.bundle.js') }}"></script>
<script>
$(document).ready(function (){
})
</script>
<script>
$(document).ready(function (){
let modalShow = bootstrap.Modal.getOrCreateInstance(document.getElementById('kt_modal_show'));
$(modalShow).on('hidden.bs.modal', function (event) {
;
$('#modal_show_title').html('<span class="fa fa-spin fa-satellite"></span>');
$('#modal_show_content').html('');
$('#modal_show_img').html('');
});
$('.btn-show').on('click', function () {
let url = "{{ path('get_one_entity',{'entity':'story','id':'00000'}) }}";
url = url.replace('00000',this.getAttribute('data-id'));
$.ajax({
url: url,
type: 'GET',
dataType: 'json',
success: function(res){
$('#modal_show_title').html(res.data.story_date);
$('#modal_show_content').html(res.data.description);
if(res.data.image !== ""){
let img='<img class="img-responsive img" style="max-width: 400px;max-height: 300px" src="'+"{{ asset('uploads/') }}"+res.data.image +'"'+' />';
$('#modal_show_img').html(img);
}
else{
$('#modal_show_img').html('');
}
modalShow.show();
},
error :function (error) {
Swal.fire({
text: "{{ 'object_not_found'|trans }}",
icon: "error",
buttonsStyling: false,
confirmButtonText: "{{ 'close'|trans }}",
customClass: {
confirmButton: "btn btn-primary"
}
});
}
});
});
})
</script>
{% endblock %}