Compare commits
5 Commits
9e81c37bfd
...
56de474153
Author | SHA1 | Date |
---|---|---|
filifa | 56de474153 | |
filifa | 13f693d312 | |
filifa | 658b07f27b | |
filifa | d67b31bc40 | |
filifa | dbe78c799a |
17
about.html
17
about.html
|
@ -3,23 +3,24 @@
|
|||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<link rel="stylesheet" href="styles.css" />
|
||||
<link rel="icon" href="favicon.ico" />
|
||||
<script src="elements.js" type="text/javascript" defer></script>
|
||||
<link rel="stylesheet" href="/styles/default.css" />
|
||||
<link rel="stylesheet" href="/styles/about.css" />
|
||||
<link rel="icon" href="/images/favicon.ico" />
|
||||
<title>About</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<dd-header></dd-header>
|
||||
<header>
|
||||
<p><a id="homelink" href="/">dairydemon.net</a></p>
|
||||
</header>
|
||||
<main>
|
||||
<article>
|
||||
<h1>About.</h1>
|
||||
<img id="usbimg" src="usb.jpg" alt="an unsettling comic showing a man
|
||||
putting a usb dongle into his mouth and moving his face with
|
||||
the connected mouse" width=320 height=393 />
|
||||
<img id="aboutimg" src="/images/loveland-frog.png" alt="an artist's
|
||||
rendering of the Loveland frog monster" width=944 height=850
|
||||
/>
|
||||
<p>I'm in your walls.</p>
|
||||
</article>
|
||||
</main>
|
||||
<dd-footer></dd-footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -3,14 +3,15 @@
|
|||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<link rel="stylesheet" href="styles.css" />
|
||||
<link rel="icon" href="favicon.ico" />
|
||||
<script src="elements.js" type="text/javascript" defer></script>
|
||||
<link rel="stylesheet" href="/styles/default.css" />
|
||||
<link rel="icon" href="/images/favicon.ico" />
|
||||
<title>Attributions</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<dd-header></dd-header>
|
||||
<header>
|
||||
<p><a id="homelink" href="/">dairydemon.net</a></p>
|
||||
</header>
|
||||
<main>
|
||||
<article>
|
||||
<h1>Attributions.</h1>
|
||||
|
@ -23,13 +24,14 @@
|
|||
<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA 2.0</a>
|
||||
</li>
|
||||
<li>
|
||||
That weird usb mouse comic on the about page is
|
||||
"<a href="https://commons.wikimedia.org/wiki/File:Loveland_frog.png">Loveland frog</a>"
|
||||
by
|
||||
<a href="https://www.instagram.com/hunter.slugdaddy/">Hunter Scheiderer</a>
|
||||
<a href="https://commons.wikimedia.org/wiki/User:Triangulum">Tim Bertelink</a>
|
||||
is licensed under
|
||||
<a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>
|
||||
</li>
|
||||
</ul>
|
||||
</article>
|
||||
</main>
|
||||
<dd-footer></dd-footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
42
elements.js
42
elements.js
|
@ -1,42 +0,0 @@
|
|||
class DDHeader extends HTMLElement {
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
this.innerHTML = `
|
||||
<header>
|
||||
<div id="headerimg"></div>
|
||||
<div id="headermain">
|
||||
<p><a id="homelink" href="/">dairydemon.net</a></p>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="https://social.dairydemon.net">mastodon</a></li>
|
||||
<li><a href="https://scm.dairydemon.net">git</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
class DDFooter extends HTMLElement {
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
this.innerHTML = `
|
||||
<footer>
|
||||
<ul>
|
||||
<li><a href="/about.html">about</a></li>
|
||||
<li><a href="/attributions.html">attributions</a></li>
|
||||
</ul>
|
||||
</footer>
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define("dd-header", DDHeader);
|
||||
customElements.define("dd-footer", DDFooter);
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 1009 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
26
index.html
26
index.html
|
@ -3,14 +3,25 @@
|
|||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<link rel="stylesheet" href="styles.css" />
|
||||
<link rel="icon" href="favicon.ico" />
|
||||
<script src="elements.js" type="text/javascript" defer></script>
|
||||
<link rel="stylesheet" href="/styles/default.css" />
|
||||
<link rel="stylesheet" href="/styles/index.css" />
|
||||
<link rel="icon" href="/images/favicon.ico" />
|
||||
<title>Dairy Demon</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<dd-header></dd-header>
|
||||
<header>
|
||||
<div id="headerimg"></div>
|
||||
<div id="headermain">
|
||||
<p><a id="homelink" href="/">dairydemon.net</a></p>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="https://social.dairydemon.net">mastodon</a></li>
|
||||
<li><a href="https://scm.dairydemon.net">git</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
<main>
|
||||
<article>
|
||||
<h1>Hi.</h1>
|
||||
|
@ -21,6 +32,11 @@
|
|||
</p>
|
||||
</article>
|
||||
</main>
|
||||
<dd-footer></dd-footer>
|
||||
<footer>
|
||||
<ul>
|
||||
<li><a href="/about.html">about</a></li>
|
||||
<li><a href="/attributions.html">attributions</a></li>
|
||||
</ul>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
10
mgs/mgs.html
10
mgs/mgs.html
|
@ -3,14 +3,15 @@
|
|||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<link rel="stylesheet" href="/styles.css" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<script src="/elements.js" type="text/javascript" defer></script>
|
||||
<link rel="stylesheet" href="/styles/default.css" />
|
||||
<link rel="icon" href="/images/favicon.ico" />
|
||||
<title>Metal Gear Solid Trivia</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<dd-header></dd-header>
|
||||
<header>
|
||||
<p><a id="homelink" href="/">dairydemon.net</a></p>
|
||||
</header>
|
||||
<main>
|
||||
<nav>
|
||||
<h2>Contents</h2>
|
||||
|
@ -210,6 +211,5 @@
|
|||
</ul>
|
||||
</article>
|
||||
</main>
|
||||
<dd-footer></dd-footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#aboutimg {
|
||||
width: 256px;
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 10px;
|
||||
float: left;
|
||||
}
|
|
@ -18,60 +18,19 @@ main nav {
|
|||
|
||||
/* header and footer */
|
||||
header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: min-content;
|
||||
}
|
||||
|
||||
footer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#headerimg {
|
||||
border-right: 3px solid black;
|
||||
width: 128px;
|
||||
background-image: url("/watching.jpg");
|
||||
flex: initial;
|
||||
align-self: stretch;
|
||||
}
|
||||
|
||||
#headermain {
|
||||
text-align: center;
|
||||
flex: auto;
|
||||
}
|
||||
|
||||
#headermain a {
|
||||
color: blue;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
#headermain a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#homelink {
|
||||
color: blue;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
font-size: xx-large;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#headermain nav {
|
||||
font-size: x-large;
|
||||
}
|
||||
|
||||
nav ul,
|
||||
footer ul {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
nav ul li,
|
||||
footer ul li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
nav ul li + li::before,
|
||||
footer ul li + li::before {
|
||||
content: " | ";
|
||||
#homelink:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* main content */
|
||||
|
@ -108,15 +67,6 @@ ol ol ol {
|
|||
list-style: lower-roman
|
||||
}
|
||||
|
||||
#usbimg {
|
||||
width: 256px;
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 10px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 80ch) {
|
||||
/* to avoid zoom issues, grid layout is only used when mid-width is
|
||||
* large enough */
|
|
@ -0,0 +1,52 @@
|
|||
/* header and footer */
|
||||
header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: min-content;
|
||||
}
|
||||
|
||||
footer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#headerimg {
|
||||
border-right: 3px solid black;
|
||||
width: 128px;
|
||||
background-image: url("/images/watching.jpg");
|
||||
flex: initial;
|
||||
align-self: stretch;
|
||||
}
|
||||
|
||||
#headermain {
|
||||
text-align: center;
|
||||
flex: auto;
|
||||
}
|
||||
|
||||
#headermain a {
|
||||
color: blue;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
#headermain a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#headermain nav {
|
||||
font-size: x-large;
|
||||
}
|
||||
|
||||
nav ul,
|
||||
footer ul {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
nav ul li,
|
||||
footer ul li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
nav ul li + li::before,
|
||||
footer ul li + li::before {
|
||||
content: " | ";
|
||||
}
|
Loading…
Reference in New Issue