Skip to content

Commit 46d9411

Browse files
committed
Добавлен оверлей изображений
1 parent a379217 commit 46d9411

File tree

5 files changed

+32
-7
lines changed

5 files changed

+32
-7
lines changed
File renamed without changes.

public/build/assets/app-BgXLvDwa.css public/build/assets/app-Dprx4ffe.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/manifest.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"src": "node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff2"
99
},
1010
"resources/css/app.scss": {
11-
"file": "assets/app-BgXLvDwa.css",
11+
"file": "assets/app-Dprx4ffe.css",
1212
"src": "resources/css/app.scss",
1313
"isEntry": true
1414
},
@@ -181,12 +181,12 @@
181181
"src": "resources/images/testimonial-author.jpg"
182182
},
183183
"resources/js/app.js": {
184-
"file": "assets/app-BpzpszQv.js",
184+
"file": "assets/app-CMvKAzkK.js",
185185
"name": "app",
186186
"src": "resources/js/app.js",
187187
"isEntry": true,
188188
"css": [
189-
"assets/app-BgXLvDwa.css"
189+
"assets/app-Dprx4ffe.css"
190190
],
191191
"assets": [
192192
"assets/bootstrap-icons-BtvjY1KL.woff2",

resources/css/app.scss

+18
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@
6060
color: #6a737d;
6161
padding: 0 1em;
6262
}
63+
64+
h1 {
65+
font-size: 5rem;
66+
67+
@media (max-width: 992px) {
68+
font-size: 3rem;
69+
}
70+
}
6371
}
6472

6573
.cover {
@@ -68,6 +76,16 @@
6876
overflow: hidden;
6977
background: #fff no-repeat 50% 50% / cover;
7078

79+
.overlay {
80+
background-color: rgba(0, 0, 0, 0.3);
81+
top: 0;
82+
left: 0;
83+
width: 100%;
84+
height: 100%;
85+
position: relative;
86+
z-index: 1;
87+
}
88+
7189
@media (max-width: 992px) {
7290
height: 180px;
7391
}

resources/views/site/page/show.blade.php

+10-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88
</x-slot>
99

1010
@if (!Str::startsWith($page->image('cover'), 'data'))
11-
<div class="cover" style="background-image: url({{ $page->image('cover') }})"></div>
11+
<div class="cover d-flex" style="background-image: url({{ $page->image('cover') }})">
12+
<div class="overlay d-flex">
13+
<div class="container d-flex align-items-end">
14+
<h1 class="text-white fw-bold mb-2 mb-md-5">{{ $page->title }}</h1>
15+
</div>
16+
</div>
17+
</div>
1218
@endif
1319

1420
<div class="container mt-4">
@@ -17,9 +23,10 @@
1723
<span class="badge text-bg-primary">{{ $tag->name }}</span>
1824
@endforeach
1925

20-
<h1 class="mt-3">{{ $page->title }}</h1>
2126

22-
{!! $page->renderBlocks() !!}
27+
<div class="mt-3 mt-md-5">
28+
{!! $page->renderBlocks() !!}
29+
</div>
2330
</div>
2431
</div>
2532

0 commit comments

Comments
 (0)