Small updates

This commit is contained in:
Benjamin Bädorf 2022-06-04 18:25:09 +02:00
parent 7c5477a20b
commit 9100db4c17
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C
5 changed files with 19 additions and 39 deletions

View file

@ -89,17 +89,6 @@
<a href="https://greenbaum.cloud"><img src="/assets/greenbaum-cloud-logo.svg" width="230" height="auto"></a>
</section>
</main>
<script>
document.getElementById('x1312').innerHTML = (new Array(400)).fill("0x1312").join(" ");
const background = document.getElementById("background");
const logo = document.getElementById("logo").cloneNode(true);
logo.id = "";
(new Array(Math.ceil(window.innerWidth / 100) * Math.ceil(window.innerHeight / 100)))
.fill(null)
.map(_ => logo.cloneNode(true))
.forEach(l => {
background.appendChild(l);
});
</script>
<script src="./background.js"></script>
</body>
</html>

10
background.js Normal file
View file

@ -0,0 +1,10 @@
document.getElementById('x1312').innerHTML = (new Array(400)).fill("0x1312").join(" ");
const background = document.getElementById("background");
const logo = document.getElementById("logo").cloneNode(true);
logo.id = "";
(new Array(Math.ceil(window.innerWidth / 100) * Math.ceil(window.innerHeight / 100)))
.fill(null)
.map(_ => logo.cloneNode(true))
.forEach(l => {
background.appendChild(l);
});

View file

@ -33,17 +33,6 @@
class="ps-footer--link"
>climate-neutral hosting by Greenbaum Cloud</a>
</footer>
<script>
document.getElementById('x1312').innerHTML = (new Array(400)).fill("0x1312").join(" ");
const background = document.getElementById("background");
const logo = document.getElementById("logo").cloneNode(true);
logo.id = "";
(new Array(Math.ceil(window.innerWidth / 100) * Math.ceil(window.innerHeight / 100)))
.fill(null)
.map(_ => logo.cloneNode(true))
.forEach(l => {
background.appendChild(l);
});
</script>
<script src="./background.js"></script>
</body>
</html>

View file

@ -87,16 +87,5 @@
</div>
</section>
</main>
<script>
document.getElementById('x1312').innerHTML = (new Array(400)).fill("0x1312").join(" ");
const background = document.getElementById("background");
const logo = document.getElementById("logo").cloneNode(true);
logo.id = "";
(new Array(Math.ceil(window.innerWidth / 100) * Math.ceil(window.innerHeight / 100)))
.fill(null)
.map(_ => logo.cloneNode(true))
.forEach(l => {
background.appendChild(l);
});
</script>
<script src="./background.js"></script>
</html>

View file

@ -164,14 +164,17 @@ html {
border: 12px solid black;
}
.ps-page--link:hover {
text-shadow: 0.3vw 0px 0px var(--accent);
}
.ps-footer--link {
font-size: 6rem;
border: 6px solid black;
}
.ps-footer--link:hover,
.ps-page--link:hover {
text-shadow: 0.3vw 0px 0px var(--accent);
.ps-footer--link:hover {
text-shadow: 0.2vw 0px 0px var(--accent);
}
@media screen and (min-width: 700px) {