Skip to content

Commit

Permalink
Merge pull request #280 from openzim/add-banner-overlay
Browse files Browse the repository at this point in the history
Add an overlay image for the channel banner
  • Loading branch information
benoit74 authored Jul 29, 2024
2 parents 3e161d0 + 1b32ee3 commit 665183f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Remove `--no-zim`, `--keep` CLI arguments
- Add support to index content from `zimui` JSON files in the ZIM using custom `IndexData` (#224)
- Add integration tests to check the content of the ZIM created by the scraper (#268)
- Add an overlay image for the channel banner (#279)

## [2.3.0] - 2024-05-22

Expand Down
Binary file added zimui/src/assets/images/banner-overlay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions zimui/src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ a {
-webkit-text-size-adjust: 100%;
}

.banner-bg .v-img__img--preload {
filter: none;
}

/* roboto-latin-100-normal */
@font-face {
font-family: 'Roboto';
Expand Down
2 changes: 2 additions & 0 deletions zimui/src/components/channel/ChannelHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import AboutDialogButton from '@/components/channel/AboutDialogButton.vue'
import { useMainStore } from '@/stores/main'
import profilePlaceholder from '@/assets/images/profile-placeholder.jpg'
import bannerOverlay from '@/assets/images/banner-overlay.png'
const { mdAndDown } = useDisplay()
Expand Down Expand Up @@ -46,6 +47,7 @@ const tab = ref<number>(tabs[0].id)
:scale="1"
height="120"
class="banner-bg rounded-lg rounded-t-0"
:lazy-src="bannerOverlay"
:src="main.channel?.bannerPath"
></v-parallax>
Expand Down

0 comments on commit 665183f

Please sign in to comment.