}
p {
- margin-bottom: 1rem;
font-family: "Avenir Next", sans-serif;
font-size: 17px;
line-height: 1.6;
@each $class, $color in $psq_pages {
.#{$class} {
h1 {
- color: white;
- background-color: $color;
+ @extend .bigtitle;
+ color: $blue;
}
.pill-box-auto > div {
//background-color: rgba($color, 0.08) !important;
}
}
- img.cover-over {
- position: absolute;
- }
-
.cover-title {
width: fit-content;
}
p {
- text-transform: uppercase;
color: $psq_logo_blue;
background-color: $psq_light_blue;
text-align: center;
-
-h1 {
- @extend .highlight-red;
- text-transform: uppercase;
- margin: auto auto 1rem;
- text-align: center;
- display: table;
- font-size: x-large;
- padding: 6px 8px 4px;
-
-}
-
h2 {
font-weight: 500;
font-size: large;
- text-transform: uppercase;
color: $psq_blue;
}
--- /dev/null
+.psq-home {
+
+ &-banner {
+ padding: 64px 0;
+
+ .col2 {
+ padding: 0 0 0 64px;
+ gap: 23px 0
+ }
+ }
+
+ &-pdfimage {
+ height: 369px;
+ width: 252px;
+
+ img {
+ width: 100%;
+ }
+ }
+
+ &-edition-jour {
+ display: grid;
+ gap: 0 64px;
+ grid-template-columns: 387px 1fr;
+ grid-template-rows: 50% 50%;
+ width: 100%;
+ height: 557px;
+
+ .grid-1 {
+ grid-column: 2;
+ grid-row: 1;
+ display: flex;
+ flex-direction: column;
+ gap: 16px;
+ .date {
+ font-size: 20px;
+ font-weight: 600;
+ }
+ }
+
+ .cover {
+ grid-column: 1;
+ grid-row: 1 / 2;
+
+ img {
+ width: 100% !important;
+ }
+
+ &-title {
+ display: none;
+ }
+ }
+
+ .grid-2 {
+ grid-column: 2;
+ grid-row: 2;
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ margin-top: auto;
+ padding-top: 32px;
+ @extend .dotted;
+ h2 {
+ @extend .mediumtitle;
+ }
+
+ a {
+ font-size: 16px;
+ }
+ }
+ }
+}
@import "blocks";
@import "polls";
@import "articles";
+@import "home";
body {
margin-bottom: 0 !important;
min-height: calc(100vh - 360px);
}
+p,a,h1,h2,h3,h4,span,li,div {
+ color: $blue;
+}
+
@media print {
nav {
display: none;
padding: 12px 30px;
}
+.bigtitle {
+ font-size: 39px;
+ font-weight: 700;
+ @include media-breakpoint-up(lg) {
+ font-size: 61px;
+ }
+}
+
.container {
padding-right: 16px;
padding-left: 16px;
}
+
+.bigtitle {
+ font-size: 61px;
+ font-weight: bold;
+ line-height: 61px;
+}
+
+.mediumtitle {
+ font-size: 25px;
+ font-weight: 600;
+ line-height: 27px;
+ color: $blue;
+}
+
+.btnorange {
+ background-color: #D04D4B;
+ border-radius: 24px;
+ color: #ffffff !important;
+ font-size: 16px;
+ font-weight: 500;
+ padding: 12px 34px;
+ width: max-content;
+}
+
+.text-decoration-underline {
+ text-decoration: underline;
+}
+
+.dotted {
+ border-top: 1px dotted $blue;
+}
<div class="cover {{$class}}">
<a href="{{$link}}" target="{{$target}}">
- <img class="cover-bg" src="{{$file}}" alt="">
<img class="cover-over" src="{{$pdf->coverUrl}}" alt="">
<div class="cover-title">
- <img src="{{asset('img/blue-pill.svg')}}" alt="">
<p>{{$pdf->title}} - {{$pdf->created_at->format('d/m/Y')}}</p>
</div>
</a>
</div>
@endif
+ <div class="psq-home-banner">
+ <div class="row">
+ <div class="col-md-8">
+
+ <div class="psq-home-edition-jour">
+ <div class="grid-1">
+ <h1 class="bigtitle">L'édition du jour</h1>
+ <p class="date m-0">Lundi 17 septembre 2024</p>
+ <a href="" class="btnorange">Lire le quotidien</a>
+ </div>
+ <x-cover :pdf="$last_pdf->first()" type="3">
+ </x-cover>
+ <div class="grid-2">
+ <h2>Pas encore abonné ?</h2>
+ <a href="">Découvrez notre offre d’abonnement.</a>
+ </div>
+ </div>
+ {{--@foreach($last_pdf->first()->headlines ?? [] as $headline)
+
+ <x-headline :headline="$headline" class="mt-3">
+ </x-headline>
+
+ @endforeach--}}
+
+ </div>
+ <div class="col-md-4 col2 d-flex flex-column">
+ <h2 class="m-0">Découvrez gratuitement notre quotidien durant 1 mois</h2>
+ <div class="psq-home-pdfimage">
+ <img src="{{ $last_pdf->first()->coverUrl }}" alt="" />
+ </div>
+ <a href="" class="btnorange">Offre découverte</a>
+ </div>
+ </div>
+ </div>
+
<h1>L'actualité du médicament à la une de notre quotidien</h1>
<div class="row justify-content-center pt-3">
<div class="col-md-4">
@endif
- <main class="py-2 pill-box-theme-{{$theme ?? 'logo-blue'}}">
+ <main class="pill-box-theme-{{$theme ?? 'logo-blue'}}">
@yield('content')
</main>