Skip to content

Commit 665183f

Browse files
authored
Merge pull request #280 from openzim/add-banner-overlay
Add an overlay image for the channel banner
2 parents 3e161d0 + 1b32ee3 commit 665183f

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030
- Remove `--no-zim`, `--keep` CLI arguments
3131
- Add support to index content from `zimui` JSON files in the ZIM using custom `IndexData` (#224)
3232
- Add integration tests to check the content of the ZIM created by the scraper (#268)
33+
- Add an overlay image for the channel banner (#279)
3334

3435
## [2.3.0] - 2024-05-22
3536

20.6 KB
Loading

zimui/src/assets/main.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ a {
2020
-webkit-text-size-adjust: 100%;
2121
}
2222

23+
.banner-bg .v-img__img--preload {
24+
filter: none;
25+
}
26+
2327
/* roboto-latin-100-normal */
2428
@font-face {
2529
font-family: 'Roboto';

zimui/src/components/channel/ChannelHeader.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import AboutDialogButton from '@/components/channel/AboutDialogButton.vue'
66
import { useMainStore } from '@/stores/main'
77
88
import profilePlaceholder from '@/assets/images/profile-placeholder.jpg'
9+
import bannerOverlay from '@/assets/images/banner-overlay.png'
910
1011
const { mdAndDown } = useDisplay()
1112
@@ -46,6 +47,7 @@ const tab = ref<number>(tabs[0].id)
4647
:scale="1"
4748
height="120"
4849
class="banner-bg rounded-lg rounded-t-0"
50+
:lazy-src="bannerOverlay"
4951
:src="main.channel?.bannerPath"
5052
></v-parallax>
5153

0 commit comments

Comments
 (0)