Browse Source

Intégration Souke

feature/souke
Guillaume Bourgeois 8 months ago
parent
commit
192c02c3d7
9 changed files with 159 additions and 134 deletions
  1. +1
    -1
      backend/views/layouts/header.php
  2. +2
    -2
      backend/web/css/screen.css
  3. +2
    -2
      backend/web/sass/_adminlte.scss
  4. +3
    -3
      frontend/controllers/SiteController.php
  5. +4
    -4
      frontend/views/site/_about_few_numbers.php
  6. +14
    -15
      frontend/views/site/about.php
  7. +108
    -93
      frontend/web/css/screen.css
  8. +5
    -7
      frontend/web/js/frontend.js
  9. +20
    -7
      frontend/web/sass/screen.scss

+ 1
- 1
backend/views/layouts/header.php View File



<header class="main-header"> <header class="main-header">
<?= <?=
Html::a('<span class="logo-mini"><img src="' . Yii::$app->urlManagerBackend->getBaseUrl() . '/img/logosouke3.png" /></span><span class="logo-lg"><img src="' . Yii::$app->urlManagerBackend->getBaseUrl() . '/img/logosouke3.png" /></span>', Yii::$app->homeUrl, ['class' => 'logo'])
Html::a('<span class="logo-mini"><img src="' . Yii::$app->urlManagerBackend->getBaseUrl() . '/img/logo-souke.svg" /></span><span class="logo-lg"><img src="' . Yii::$app->urlManagerBackend->getBaseUrl() . '/img/logo-souke.svg" /></span>', Yii::$app->homeUrl, ['class' => 'logo'])
?> ?>





+ 2
- 2
backend/web/css/screen.css View File

} }
/* line 23, ../sass/_adminlte.scss */ /* line 23, ../sass/_adminlte.scss */
body.skin-black .main-header .logo .logo-lg img { body.skin-black .main-header .logo .logo-lg img {
width: 125px;
top: -2px;
width: 100px;
top: -4px;
} }
/* line 29, ../sass/_adminlte.scss */ /* line 29, ../sass/_adminlte.scss */
body.skin-black .main-header .logo .logo-mini img { body.skin-black .main-header .logo .logo-mini img {

+ 2
- 2
backend/web/sass/_adminlte.scss View File



.logo-lg { .logo-lg {
img { img {
width: 125px ;
top: -3px;
width: 100px ;
top: -4px;
} }
} }
.logo-mini { .logo-mini {

+ 3
- 3
frontend/controllers/SiteController.php View File



public function actionAbout() public function actionAbout()
{ {
$aboutFewNumbers = Yii::$app->cache->getOrSet('about_few_numbers8', function () {
$aboutFewNumbers = Yii::$app->cache->getOrSet('about_few_numbers10', function () {
$producerModule = $this->getProducerModule(); $producerModule = $this->getProducerModule();
$pointSaleModule = $this->getPointSaleModule(); $pointSaleModule = $this->getPointSaleModule();
$userModule = $this->getUserModule(); $userModule = $this->getUserModule();
$averageOrdersPerDay = $orderModule->countGlobalUserOrdersAverageLastSevenDays(); $averageOrdersPerDay = $orderModule->countGlobalUserOrdersAverageLastSevenDays();
$averageTurnover = $orderModule->getAverageTurnoverLastThreeMonths(); $averageTurnover = $orderModule->getAverageTurnoverLastThreeMonths();
$resultMatomoApiVisitSummary = json_decode(file_get_contents(Yii::$app->parameterBag->get('matomoApiVisitSummaryUrl'))); $resultMatomoApiVisitSummary = json_decode(file_get_contents(Yii::$app->parameterBag->get('matomoApiVisitSummaryUrl')));
$numberVisitsMonth = $resultMatomoApiVisitSummary->nb_uniq_visitors;
$numberVisitsByDay = $resultMatomoApiVisitSummary->nb_uniq_visitors / 30;


return $this->renderPartial('_about_few_numbers', [ return $this->renderPartial('_about_few_numbers', [
'countProducersActive' => $countProducersActive, 'countProducersActive' => $countProducersActive,
'countUsersActive' => $countUsersActive, 'countUsersActive' => $countUsersActive,
'averageOrdersPerDay' => $averageOrdersPerDay, 'averageOrdersPerDay' => $averageOrdersPerDay,
'averageTurnover' => $averageTurnover, 'averageTurnover' => $averageTurnover,
'numberVisitsMonth' => $numberVisitsMonth,
'numberVisitsByDay' => $numberVisitsByDay,
'timeSavedByProducersAverage' => $timeSavedByProducersAverage, 'timeSavedByProducersAverage' => $timeSavedByProducersAverage,
'countProducersWithOptionTimeSaved' => $countProducersWithOptionTimeSaved 'countProducersWithOptionTimeSaved' => $countProducersWithOptionTimeSaved
]); ]);

+ 4
- 4
frontend/views/site/_about_few_numbers.php View File

<?= few_numbers_item(few_numbers_format_number($averageOrdersPerDay), 'Commandes clients / jour', 'en moyenne sur les 7 derniers jours'); ?> <?= few_numbers_item(few_numbers_format_number($averageOrdersPerDay), 'Commandes clients / jour', 'en moyenne sur les 7 derniers jours'); ?>
</div> </div>
<div class="row"> <div class="row">
<?= few_numbers_item(few_numbers_format_number($averageTurnover).' €', 'CA producteurs / mois', 'moyenne sur les 3 derniers mois'); ?>
<?= few_numbers_item(few_numbers_format_number($numberVisitsMonth), 'Visiteurs', 'le mois dernier'); ?>
<?= few_numbers_item(few_numbers_format_number($numberVisitsByDay), 'Visiteurs / jour', 'le mois dernier'); ?>
<?= few_numbers_item(few_numbers_format_number($averageTurnover).' €', 'CA producteurs / mois', 'moyenne sur les 3 derniers mois'); ?>
</div> </div>
<?php if($countProducersWithOptionTimeSaved): ?> <?php if($countProducersWithOptionTimeSaved): ?>
<div class="row">
<!--<div class="row">
<?= few_numbers_item($timeSavedByProducersAverage.' h', 'Heures gagnées par semaine', 'moyenne sur '.$countProducersWithOptionTimeSaved.' producteur'.(($countProducersWithOptionTimeSaved) ? 's' : '')); ?> <?= few_numbers_item($timeSavedByProducersAverage.' h', 'Heures gagnées par semaine', 'moyenne sur '.$countProducersWithOptionTimeSaved.' producteur'.(($countProducersWithOptionTimeSaved) ? 's' : '')); ?>
</div>
</div>-->
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>

+ 14
- 15
frontend/views/site/about.php View File

?> ?>
<div class="panel panel-primary"> <div class="panel panel-primary">
<div class="panel-body"> <div class="panel-body">
<h2>Témoignages des producteurs</h2>
<div id="carousel-producers-testimonials" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<h2>Témoignages de producteurs</h2>
<div id="carousel-producers-testimonials" class="carousel slide" data-bs-ride="carousel">
<!--<ol class="carousel-indicators">
<?php for($i = 0; $i < $countProducersWithTestimony; $i++): ?> <?php for($i = 0; $i < $countProducersWithTestimony; $i++): ?>
<li data-target="#carousel-producers-testimonials" data-slide-to="<?= $i ?>" <?php if($i == 0): ?>class="active"<?php endif; ?>></li> <li data-target="#carousel-producers-testimonials" data-slide-to="<?= $i ?>" <?php if($i == 0): ?>class="active"<?php endif; ?>></li>
<?php endfor; ?> <?php endfor; ?>
</ol>

<div class="carousel-inner" role="listbox">
</ol>-->
<div class="carousel-inner">
<?php foreach($producersWithTestimonials as $key => $producerWithTestimony): ?> <?php foreach($producersWithTestimonials as $key => $producerWithTestimony): ?>
<div class="item<?php if($key == 0): ?> active<?php endif; ?>">
<div class="carousel-item<?php if($key == 0): ?> active<?php endif; ?>">
<div class="carousel-caption"> <div class="carousel-caption">
<div class="carousel-caption-inner"> <div class="carousel-caption-inner">
<img src="<?= Yii::$app->urlManagerProducer->getHostInfo() . '/' . Yii::$app->urlManagerProducer->baseUrl; ?>/uploads/<?= $producerWithTestimony->logo; ?>" alt="Logo <?= Html::encode($producerWithTestimony->name) ?>"/> <img src="<?= Yii::$app->urlManagerProducer->getHostInfo() . '/' . Yii::$app->urlManagerProducer->baseUrl; ?>/uploads/<?= $producerWithTestimony->logo; ?>" alt="Logo <?= Html::encode($producerWithTestimony->name) ?>"/>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>


<a class="left carousel-control" href="#carousel-producers-testimonials" role="button" data-slide="prev">
<i class="bi bi-chevron-left"></i>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-producers-testimonials" role="button" data-slide="next">
<i class="bi bi-chevron-right"></i>
<span class="sr-only">Next</span>
</a>
<button class="left carousel-control-prev" type="button" data-bs-target="#carousel-producers-testimonials" data-bs-slide="prev">
<i class="bi bi-chevron-left" aria-hidden="true"></i>
<span class="visually-hidden">Previous</span>
</button>
<button class="right carousel-control-next" type="button" data-bs-target="#carousel-producers-testimonials" data-bs-slide="next">
<i class="bi bi-chevron-right" aria-hidden="true"></i>
<span class="visually-hidden">Next</span>
</button>
</div> </div>
</div> </div>
</div> </div>

+ 108
- 93
frontend/web/css/screen.css View File

/* line 512, ../sass/screen.scss */ /* line 512, ../sass/screen.scss */
#content .panel .panel-heading { #content .panel .panel-heading {
border-bottom: 0px; border-bottom: 0px;
padding-top: 10px;
padding-bottom: 8px;
padding: 20px;
border-bottom: solid 1px #e0e0e0; border-bottom: solid 1px #e0e0e0;
} }
/* line 518, ../sass/screen.scss */
/* line 517, ../sass/screen.scss */
#content .panel .panel-heading h2.panel-title { #content .panel .panel-heading h2.panel-title {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
text-align: center; text-align: center;
} }
/* line 523, ../sass/screen.scss */
/* line 522, ../sass/screen.scss */
#content .panel .panel-heading h2.panel-title .img { #content .panel .panel-heading h2.panel-title .img {
height: 20px; height: 20px;
display: none; display: none;
} }
/* line 528, ../sass/screen.scss */
/* line 527, ../sass/screen.scss */
#content .panel .panel-heading h2.panel-title .glyphicon { #content .panel .panel-heading h2.panel-title .glyphicon {
font-size: 20px; font-size: 20px;
} }
/* line 532, ../sass/screen.scss */
/* line 531, ../sass/screen.scss */
#content .panel .panel-heading h2.panel-title span.the-title { #content .panel .panel-heading h2.panel-title span.the-title {
font-size: 26px; font-size: 26px;
position: relative; position: relative;
top: 0px; top: 0px;
text-transform: none; text-transform: none;
} }
/* line 541, ../sass/screen.scss */
/* line 540, ../sass/screen.scss */
#content .panel .panel-body { #content .panel .panel-body {
background-color: white; background-color: white;
padding: 50px; padding: 50px;
} }
/* line 545, ../sass/screen.scss */
/* line 544, ../sass/screen.scss */
#content .panel .panel-body p { #content .panel .panel-body p {
padding-bottom: 10px; padding-bottom: 10px;
} }
/* line 549, ../sass/screen.scss */
/* line 548, ../sass/screen.scss */
#content .panel .panel-body h2 { #content .panel .panel-body h2 {
font-size: 30px; font-size: 30px;
color: #e4ac07; color: #e4ac07;
} }
/* line 553, ../sass/screen.scss */
/* line 552, ../sass/screen.scss */
#content .panel .panel-body h2.first-title { #content .panel .panel-body h2.first-title {
margin-top: 0px; margin-top: 0px;
} }
/* line 559, ../sass/screen.scss */
/* line 558, ../sass/screen.scss */
#content .panel.panel-primary { #content .panel.panel-primary {
border: 0px none; border: 0px none;
border-bottom: solid 1px #e0e0e0; border-bottom: solid 1px #e0e0e0;
margin-bottom: 30px; margin-bottom: 30px;
} }
/* line 564, ../sass/screen.scss */
/* line 563, ../sass/screen.scss */
#content .panel.panel-primary .panel-heading { #content .panel.panel-primary .panel-heading {
padding: 50px;
padding-bottom: 20px;
border: 0px none; border: 0px none;
background-color: white; background-color: white;
padding-top: 15px;
padding-bottom: 8px;
} }
/* line 570, ../sass/screen.scss */
/* line 569, ../sass/screen.scss */
#content .panel.panel-primary .panel-heading h2.panel-title { #content .panel.panel-primary .panel-heading h2.panel-title {
color: #e4ac07; color: #e4ac07;
padding: 0px;
} }
/* line 573, ../sass/screen.scss */ /* line 573, ../sass/screen.scss */
#content .panel.panel-primary .panel-heading h2.panel-title .glyphicon { #content .panel.panel-primary .panel-heading h2.panel-title .glyphicon {
display: none; display: none;
} }
/* line 1034, ../sass/screen.scss */ /* line 1034, ../sass/screen.scss */
#content .site-about #carousel-producers-testimonials .carousel-control {
#content .site-about #carousel-producers-testimonials .carousel-control-next,
#content .site-about #carousel-producers-testimonials .carousel-control-prev {
background: none; background: none;
} }
/* line 1037, ../sass/screen.scss */
#content .site-about #carousel-producers-testimonials .carousel-control .bi {
font-size: 30px;
/* line 1039, ../sass/screen.scss */
#content .site-about #carousel-producers-testimonials .carousel-control-next .bi,
#content .site-about #carousel-producers-testimonials .carousel-control-prev .bi {
position: absolute;
top: 0px;
font-size: 35px;
color: black;
}
/* line 1046, ../sass/screen.scss */
#content .site-about #carousel-producers-testimonials .carousel-control-next.carousel-control-next .bi,
#content .site-about #carousel-producers-testimonials .carousel-control-prev.carousel-control-next .bi {
right: 0px;
}
/* line 1050, ../sass/screen.scss */
#content .site-about #carousel-producers-testimonials .carousel-control-next.carousel-control-prev .bi,
#content .site-about #carousel-producers-testimonials .carousel-control-prev.carousel-control-prev .bi {
left: 0px;
} }
/* line 1043, ../sass/screen.scss */
#content .site-about #carousel-producers-testimonials .item .carousel-caption {
/* line 1056, ../sass/screen.scss */
#content .site-about #carousel-producers-testimonials .carousel-item .carousel-caption {
top: 20px; top: 20px;
color: black; color: black;
text-shadow: none; text-shadow: none;
padding: 0px; padding: 0px;
} }
/* line 1049, ../sass/screen.scss */
#content .site-about #carousel-producers-testimonials .item .carousel-caption img {
/* line 1062, ../sass/screen.scss */
#content .site-about #carousel-producers-testimonials .carousel-item .carousel-caption img {
display: block; display: block;
width: 150px; width: 150px;
height: auto; height: auto;
margin: 0px auto 15px auto; margin: 0px auto 15px auto;
} }
/* line 1057, ../sass/screen.scss */
#content .site-about #carousel-producers-testimonials .item .carousel-caption .producer-testimony {
/* line 1070, ../sass/screen.scss */
#content .site-about #carousel-producers-testimonials .carousel-item .carousel-caption .producer-testimony {
margin-bottom: 12px; margin-bottom: 12px;
} }
/* line 1061, ../sass/screen.scss */
#content .site-about #carousel-producers-testimonials .item .carousel-caption .producer-details {
/* line 1074, ../sass/screen.scss */
#content .site-about #carousel-producers-testimonials .carousel-item .carousel-caption .producer-details {
font-style: italic; font-style: italic;
color: gray; color: gray;
} }
/* line 1065, ../sass/screen.scss */
#content .site-about #carousel-producers-testimonials .item .carousel-caption .producer-details .producer-name {
/* line 1078, ../sass/screen.scss */
#content .site-about #carousel-producers-testimonials .carousel-item .carousel-caption .producer-details .producer-name {
color: #ee6f42; color: #ee6f42;
} }


/* line 1075, ../sass/screen.scss */
/* line 1088, ../sass/screen.scss */
#content .site-service #panel-go-further { #content .site-service #panel-go-further {
text-align: center; text-align: center;
} }


/* line 1080, ../sass/screen.scss */
/* line 1093, ../sass/screen.scss */
#content #mentions { #content #mentions {
padding-top: 20px; padding-top: 20px;
} }
/* line 1083, ../sass/screen.scss */
/* line 1096, ../sass/screen.scss */
#content #mentions div.content { #content #mentions div.content {
width: 60%; width: 60%;
font-size: 90%; font-size: 90%;
} }
/* line 1088, ../sass/screen.scss */
/* line 1101, ../sass/screen.scss */
#content #mentions p { #content #mentions p {
padding-bottom: 15px; padding-bottom: 15px;
} }
/* line 1092, ../sass/screen.scss */
/* line 1105, ../sass/screen.scss */
#content #mentions h2 { #content #mentions h2 {
color: black; color: black;
padding-bottom: 40px; padding-bottom: 40px;
line-height: 35px; line-height: 35px;
font-family: 'highvoltageregular'; font-family: 'highvoltageregular';
} }
/* line 1100, ../sass/screen.scss */
/* line 1113, ../sass/screen.scss */
#content #mentions h3 { #content #mentions h3 {
font-family: "highvoltageregular"; font-family: "highvoltageregular";
font-size: 18px; font-size: 18px;
color: black; color: black;
} }


/* line 1115, ../sass/screen.scss */
/* line 1128, ../sass/screen.scss */
.vegas-loading { .vegas-loading {
display: none; display: none;
} }


/* line 1122, ../sass/screen.scss */
/* line 1135, ../sass/screen.scss */
#profil-user .form-group.field-user-no_mail label { #profil-user .form-group.field-user-no_mail label {
font-weight: normal; font-weight: normal;
} }
/* line 1126, ../sass/screen.scss */
/* line 1139, ../sass/screen.scss */
#profil-user .form-group label { #profil-user .form-group label {
cursor: pointer; cursor: pointer;
} }
/* line 1131, ../sass/screen.scss */
/* line 1144, ../sass/screen.scss */
#profil-user #mails-days-distribution .form-group { #profil-user #mails-days-distribution .form-group {
float: left; float: left;
margin-right: 15px; margin-right: 15px;
} }
/* line 1135, ../sass/screen.scss */
/* line 1148, ../sass/screen.scss */
#profil-user #mails-days-distribution .form-group label { #profil-user #mails-days-distribution .form-group label {
font-weight: normal; font-weight: normal;
} }
/* line 1141, ../sass/screen.scss */
/* line 1154, ../sass/screen.scss */
#profil-user p.strong { #profil-user p.strong {
font-weight: bold; font-weight: bold;
} }
/* line 1145, ../sass/screen.scss */
/* line 1158, ../sass/screen.scss */
#profil-user h2 { #profil-user h2 {
text-transform: none; text-transform: none;
font-size: 25px; font-size: 25px;
} }
/* line 1149, ../sass/screen.scss */
/* line 1162, ../sass/screen.scss */
#profil-user h2:first-child { #profil-user h2:first-child {
margin-top: 0px; margin-top: 0px;
} }


/* login */ /* login */
/* line 1160, ../sass/screen.scss */
/* line 1173, ../sass/screen.scss */
.back-white, .site-login .col-lg-5, .site-signup .col-lg-5 { .back-white, .site-login .col-lg-5, .site-signup .col-lg-5 {
background-color: white; background-color: white;
padding: 30px; padding: 30px;
border-radius: 5px; border-radius: 5px;
} }


/* line 1167, ../sass/screen.scss */
/* line 1180, ../sass/screen.scss */
.site-login .col-lg-5 { .site-login .col-lg-5 {
margin: 0px auto; margin: 0px auto;
float: none; float: none;
} }


/* signup */ /* signup */
/* line 1177, ../sass/screen.scss */
/* line 1190, ../sass/screen.scss */
.modal-backdrop { .modal-backdrop {
z-index: 999; z-index: 999;
} }


/* line 1182, ../sass/screen.scss */
/* line 1195, ../sass/screen.scss */
.site-signup .col-lg-5 { .site-signup .col-lg-5 {
margin: 0px auto; margin: 0px auto;
float: none; float: none;
max-width: 500px; max-width: 500px;
} }


/* line 1192, ../sass/screen.scss */
/* line 1205, ../sass/screen.scss */
#modal-cgv .modal-body h2 { #modal-cgv .modal-body h2 {
margin-bottom: 5px; margin-bottom: 5px;
padding-bottom: 0px; padding-bottom: 0px;
margin-top: 0px; margin-top: 0px;
} }


/* line 1202, ../sass/screen.scss */
/* line 1215, ../sass/screen.scss */
#form-signup #user-producer { #form-signup #user-producer {
margin-bottom: 30px; margin-bottom: 30px;
} }
/* line 1207, ../sass/screen.scss */
/* line 1220, ../sass/screen.scss */
#form-signup #signupform-id_producer option:disabled { #form-signup #signupform-id_producer option:disabled {
font-weight: bold; font-weight: bold;
color: black; color: black;
} }
/* line 1213, ../sass/screen.scss */
/* line 1226, ../sass/screen.scss */
#form-signup #champs-producer { #form-signup #champs-producer {
display: none; display: none;
} }
/* line 1217, ../sass/screen.scss */
/* line 1230, ../sass/screen.scss */
#form-signup #buttons-signup { #form-signup #buttons-signup {
margin-top: 30px; margin-top: 30px;
} }
/* line 1221, ../sass/screen.scss */
/* line 1234, ../sass/screen.scss */
#form-signup .field-signupform-is_test { #form-signup .field-signupform-is_test {
display: none; display: none;
} }


/* line 1226, ../sass/screen.scss */
/* line 1239, ../sass/screen.scss */
#col-left { #col-left {
padding: 0px; padding: 0px;
z-index: 15; z-index: 15;
} }
/* line 1230, ../sass/screen.scss */
/* line 1243, ../sass/screen.scss */
#col-left .affix { #col-left .affix {
width: 25%; width: 25%;
border-right: solid 1px #e0e0e0; border-right: solid 1px #e0e0e0;
background-color: #FAFAFA; background-color: #FAFAFA;
height: 100%; height: 100%;
} }
/* line 1237, ../sass/screen.scss */
/* line 1250, ../sass/screen.scss */
#col-left #link-home { #col-left #link-home {
text-decoration: none; text-decoration: none;
font-size: 22px; font-size: 22px;
padding: 10px; padding: 10px;
background-color: #e4ac07; background-color: #e4ac07;
} }
/* line 1245, ../sass/screen.scss */
/* line 1258, ../sass/screen.scss */
#col-left #link-home img { #col-left #link-home img {
height: 50px; height: 50px;
margin-bottom: 5px; margin-bottom: 5px;
float: left; float: left;
} }
/* line 1251, ../sass/screen.scss */
/* line 1264, ../sass/screen.scss */
#col-left #link-home .text { #col-left #link-home .text {
padding-left: 62px; padding-left: 62px;
} }
/* line 1254, ../sass/screen.scss */
/* line 1267, ../sass/screen.scss */
#col-left #link-home .text .bap { #col-left #link-home .text .bap {
font-family: "comfortaalight"; font-family: "comfortaalight";
font-size: 24px; font-size: 24px;
} }
/* line 1259, ../sass/screen.scss */
/* line 1272, ../sass/screen.scss */
#col-left #link-home .text .plateforme { #col-left #link-home .text .plateforme {
font-size: 17px; font-size: 17px;
font-family: "myriadpro-light"; font-family: "myriadpro-light";
color: #ee6f42; color: #ee6f42;
} }
/* line 1267, ../sass/screen.scss */
/* line 1280, ../sass/screen.scss */
#col-left h2 { #col-left h2 {
font-family: 'myriadpro-regular'; font-family: 'myriadpro-regular';
color: black; color: black;
margin-bottom: 10px; margin-bottom: 10px;
padding: 15px 0px 5px 15px; padding: 15px 0px 5px 15px;
} }
/* line 1275, ../sass/screen.scss */
/* line 1288, ../sass/screen.scss */
#col-left #links { #col-left #links {
background-color: white; background-color: white;
margin-bottom: 20px; margin-bottom: 20px;
} }
/* line 1281, ../sass/screen.scss */
/* line 1294, ../sass/screen.scss */
#col-left #links ul li a { #col-left #links ul li a {
text-align: center; text-align: center;
border-right: solid 1px #e0e0e0; border-right: solid 1px #e0e0e0;
} }
/* line 1285, ../sass/screen.scss */
/* line 1298, ../sass/screen.scss */
#col-left #links ul li a:hover { #col-left #links ul li a:hover {
background-color: #ee6f42; background-color: #ee6f42;
color: white; color: white;
} }
/* line 1291, ../sass/screen.scss */
/* line 1304, ../sass/screen.scss */
#col-left #links ul li:last-child a { #col-left #links ul li:last-child a {
border-right: 0px none; border-right: 0px none;
} }
/* line 1301, ../sass/screen.scss */
/* line 1314, ../sass/screen.scss */
#col-left #producers nav.nav-producers ul li a { #col-left #producers nav.nav-producers ul li a {
padding-left: 50px; padding-left: 50px;
height: 40px; height: 40px;
} }
/* line 1307, ../sass/screen.scss */
/* line 1320, ../sass/screen.scss */
#col-left #producers nav.nav-producers ul li.active a { #col-left #producers nav.nav-producers ul li.active a {
background-color: #ee6f42; background-color: #ee6f42;
position: relative; position: relative;
color: white; color: white;
} }
/* line 1312, ../sass/screen.scss */
/* line 1325, ../sass/screen.scss */
#col-left #producers nav.nav-producers ul li.active a:after { #col-left #producers nav.nav-producers ul li.active a:after {
right: -40px; right: -40px;
top: 50%; top: 50%;
border-width: 20px; border-width: 20px;
margin-top: -20px; margin-top: -20px;
} }
/* line 1331, ../sass/screen.scss */
/* line 1344, ../sass/screen.scss */
#col-left ul { #col-left ul {
list-style-type: none; list-style-type: none;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
} }
/* line 1336, ../sass/screen.scss */
/* line 1349, ../sass/screen.scss */
#col-left ul li { #col-left ul li {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
} }
/* line 1340, ../sass/screen.scss */
/* line 1353, ../sass/screen.scss */
#col-left ul li a { #col-left ul li a {
text-decoration: none; text-decoration: none;
font-family: 'comfortaaregular'; font-family: 'comfortaaregular';
display: block; display: block;
color: black; color: black;
} }
/* line 1350, ../sass/screen.scss */
/* line 1363, ../sass/screen.scss */
#col-left ul li a span.name, #col-left ul li a span.wording { #col-left ul li a span.name, #col-left ul li a span.wording {
display: none; display: none;
} }
/* line 1357, ../sass/screen.scss */
/* line 1370, ../sass/screen.scss */
#col-left p { #col-left p {
padding: 20px; padding: 20px;
padding-top: 0px; padding-top: 0px;
color: gray; color: gray;
} }


/* line 1365, ../sass/screen.scss */
/* line 1378, ../sass/screen.scss */
#content .header-title { #content .header-title {
height: 79px; height: 79px;
padding: 20px 20px; padding: 20px 20px;
-webkit-box-shadow: 0px 0px 8px #e0e0e0; -webkit-box-shadow: 0px 0px 8px #e0e0e0;
box-shadow: 0px 0px 8px #e0e0e0; box-shadow: 0px 0px 8px #e0e0e0;
} }
/* line 1377, ../sass/screen.scss */
/* line 1390, ../sass/screen.scss */
#content .header-title h1 { #content .header-title h1 {
color: black; color: black;
font-family: 'myriadpro-regular'; font-family: 'myriadpro-regular';
font-size: 25px; font-size: 25px;
text-transform: uppercase; text-transform: uppercase;
} }
/* line 1385, ../sass/screen.scss */
/* line 1398, ../sass/screen.scss */
#content .header-title h2 { #content .header-title h2 {
color: gray; color: gray;
text-transform: none; text-transform: none;
line-height: 20px; line-height: 20px;
} }


/* line 1396, ../sass/screen.scss */
/* line 1409, ../sass/screen.scss */
.header-producer { .header-producer {
z-index: 1; z-index: 1;
} }
/* line 1399, ../sass/screen.scss */
/* line 1412, ../sass/screen.scss */
.header-producer #block-main-img { .header-producer #block-main-img {
height: 144px; height: 144px;
overflow: hidden; overflow: hidden;
} }
/* line 1403, ../sass/screen.scss */
/* line 1416, ../sass/screen.scss */
.header-producer #block-main-img #main-img { .header-producer #block-main-img #main-img {
width: 100%; width: 100%;
height: auto; height: auto;
-webkit-border-radius: 0px; -webkit-border-radius: 0px;
border-radius: 0px; border-radius: 0px;
} }
/* line 1412, ../sass/screen.scss */
/* line 1425, ../sass/screen.scss */
.header-producer h1 { .header-producer h1 {
font-family: 'comfortaaregular'; font-family: 'comfortaaregular';
text-align: center; text-align: center;
top: 30px; top: 30px;
left: 40px; left: 40px;
} }
/* line 1419, ../sass/screen.scss */
/* line 1432, ../sass/screen.scss */
.header-producer h1 span { .header-producer h1 span {
background-color: rgba(255, 255, 255, 0.8); background-color: rgba(255, 255, 255, 0.8);
padding: 10px 30px; padding: 10px 30px;
border: dotted 1px black; border: dotted 1px black;
} }


/* line 1430, ../sass/screen.scss */
/* line 1443, ../sass/screen.scss */
nav#menu-producer { nav#menu-producer {
border-bottom: solid 1px #e0e0e0; border-bottom: solid 1px #e0e0e0;
} }
/* line 1434, ../sass/screen.scss */
/* line 1447, ../sass/screen.scss */
nav#menu-producer ul li { nav#menu-producer ul li {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
} }
/* line 1438, ../sass/screen.scss */
/* line 1451, ../sass/screen.scss */
nav#menu-producer ul li a { nav#menu-producer ul li a {
border-right: solid 1px #e0e0e0; border-right: solid 1px #e0e0e0;
text-decoration: none; text-decoration: none;
-webkit-border-radius: 0px; -webkit-border-radius: 0px;
border-radius: 0px; border-radius: 0px;
} }
/* line 1443, ../sass/screen.scss */
/* line 1456, ../sass/screen.scss */
nav#menu-producer ul li a:hover { nav#menu-producer ul li a:hover {
background-color: #ee6f42; background-color: #ee6f42;
color: white; color: white;
} }


/* line 1453, ../sass/screen.scss */
/* line 1466, ../sass/screen.scss */
.site-contact .col-lg-6 { .site-contact .col-lg-6 {
margin: 0px auto; margin: 0px auto;
float: none; float: none;
} }
/* line 1458, ../sass/screen.scss */
/* line 1471, ../sass/screen.scss */
.site-contact .form-group.submit { .site-contact .form-group.submit {
text-align: right; text-align: right;
} }
/* line 1462, ../sass/screen.scss */
/* line 1475, ../sass/screen.scss */
.site-contact .alert-warning { .site-contact .alert-warning {
margin-top: 22px; margin-top: 22px;
border: 0px none; border: 0px none;
padding: 20px; padding: 20px;
} }


/* line 1473, ../sass/screen.scss */
/* line 1486, ../sass/screen.scss */
.site-opinion .col-lg-6 { .site-opinion .col-lg-6 {
margin: 0px auto; margin: 0px auto;
float: none; float: none;
} }
/* line 1478, ../sass/screen.scss */
/* line 1491, ../sass/screen.scss */
.site-opinion .field-opinionform-istest { .site-opinion .field-opinionform-istest {
display: none; display: none;
} }
/* line 1482, ../sass/screen.scss */
/* line 1495, ../sass/screen.scss */
.site-opinion .form-group.submit { .site-opinion .form-group.submit {
text-align: center; text-align: center;
} }


/* line 1489, ../sass/screen.scss */
/* line 1502, ../sass/screen.scss */
#site-prices .panel p { #site-prices .panel p {
padding-bottom: 0px; padding-bottom: 0px;
} }


/* line 1496, ../sass/screen.scss */
/* line 1509, ../sass/screen.scss */
#contact-form .field-contactform-istest { #contact-form .field-contactform-istest {
display: none; display: none;
} }

+ 5
- 7
frontend/web/js/frontend.js View File

$block = app.getBlock(); $block = app.getBlock();


// init carousel // init carousel
//$block.carousel();
new bootstrap.Carousel("#carousel-producers-testimonials"); new bootstrap.Carousel("#carousel-producers-testimonials");


// event on slide : init height // event on slide : init height
app.eventSlide(); app.eventSlide();
//$block.on('slid.bs.carousel', function () { app.eventSlide();});
carousel = document.getElementById('carousel-producers-testimonials');
carousel.addEventListener('slide.bs.carousel', function() {
var carousel = document.getElementById('carousel-producers-testimonials');
carousel.addEventListener('slid.bs.carousel', function() {
app.eventSlide(); app.eventSlide();
}); });
}, },
eventSlide: function() { eventSlide: function() {
var heightCurrentItem = this.getBlock('.item.active .carousel-caption-inner').height() + 50;
var heightCurrentItem = this.getBlock('.carousel-item.active .carousel-caption-inner').height() + 50;


this.getBlock().height(heightCurrentItem); this.getBlock().height(heightCurrentItem);
this.getBlock('.item.active').height(heightCurrentItem);
this.getBlock('.item.active .carousel-caption').height(heightCurrentItem);
this.getBlock('.carousel-item.active').height(heightCurrentItem);
this.getBlock('.carousel-item.active .carousel-caption').height(heightCurrentItem);
} }
}; };



+ 20
- 7
frontend/web/sass/screen.scss View File



.panel-heading { .panel-heading {
border-bottom: 0px; border-bottom: 0px;
padding-top: 10px;
padding-bottom: 8px;
padding: 20px;
border-bottom: solid 1px #e0e0e0; border-bottom: solid 1px #e0e0e0;


h2.panel-title { h2.panel-title {
margin-bottom: 30px; margin-bottom: 30px;


.panel-heading { .panel-heading {
padding: 50px;
padding-bottom: 20px;
border: 0px none; border: 0px none;
background-color: white; background-color: white;
padding-top: 15px;
padding-bottom: 8px;


h2.panel-title { h2.panel-title {
color: $color-secondary; color: $color-secondary;
padding: 0px;


.glyphicon { .glyphicon {
font-size: 30px; font-size: 30px;
display: none; display: none;
} }


.carousel-control {
.carousel-control-next,
.carousel-control-prev {

background: none; background: none;


.bi { .bi {
font-size: 30px;
position: absolute;
top: 0px;
font-size: 35px;
color: black;
}

&.carousel-control-next .bi {
right: 0px;
}

&.carousel-control-prev .bi {
left: 0px;
} }
} }


.item {
.carousel-item {
.carousel-caption { .carousel-caption {
top: 20px; top: 20px;
color: $color-text; color: $color-text;

Loading…
Cancel
Save