浏览代码

Message "Découvrez les producteurs"

Affichage d'un messagez invitant les utilisateurs à parcourir les producteurs lorsqu'ils n'ont aucun producteur dans leurs favoris.
dev
keun 6 年前
父节点
当前提交
1e86534861
共有 4 个文件被更改,包括 93 次插入58 次删除
  1. +5
    -2
      frontend/views/layouts/main.php
  2. 二进制
      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 查看文件

@@ -109,7 +109,6 @@ $is_home = (Yii::$app->controller->id == 'site' && Yii::$app->controller->action
<?php if(!Yii::$app->user->isGuest): ?>
<section id="favorite-producers">
<div class="container">
<h2>Mes producteurs</h2>
<?php
$producers = Etablissement::find()
->joinWith(['userEtablissement user_etablissement'])
@@ -121,6 +120,7 @@ $is_home = (Yii::$app->controller->id == 'site' && Yii::$app->controller->action
->all() ;
?>
<?php if(count($producers)): ?>
<h2>Mes producteurs</h2>
<?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="producer" style="background-image:url('<?= Yii::$app->urlManagerProducer->baseUrl ?>/uploads/<?= $producer->photo ?>');">>
@@ -129,7 +129,10 @@ $is_home = (Yii::$app->controller->id == 'site' && Yii::$app->controller->action
</div>
<?php endforeach;?>
<?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; ?>
<div class="clr"></div>
</div>

二进制
frontend/web/.sass-cache/a737daaa3b038cd28cb74dc0777f663fd8a4a5ae/screen.scssc 查看文件


+ 72
- 56
frontend/web/css/screen.css 查看文件

@@ -552,8 +552,24 @@ ul li {
border-color: #F8F1DD;
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 {
width: 100%;
background-color: #F8F1DD;
@@ -562,7 +578,7 @@ ul li {
padding-top: 30px;
padding-bottom: 17px;
}
/* line 553, ../sass/screen.scss */
/* line 569, ../sass/screen.scss */
#footer a {
font-family: "myriadpro-regular";
color: #7e7e7e;
@@ -575,29 +591,29 @@ ul li {
border-right: solid 1px #7e7e7e;
border-right: solid 1px white;
}
/* line 564, ../sass/screen.scss */
/* line 580, ../sass/screen.scss */
#footer a:hover {
color: gray;
}
/* line 568, ../sass/screen.scss */
/* line 584, ../sass/screen.scss */
#footer a:last-child {
border: 0px none;
}

/* line 574, ../sass/screen.scss */
/* line 590, ../sass/screen.scss */
#content #mentions {
padding-top: 20px;
}
/* line 577, ../sass/screen.scss */
/* line 593, ../sass/screen.scss */
#content #mentions div.content {
width: 60%;
font-size: 90%;
}
/* line 582, ../sass/screen.scss */
/* line 598, ../sass/screen.scss */
#content #mentions p {
padding-bottom: 15px;
}
/* line 586, ../sass/screen.scss */
/* line 602, ../sass/screen.scss */
#content #mentions h2 {
color: black;
padding-bottom: 40px;
@@ -605,7 +621,7 @@ ul li {
line-height: 35px;
font-family: "myriadpro-regular";
}
/* line 594, ../sass/screen.scss */
/* line 610, ../sass/screen.scss */
#content #mentions h3 {
font-family: "comfortaaregular";
font-size: 18px;
@@ -614,58 +630,58 @@ ul li {
color: black;
}

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

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

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

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

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

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

/* line 667, ../sass/screen.scss */
/* line 683, ../sass/screen.scss */
#modal-cgv .modal-body h2 {
margin-bottom: 5px;
padding-bottom: 0px;
@@ -673,37 +689,37 @@ ul li {
margin-top: 0px;
}

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

/* line 697, ../sass/screen.scss */
/* line 713, ../sass/screen.scss */
#col-left {
padding: 0px;
z-index: 15;
}
/* line 701, ../sass/screen.scss */
/* line 717, ../sass/screen.scss */
#col-left .affix {
width: 25%;
border-right: solid 1px #e0e0e0;
background-color: #FAFAFA;
height: 100%;
}
/* line 708, ../sass/screen.scss */
/* line 724, ../sass/screen.scss */
#col-left #link-home {
text-decoration: none;
font-size: 22px;
@@ -712,28 +728,28 @@ ul li {
padding: 10px;
background-color: #F8F1DD;
}
/* line 716, ../sass/screen.scss */
/* line 732, ../sass/screen.scss */
#col-left #link-home img {
height: 50px;
margin-bottom: 5px;
float: left;
}
/* line 722, ../sass/screen.scss */
/* line 738, ../sass/screen.scss */
#col-left #link-home .text {
padding-left: 62px;
}
/* line 725, ../sass/screen.scss */
/* line 741, ../sass/screen.scss */
#col-left #link-home .text .bap {
font-family: "comfortaalight";
font-size: 24px;
}
/* line 730, ../sass/screen.scss */
/* line 746, ../sass/screen.scss */
#col-left #link-home .text .plateforme {
font-size: 17px;
font-family: "myriadpro-light";
color: #BB8757;
}
/* line 738, ../sass/screen.scss */
/* line 754, ../sass/screen.scss */
#col-left h2 {
font-family: "myriadpro-regular";
color: black;
@@ -741,37 +757,37 @@ ul li {
margin-bottom: 10px;
padding: 15px 0px 5px 15px;
}
/* line 746, ../sass/screen.scss */
/* line 762, ../sass/screen.scss */
#col-left #links {
background-color: white;
margin-bottom: 20px;
}
/* line 752, ../sass/screen.scss */
/* line 768, ../sass/screen.scss */
#col-left #links ul li a {
text-align: center;
border-right: solid 1px #e0e0e0;
}
/* line 756, ../sass/screen.scss */
/* line 772, ../sass/screen.scss */
#col-left #links ul li a:hover {
background-color: #BB8757;
color: white;
}
/* line 762, ../sass/screen.scss */
/* line 778, ../sass/screen.scss */
#col-left #links ul li:last-child a {
border-right: 0px none;
}
/* line 772, ../sass/screen.scss */
/* line 788, ../sass/screen.scss */
#col-left #producteurs nav.nav-producteurs ul li a {
padding-left: 50px;
height: 40px;
}
/* line 778, ../sass/screen.scss */
/* line 794, ../sass/screen.scss */
#col-left #producteurs nav.nav-producteurs ul li.active a {
background-color: #BB8757;
position: relative;
color: white;
}
/* line 783, ../sass/screen.scss */
/* line 799, ../sass/screen.scss */
#col-left #producteurs nav.nav-producteurs ul li.active a:after {
right: -40px;
top: 50%;
@@ -786,18 +802,18 @@ ul li {
border-width: 20px;
margin-top: -20px;
}
/* line 802, ../sass/screen.scss */
/* line 818, ../sass/screen.scss */
#col-left ul {
list-style-type: none;
margin: 0px;
padding: 0px;
}
/* line 806, ../sass/screen.scss */
/* line 822, ../sass/screen.scss */
#col-left ul li {
margin: 0px;
padding: 0px;
}
/* line 809, ../sass/screen.scss */
/* line 825, ../sass/screen.scss */
#col-left ul li a {
text-decoration: none;
font-family: "comfortaaregular";
@@ -808,18 +824,18 @@ ul li {
display: block;
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 {
display: none;
}
/* line 826, ../sass/screen.scss */
/* line 842, ../sass/screen.scss */
#col-left p {
padding: 20px;
padding-top: 0px;
color: gray;
}

/* line 834, ../sass/screen.scss */
/* line 850, ../sass/screen.scss */
#content .header-title {
height: 79px;
padding: 20px 20px;
@@ -834,7 +850,7 @@ ul li {
-webkit-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 {
color: black;
font-family: "myriadpro-regular";
@@ -842,7 +858,7 @@ ul li {
font-size: 25px;
text-transform: uppercase;
}
/* line 854, ../sass/screen.scss */
/* line 870, ../sass/screen.scss */
#content .header-title h2 {
color: gray;
text-transform: none;
@@ -851,16 +867,16 @@ ul li {
line-height: 20px;
}

/* line 865, ../sass/screen.scss */
/* line 881, ../sass/screen.scss */
.header-etablissement {
z-index: 1;
}
/* line 867, ../sass/screen.scss */
/* line 883, ../sass/screen.scss */
.header-etablissement #block-main-img {
height: 144px;
overflow: hidden;
}
/* line 871, ../sass/screen.scss */
/* line 887, ../sass/screen.scss */
.header-etablissement #block-main-img #main-img {
width: 100%;
height: auto;
@@ -870,7 +886,7 @@ ul li {
-webkit-border-radius: 0px;
border-radius: 0px;
}
/* line 880, ../sass/screen.scss */
/* line 896, ../sass/screen.scss */
.header-etablissement h1 {
font-family: "comfortaaregular";
text-align: center;
@@ -878,23 +894,23 @@ ul li {
top: 30px;
left: 40px;
}
/* line 887, ../sass/screen.scss */
/* line 903, ../sass/screen.scss */
.header-etablissement h1 span {
background-color: rgba(255, 255, 255, 0.8);
padding: 10px 30px;
border: dotted 1px black;
}

/* line 898, ../sass/screen.scss */
/* line 914, ../sass/screen.scss */
nav#menu-etablissement {
border-bottom: solid 1px #e0e0e0;
}
/* line 902, ../sass/screen.scss */
/* line 918, ../sass/screen.scss */
nav#menu-etablissement ul li {
padding: 0px;
margin: 0px;
}
/* line 905, ../sass/screen.scss */
/* line 921, ../sass/screen.scss */
nav#menu-etablissement ul li a {
border-right: solid 1px #e0e0e0;
text-decoration: none;
@@ -902,7 +918,7 @@ nav#menu-etablissement ul li a {
-webkit-border-radius: 0px;
border-radius: 0px;
}
/* line 910, ../sass/screen.scss */
/* line 926, ../sass/screen.scss */
nav#menu-etablissement ul li a:hover {
background-color: #BB8757;
color: white;

+ 16
- 0
frontend/web/sass/screen.scss 查看文件

@@ -539,6 +539,22 @@ ul {
}
}
}
#discover {
padding-bottom: 20px ;
text-align: center ;
p {
padding-bottom: 0px ;
color: $color2 ;
}
.btn {
background-color: $color2 ;
color: $color1 ;
border: solid 1px $color2 ;
}
}
}



正在加载...
取消
保存