get sga button working
This commit is contained in:
parent
979029a0d6
commit
5f9dff04f0
5 changed files with 25 additions and 1 deletions
15
public/scripts/sga.js
Normal file
15
public/scripts/sga.js
Normal 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";
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
|
|
3
public/styles/fonts/galactic-LICENSE.md
Normal file
3
public/styles/fonts/galactic-LICENSE.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
***Note of the author***
|
||||
|
||||
From "Commander Keen"
|
BIN
public/styles/fonts/galactic.ttf
Normal file
BIN
public/styles/fonts/galactic.ttf
Normal file
Binary file not shown.
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue