Browse Source

Message "Découvrez les producteurs"

Affichage d'un messagez invitant les utilisateurs à parcourir les producteurs lorsqu'ils n'ont aucun producteur dans leurs favoris.
refactoring
keun 6 years ago
parent
commit
1e86534861
4 changed files with 93 additions and 58 deletions
  1. +5
    -2
      frontend/views/layouts/main.php
  2. BIN
      frontend/web/.sass-cache/a737daaa3b038cd28cb74dc0777f663fd8a4a5ae/screen.scssc
  3. +72
    -56
      frontend/web/css/screen.css
  4. +16
    -0
      frontend/web/sass/screen.scss

+ 5
- 2
frontend/views/layouts/main.php View File

<?php if(!Yii::$app->user->isGuest): ?> <?php if(!Yii::$app->user->isGuest): ?>
<section id="favorite-producers"> <section id="favorite-producers">
<div class="container"> <div class="container">
<h2>Mes producteurs</h2>
<?php <?php
$producers = Etablissement::find() $producers = Etablissement::find()
->joinWith(['userEtablissement user_etablissement']) ->joinWith(['userEtablissement user_etablissement'])
->all() ; ->all() ;
?> ?>
<?php if(count($producers)): ?> <?php if(count($producers)): ?>
<h2>Mes producteurs</h2>
<?php foreach($producers as $producer): ?> <?php foreach($producers as $producer): ?>
<div class="col-md-<?php if(count($producers) == 1): ?>6<?php elseif(count($producers) == 2): ?>6<?php else: ?>3<?php endif; ?>"> <div class="col-md-<?php if(count($producers) == 1): ?>6<?php elseif(count($producers) == 2): ?>6<?php else: ?>3<?php endif; ?>">
<div class="producer" style="background-image:url('<?= Yii::$app->urlManagerProducer->baseUrl ?>/uploads/<?= $producer->photo ?>');">> <div class="producer" style="background-image:url('<?= Yii::$app->urlManagerProducer->baseUrl ?>/uploads/<?= $producer->photo ?>');">>
</div> </div>
<?php endforeach;?> <?php endforeach;?>
<?php else: ?> <?php else: ?>

<div id="discover">
<p>Vous n'avez aucun producteur dans vos favoris : </p>
<a class="btn btn-default btn-lg" href="<?= Yii::$app->urlManager->createUrl(['site/producers']); ?>"><span class="glyphicon glyphicon-grain"></span> Découvrez les producteurs</a>
</div>
<?php endif; ?> <?php endif; ?>
<div class="clr"></div> <div class="clr"></div>
</div> </div>

BIN
frontend/web/.sass-cache/a737daaa3b038cd28cb74dc0777f663fd8a4a5ae/screen.scssc View File


+ 72
- 56
frontend/web/css/screen.css View File

border-color: #F8F1DD; border-color: #F8F1DD;
color: #BB8757; color: #BB8757;
} }
/* line 543, ../sass/screen.scss */
#favorite-producers #discover {
padding-bottom: 20px;
text-align: center;
}
/* line 547, ../sass/screen.scss */
#favorite-producers #discover p {
padding-bottom: 0px;
color: #F8F1DD;
}
/* line 552, ../sass/screen.scss */
#favorite-producers #discover .btn {
background-color: #F8F1DD;
color: #BB8757;
border: solid 1px #F8F1DD;
}


/* line 545, ../sass/screen.scss */
/* line 561, ../sass/screen.scss */
#footer { #footer {
width: 100%; width: 100%;
background-color: #F8F1DD; background-color: #F8F1DD;
padding-top: 30px; padding-top: 30px;
padding-bottom: 17px; padding-bottom: 17px;
} }
/* line 553, ../sass/screen.scss */
/* line 569, ../sass/screen.scss */
#footer a { #footer a {
font-family: "myriadpro-regular"; font-family: "myriadpro-regular";
color: #7e7e7e; color: #7e7e7e;
border-right: solid 1px #7e7e7e; border-right: solid 1px #7e7e7e;
border-right: solid 1px white; border-right: solid 1px white;
} }
/* line 564, ../sass/screen.scss */
/* line 580, ../sass/screen.scss */
#footer a:hover { #footer a:hover {
color: gray; color: gray;
} }
/* line 568, ../sass/screen.scss */
/* line 584, ../sass/screen.scss */
#footer a:last-child { #footer a:last-child {
border: 0px none; border: 0px none;
} }


/* line 574, ../sass/screen.scss */
/* line 590, ../sass/screen.scss */
#content #mentions { #content #mentions {
padding-top: 20px; padding-top: 20px;
} }
/* line 577, ../sass/screen.scss */
/* line 593, ../sass/screen.scss */
#content #mentions div.content { #content #mentions div.content {
width: 60%; width: 60%;
font-size: 90%; font-size: 90%;
} }
/* line 582, ../sass/screen.scss */
/* line 598, ../sass/screen.scss */
#content #mentions p { #content #mentions p {
padding-bottom: 15px; padding-bottom: 15px;
} }
/* line 586, ../sass/screen.scss */
/* line 602, ../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: "myriadpro-regular"; font-family: "myriadpro-regular";
} }
/* line 594, ../sass/screen.scss */
/* line 610, ../sass/screen.scss */
#content #mentions h3 { #content #mentions h3 {
font-family: "comfortaaregular"; font-family: "comfortaaregular";
font-size: 18px; font-size: 18px;
color: black; color: black;
} }


/* line 605, ../sass/screen.scss */
/* line 621, ../sass/screen.scss */
.mentions #main, .mentions body { .mentions #main, .mentions body {
background-color: white; background-color: white;
} }


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


/* line 617, ../sass/screen.scss */
/* line 633, ../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 621, ../sass/screen.scss */
/* line 637, ../sass/screen.scss */
#profil-user .form-group label { #profil-user .form-group label {
cursor: pointer; cursor: pointer;
} }
/* line 626, ../sass/screen.scss */
/* line 642, ../sass/screen.scss */
#profil-user #mails-jours-prod .form-group { #profil-user #mails-jours-prod .form-group {
float: left; float: left;
margin-right: 15px; margin-right: 15px;
} }
/* line 629, ../sass/screen.scss */
/* line 645, ../sass/screen.scss */
#profil-user #mails-jours-prod .form-group label { #profil-user #mails-jours-prod .form-group label {
font-weight: normal; font-weight: normal;
} }
/* line 635, ../sass/screen.scss */
/* line 651, ../sass/screen.scss */
#profil-user p.strong { #profil-user p.strong {
font-weight: bold; font-weight: bold;
} }


/* login */ /* login */
/* line 644, ../sass/screen.scss */
/* line 660, ../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 652, ../sass/screen.scss */
/* line 668, ../sass/screen.scss */
.modal-backdrop { .modal-backdrop {
z-index: 999; z-index: 999;
} }


/* line 657, ../sass/screen.scss */
/* line 673, ../sass/screen.scss */
.site-signup .col-lg-5 { .site-signup .col-lg-5 {
margin: 0px auto; margin: 0px auto;
float: none; float: none;
} }


/* line 667, ../sass/screen.scss */
/* line 683, ../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 677, ../sass/screen.scss */
/* line 693, ../sass/screen.scss */
#form-signup #client-boulanger { #form-signup #client-boulanger {
margin-bottom: 30px; margin-bottom: 30px;
} }
/* line 682, ../sass/screen.scss */
/* line 698, ../sass/screen.scss */
#form-signup #signupform-id_etablissement option:disabled { #form-signup #signupform-id_etablissement option:disabled {
font-weight: bold; font-weight: bold;
color: black; color: black;
} }
/* line 688, ../sass/screen.scss */
/* line 704, ../sass/screen.scss */
#form-signup #champs-boulanger { #form-signup #champs-boulanger {
display: none; display: none;
} }
/* line 692, ../sass/screen.scss */
/* line 708, ../sass/screen.scss */
#form-signup #boutons-inscrire { #form-signup #boutons-inscrire {
margin-top: 30px; margin-top: 30px;
} }


/* line 697, ../sass/screen.scss */
/* line 713, ../sass/screen.scss */
#col-left { #col-left {
padding: 0px; padding: 0px;
z-index: 15; z-index: 15;
} }
/* line 701, ../sass/screen.scss */
/* line 717, ../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 708, ../sass/screen.scss */
/* line 724, ../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: #F8F1DD; background-color: #F8F1DD;
} }
/* line 716, ../sass/screen.scss */
/* line 732, ../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 722, ../sass/screen.scss */
/* line 738, ../sass/screen.scss */
#col-left #link-home .text { #col-left #link-home .text {
padding-left: 62px; padding-left: 62px;
} }
/* line 725, ../sass/screen.scss */
/* line 741, ../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 730, ../sass/screen.scss */
/* line 746, ../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: #BB8757; color: #BB8757;
} }
/* line 738, ../sass/screen.scss */
/* line 754, ../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 746, ../sass/screen.scss */
/* line 762, ../sass/screen.scss */
#col-left #links { #col-left #links {
background-color: white; background-color: white;
margin-bottom: 20px; margin-bottom: 20px;
} }
/* line 752, ../sass/screen.scss */
/* line 768, ../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 756, ../sass/screen.scss */
/* line 772, ../sass/screen.scss */
#col-left #links ul li a:hover { #col-left #links ul li a:hover {
background-color: #BB8757; background-color: #BB8757;
color: white; color: white;
} }
/* line 762, ../sass/screen.scss */
/* line 778, ../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 772, ../sass/screen.scss */
/* line 788, ../sass/screen.scss */
#col-left #producteurs nav.nav-producteurs ul li a { #col-left #producteurs nav.nav-producteurs ul li a {
padding-left: 50px; padding-left: 50px;
height: 40px; height: 40px;
} }
/* line 778, ../sass/screen.scss */
/* line 794, ../sass/screen.scss */
#col-left #producteurs nav.nav-producteurs ul li.active a { #col-left #producteurs nav.nav-producteurs ul li.active a {
background-color: #BB8757; background-color: #BB8757;
position: relative; position: relative;
color: white; color: white;
} }
/* line 783, ../sass/screen.scss */
/* line 799, ../sass/screen.scss */
#col-left #producteurs nav.nav-producteurs ul li.active a:after { #col-left #producteurs nav.nav-producteurs 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 802, ../sass/screen.scss */
/* line 818, ../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 806, ../sass/screen.scss */
/* line 822, ../sass/screen.scss */
#col-left ul li { #col-left ul li {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
} }
/* line 809, ../sass/screen.scss */
/* line 825, ../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 819, ../sass/screen.scss */
/* line 835, ../sass/screen.scss */
#col-left ul li a span.nom, #col-left ul li a span.libelle { #col-left ul li a span.nom, #col-left ul li a span.libelle {
display: none; display: none;
} }
/* line 826, ../sass/screen.scss */
/* line 842, ../sass/screen.scss */
#col-left p { #col-left p {
padding: 20px; padding: 20px;
padding-top: 0px; padding-top: 0px;
color: gray; color: gray;
} }


/* line 834, ../sass/screen.scss */
/* line 850, ../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 846, ../sass/screen.scss */
/* line 862, ../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 854, ../sass/screen.scss */
/* line 870, ../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 865, ../sass/screen.scss */
/* line 881, ../sass/screen.scss */
.header-etablissement { .header-etablissement {
z-index: 1; z-index: 1;
} }
/* line 867, ../sass/screen.scss */
/* line 883, ../sass/screen.scss */
.header-etablissement #block-main-img { .header-etablissement #block-main-img {
height: 144px; height: 144px;
overflow: hidden; overflow: hidden;
} }
/* line 871, ../sass/screen.scss */
/* line 887, ../sass/screen.scss */
.header-etablissement #block-main-img #main-img { .header-etablissement #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 880, ../sass/screen.scss */
/* line 896, ../sass/screen.scss */
.header-etablissement h1 { .header-etablissement h1 {
font-family: "comfortaaregular"; font-family: "comfortaaregular";
text-align: center; text-align: center;
top: 30px; top: 30px;
left: 40px; left: 40px;
} }
/* line 887, ../sass/screen.scss */
/* line 903, ../sass/screen.scss */
.header-etablissement h1 span { .header-etablissement 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 898, ../sass/screen.scss */
/* line 914, ../sass/screen.scss */
nav#menu-etablissement { nav#menu-etablissement {
border-bottom: solid 1px #e0e0e0; border-bottom: solid 1px #e0e0e0;
} }
/* line 902, ../sass/screen.scss */
/* line 918, ../sass/screen.scss */
nav#menu-etablissement ul li { nav#menu-etablissement ul li {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
} }
/* line 905, ../sass/screen.scss */
/* line 921, ../sass/screen.scss */
nav#menu-etablissement ul li a { nav#menu-etablissement 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 910, ../sass/screen.scss */
/* line 926, ../sass/screen.scss */
nav#menu-etablissement ul li a:hover { nav#menu-etablissement ul li a:hover {
background-color: #BB8757; background-color: #BB8757;
color: white; color: white;

+ 16
- 0
frontend/web/sass/screen.scss View File

} }
} }
} }
#discover {
padding-bottom: 20px ;
text-align: center ;
p {
padding-bottom: 0px ;
color: $color2 ;
}
.btn {
background-color: $color2 ;
color: $color1 ;
border: solid 1px $color2 ;
}
}
} }





Loading…
Cancel
Save