1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
rshyn-site/templates/default.html

68 lines
2.9 KiB

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>rshyn.site</title>
<link rel="stylesheet" href="/css/default.css" />
<!-- search for more icons at https://fontawesome.com/search?o=r&m=free -->
<link href="/font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="/font-awesome/css/brands.css" rel="stylesheet" />
<link href="/font-awesome/css/solid.css" rel="stylesheet" />
<!-- favicon from http://www.dailydropcap.com/tag/r -->
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
<link rel="manifest" href="/favicon/site.webmanifest">
<script>
// check for dark mode preference, add functionality to theme switcher
document.addEventListener("DOMContentLoaded", function() {
const btn = document.getElementById("btn-switch");
const bdy = document.querySelector("body");
if (window.matchMedia('(prefers-color-scheme: dark)')) {
bdy.dataset.theme = "dark";
}
btn.addEventListener("click", function () {
bdy.dataset.theme = (bdy.dataset.theme === "light") ? "dark" : "light";
});
});
</script>
</head>
<body data-theme="light">
<header>
<div class="logo">
<a href="/">rshyn.site</a>
</div>
<nav>
<a href="/" title="Home page"><i class="fa-solid fa-house"></i></a>
<a href="/gallery.html" title="Photo gallery"><i class="fa-solid fa-image"></i></a>
<a href="https://github.com/rostyhn" title="Github"><i class="fa-brands fa-github"></i></a>
<a href="https://git.rshyn.site/explore/repos" title="Self-hosted Gitea instance"><i class="fa-brands fa-git-alt"></i></a>
<a id="btn-switch" title="Switch light / dark mode"><i class="fa-solid fa-circle-half-stroke"></i></a>
</nav>
</header>
<main role="main">
<h1>$title$</h1>
$body$
</main>
<footer>
<div style="float:right;">
<a href="/files/rostyslav_hnatyshyn_resume.pdf">My Resume</a>
</div>
<div>
<i>
Contact:
</i>
<div>
<img class="svg-img" src="../images/email.svg"/>
</div>
<div>
<img class="svg-img" src="../images/asu_email.svg"/>
</div>
</div>
</footer>
</body>
</html>