homepage/index.html

93 lines
4.0 KiB
HTML
Raw Normal View History

2023-06-14 15:07:59 +00:00
<!DOCTYPE html>
<html lang="en">
2023-06-17 20:16:00 +00:00
<head>
<title>Andrew's Homepage</title>
2023-06-18 12:57:54 +00:00
<meta charset="utf-8">
<meta name="description" content="The Homepage of Andrew Lalis.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles/font.css" type="text/css">
<!-- CSS class to hide elements if JS is not enabled. -->
<noscript><style>.jsonly{display: none !important;}</style></noscript>
<script>
// An inline script that manages the site's color theme.
const THEMES = ["light", "dark"];
function getPreferredTheme() {
const storedTheme = localStorage.getItem("theme");
if (storedTheme !== null && THEMES.includes(storedTheme)) return storedTheme;
if (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches) {
return "dark";
}
return "light";
2023-06-17 20:16:00 +00:00
}
2023-06-18 12:57:54 +00:00
function setPreferredTheme(theme) {
document.documentElement.className = theme;
localStorage.setItem("theme", theme);
}
2023-06-17 20:16:00 +00:00
2023-06-18 12:57:54 +00:00
setPreferredTheme(getPreferredTheme());
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", event => {
const newTheme = event.matches ? "dark" : "light";
setPreferredTheme(newTheme);
});
document.addEventListener("DOMContentLoaded", event => {
const themeToggleButton = document.getElementById("themeToggleButton");
themeToggleButton.onclick = clickEvent => {
const currentTheme = getPreferredTheme();
const idx = THEMES.indexOf(currentTheme);
const nextIdx = idx === THEMES.length - 1 ? 0 : idx + 1;
setPreferredTheme(THEMES[nextIdx]);
};
});
</script>
2023-06-17 20:16:00 +00:00
2023-06-18 12:57:54 +00:00
<link rel="stylesheet" href="styles/style.css" type="text/css">
</head>
2023-06-17 20:16:00 +00:00
2023-06-18 12:57:54 +00:00
<body>
<header class="page-header">
<h1>Andrew's Homepage</h1>
<nav>
<div>
<a class="page-header-selected" href="index.html">Home</a>
<a href="blog.html">Articles</a>
<a href="projects.html">Projects</a>
<a href="training.html">Training</a>
<a href="contact.html">Contact</a>
</div>
<div>
<a href="https://github.com/andrewlalis">GitHub</a>
<a href="https://www.linkedin.com/in/andrew-lalis/">LinkedIn</a>
<a href="https://www.youtube.com/channel/UC9X4mx6-ObPUB6-ud2IGAFQ">YouTube</a>
</div>
</nav>
<button id="themeToggleButton" class="jsonly">Change Color Theme</button>
<hr>
</header>
<main>
2023-06-17 20:16:00 +00:00
<article>
<h2>About Andrew</h2>
<p>
2023-06-18 12:57:54 +00:00
I (Andrew) am a software engineer by education and profession, but I also do a few other things in my spare time. That includes some combination of running, lifting, computer gaming, and cooking.
2023-06-17 20:16:00 +00:00
</p>
</article>
<article>
<h2>About this Site</h2>
<p>
2023-06-18 12:57:54 +00:00
This page was written by me, Andrew Lalis, to be my personal website on the world-wide-web. It's got all the usual stuff that a personal site should have, like important links and contact details, plus a little series of articles I've written about my experiences with programming, lifting, gaming, or anything else of interest.
2023-06-17 20:16:00 +00:00
</p>
<p>
2023-06-18 12:57:54 +00:00
As you can see, I'm a fan of the <em>"plain HTML is responsive"</em> school of thought. This website is intentionally very simple in its structure, styling, and interactivity. This is because I believe that the vast majority of the internet's most popular websites sacrifice usability and accessibility to make a flashier product. By using a simpler design, we can help to make the internet more accessible to all, regardless of their physical ability or device's processing power.
2023-06-17 20:16:00 +00:00
</p>
</article>
</main>
2023-06-14 15:07:59 +00:00
</body>
</html>