leilukin-site/_site/sitemap/index.html

605 lines
22 KiB
HTML
Raw Normal View History

2024-04-20 10:10:34 +00:00
<!DOCTYPE html>
<html lang="en" dir="ltr" id="page-top">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="Site Map">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Site map of Leilukin's Hub.">
<meta name="generator" content="Eleventy v2.0.1">
<meta property="og:type" content="website">
<meta property="og:url" content="https://leilukin.neocities.org/sitemap/">
<meta property="og:site_name" content="Leilukin's Hub">
<meta property="og:locale" content="en_MY">
<meta property="og:description" content="Site map of Leilukin's Hub.">
<meta name="twitter:card" content="summary">
<meta name="twitter:url" content="https://leilukin.neocities.org/sitemap/">
<meta name="twitter:description" content="Site map of Leilukin's Hub.">
<link rel="canonical" href="https://leilukin.neocities.org/sitemap/">
<link rel="stylesheet" href="/assets/css/main.css">
<link rel="stylesheet" href="/assets/css/pridesymbols.css">
2024-04-20 10:10:34 +00:00
<link rel="stylesheet" href="/assets/fonts/noto-sans/noto-sans.css">
<link href="/assets/fonts/fontawesome/css/fontawesome.css" rel="stylesheet" />
<link href="/assets/fonts/fontawesome/css/brands.css" rel="stylesheet" />
<link href="/assets/fonts/fontawesome/css/solid.css" rel="stylesheet" />
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png">
<link rel="manifest" href="/assets/favicon/site.webmanifest">
<title>
Site Map | Leilukin's Hub
</title>
</head>
<body>
<header class="hero">
<div class="hero__top-bar hidden"></div>
<div class="hero__img">
<img fetchpriority="high" src="/assets/leilukin/Leilukins-Hub-website-banner.png" alt="Banner of Leilukin's Hub">
2024-04-20 10:10:34 +00:00
</div>
</header>
<style>
.hero {
width: 100%;
background-color: var(--clr-hero-bg);
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
.hero__top-bar {
background-color: var(--clr-navbar-bg);
width: 100%;
2024-04-23 07:57:54 +00:00
padding: 0.5em 0.7em;
2024-04-20 10:10:34 +00:00
}
.hero__img {
display: grid;
place-content: center;
}
.hero img {
2024-04-20 11:43:13 +00:00
object-fit: contain;
2024-04-20 10:10:34 +00:00
overflow: hidden;
2024-04-20 11:43:13 +00:00
max-height: 16rem;
filter: drop-shadow(0.1rem 0.1rem 0.2rem black);
2024-04-20 10:10:34 +00:00
}
</style>
<script defer>
const hero = document.querySelector(".hero");
const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img");
const todayEvent = getTodayEvent();
2024-04-29 05:07:49 +00:00
if (todayEvent) {
2024-04-20 10:10:34 +00:00
heroTopBarEl.classList.remove('hidden');
2024-04-29 05:07:49 +00:00
heroTopBarEl.innerHTML = todayEvent.blurb;
2024-04-20 10:10:34 +00:00
2024-04-29 05:07:49 +00:00
if (todayEvent.class) {
headerImgEl.classList.add(todayEvent.class);
2024-04-20 10:10:34 +00:00
}
}
function getTodayEvent() {
const date = new Date();
const month = date.getMonth() + 1;
const day = date.getDate();
const year = date.getFullYear();
const weekOfMonth = Math.ceil(day / 7);
2024-04-20 10:10:34 +00:00
2024-04-29 05:07:49 +00:00
const leilukinsHubLaunchDate = new Date("2022-09-11").getFullYear();
const siteAnniversary = year - leilukinsHubLaunchDate;
2024-04-29 05:07:49 +00:00
if (month === 3 && day === 1)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is <a href="https://www.unaids.org/en/zero-discrimination-day">Zero Discrimination Day</a>`,
2024-04-29 05:07:49 +00:00
class: "flag-progress-intersex",
};
else if (month === 3 && day === 8)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is <a href="https://www.internationalwomensday.com/">International Women's Day}</a>`,
2024-04-29 05:07:49 +00:00
class: "symbol-venus",
};
else if (month === 3 && day === 31)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is <a href="https://www.manygendersonevoice.org/tdov.html">Trans Day of Visibility</a>`,
2024-04-29 05:07:49 +00:00
class: "flag-trans",
};
else if (month === 4 && day === 6)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is <a href="https://internationalasexualityday.org/en">International Asexuality Day</a>`,
2024-04-29 05:07:49 +00:00
class: "flag-ace",
};
else if (month === 4 && day === 26)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is <a href="https://www.lesbianvisibilityweek.com">Lesbian Visibility Day</a>`,
2024-04-29 05:07:49 +00:00
class: "flag-lesbian",
};
else if (month === 4 && weekOfMonth === 4)
return {
2024-05-10 12:31:53 +00:00
blurb: `This week is <a href="https://www.lesbianvisibilityweek.com">Lesbian Visibility Week</a>`,
class: "flag-lesbian",
};
2024-04-29 05:07:49 +00:00
else if (month === 5 && day === 17)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is <a href="https://may17.org">International Day Against Homophobia, Biphobia and Transphobia</a>`,
2024-04-29 05:07:49 +00:00
class: "flag-progress",
};
else if (month === 5 && day === 19)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is <a href="https://www.believeoutloud.com/voices/article/agender-pride-day/">Agender Pride Day</a>`,
2024-04-29 05:07:49 +00:00
class: "flag-agender",
};
else if (month === 5 && day === 25)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is <a href="https://genderedintelligence.co.uk/panvisibilityday">Pansexual and Panromantic Awareness and Visibility Day</a>`,
2024-04-29 05:07:49 +00:00
class: "flag-pan",
};
else if (month === 6)
return {
2024-05-10 12:31:53 +00:00
blurb: `Happy <a href="https://www.loc.gov/lgbt-pride-month/about/">Pride Month</a>!`,
2024-04-29 05:07:49 +00:00
class: "flag-progress-intersex",
};
else if (month === 7 && day === 14)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is <a href="https://www.manygendersonevoice.org/non-binary-peoples-day.html">Non-Binary People's Day</a>`,
class: "flag-non-binary",
2024-04-29 05:07:49 +00:00
};
else if (month === 7 && day === 28)
return {
blurb: `Today is Leilukin's Birthday`
};
else if (month === 8 && day === 25)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is <a href="https://aromanticspectrumday.net/">Aromantic Spectrum Visibility Day</a>`,
class: "flag-aro",
};
2024-04-29 05:07:49 +00:00
else if (month === 9 && day === 11)
return {
blurb: `Today is the ${siteAnniversary}-year anniversary of the launch of Leilukin&#39;s Hub`
2024-04-29 05:07:49 +00:00
};
else if (month === 9 && day === 23)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is <a href="https://bivisibilityday.com/about">Bi Visibility Day</a>`,
2024-04-29 05:07:49 +00:00
class: "flag-bi",
};
else if (month === 10 && day === 8)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is <a href="https://www.lgbtiqhealth.org.au/international_lesbian_day2">International Lesbian Day</a>`,
2024-04-29 05:07:49 +00:00
class: "flag-lesbian",
};
else if (month === 10 && day === 11)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is <a href="https://www.hrc.org/resources/national-coming-out-day">National Coming Out Day</a>`,
2024-04-29 05:07:49 +00:00
class: "flag-rainbow",
};
else if (month === 10 && day === 17)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is the start of <a href="https://www.grlgbtqhealthcareconsortium.org/significantdates/genderfluid-visibility-week">Genderfluid Visibility Week</a>`,
2024-04-29 05:07:49 +00:00
class: "flag-genderfluid",
};
else if (month === 10 && day === 24)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is the start of <a href="https://www.grlgbtqhealthcareconsortium.org/significantdates/ace-week">Ace Week</a>`,
2024-04-29 05:07:49 +00:00
class: "flag-ace",
};
else if (month === 10 && day === 26)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is <a href="https://interactadvocates.org/intersex-awareness-day">Intersex Awareness Day</a>`,
2024-04-29 05:07:49 +00:00
class: "flag-intersex",
};
else if (month === 11 && day === 13)
return {
2024-05-10 12:31:53 +00:00
blurb: `Today is the start of <a href="https://glaad.org/transweek/">Transgender Awareness Week</a>`,
class: "flag-trans",
};
2024-04-20 10:10:34 +00:00
else
2024-04-29 05:07:49 +00:00
return null;
2024-04-20 10:10:34 +00:00
}
</script>
<nav class="navbar">
<button class="navbar__toggle" aria-label="Navigation menu toggle">
<i class="fa-solid fa-bars"></i>
<h2 class="navbar__title">Navigation</h2>
</button>
<ul class="navbar__links">
2024-04-20 10:10:34 +00:00
<li>
<a href="/">Home</a>
2024-04-20 10:10:34 +00:00
</li>
<li>
<a href="/about/">About</a>
2024-04-20 10:10:34 +00:00
</li>
<li>
<a href="/now/">Now</a>
2024-04-20 10:10:34 +00:00
</li>
<li>
<a href="/blog/">Blog</a>
2024-04-20 10:10:34 +00:00
</li>
<li>
<a href="/articles/">Articles</a>
2024-04-20 10:10:34 +00:00
</li>
<li>
<a href="/projects/">Projects</a>
2024-04-20 10:10:34 +00:00
</li>
<li>
<a href="/shrines/">Shrines</a>
2024-04-20 10:10:34 +00:00
</li>
<li>
<a href="/links/">Links</a>
2024-04-20 10:10:34 +00:00
</li>
<li><a href="https://leilukin.123guestbook.com/">Guestbook</a></li>
</ul>
</nav>
<style>
.navbar {
background: var(--clr-navbar-bg);
padding: 0.6em 1em;
2024-04-20 10:10:34 +00:00
width: 100%;
z-index: 999;
position: sticky;
top: 0;
}
.navbar__toggle,
.navbar__title {
color: var(--clr-navbar-link);
font-size: 1.3rem;
}
.navbar__toggle {
display: flex;
align-items: center;
gap: 0.5em;
border: none;
padding: 0;
margin: 0;
background-color: inherit;
}
.navbar__toggle:focus,
.navbar a:focus {
outline: 0.15em solid var(--clr-navbar-link);
}
2024-04-20 10:10:34 +00:00
.navbar a {
color: var(--clr-navbar-link);
text-decoration: none;
cursor: pointer;
}
.navbar a:hover {
color: var(--clr-link-hover);
}
.navbar a:focus {
outline-offset: 0.3em;
}
.navbar__links {
2024-04-20 10:10:34 +00:00
list-style: none;
display: none;
gap: 1em;
padding: 0.5em 1.8em;
overflow: auto;
2024-04-20 10:10:34 +00:00
}
.navbar__links--show {
display: grid;
}
/* Tablet screen size */
@media only screen and (min-width: 43.75rem) {
.navbar {
padding: 0 0.6em;
}
.navbar__toggle {
display: none;
}
.navbar__links {
display: flex;
justify-content: space-evenly;
gap: 0.5em;
flex-wrap: wrap;
padding: 0;
overflow: unset;
}
}
2024-04-20 10:10:34 +00:00
</style>
<script defer>
const navbarToggle = document.querySelector('.navbar__toggle');
const navbarLinks = document.querySelector(".navbar__links");
navbarToggle.addEventListener('click', () => {
navbarLinks.classList.toggle("navbar__links--show");
});
</script>
2024-04-20 10:10:34 +00:00
<main>
<header class="main__header">
<h1>Site Map</h1>
<p>Site map of Leilukin&#39;s Hub.</p>
</header>
<div class="content__wrapper">
<div class="content ">
<p>This page lists the links to the pages on my website for easier navigation.</p>
<ul class="sitemap"><li><a href="/">Home</a></li>
<li><a href="/about/">About</a></li>
<li><a href="/now/">Now</a></li>
<li><a href="/blog/">Blog</a><ul><li><a href="/blog/posts/">Blog Archive</a><ul><li><a href="/blog/posts/2023-01-26-new-year-leilukins-hub-redesign/">2023 New Year Redesign of Leilukin's Hub</a></li>
<li><a href="/blog/posts/2023-01-28-leilukins-hub-now-has-a-blog/">Leilukin's Hub Now has a Blog!</a></li>
<li><a href="/blog/posts/2023-05-09-onboard-the-dracula-daily-hype-train/">Onboard the Dracula Daily Hype Train</a></li>
<li><a href="/blog/posts/2023-06-23-june-2023-leilukins-hub-layout-rewrite/">June 2023 Leilukin's Hub Layout Rewrite</a></li>
<li><a href="/blog/posts/2023-07-28-my-first-birthday-after-the-launch-of-leilukins-hub/">My First Birthday After the Launch of Leilukin's Hub</a></li>
<li><a href="/blog/posts/2023-09-11-happy-1st-anniversary-to-leilukins-hub/">Happy 1st Anniversary to Leilukin's Hub</a></li>
<li><a href="/blog/posts/2023-10-13-my-cassette-beasts-pombomb-plushie-arrived/">My Cassette Beasts Pombomb Plushie Arrived!</a></li>
2024-05-06 15:43:57 +00:00
<li><a href="/blog/posts/2023-10-30-support-for-my-steam-review-of-a-summers-end/">Support for My Steam Review of A Summers End — Hong Kong 1986</a></li>
<li><a href="/blog/posts/2023-11-19-i-can-finally-game-on-a-solid-state-drive/">I Can Finally Game on a Solid-State Drive</a></li>
<li><a href="/blog/posts/2023-11-20-finally-beat-a-bugs-life-video-game-24-years-later/">Finally Beat A Bug's Life The Video Game — 24 Years Later</a></li>
<li><a href="/blog/posts/2024-03-06-i-received-a-lifetime-premium-membership-on-nexus-mods-for-free/">I Received a Lifetime Premium Membership on Nexus Mods for Free</a></li>
<li><a href="/blog/posts/2024-04-21-april-2024-leilukins-hub-overhaul-with-eleventy/">April 2024 Leilukin's Hub Overhaul with Eleventy</a></li>
<li><a href="/blog/posts/2024-04-27-lesbian-visibility-day1-year-anniversary-of-cassette-beasts/">Happy Lesbian Visibility Day and 1-Year Anniversary of Cassette Beasts</a></li>
<li><a href="/blog/posts/2024-05-14-james-somerton-my-vide-game-footage/">James Somerton Used My Video Game Footage Without Credit or Permission</a></li></ul></li></ul></li>
<li><a href="/articles/">Articles</a><ul><li><a href="/articles/kotor2-modder-interview-ars-technica/">The modders who spent 15 years fixing Knights of the Old Republic 2 @ Ars Technica</a></li>
<li><a href="/articles/lgbtq-booklet-interview-misi-bawang/">Floating in a Sky Full of Pride: LGBTQ+ Booklet Artist Interview from MISI:Bawang</a></li>
<li><a href="/articles/anti-harry-potter-jk-rowling-masterlist/">Anti-Harry Potter and Anti-J. K. Rowling Masterlist</a></li>
<li><a href="/articles/my-dislike-of-shipping-culture/">My Disinterest in Shipping and Dislike of Shipping Culture</a></li>
<li><a href="/articles/designated-lesbian-syndrome-fandom/">Designated Lesbian Syndrome in Fandom</a></li></ul></li>
2024-04-24 17:07:03 +00:00
<li><a href="/projects/">Projects</a><ul><li><a href="/projects/kotor1mods/">My Mods for Star Wars: Knights of the Old Republic</a></li>
<li><a href="/projects/kotor2mods/">My Mods for Star Wars: Knights of the Old Republic II: The Sith Lords</a></li>
<li><a href="/projects/playlists/">My Music Playlists</a></li></ul></li>
2024-05-06 14:44:07 +00:00
<li><a href="/shrines/">Shrines</a><ul><li><a href="/shrines/cassettebeasts/">Cassette Beasts Shrine</a><ul><li><a href="/shrines/cassettebeasts/articles/">Articles</a><ul><li><a href="/shrines/cassettebeasts/articles/cassette-beasts-more-than-a-pokemon-clone/">How Cassette Beasts is Much More than a Pokémon Clone</a></li></ul></li>
<li><a href="/shrines/cassettebeasts/gamelog/">Game Log</a></li>
<li><a href="/shrines/cassettebeasts/featured/">Featured</a></li>
<li><a href="/shrines/cassettebeasts/facts/">Facts</a></li>
<li><a href="/shrines/cassettebeasts/resources/">Resources</a></li></ul></li>
<li><a href="/shrines/starwarskotor/">Star Wars: Knights of the Old Republic Shrine</a><ul><li><a href="/shrines/starwarskotor/articles/">Articles</a><ul><li><a href="/shrines/starwarskotor/articles/juhani-lesbian-evidence/">Evidence of Juhani being a Lesbian from Star Wars: Knights of the Old Republic's Game Files</a></li>
<li><a href="/shrines/starwarskotor/articles/handmaiden-sisters-mother/">Where is the Mother of the Handmaiden's Sisters?</a></li>
<li><a href="/shrines/starwarskotor/articles/arren-kae-kreia-theory/">Why I Personally Do Not Subscribe to the “Arren Kae is Kreia” Theory</a></li>
<li><a href="/shrines/starwarskotor/articles/faq-same-gender-romance-mods/">Frequently Asked Questions (FAQ) for My Star Wars: KotOR Same-Gender Romance Mods</a></li>
<li><a href="/shrines/starwarskotor/articles/juhani-hostility-towards-canderous/">How to Access Juhani's Conversaion about Canderous without Restoration Mods</a></li>
<li><a href="/shrines/starwarskotor/articles/keep-juhani-a-lesbian/">Keep Juhani a Lesbian and Keep Juhani's Romance Exclusive to Female Characters</a></li>
<li><a href="/shrines/starwarskotor/articles/partyswap-management-takeover/">On Me Taking Over the Management and Development of DarthTyren's PartySwap Mod</a></li>
<li><a href="/shrines/starwarskotor/articles/tslrcm-first-kotor2-playthrough/">Should You Use The Sith Lords Restored Content Mod in Your First Star Wars: KotOR 2 Playthrough?</a></li></ul></li>
<li><a href="/shrines/starwarskotor/guides/">Guides</a><ul><li><a href="/shrines/starwarskotor/guides/kotor-juhani-romance-guide/">Juhani Romance Guide</a></li>
<li><a href="/shrines/starwarskotor/guides/kotor-redeeming-bastila-guide/">Redeeming Bastila Guide</a></li>
<li><a href="/shrines/starwarskotor/guides/kotor-sandral-matale-feud-guide/">Sandral-Matale Feud Ending Guide</a></li></ul></li>
<li><a href="/shrines/starwarskotor/resources/">Resources</a><ul><li><a href="/shrines/starwarskotor/resources/kotor-same-gender-romance-mods/">List of Same-Gender Romance Mods for Star Wars: Knights of the Old Republic Series</a></li>
<li><a href="/shrines/starwarskotor/resources/tslrcm-m478ep-modules-music/">The Sith Lords Restored Content Mod + M4-78 Enhancement Project Modules, Warp Codes & Music Overview</a></li>
<li><a href="/shrines/starwarskotor/resources/kotor2-female-exile-recruit-handmaiden-mods/">List of Star Wars: Knights of the Old Republic II Mods that Allow Female Exiles to Recruit the Handmaiden as a Party Member</a></li></ul></li>
2024-05-06 14:44:07 +00:00
<li><a href="/shrines/starwarskotor/universes/">Universes</a></li></ul></li>
2024-05-06 15:43:57 +00:00
<li><a href="/shrines/asummersend/">A Summers End — Hong Kong 1986 Shrine</a><ul><li><a href="/shrines/asummersend/playlists/">Playlists</a></li>
2024-05-06 14:44:07 +00:00
<li><a href="/shrines/asummersend/trivia/">Trivia</a></li>
<li><a href="/shrines/asummersend/gallery/">Gallery</a></li></ul></li></ul></li>
<li><a href="/links/">Links</a></li>
<li><a href="/changelogs/">Changelogs</a><ul><li><a href="/changelogs/layouts/">Website Layouts</a></li>
<li><a href="/changelogs/2022/">2022</a></li>
<li><a href="/changelogs/2023/">2023</a></li>
<li><a href="/changelogs/2024/">2024</a></li></ul></li>
<li><a href="/categories/">Content Categories</a></li>
<li><a href="/archive/">Content Archive</a></li></ul>
2024-04-20 10:10:34 +00:00
<style>
main ul {
display: grid;
gap: 0.5rem;
margin-top: 0.3em;
}
.sitemap {
margin: 1em 0;
padding: 0 0 0 1em;
list-style: none;
}
.sitemap a:focus {
outline: 0.15rem solid var(--clr-link);
}
.sitemap li {
padding-left: 0.5em;
align-items: start;
}
.sitemap li::marker {
content: "▶";
}
.sitemap ul {
padding-left: 1em;
2024-04-20 10:10:34 +00:00
}
.sitemap ul li::marker {
content: "★";
}
.sitemap ul ul li::marker {
content: "♥";
}
.sitemap ul ul ul li::marker {
content: "❣";
}
</style>
</div>
</div>
<style>
.breadcrumbs {
list-style: none;
padding: 0;
margin: 0 0 0.7em 0;
display: flex;
gap: 0.5em;
flex-wrap: wrap;
justify-content: center;
}
.breadcrumbs li::after {
content: '➔';
padding-left: 0.3em;
}
2024-04-20 10:10:34 +00:00
</style>
</main>
<footer class="footer">
<p>Made with ♥ by Leilukin since <time>11 September 2022</time></p>
<ul class="footer__links">
<li><a
aria-current="page"
href="/sitemap/
">Site Map</a></li>
<li><a
href="/changelogs/"
>Changelogs</a></li>
2024-04-20 10:10:34 +00:00
<li><a href="/feed.xml">RSS</a></li>
</ul>
</footer>
<style>
.footer {
margin-top: auto;
2024-05-09 17:13:56 +00:00
width: 100%;
2024-04-20 10:10:34 +00:00
background: var(--clr-main-footer-bg);
2024-05-09 17:13:56 +00:00
padding: 1rem 1rem 3rem 1rem;
2024-04-20 10:10:34 +00:00
text-align: center;
display: grid;
}
.footer p {
padding: 0;
}
.footer__links {
justify-self: center;
list-style: none;
margin: 0;
padding: 0;
display: flex;
gap: 0.7em;
}
.footer__links li:not(:last-child)::after {
content: '|';
padding-left: 0.6em;
}
2024-05-09 17:13:56 +00:00
/* Screen sizes larger than mobile */
@media only screen and (min-width: 30rem) {
.footer {
padding: 1rem 1rem 2rem 1rem;
}
}
/* Tablet screen size */
@media only screen and (min-width: 43.75rem) {
2024-04-20 10:10:34 +00:00
.footer {
2024-05-09 17:13:56 +00:00
padding: 1rem;
2024-04-20 10:10:34 +00:00
}
}
</style>
<button class="top-btn hidden" aria-label="Scroll to top">
<i class="fa-solid fa-chevron-up"></i>
2024-04-20 10:10:34 +00:00
</button>
<style>
.top-btn {
position: fixed;
margin: 0;
padding: 0;
2024-04-21 19:08:40 +00:00
bottom: 0.5rem;
right: 0.5rem;
2024-04-20 10:10:34 +00:00
z-index: 999;
border: none;
background-color: var(--clr-top-btn-bg);
color: var(--clr-top-btn-txt);
2024-04-20 10:10:34 +00:00
border-radius: 50em;
2024-04-21 19:08:40 +00:00
width: 2rem;
aspect-ratio: 1 / 1;
2024-04-20 10:10:34 +00:00
}
.top-btn:focus {
outline: 0.25em solid var(--clr-top-btn-bg);
2024-04-20 10:10:34 +00:00
outline-offset: 0.15em;
}
</style>
<script defer>
const topButton = document.querySelector(".top-btn");
window.onscroll = () => {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
topButton.classList.remove("hidden");
} else {
topButton.classList.add("hidden");
}
}
topButton.addEventListener('click', () => {
window.scrollTo({
top: 0,
left: 0,
behavior: "smooth",
});
});
</script>
</body>
</html>