|
| 1 | +<style lang="scss"> |
| 2 | + .post-detail-cover { |
| 3 | + position: relative; |
| 4 | + overflow: hidden; |
| 5 | + } |
| 6 | +
|
| 7 | + .post-detail-cover .ratio { |
| 8 | + min-height: 300px; |
| 9 | + } |
| 10 | +
|
| 11 | + .post-detail-cover #thumbnail { |
| 12 | + width: 100%; |
| 13 | + height: 100%; |
| 14 | + object-fit: cover; |
| 15 | + } |
| 16 | +
|
| 17 | + .post-detail-cover__overlay { |
| 18 | + position: absolute; |
| 19 | + inset: 0; |
| 20 | + padding: 1.5rem; |
| 21 | + color: #fff; |
| 22 | + background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); |
| 23 | + display: flex; |
| 24 | + flex-direction: column; |
| 25 | + justify-content: flex-end; |
| 26 | + gap: 1rem; |
| 27 | + } |
| 28 | +</style> |
| 29 | + |
1 | 30 | <div class="card mb-3 border-0"> |
2 | 31 | <!-- Kapak görseli + gradient + başlık + footer --> |
3 | 32 | {#if (typeof themeSettings.postCoverImageEnabled === "undefined" ? true : themeSettings.postCoverImageEnabled) && data.post.thumbnailUrl} |
4 | | - <div class="position-relative overflow-hidden"> |
5 | | - <img |
6 | | - src={data.post.thumbnailUrl} |
7 | | - class="w-100 h-100 d-block rounded-5" |
8 | | - style="object-fit: cover; min-height: 300px;" |
9 | | - alt={data.post.title} |
10 | | - title={data.post.title} /> |
| 33 | + <div class="post-detail-cover rounded-5"> |
| 34 | + <div class="ratio ratio-16x9"> |
| 35 | + <img |
| 36 | + id="thumbnail" |
| 37 | + src={data.post.thumbnailUrl} |
| 38 | + class="d-block" |
| 39 | + alt={data.post.title} |
| 40 | + title={data.post.title} /> |
| 41 | + </div> |
11 | 42 |
|
12 | 43 | <!-- Başlık + footer --> |
13 | | - <div |
14 | | - class="position-absolute bottom-0 start-0 w-100 text-white p-3 rounded-5" |
15 | | - style=" |
16 | | - background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); |
17 | | - "> |
| 44 | + <div class="post-detail-cover__overlay rounded-5"> |
18 | 45 | <!-- Footer bilgileri --> |
19 | 46 | <div class="d-flex flex-lg-row align-items-end justify-content-between"> |
20 | 47 | <div |
|
0 commit comments