Browse Source

Ajout d'un lien vers Framagit dans le footer (frontend, producer)

refactoring
Guillaume Bourgeois 6 years ago
parent
commit
dd46e00d7a
11 changed files with 80 additions and 61 deletions
  1. +5
    -5
      .htaccess
  2. +2
    -1
      frontend/views/layouts/main.php
  3. +56
    -52
      frontend/web/css/screen.css
  4. BIN
      frontend/web/img/logo-framagit.png
  5. BIN
      frontend/web/img/logo-gitlab.png
  6. +6
    -3
      frontend/web/sass/screen.scss
  7. +1
    -0
      producer/views/layouts/main.php
  8. +4
    -0
      producer/web/css/screen.css
  9. BIN
      producer/web/img/logo-framagit.png
  10. BIN
      producer/web/img/logo-gitlab.png
  11. +6
    -0
      producer/web/sass/_layout.scss

+ 5
- 5
.htaccess View File

RewriteCond %{REQUEST_URI} admin RewriteCond %{REQUEST_URI} admin
RewriteRule .* backend/web/index.php [L] RewriteRule .* backend/web/index.php [L]


RewriteCond %{REQUEST_URI} !^/(frontend|backend)/web/(assets|css)/
RewriteCond %{REQUEST_URI} !^/(frontend|backend)/web/(assets|css|img)/
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !admin RewriteCond %{REQUEST_URI} !admin
RewriteRule .* frontend/web/index.php [L] RewriteRule .* frontend/web/index.php [L]
</IfModule> </IfModule>


# Deny accessing below extensions # Deny accessing below extensions
<Files ~ "(.json|.lock|.git)">
Order allow,deny
Deny from all
<Files ~ "(\.json|\.lock|\.git)">
Order allow,deny
Deny from all
</Files> </Files>


# Deny accessing dot files # Deny accessing dot files
RewriteRule (^\.|/\.) - [F]
RewriteRule (^\.|/\.) - [F]

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

<div class="container"> <div class="container">
<a href="<?php echo Yii::$app->urlManager->createUrl('site/contact') ; ?>">Contact</a> &bull; <a href="<?php echo Yii::$app->urlManager->createUrl('site/contact') ; ?>">Contact</a> &bull;
<a href="<?php echo Yii::$app->urlManager->createUrl('site/mentions') ; ?>">Mentions légales</a> &bull; <a href="<?php echo Yii::$app->urlManager->createUrl('site/mentions') ; ?>">Mentions légales</a> &bull;
<a href="<?php echo Yii::$app->urlManager->createUrl('site/cgv') ; ?>">CGS</a>
<a href="<?php echo Yii::$app->urlManager->createUrl('site/cgv') ; ?>">CGS</a> &bull;
<a id="code-source" href="https://framagit.org/guillaume-bourgeois/laboiteapain">Code source <img src="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/logo-framagit.png" alt="Hébergé par Framasoft" /> <img src="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/logo-gitlab.png" alt="Propulsé par Gitlab" /></a>
</div> </div>
</footer> </footer>

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

#footer a:last-child { #footer a:last-child {
border: 0px none; border: 0px none;
} }

/* line 644, ../sass/screen.scss */ /* line 644, ../sass/screen.scss */
#footer #code-source img {
height: 20px;
}

/* line 650, ../sass/screen.scss */
#content #mentions { #content #mentions {
padding-top: 20px; padding-top: 20px;
} }
/* line 647, ../sass/screen.scss */
/* line 653, ../sass/screen.scss */
#content #mentions div.content { #content #mentions div.content {
width: 60%; width: 60%;
font-size: 90%; font-size: 90%;
} }
/* line 652, ../sass/screen.scss */
/* line 658, ../sass/screen.scss */
#content #mentions p { #content #mentions p {
padding-bottom: 15px; padding-bottom: 15px;
} }
/* line 656, ../sass/screen.scss */
/* line 662, ../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 664, ../sass/screen.scss */
/* line 670, ../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 675, ../sass/screen.scss */
/* line 681, ../sass/screen.scss */
.mentions #main, .mentions body { .mentions #main, .mentions body {
background-color: white; background-color: white;
} }


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


/* line 687, ../sass/screen.scss */
/* line 693, ../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 691, ../sass/screen.scss */
/* line 697, ../sass/screen.scss */
#profil-user .form-group label { #profil-user .form-group label {
cursor: pointer; cursor: pointer;
} }
/* line 696, ../sass/screen.scss */
/* line 702, ../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 699, ../sass/screen.scss */
/* line 705, ../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 705, ../sass/screen.scss */
/* line 711, ../sass/screen.scss */
#profil-user p.strong { #profil-user p.strong {
font-weight: bold; font-weight: bold;
} }


/* login */ /* login */
/* line 714, ../sass/screen.scss */
/* line 720, ../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 722, ../sass/screen.scss */
/* line 728, ../sass/screen.scss */
.modal-backdrop { .modal-backdrop {
z-index: 999; z-index: 999;
} }


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


/* line 737, ../sass/screen.scss */
/* line 743, ../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 747, ../sass/screen.scss */
/* line 753, ../sass/screen.scss */
#form-signup #client-boulanger { #form-signup #client-boulanger {
margin-bottom: 30px; margin-bottom: 30px;
} }
/* line 752, ../sass/screen.scss */
/* line 758, ../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 758, ../sass/screen.scss */
/* line 764, ../sass/screen.scss */
#form-signup #champs-boulanger { #form-signup #champs-boulanger {
display: none; display: none;
} }
/* line 762, ../sass/screen.scss */
/* line 768, ../sass/screen.scss */
#form-signup #boutons-inscrire { #form-signup #boutons-inscrire {
margin-top: 30px; margin-top: 30px;
} }


/* line 767, ../sass/screen.scss */
/* line 773, ../sass/screen.scss */
#col-left { #col-left {
padding: 0px; padding: 0px;
z-index: 15; z-index: 15;
} }
/* line 771, ../sass/screen.scss */
/* line 777, ../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 778, ../sass/screen.scss */
/* line 784, ../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 786, ../sass/screen.scss */
/* line 792, ../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 792, ../sass/screen.scss */
/* line 798, ../sass/screen.scss */
#col-left #link-home .text { #col-left #link-home .text {
padding-left: 62px; padding-left: 62px;
} }
/* line 795, ../sass/screen.scss */
/* line 801, ../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 800, ../sass/screen.scss */
/* line 806, ../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 808, ../sass/screen.scss */
/* line 814, ../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 816, ../sass/screen.scss */
/* line 822, ../sass/screen.scss */
#col-left #links { #col-left #links {
background-color: white; background-color: white;
margin-bottom: 20px; margin-bottom: 20px;
} }
/* line 822, ../sass/screen.scss */
/* line 828, ../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 826, ../sass/screen.scss */
/* line 832, ../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 832, ../sass/screen.scss */
/* line 838, ../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 842, ../sass/screen.scss */
/* line 848, ../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 848, ../sass/screen.scss */
/* line 854, ../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 853, ../sass/screen.scss */
/* line 859, ../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 872, ../sass/screen.scss */
/* line 878, ../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 876, ../sass/screen.scss */
/* line 882, ../sass/screen.scss */
#col-left ul li { #col-left ul li {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
} }
/* line 879, ../sass/screen.scss */
/* line 885, ../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 889, ../sass/screen.scss */
/* line 895, ../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 896, ../sass/screen.scss */
/* line 902, ../sass/screen.scss */
#col-left p { #col-left p {
padding: 20px; padding: 20px;
padding-top: 0px; padding-top: 0px;
color: gray; color: gray;
} }


/* line 904, ../sass/screen.scss */
/* line 910, ../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 916, ../sass/screen.scss */
/* line 922, ../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 924, ../sass/screen.scss */
/* line 930, ../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 935, ../sass/screen.scss */
/* line 941, ../sass/screen.scss */
.header-etablissement { .header-etablissement {
z-index: 1; z-index: 1;
} }
/* line 937, ../sass/screen.scss */
/* line 943, ../sass/screen.scss */
.header-etablissement #block-main-img { .header-etablissement #block-main-img {
height: 144px; height: 144px;
overflow: hidden; overflow: hidden;
} }
/* line 941, ../sass/screen.scss */
/* line 947, ../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 950, ../sass/screen.scss */
/* line 956, ../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 957, ../sass/screen.scss */
/* line 963, ../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 968, ../sass/screen.scss */
/* line 974, ../sass/screen.scss */
nav#menu-etablissement { nav#menu-etablissement {
border-bottom: solid 1px #e0e0e0; border-bottom: solid 1px #e0e0e0;
} }
/* line 972, ../sass/screen.scss */
/* line 978, ../sass/screen.scss */
nav#menu-etablissement ul li { nav#menu-etablissement ul li {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
} }
/* line 975, ../sass/screen.scss */
/* line 981, ../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 980, ../sass/screen.scss */
/* line 986, ../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;

BIN
frontend/web/img/logo-framagit.png View File

Before After
Width: 100  |  Height: 100  |  Size: 4.2KB

BIN
frontend/web/img/logo-gitlab.png View File

Before After
Width: 100  |  Height: 92  |  Size: 4.2KB

+ 6
- 3
frontend/web/sass/screen.scss View File

border: 0px none ; border: 0px none ;
} }
} }
#code-source {
img {
height: 20px ;
}
}
} }


#content #mentions { #content #mentions {
@import "_systeme_commandes.scss" ; @import "_systeme_commandes.scss" ;
@import "_responsive.scss" ; @import "_responsive.scss" ;






+ 1
- 0
producer/views/layouts/main.php View File

<a href="<?php echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/index']) ; ?>">La boîte à pain</a> <a href="<?php echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/index']) ; ?>">La boîte à pain</a>
<a href="<?php echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/mentions']) ; ?>">Mentions légales</a> <a href="<?php echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/mentions']) ; ?>">Mentions légales</a>
<a href="<?php echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/cgv']) ; ?>">CGS</a> <a href="<?php echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/cgv']) ; ?>">CGS</a>
<a id="code-source" href="https://framagit.org/guillaume-bourgeois/laboiteapain">Code source <img src="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/logo-framagit.png" alt="Hébergé par Framasoft" /> <img src="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/logo-gitlab.png" alt="Propulsé par Gitlab" /></a>
</div> </div>
</div> </div>
</footer> </footer>

+ 4
- 0
producer/web/css/screen.css View File

text-decoration: underline; text-decoration: underline;
margin-right: 10px; margin-right: 10px;
} }
/* line 409, ../sass/_layout.scss */
#footer .container #code-source img {
height: 20px;
}


/** /**
Copyright La boîte à pain (2018) Copyright La boîte à pain (2018)

BIN
producer/web/img/logo-framagit.png View File

Before After
Width: 100  |  Height: 100  |  Size: 4.2KB

BIN
producer/web/img/logo-gitlab.png View File

Before After
Width: 100  |  Height: 92  |  Size: 4.2KB

+ 6
- 0
producer/web/sass/_layout.scss View File

margin-right: 10px ; margin-right: 10px ;
} }
} }
#code-source {
img {
height: 20px ;
}
}
} }
} }

Loading…
Cancel
Save