I'm just a silly doggo
All checks were successful
Lint / lint (push) Successful in 20s
Sync gmem.ca / sync (push) Successful in 42s

This commit is contained in:
Gabriel Simmer 2023-12-30 15:43:40 +00:00
parent e3c43d9ade
commit a6cbbd9504
Signed by: arch
SSH key fingerprint: SHA256:m3OEcdtrnBpMX+2BDGh/byv3hrCekCLzDYMdvGEKPPQ
2 changed files with 153 additions and 8 deletions

View file

@ -1,12 +1,58 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>gmem.ca</title>
</head>
<body>
<head>
<meta charset="UTF-8">
<title>gmem.ca</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<main>
<input type="checkbox" name="language" />
<label for="language">Dog Mode</label>
<header>
<img src="./avatar.png">
<h1>arf arf</h1>
<p><i>*wags tail*</i> awoo woof woof <a href="https://floofy.tech/@arch" rel="me">bark</a></p>
<p><a href="https://fursona.gmem.ca/gmem.ca">yip arf</a></p>
</body>
</header>
<p id="social"><i>*wags tail*</i> awoo woof woof <a href="https://floofy.tech/@arch" rel="me">bark</a></p>
<p id="fursona"><a href="https://fursona.gmem.ca/gmem.ca">yip arf</a></p>
</main>
<style>
header {
display: flex;
align-items: center;
height: 10vh;
}
img {
max-width: 100%;
max-height: 100%;
}
</style>
<script>
const checkbox = document.querySelector("input[name=language]");
const header = document.querySelector("h1");
const social = document.querySelector("#social");
const fursona = document.querySelector("#fursona");
addEventListener("load", (event) => reloaddog());
checkbox.addEventListener('change', function() {
toggledog(this.checked);
});
const toggledog = (status) => {
localStorage.setItem("dog", status);
reloaddog();
}
const reloaddog = () => {
if (localStorage.getItem("dog") == "true") {
header.innerHTML = "arf arf!";
social.innerHTML = "<i>*wags tail*</i> awoo woof woof <a href=\"https://floofy.tech/@arch\" rel=\"me\">bark</a>"
fursona.innerHTML = "<a href=\"https://fursona.gmem.ca/gmem.ca\">yip arf</a>"
} else {
header.innerHTML = "Arch is a dog";
social.innerHTML = "<i>hi!</i> follow me on the <a href=\"https://floofy.tech/@arch\" rel=\"me\">fedi</a>"
fursona.innerHTML = "<a href=\"https://fursona.gmem.ca/gmem.ca\">check out my fursona</a>"
}
}
</script>
</body>
</html>

99
gmem.ca/styles.css Normal file
View file

@ -0,0 +1,99 @@
/** XESS by Xe Iaso
https://github.com/Xe/Xess
Copyright (c) 2021 Xe <me@christine.website>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
main {
font-family: monospace, monospace;
max-width: 38rem;
padding: 2rem;
margin: auto;
}
@media only screen and (max-device-width: 736px) {
main {
padding: 0rem;
}
}
::selection {
background: #d3869b;
}
body {
background: #282828;
color: #ebdbb2;
}
pre {
background-color: #3c3836;
padding: 1em;
border: 0;
}
a, a:active, a:visited {
color: #b16286;
background-color: #1d2021;
}
h1, h2, h3, h4, h5 {
margin-bottom: .1rem;
}
blockquote {
border-left: 1px solid #bdae93;
margin: 0.5em 10px;
padding: 0.5em 10px;
}
footer {
align: center;
}
@media (prefers-color-scheme: light) {
body {
background: #fbf1c7;
color: #3c3836;
}
pre {
background-color: #ebdbb2;
padding: 1em;
border: 0;
}
a, a:active, a:visited {
color: #b16286;
background-color: #f9f5d7;
}
h1, h2, h3, h4, h5 {
margin-bottom: .1rem;
}
blockquote {
border-left: 1px solid #655c54;
margin: 0.5em 10px;
padding: 0.5em 10px;
}
}