get sga button working

This commit is contained in:
nelle 2024-08-03 01:35:08 -06:00
parent 979029a0d6
commit 5f9dff04f0
5 changed files with 25 additions and 1 deletions

15
public/scripts/sga.js Normal file
View file

@ -0,0 +1,15 @@
function onload() {
sdocument.getElementById("body").style.fontFamily = "terminess-nf, system-ui";
}
function toggleTheme() {
// Obtains an array of all <link>
// elements.
// Select your element using indexing.
if (document.getElementById("body").style.fontFamily !== "standardGalactic, system-ui") {
document.getElementById("body").style.fontFamily = "standardGalactic, system-ui";
document.getElementById("body").style.fontWeight = "lighter";
} else {
document.getElementById("body").style.fontFamily = " terminess-nf, system-ui";
}
}

View file

@ -6,9 +6,14 @@
src: url(../fonts/TerminessNerdFont-Regular.ttf);
}
@font-face {
font-family: standardGalactic;
src: url(../fonts/galactic.ttf);
}
:root {
font-size: 20px;
font-family: terminess-nf;
font-family: terminess-nf, system-ui;
padding: 1rem;
width: 1000px;

View file

@ -0,0 +1,3 @@
***Note of the author***
From "Commander Keen"

Binary file not shown.

View file

@ -11,5 +11,6 @@ import Footer from "../components/Footer.astro";
<body onload="onload()" id="body">
<slot />
<Footer />
<script type="text/javascript" src="/scripts/sga.js"></script>
</body>
</html>