Added background image

This commit is contained in:
gpkvt 2023-06-06 11:33:48 +02:00
parent 973cce5509
commit 321731f49e
2 changed files with 32 additions and 6 deletions

View File

@ -48,6 +48,30 @@ a:hover #help {
transform: translate(-50%);
}
#background {
overflow: hidden;
position: absolute;
height: 100%;
width: 100%;
top: 0;
left: 0;
}
#background::before {
content: ' ';
display: block;
background: url('/ab.jpg');
background-repeat: no-repeat;
background-position: 50% 0;
background-size: cover;
left: 0;
top: 0;
width: 100%;
height: 100%;
position: absolute;
opacity: 0.3;
}
#header {
border-radius: 10px;
text-align: center;
@ -68,7 +92,7 @@ a:hover #help {
overflow: hidden;
width: 65%;
margin: 0;
position: absolute;
position: relative;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);

View File

@ -33,12 +33,14 @@
</head>
<body>
<div id="background">
<div id="content">
<div id="header">{{ i18n.title }}</div>
<hr>
{%- block main %}
{%- endblock %}
</div>
</div>
<script type="text/javascript">
initToggle();
autoReload();