Use chocobo.png

This commit is contained in:
Chocobozzz 2019-07-16 16:00:11 +02:00
parent 4efab80a76
commit 429d7af3e5
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
4 changed files with 19 additions and 3 deletions

View File

@ -1,10 +1,21 @@
function register ({ registerHook, peertubeHelpers }) {
registerHook({
target: 'action:application.loaded',
handler: () => console.log('Hello application world')
handler: () => onApplicationLoaded(peertubeHelpers)
})
}
export {
register
}
function onApplicationLoaded (peertubeHelpers) {
console.log('Hello application world')
const baseStaticUrl = peertubeHelpers.getBaseStaticRoute()
const imageUrl = baseStaticUrl + '/images/chocobo.png'
const topLeftBlock = document.querySelector('.top-left-block')
topLeftBlock.style.backgroundImage = 'url(' + imageUrl + ')'
}

View File

@ -1,6 +1,6 @@
{
"name": "peertube-plugin-hello-world",
"version": "0.0.7",
"version": "0.0.8",
"description": "Hello world PeerTube plugin example",
"engine": {
"peertube": ">=1.3.0"

View File

@ -1,3 +1,8 @@
body {
--mainBackgroundColor: red !important;
}
#custom-css .header .icon-logo {
background: url('../../static/images/chocobo.png') no-repeat;
background-size: contain;
}

View File

@ -1,6 +1,6 @@
{
"name": "peertube-theme-background-red",
"version": "0.0.1",
"version": "0.0.2",
"description": "Example PeerTube theme",
"engine": {
"peertube": ">=1.3.1"