]> _ Git - psq.git/commitdiff
new design
authorLouis Jeckel <louis.jeckel@outlook.cm>
Wed, 30 Sep 2020 14:58:33 +0000 (16:58 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Wed, 30 Sep 2020 14:58:33 +0000 (16:58 +0200)
34 files changed:
app/Http/Controllers/Auth/LoginController.php
app/Http/Controllers/FileController.php
app/PdfFile.php
public/admin/js/admin.js
public/css/app.css
public/images/cover-bg.png [deleted file]
public/img/nav-v2/1-actu.png [new file with mode: 0644]
public/img/nav-v2/10-logout.png [new file with mode: 0644]
public/img/nav-v2/2-labos.png [new file with mode: 0644]
public/img/nav-v2/3-com.png [new file with mode: 0644]
public/img/nav-v2/4-en-plus.png [new file with mode: 0644]
public/img/nav-v2/5-onair.png [new file with mode: 0644]
public/img/nav-v2/6-ex.png [new file with mode: 0644]
public/img/nav-v2/7-mag.png [new file with mode: 0644]
public/img/nav-v2/8-nous-lire.png [new file with mode: 0644]
public/img/nav-v2/9-login.png [new file with mode: 0644]
public/js/app.js
resources/js/components/FileSearch/FileInstantSearch.vue
resources/sass/_colors.scss
resources/sass/_covers.scss
resources/sass/_footer.scss [new file with mode: 0644]
resources/sass/_headers.scss
resources/sass/_nav.scss
resources/sass/_pill_boxes.scss
resources/sass/_polls.scss
resources/sass/_title_dots.scss
resources/sass/app.scss
resources/views/components/nav.blade.php [deleted file]
resources/views/errors/403.blade.php
resources/views/file/show.blade.php
resources/views/layouts/app.blade.php
resources/views/partials/footer.blade.php [new file with mode: 0644]
resources/views/partials/nav.blade.php [new file with mode: 0644]
resources/views/podcasts/temp.blade.php

index 4852e930a48ae65c0935ec163c3ca5c8941ab55f..c1e608c8b5cf5842e1ddbac5d2acf87385e92022 100644 (file)
@@ -47,4 +47,10 @@ class LoginController extends Controller
     {
         $this->middleware('guest')->except('logout');
     }
+
+    public function showLoginForm()
+    {
+        \View::share('hideFooter', true);
+        return view('auth.login');
+    }
 }
index 276b09fbb6aa707f12172879a54d35c65fbbb565..c5cdc608c1c6615e4d8ecbfd44eafa5325be7296 100644 (file)
@@ -23,7 +23,8 @@ class FileController extends Controller
         if(\Auth::check() && \Auth::user()->hasValidSubscription()) {
             return view('layouts.vue', [
                 'extends' => 'layouts.app',
-                'component' => 'file-instant-search'
+                'component' => 'file-instant-search',
+                'class' => 'psq-archives'
             ]);
         } else {
             return abort(403, 'Vous devez avoir un abonnement actif pour accéder aux archives.');
index 616ce344aac1513250ab20191693d7f0980f6d24..d03f764c0fe4505555b92a17a6d07706b60761cd 100644 (file)
@@ -441,6 +441,7 @@ class PdfFile extends TwillModel implements Sortable
 
         Storage::disk('public')->makeDirectory('covers');
         $pdf = new PdfToImage\Pdf($this->absolutePdfPath);
+
         $pdf->setResolution(100)
             ->setColorspace(\Imagick::COLORSPACE_SRGB)
             ->saveImage($tmp);
index 10dd47f00c940686e2db12ea39eba7624b32c733..b0576e69ba47272d6a366abaa841753757203eac 100644 (file)
@@ -2460,6 +2460,7 @@ __webpack_require__.r(__webpack_exports__);
 //
 //
 //
+//
 
 /* harmony default export */ __webpack_exports__["default"] = ({
   mixins: [_mixins_SearchMixin__WEBPACK_IMPORTED_MODULE_0__["default"]],
@@ -50938,6 +50939,8 @@ var render = function() {
   return _c(
     "div",
     [
+      _c("h1", [_vm._v("Les archives de P.S.Q.")]),
+      _vm._v(" "),
       _c(
         "ais-instant-search",
         {
index 2b5b6f97d9f9f5d1f98792239c7fc8c90c0e386a..17c2f99b54a32192a13f6ed1d809fe06071f762d 100644 (file)
@@ -7425,7 +7425,7 @@ button.bg-dark:focus {
   }
 
   .d-lg-block,
-  nav p {
+  nav > ul p {
     display: block !important;
   }
 
@@ -9586,8 +9586,7 @@ button.bg-dark:focus {
   }
 
   .pr-md-3,
-  .px-md-3,
-  nav > div {
+  .px-md-3 {
     padding-right: 1rem !important;
   }
 
@@ -9597,8 +9596,7 @@ button.bg-dark:focus {
   }
 
   .pl-md-3,
-  .px-md-3,
-  nav > div {
+  .px-md-3 {
     padding-left: 1rem !important;
   }
 
@@ -11136,98 +11134,111 @@ mark.mark {
   font-weight: 500;
 }
 
+.logo-blue {
+  color: #044e9c;
+}
+
+.highlight-logo-blue {
+  color: white;
+  background-color: #044e9c;
+}
+
+.border-logo-blue {
+  border: 1px solid #044e9c;
+}
+
 .blue {
-  color: #074e9c;
+  color: #278cd7;
 }
 
 .highlight-blue,
 .btn-back,
 .btn-big {
   color: white;
-  background-color: #074e9c;
+  background-color: #278cd7;
 }
 
 .border-blue {
-  border: 1px solid #074e9c;
+  border: 1px solid #278cd7;
 }
 
 .purple {
-  color: #AD5ED3;
+  color: #9a36c8;
 }
 
 .highlight-purple {
   color: white;
-  background-color: #AD5ED3;
+  background-color: #9a36c8;
 }
 
 .border-purple {
-  border: 1px solid #AD5ED3;
+  border: 1px solid #9a36c8;
 }
 
 .red {
-  color: #d04d4a;
+  color: #cb3239;
 }
 
 .highlight-red,
 h1 {
   color: white;
-  background-color: #d04d4a;
+  background-color: #cb3239;
 }
 
 .border-red {
-  border: 1px solid #d04d4a;
+  border: 1px solid #cb3239;
 }
 
 .cyan {
-  color: #288ed7;
+  color: #14c7eb;
 }
 
 .highlight-cyan {
   color: white;
-  background-color: #288ed7;
+  background-color: #14c7eb;
 }
 
 .border-cyan {
-  border: 1px solid #288ed7;
+  border: 1px solid #14c7eb;
 }
 
 .magenta {
-  color: #ce317c;
+  color: #cc33a0;
 }
 
 .highlight-magenta {
   color: white;
-  background-color: #ce317c;
+  background-color: #cc33a0;
 }
 
 .border-magenta {
-  border: 1px solid #ce317c;
+  border: 1px solid #cc33a0;
 }
 
 .orange {
-  color: #e79817;
+  color: #e79b17;
 }
 
 .highlight-orange {
   color: white;
-  background-color: #e79817;
+  background-color: #e79b17;
 }
 
 .border-orange {
-  border: 1px solid #e79817;
+  border: 1px solid #e79b17;
 }
 
 .grey {
-  color: #546983;
+  color: #546883;
 }
 
 .highlight-grey {
   color: white;
-  background-color: #546983;
+  background-color: #546883;
 }
 
 .border-grey {
-  border: 1px solid #546983;
+  border: 1px solid #546883;
 }
 
 .denim {
@@ -11244,16 +11255,29 @@ h1 {
 }
 
 .green {
-  color: #41BD53;
+  color: #739b6c;
 }
 
 .highlight-green {
   color: white;
-  background-color: #41BD53;
+  background-color: #739b6c;
 }
 
 .border-green {
-  border: 1px solid #41BD53;
+  border: 1px solid #739b6c;
+}
+
+.gold {
+  color: #bbb541;
+}
+
+.highlight-gold {
+  color: white;
+  background-color: #bbb541;
+}
+
+.border-gold {
+  border: 1px solid #bbb541;
 }
 
 .mag-blue {
@@ -11271,11 +11295,11 @@ h1 {
 
 .psq-actu h1 {
   color: white;
-  background-color: #d04d4a;
+  background-color: #cb3239;
 }
 
 .psq-actu .pill-box > div {
-  border: 1px solid #d04d4a;
+  border: 1px solid #cb3239;
 }
 
 .psq-actu .box,
@@ -11284,13 +11308,28 @@ div.pill-box .psq-actu div {
   border-radius: 5px;
 }
 
+.psq-labos h1 {
+  color: white;
+  background-color: #9a36c8;
+}
+
+.psq-labos .pill-box > div {
+  border: 1px solid #9a36c8;
+}
+
+.psq-labos .box,
+.psq-labos div.pill-box div,
+div.pill-box .psq-labos div {
+  border-radius: 5px;
+}
+
 .psq-com-campaign h1 {
   color: white;
-  background-color: #AD5ED3;
+  background-color: #278cd7;
 }
 
 .psq-com-campaign .pill-box > div {
-  border: 1px solid #AD5ED3;
+  border: 1px solid #278cd7;
 }
 
 .psq-com-campaign .box,
@@ -11301,11 +11340,11 @@ div.pill-box .psq-com-campaign div {
 
 .psq-plus h1 {
   color: white;
-  background-color: #41BD53;
+  background-color: #e79b17;
 }
 
 .psq-plus .pill-box > div {
-  border: 1px solid #41BD53;
+  border: 1px solid #e79b17;
 }
 
 .psq-plus .box,
@@ -11314,58 +11353,58 @@ div.pill-box .psq-plus div {
   border-radius: 5px;
 }
 
-.psq-mag h1 {
+.psq-podcasts h1 {
   color: white;
-  background-color: #ce317c;
+  background-color: #bbb541;
 }
 
-.psq-mag .pill-box > div {
-  border: 1px solid #ce317c;
+.psq-podcasts .pill-box > div {
+  border: 1px solid #bbb541;
 }
 
-.psq-mag .box,
-.psq-mag div.pill-box div,
-div.pill-box .psq-mag div {
+.psq-podcasts .box,
+.psq-podcasts div.pill-box div,
+div.pill-box .psq-podcasts div {
   border-radius: 5px;
 }
 
-.psq-podcasts h1 {
+.psq-archives h1 {
   color: white;
-  background-color: #288ed7;
+  background-color: #14c7eb;
 }
 
-.psq-podcasts .pill-box > div {
-  border: 1px solid #288ed7;
+.psq-archives .pill-box > div {
+  border: 1px solid #14c7eb;
 }
 
-.psq-podcasts .box,
-.psq-podcasts div.pill-box div,
-div.pill-box .psq-podcasts div {
+.psq-archives .box,
+.psq-archives div.pill-box div,
+div.pill-box .psq-archives div {
   border-radius: 5px;
 }
 
-.psq-labos h1 {
+.psq-mag h1 {
   color: white;
-  background-color: #546983;
+  background-color: #cc33a0;
 }
 
-.psq-labos .pill-box > div {
-  border: 1px solid #546983;
+.psq-mag .pill-box > div {
+  border: 1px solid #cc33a0;
 }
 
-.psq-labos .box,
-.psq-labos div.pill-box div,
-div.pill-box .psq-labos div {
+.psq-mag .box,
+.psq-mag div.pill-box div,
+div.pill-box .psq-mag div {
   border-radius: 5px;
 }
 
 .psq-not-registered h1 {
   color: white;
-  background-color: #e79817;
+  background-color: #739b6c;
 }
 
 .psq-not-registered .pill-box > div {
-  border: 1px solid #e79817;
+  border: 1px solid #739b6c;
 }
 
 .psq-not-registered .box,
@@ -11389,25 +11428,35 @@ div.pill-box .psq-login-logout div {
   border-radius: 5px;
 }
 
-nav {
+nav > ul {
   margin-bottom: 0.5rem;
   display: flex;
   justify-content: space-around;
+  align-items: flex-end;
+  padding-left: 0;
+  flex-wrap: wrap;
 }
 
-nav > div {
+nav > ul > li {
+  list-style-type: none;
   flex: 1 1 0;
   text-align: center;
-  padding: 5px;
-  width: 0;
 }
 
-nav img {
+@media (max-width: 576px) {
+  nav > ul > li {
+    flex: 25% 1 0;
+    padding: 0 10px;
+  }
+}
+
+nav > ul img {
   max-width: 100px;
   margin-bottom: 1rem;
+  width: 100%;
 }
 
-nav p {
+nav > ul p {
   display: none;
   font-size: small;
   font-weight: 500;
@@ -11416,22 +11465,42 @@ nav p {
   word-break: break-word;
 }
 
-nav .pill-bigger {
-  flex-grow: 1.25;
+@supports not (-ms-high-contrast: none) {
+  nav > ul .pill-bigger {
+    flex-grow: 1.25;
+  }
 }
 
-nav .pill-bigger img {
+nav > ul .pill-bigger img {
   max-width: 125px;
 }
 
-nav .pill-smaller {
+nav > ul .pill-smaller {
   flex-grow: 1;
 }
 
-nav .pill-smaller img {
+nav > ul .pill-smaller img {
   max-width: 50px;
 }
 
+footer {
+  padding-top: 25px;
+  height: 80px;
+  background-color: #ecf5ff;
+}
+
+footer p.img-link {
+  text-align: right;
+  font-weight: bold;
+  text-transform: uppercase;
+}
+
+footer p.img-link img {
+  width: 50px;
+  display: inline-block;
+  margin-right: 1rem;
+}
+
 h1 {
   text-transform: uppercase;
   margin: auto auto 1rem;
@@ -11445,7 +11514,7 @@ h2 {
   font-weight: 500;
   font-size: large;
   text-transform: uppercase;
-  color: #074e9c;
+  color: #044e9c;
 }
 
 h2.bold {
@@ -11455,7 +11524,7 @@ h2.bold {
 
 h3 {
   font-size: medium;
-  color: #074e9c;
+  color: #044e9c;
 }
 
 h4 {
@@ -11505,7 +11574,7 @@ div.cover .cover-title img {
 
 div.cover .cover-title p {
   text-transform: uppercase;
-  color: #074e9c;
+  color: #044e9c;
   background-color: #cddceb;
   text-align: center;
   font-weight: 900;
@@ -11538,7 +11607,7 @@ div.pill-box div {
 div.pill-box div h2 {
   padding: 2px 10px 1px 50px;
   margin: 0 -6px 10px;
-  background-color: #074e9c;
+  background-color: #044e9c;
   color: white;
   text-align: center;
   width: -webkit-fit-content;
@@ -11558,7 +11627,7 @@ ul.leaders {
   padding: 0;
   overflow-x: hidden;
   list-style: none;
-  color: #074e9c;
+  color: #044e9c;
 }
 
 ul.leaders li:after {
@@ -11603,7 +11672,7 @@ div.youtube-block iframe {
 .poll .form-group > label {
   font-size: larger;
   font-weight: 500;
-  color: #074e9c;
+  color: #044e9c;
 }
 
 article .ck-content h2,
@@ -11699,7 +11768,11 @@ article article .chapo,
 }
 
 body {
-  margin-bottom: 4rem;
+  margin-bottom: 0 !important;
+}
+
+main {
+  min-height: calc(100vh - 360px);
 }
 
 @media print {
@@ -11724,7 +11797,7 @@ div.pill-box div {
 }
 
 a {
-  color: #074e9c !important;
+  color: #044e9c !important;
 }
 
 .click-here,
diff --git a/public/images/cover-bg.png b/public/images/cover-bg.png
deleted file mode 100644 (file)
index ece1e07..0000000
Binary files a/public/images/cover-bg.png and /dev/null differ
diff --git a/public/img/nav-v2/1-actu.png b/public/img/nav-v2/1-actu.png
new file mode 100644 (file)
index 0000000..2f55821
Binary files /dev/null and b/public/img/nav-v2/1-actu.png differ
diff --git a/public/img/nav-v2/10-logout.png b/public/img/nav-v2/10-logout.png
new file mode 100644 (file)
index 0000000..00f2a14
Binary files /dev/null and b/public/img/nav-v2/10-logout.png differ
diff --git a/public/img/nav-v2/2-labos.png b/public/img/nav-v2/2-labos.png
new file mode 100644 (file)
index 0000000..b070fcb
Binary files /dev/null and b/public/img/nav-v2/2-labos.png differ
diff --git a/public/img/nav-v2/3-com.png b/public/img/nav-v2/3-com.png
new file mode 100644 (file)
index 0000000..2d9fcff
Binary files /dev/null and b/public/img/nav-v2/3-com.png differ
diff --git a/public/img/nav-v2/4-en-plus.png b/public/img/nav-v2/4-en-plus.png
new file mode 100644 (file)
index 0000000..4a27b3d
Binary files /dev/null and b/public/img/nav-v2/4-en-plus.png differ
diff --git a/public/img/nav-v2/5-onair.png b/public/img/nav-v2/5-onair.png
new file mode 100644 (file)
index 0000000..5a8bfb7
Binary files /dev/null and b/public/img/nav-v2/5-onair.png differ
diff --git a/public/img/nav-v2/6-ex.png b/public/img/nav-v2/6-ex.png
new file mode 100644 (file)
index 0000000..2457866
Binary files /dev/null and b/public/img/nav-v2/6-ex.png differ
diff --git a/public/img/nav-v2/7-mag.png b/public/img/nav-v2/7-mag.png
new file mode 100644 (file)
index 0000000..c6a3686
Binary files /dev/null and b/public/img/nav-v2/7-mag.png differ
diff --git a/public/img/nav-v2/8-nous-lire.png b/public/img/nav-v2/8-nous-lire.png
new file mode 100644 (file)
index 0000000..2cd08f5
Binary files /dev/null and b/public/img/nav-v2/8-nous-lire.png differ
diff --git a/public/img/nav-v2/9-login.png b/public/img/nav-v2/9-login.png
new file mode 100644 (file)
index 0000000..e415e07
Binary files /dev/null and b/public/img/nav-v2/9-login.png differ
index d52c62de98153a03aa88ca15c75f14a7354cf3d5..bcdc55f97fae39df54a6adf3a3ceb73f1e538ff3 100644 (file)
@@ -7655,6 +7655,7 @@ __webpack_require__.r(__webpack_exports__);
 //
 //
 //
+//
 
 /* harmony default export */ __webpack_exports__["default"] = ({
   mixins: [_mixins_SearchMixin__WEBPACK_IMPORTED_MODULE_0__["default"]],
@@ -80474,6 +80475,8 @@ var render = function() {
   return _c(
     "div",
     [
+      _c("h1", [_vm._v("Les archives de P.S.Q.")]),
+      _vm._v(" "),
       _c(
         "ais-instant-search",
         {
index 0bbf69a8575f62620099e8fe1d57768be8c8d686..31a23c44ce6fd65443c66b2f245aa1bff7d06c87 100644 (file)
@@ -1,5 +1,6 @@
 <template>
     <div>
+        <h1>Les archives de P.S.Q.</h1>
 
         <ais-instant-search
             :search-client="searchClient"
index 3fcdeb9bad9e446439f48f2989466121ed24afec..1241c2db8d088f84b1a1f3177afd1817c6a11145 100644 (file)
@@ -1,20 +1,23 @@
 
 // PSQ COLORS
-$psq_red: #d04d4a;
-$psq_blue: #074e9c;
+$psq_red: #cb3239;
+$psq_purple: #9a36c8;
+$psq_blue: #278cd7;
+//$psq_blue: #044e9c;
+$psq_logo_blue: #044e9c;
+$psq_orange: #e79b17;
+$psq_gold: #bbb541;
+$psq_cyan: #14c7eb;
+$psq_magenta: #cc33a0;
+$psq_green: #739b6c;
+$psq_grey: #546883;
 $psq_light_blue: #cddceb;
-$psq_purple: #AD5ED3;
-$psq_cyan: #288ed7;
-$psq_magenta: #ce317c;
-$psq_orange: #e79817;
-$psq_grey: #546983;
 $psq_denim: #0c2c50;
-$psq_green: #41BD53;
 $psq_mag_blue: #2a6ba3;
 
 
 // BOOTSTRAP VARS
-$blue: $psq_blue;
+$blue: $psq_logo_blue;
 $red: $psq_red;
 
 $enable-shadows: true;
@@ -23,6 +26,7 @@ $enable-shadows: true;
 //CLASS HELPERS
 
 $psq_colors: (
+    "logo-blue" : $psq_logo_blue,
     "blue" : $psq_blue,
     "purple" : $psq_purple,
     "red" : $psq_red,
@@ -32,17 +36,19 @@ $psq_colors: (
     "grey" : $psq_grey,
     "denim" : $psq_denim,
     "green" : $psq_green,
+    "gold" : $psq_gold,
     "mag-blue" : $psq_mag_blue,
 );
 
 $psq_pages: (
     "psq-actu" : $psq_red,
-    "psq-com-campaign" : $psq_purple,
-    "psq-plus" : $psq_green,
+    "psq-labos" : $psq_purple,
+    "psq-com-campaign" : $psq_blue,
+    "psq-plus" : $psq_orange,
+    "psq-podcasts" : $psq_gold,
+    "psq-archives" : $psq_cyan,
     "psq-mag" : $psq_magenta,
-    "psq-podcasts" : $psq_cyan,
-    "psq-labos" : $psq_grey,
-    "psq-not-registered" : $psq_orange,
+    "psq-not-registered" : $psq_green,
     "psq-login-logout" : $psq_denim,
 );
 
@@ -58,6 +64,7 @@ $psq_pages: (
     .border-#{$name} {
         border: 1px solid $color;
     }
+
 }
 
 
@@ -68,6 +75,8 @@ $psq_pages: (
             background-color: $color;
         }
         .pill-box > div {
+            //background-color: rgba($color, 0.08) !important;
+
             border: 1px solid $color;
         }
 
index 35443b3fdd214a4ea6de1b026f897ddf47b8143c..b3c52b921e5e226ab464fad8197c7d15d640dc63 100644 (file)
@@ -46,7 +46,7 @@ div.cover {
 
         p {
             text-transform: uppercase;
-            color: $psq_blue;
+            color: $psq_logo_blue;
             background-color: $psq_light_blue;
             text-align: center;
             font-weight: 900;
diff --git a/resources/sass/_footer.scss b/resources/sass/_footer.scss
new file mode 100644 (file)
index 0000000..05cf946
--- /dev/null
@@ -0,0 +1,17 @@
+
+footer {
+    padding-top: 25px;
+    height: 80px;
+    background-color: #ecf5ff;
+
+    p.img-link {
+        text-align: right;
+        font-weight: bold;
+        text-transform: uppercase;
+        img {
+            width: 50px;
+            display: inline-block;
+            margin-right: 1rem;
+        }
+    }
+}
index 2aaae0f3601e9b54805e2c29e7f3f25c98b6f018..29c79f272fee3313e55dc03c822e95a9bba2dea9 100644 (file)
@@ -14,7 +14,7 @@ h2 {
     font-weight: 500;
     font-size: large;
     text-transform: uppercase;
-    color: $psq_blue;
+    color: $psq_logo_blue;
 }
 
 h2.bold {
@@ -24,7 +24,7 @@ h2.bold {
 
 h3 {
     font-size: medium;
-    color: $psq_blue;
+    color: $psq_logo_blue;
 }
 
 h4 {
index 063cd6a0164faf8252aa1aafbef29f86ecf507bb..5cb054e41b93c60dcf8d27ed195ffa13b8330231 100644 (file)
@@ -1,21 +1,33 @@
 $pill-max-width: 100px;
 
-nav {
+nav > ul {
     margin-bottom: .5rem;
     display: flex;
     justify-content: space-around;
+    align-items: flex-end;
+    padding-left: 0;
+    flex-wrap: wrap;
+    > li {
+        //@extend .px-md-3;
+        list-style-type: none;
 
-    > div {
-        @extend .px-md-3;
         flex: 1 1 0;
         text-align: center;
-        padding: 5px;
-        width: 0;
+        //padding: 5px;
+        //width: 0;
+
+        @media (max-width: 576px) {
+            flex: 25% 1 0;
+            padding: 0 10px;
+
+        }
+
     }
 
     img {
         max-width: $pill-max-width;
         margin-bottom: 1rem;
+        width: 100%;
     }
 
     p {
@@ -29,8 +41,9 @@ nav {
     }
 
     .pill-bigger {
-        flex-grow: 1.25;
-
+        @supports not (-ms-high-contrast: none) {
+            flex-grow: 1.25;
+        }
         img {
             max-width: $pill-max-width * 1.25;
         }
index 7130d3e07503adb122941df8bd7b648f15e738de..d6e5fafdc9f460e03828021c2fb7e43137845224 100644 (file)
@@ -23,7 +23,7 @@ div.pill-box {
         h2 {
             padding: 2px 10px 1px 50px;
             margin: 0 -6px 10px;
-            background-color: $psq_blue;
+            background-color: $psq_logo_blue;
             color: white;
             text-align: center;
             width: fit-content;
index 017321415019d2fcf7887a2964998cf59c0a9f67..b12c0823ab8623af44efc16c41424fa5a5983a1a 100644 (file)
@@ -6,7 +6,7 @@
         > label {
             font-size: larger;
             font-weight: 500;
-            color: $psq_blue;
+            color: $psq_logo_blue;
         }
 
         margin-bottom: 2rem;
index 17938be32906a3125ce095f1f74c9b72c5cd8913..d847e1f762559abec4705343d3276cb69a3e67ce 100644 (file)
@@ -3,7 +3,7 @@ ul.leaders {
     padding: 0;
     overflow-x: hidden;
     list-style: none;
-    color: $psq_blue;
+    color: $psq_logo_blue;
 
     li:after {
         float: left;
index 331f476bd7fce115d242238c6a64cdb44bd74cc0..e8817b6cb7362098a1898cd498e0a11b7cc35531 100644 (file)
@@ -6,6 +6,7 @@
 @import "fonts";
 @import "colors";
 @import "nav";
+@import "footer";
 @import "headers";
 @import "covers";
 @import "pill_boxes";
 @import "articles";
 
 body {
-    margin-bottom: 4rem;
+    margin-bottom: 0 !important;
+}
+
+main {
+        min-height: calc(100vh - 360px);
 }
 
 @media print {
@@ -44,7 +49,7 @@ body {
 }
 
 a {
-    color: $psq_blue !important;
+    color: $psq_logo_blue !important;
     //text-transform: uppercase;
 
 }
diff --git a/resources/views/components/nav.blade.php b/resources/views/components/nav.blade.php
deleted file mode 100644 (file)
index 9a22cc0..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<nav class="container">
-    <div>
-        <a href="/">
-            <img src="{{asset('img/nav/1-lactu.svg')}}" alt="Pill Icon">
-            <p>à la une de notre quotidien</p>
-        </a>
-    </div>
-    <div>
-        <a href="{{action('AdCampaignController@index')}}">
-            <img src="{{asset('img/nav/2-lacom.svg')}}" alt="Pill Icon">
-            <p>Campagnes<br>& Com santé</p>
-        </a>
-    </div>
-
-    <div>
-        <a href="{{route('humeur-agenda.index')}}">
-            <img src="{{asset('img/nav/3-enplus.svg')}}" alt="Pill Icon">
-            <p>Agenda<br> & Humeur</p>
-        </a>
-    </div>
-
-    <div>
-        <a href="{{route('mag.index')}}">
-            <img src="{{asset('img/nav/4-lemag.svg')}}" alt="Pill Icon">
-            <p>Le Magazine</p>
-        </a>
-    </div>
-
-    <div>
-        <a href="{{action('PodcastController@index')}}">
-            <img src="{{asset('img/nav/5-onair.svg')}}" alt="Pill Icon">
-            <p>Podcast de la com santé</p>
-        </a>
-    </div>
-
-    <div>
-        <a href="{{action('ActuLabosController@index')}}">
-            <img src="{{asset('img/nav/6-leslabos.svg')}}" alt="Pill Icon">
-            <p>L'actu des laboratoires</p>
-        </a>
-    </div>
-
-
-
-    @guest
-        <div>
-            <a class="" href="{{ action('Auth\NotRegisteredYet@index') }}">
-                <img src="{{asset('img/nav/7-pasabonne.svg')}}" alt="Pill Icon">
-                <p>
-                    COMMENT VOUS ABONNER
-                </p>
-            </a>
-        </div>
-
-        <div>
-            <a class="" href="{{ route('login') }}">
-                <img src="{{asset('img/nav/8-login.svg')}}" alt="Pill Icon">
-                <p>
-                    {{ __('Login') }}
-                </p>
-            </a>
-        </div>
-
-
-    @else
-        <div>
-            <a class="" href="{{ route('logout') }}"
-               onclick="event.preventDefault();
-                                         document.getElementById('logout-form').submit();">
-                <img src="{{asset('img/nav/8-logout.svg')}}" alt="Pill Icon">
-                <p>
-                    {{ __('Logout') }}
-                </p>
-            </a>
-
-            <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
-                @csrf
-            </form>
-        </div>
-
-    @endguest
-
-
-
-</nav>
index 6cc92505f96d652f073aab40ca7a90c0cab6d214..634f70dd47819fbbfc9a99e16b793cc5d0b44173 100644 (file)
@@ -8,7 +8,7 @@
 
     @guest
         <p class="denim">Si vous possédez un compte, <a href="{{route('login', ['redirect_to' => request()->getUri()])}}">cliquez ici pour vous connecter</a></p>
-        <p class="orange">Sinon, <a href="{{route('not-registered')}}">cliquez ici pour découvrir nos formules d'abonnement !</a></p>
+        <p class="green">Sinon, <a href="{{route('not-registered')}}">cliquez ici pour découvrir nos formules d'abonnement !</a></p>
     @endguest
     @auth
         @if(\Auth::user()->onTrial() || \Auth::user()->isOnDiscoverUser())
index 6e2ba411d79af694fd773ae72301439b91d1b7a6..6d2f4b15362b2629a19c0b4ef5174b84a78af98b 100644 (file)
@@ -7,7 +7,7 @@
 
     @endcan
 
-    <div class="container psq-mag">
+    <div class="container psq-actu">
 
 
         <h1>{{$file->isLast() ? "L'édition du jour" : $file->title}}</h1>
index fbed49bb3ed2c1e7f937262f0650377b2b7b1aff..39b4481f7c769ee01398b22f0db631004ef9591d 100644 (file)
                 <img src="{{ asset('img/logo_top.svg') }}" class="header-logo" alt="">
             </a>
 
-           @include('components.nav')
-
-
-
-
+           @include('partials.nav')
 
         @endif
 
         <main class="py-2">
             @yield('content')
         </main>
+
+        @if(!isset($hideFooter))
+            @include('partials.footer')
+        @endif
+
     </div>
 
     <!-- Global site tag (gtag.js) - Google Analytics -->
diff --git a/resources/views/partials/footer.blade.php b/resources/views/partials/footer.blade.php
new file mode 100644 (file)
index 0000000..374731f
--- /dev/null
@@ -0,0 +1,32 @@
+<footer class="container-fluid">
+    <div class="row">
+        <div class="col-sm-6"></div>
+        <div class="col-sm-6">
+            <div>
+
+                @guest
+                    <a href="{{route('login')}}">
+                        <p class="img-link">
+                            <img src="{{asset('img/nav-v2/9-login.png')}}" alt="Pill Icon">  Se connecter
+                        </p>
+                    </a>
+                @else
+
+                    <a href="{{ route('logout') }}"
+                       onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
+                        <p class="img-link">
+                        <img src="{{asset('img/nav-v2/10-logout.png')}}" alt="Pill Icon">
+                            {{ __('Logout') }}
+                        </p>
+                    </a>
+
+                    <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
+                        @csrf
+                    </form>
+                @endguest
+
+            </div>
+        </div>
+    </div>
+
+</footer>
diff --git a/resources/views/partials/nav.blade.php b/resources/views/partials/nav.blade.php
new file mode 100644 (file)
index 0000000..7fb8a9a
--- /dev/null
@@ -0,0 +1,96 @@
+<nav class="container">
+<ul>
+    <li>
+        <a href="/">
+            <img src="{{asset('img/nav-v2/1-actu.png')}}" alt="Pill Icon">
+            <p>à la une de<br>P.S.Q.</p>
+        </a>
+    </li>
+    <li>
+        <a href="{{action('ActuLabosController@index')}}">
+            <img src="{{asset('img/nav-v2/2-labos.png')}}" alt="Pill Icon">
+            <p>L'actu des<br>labos</p>
+        </a>
+    </li>
+    <li>
+        <a href="{{action('AdCampaignController@index')}}">
+            <img src="{{asset('img/nav-v2/3-com.png')}}" alt="Pill Icon">
+            <p>Le marketing<br>& &laquo;la com&raquo;</p>
+        </a>
+    </li>
+
+    <li>
+        <a href="{{route('humeur-agenda.index')}}">
+            <img src="{{asset('img/nav-v2/4-en-plus.png')}}" alt="Pill Icon">
+            <p>Humeur<br> & Agenda</p>
+        </a>
+    </li>
+
+    <li>
+        <a href="{{action('PodcastController@index')}}">
+            <img src="{{asset('img/nav-v2/5-onair.png')}}" alt="Pill Icon">
+            <p>Podcast de la<br>com santé</p>
+        </a>
+    </li>
+
+    <li>
+        <a href="{{route('archives')}}">
+            <img src="{{asset('img/nav-v2/6-ex.png')}}" alt="Pill Icon">
+            <p>les archives<br>de p.s.q</p>
+        </a>
+    </li>
+
+
+    <li>
+        <a href="{{route('mag.index')}}">
+            <img src="{{asset('img/nav-v2/7-mag.png')}}" alt="Pill Icon">
+            <p>Notre<br>trimestriel</p>
+        </a>
+    </li>
+
+
+    <li class="pill-bigger">
+        <a class="" href="{{ action('Auth\NotRegisteredYet@index') }}">
+            <img src="{{asset('img/nav-v2/8-nous-lire.png')}}" alt="Pill Icon">
+            <p>
+                COMMENT VOUS ABONNER
+            </p>
+        </a>
+    </li>
+</ul>
+
+
+
+{{--    @guest--}}
+
+{{--        <li>--}}
+{{--            <a class="" href="{{ route('login') }}">--}}
+{{--                <img src="{{asset('img/nav/8-login.png')}}" alt="Pill Icon">--}}
+{{--                <p>--}}
+{{--                    {{ __('Login') }}--}}
+{{--                </p>--}}
+{{--            </a>--}}
+{{--        </li>--}}
+
+
+{{--    @else--}}
+{{--        <li>--}}
+{{--            <a class="" href="{{ route('logout') }}"--}}
+{{--               onclick="event.preventDefault();--}}
+{{--                                         document.getElementById('logout-form').submit();">--}}
+{{--                <img src="{{asset('img/nav/8-logout.svg')}}" alt="Pill Icon">--}}
+{{--                <p>--}}
+{{--                    {{ __('Logout') }}--}}
+{{--                </p>--}}
+{{--            </a>--}}
+
+{{--            <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">--}}
+{{--                @csrf--}}
+{{--            </form>--}}
+{{--        </li>--}}
+
+{{--    @endguest--}}
+
+
+
+</nav>
index 73c42e24cfb310b4774c743cfde2a693ff0576e5..1396ef778127109bc05ebc2845aa990351f7f4f2 100644 (file)
@@ -2,7 +2,7 @@
 
 @section('content')
 
-    <div class="container">
+    <div class="container psq-podcasts">
         <h1>Revenez plus tard ! </h1>
 
         <p class="lead">Le Podcast de la communication santé sera bientôt disponible !</p>