mirror of
https://github.com/opencloud-eu/opencloud-compose.git
synced 2026-06-08 20:20:04 +08:00
add logo url
This commit is contained in:
@@ -28,6 +28,12 @@ body {
|
|||||||
|
|
||||||
.kc-logo-text {
|
.kc-logo-text {
|
||||||
background-image: url(../img/logo.svg) !important;
|
background-image: url(../img/logo.svg) !important;
|
||||||
width: 400px;
|
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
|
width: 400px;
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#kc-header-wrapper{
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
|
const setLogoUrl = (url) => {
|
||||||
|
const logoTextSelector = document.querySelector(".kc-logo-text");
|
||||||
|
|
||||||
|
if (!logoTextSelector) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
const link = document.createElement("a");
|
||||||
|
link.href = url;
|
||||||
|
|
||||||
|
const parent = logoTextSelector.parentNode;
|
||||||
|
parent.insertBefore(link, logoTextSelector);
|
||||||
|
link.appendChild(logoTextSelector);
|
||||||
|
}
|
||||||
|
|
||||||
|
setLogoUrl('https://opencloud.eu')
|
||||||
|
});
|
||||||
@@ -1 +0,0 @@
|
|||||||
<#include "login.ftl">
|
|
||||||
@@ -2,3 +2,4 @@ parent=keycloak
|
|||||||
import=common/keycloak
|
import=common/keycloak
|
||||||
|
|
||||||
styles=css/login.css css/theme.css
|
styles=css/login.css css/theme.css
|
||||||
|
scripts=js/script.js
|
||||||
Reference in New Issue
Block a user