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 = "About" >
< 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 = "About this website and its owner." >
< meta name = "generator" content = "Eleventy v2.0.1" >
< meta property = "og:type" content = "website" >
< meta property = "og:url" content = "https://leilukin.neocities.org/about/" >
< meta property = "og:site_name" content = "Leilukin's Hub" >
< meta property = "og:locale" content = "en_MY" >
< meta property = "og:description" content = "About this website and its owner." >
< meta name = "twitter:card" content = "summary" >
< meta name = "twitter:url" content = "https://leilukin.neocities.org/about/" >
< meta name = "twitter:description" content = "About this website and its owner." >
< link rel = "canonical" href = "https://leilukin.neocities.org/about/" >
< link rel = "stylesheet" href = "/assets/css/main.css" >
2024-05-10 06:00:07 +00:00
< 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 >
About | Leilukin's Hub
< / title >
< / head >
< body >
< header class = "hero" >
< div class = "hero__top-bar hidden" > < / div >
< div class = "hero__img" >
2024-04-20 12:00:02 +00:00
< 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;
2024-04-26 16:12:13 +00:00
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");
2024-04-29 03:16:44 +00:00
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();
2024-04-29 05:14:21 +00:00
const year = date.getFullYear();
2024-04-29 07:10:16 +00:00
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();
2024-04-29 05:14:21 +00:00
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",
};
2024-04-29 07:10:16 +00:00
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 > `,
2024-04-29 07:10:16 +00:00
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 > `,
2024-04-29 08:47:49 +00:00
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`
};
2024-04-29 07:03:38 +00:00
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 > `,
2024-04-29 07:03:38 +00:00
class: "flag-aro",
};
2024-04-29 05:07:49 +00:00
else if (month === 9 & & day === 11)
return {
2024-04-29 05:14:21 +00:00
blurb: `Today is the ${siteAnniversary}-year anniversary of the launch of Leilukin' 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",
};
2024-04-29 07:03:38 +00:00
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 > `,
2024-04-29 07:03:38 +00:00
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" >
2024-05-10 09:06:10 +00:00
< button class = "navbar__toggle" aria-label = "Navigation menu toggle" >
< i class = "fa-solid fa-bars" > < / i >
2024-04-29 10:01:46 +00:00
< h2 class = "navbar__title" > Navigation< / h2 >
2024-05-10 09:06:10 +00:00
< / button >
2024-04-29 10:01:46 +00:00
< ul class = "navbar__links" >
2024-04-20 10:10:34 +00:00
< li >
2024-04-24 16:43:39 +00:00
< a href = "/" > Home< / a >
2024-04-20 10:10:34 +00:00
< / li >
< li >
2024-04-24 16:43:39 +00:00
< a aria-current = "page" href = "/about/" > About< / a >
2024-04-20 10:10:34 +00:00
< / li >
< li >
2024-04-24 16:43:39 +00:00
< a href = "/now/" > Now< / a >
2024-04-20 10:10:34 +00:00
< / li >
< li >
2024-04-24 16:43:39 +00:00
< a href = "/blog/" > Blog< / a >
2024-04-20 10:10:34 +00:00
< / li >
< li >
2024-04-24 16:43:39 +00:00
< a href = "/articles/" > Articles< / a >
2024-04-20 10:10:34 +00:00
< / li >
< li >
2024-04-24 16:43:39 +00:00
< a href = "/projects/" > Projects< / a >
2024-04-20 10:10:34 +00:00
< / li >
< li >
2024-04-24 16:43:39 +00:00
< a href = "/shrines/" > Shrines< / a >
2024-04-20 10:10:34 +00:00
< / li >
< li >
2024-04-24 16:43:39 +00:00
< 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);
2024-04-29 10:01:46 +00:00
padding: 0.6em 1em;
2024-04-20 10:10:34 +00:00
width: 100%;
z-index: 999;
position: sticky;
top: 0;
}
2024-05-10 09:06:10 +00:00
.navbar__toggle,
.navbar__title {
color: var(--clr-navbar-link);
font-size: 1.3rem;
2024-04-29 10:01:46 +00:00
}
.navbar__toggle {
2024-05-10 09:06:10 +00:00
display: flex;
align-items: center;
gap: 0.5em;
2024-04-29 10:01:46 +00:00
border: none;
padding: 0;
margin: 0;
background-color: inherit;
}
2024-04-29 10:23:26 +00:00
.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;
}
2024-04-29 10:01:46 +00:00
.navbar__links {
2024-04-20 10:10:34 +00:00
list-style: none;
2024-04-29 10:01:46 +00:00
display: none;
gap: 1em;
2024-05-10 09:07:17 +00:00
padding: 0.5em 1.8em;
2024-04-29 10:01:46 +00:00
overflow: auto;
2024-04-20 10:10:34 +00:00
}
2024-04-29 10:01:46 +00:00
.navbar__links--show {
display: grid;
}
/* Tablet screen size */
@media only screen and (min-width: 43.75rem) {
.navbar {
padding: 0 0.6em;
}
2024-05-10 09:06:10 +00:00
.navbar__toggle {
2024-04-29 10:01:46 +00:00
display: none;
}
.navbar__links {
display: flex;
justify-content: space-evenly;
gap: 0.5em;
flex-wrap: wrap;
padding: 0;
2024-04-29 10:12:51 +00:00
overflow: unset;
2024-04-29 10:01:46 +00:00
}
}
2024-04-20 10:10:34 +00:00
< / style >
2024-04-29 10:01:46 +00:00
< 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 > About< / h1 >
< p > About this website and its owner.< / p >
< / header >
< div class = "content__wrapper" >
< div class = "content content--divided" >
< section class = "content__section" >
< h2 > The Site< / h2 >
< p > This website serves as a personal hub for my interests and self-expression, as well as my own corner on the internet outside social media platforms.< / p >
< p > On this site, you can find various stuff and resources I have created or compiled, as well as articles dedicated to my interests.< / p >
< p > While the primary purpose of this website is my own space of self-expression, I also want my website to be accessible to viewers. Therefore, I strive to design this website to be mobile-friendly and accessible to provide the best user experience.< / p >
2024-05-10 12:31:53 +00:00
< p > Feel free to drop a message and say hi on < a href = "https://leilukin.123guestbook.com/" > my guestbook< / a > !< / p >
2024-04-20 10:10:34 +00:00
< p > You can link to my website with this button:< / p >
< div class = "site-btn__container" >
< div >
2024-05-10 12:31:53 +00:00
< a href = "https://leilukin.neocities.org/" > < img src = "/assets/leilukin/Leilukins-Hub-button.png" alt = "Button of Leilukin's Hub" title = "Leilukin's Hub" > < / a >
2024-04-20 10:10:34 +00:00
< / div >
2024-05-10 12:31:53 +00:00
< textarea aria-label = "HTML of Leilukin's Hub website button" class = "site-btn__textarea textarea-for-copy" rows = "4" > < a href = "https://leilukin.neocities.org/" > < img src = "https://leilukin.neocities.org/assets/leilukin/Leilukins-Hub-button.png" alt = "Button of Leilukin's Hub" title = "Leilukin's Hub" > < / a > < / textarea >
2024-04-20 10:10:34 +00:00
< button class = "copy-txt-btn" > Copy HTML< / button >
< / div >
2024-05-10 12:31:53 +00:00
< p > Credit to < a href = "https://github.com/hekate2" > hekate2< / a > for their < a href = "https://hekate2.github.io/buttonmaker/" > 88x31 Web Button Maker< / a > !< / p >
2024-04-20 10:10:34 +00:00
< style >
.site-btn__container {
display: flex;
gap: 1rem;
align-items: center;
margin: 0.5rem 0;
}
.site-btn__textarea {
width: 10rem;
height: 4rem;
font-size: 0.75rem;
background-color:black;
color: var(--clr-body-txt);
}
.copy-txt-btn {
border: none;
background: var(--clr-link-btn-bg);
color: var(--clr-body-txt);
padding: 0.3rem 0.8rem;
border-radius: 0.5rem;
font-size: 0.9rem;
font-weight: bold;
}
.copy-txt-btn:hover {
background: var(--clr-link-hover);
}
< / style >
< script defer >
document.querySelector(".copy-txt-btn").onclick = () => {
document.querySelector(".textarea-for-copy").select();
document.execCommand('copy');
}
< / script >
2024-05-10 12:31:53 +00:00
< p > If you also have a Neocities account, you can follow this site through its < a href = "https://neocities.org/site/leilukin" > Neocities profile< / a > .< / p >
2024-04-20 10:10:34 +00:00
< img src = "/assets/banners/hosted-by-neocities.png" alt = "A website button with Penelope the cat, the mascot of Neocities, and the text 'hosted by neocities'" title = "Hosted by Neocities" style = "margin-top: 0.5em;" >
2024-05-10 04:50:22 +00:00
< h3 > Technical Information< / h3 >
2024-05-10 12:31:53 +00:00
< p > This website is built with the static site generator < a href = "https://www.11ty.dev/" > Eleventy< / a > . Nunjucks and Markdown are the templating languages used for creating pages of this site.< / p >
2024-05-10 04:50:22 +00:00
2024-05-10 12:31:53 +00:00
< p > This website is deployed to Neocities from a GitHub repository through the GitHub action < a href = "https://deploy-to-neocities.neocities.org/" > deploy-to-neocities< / a > .< / p >
2024-04-20 10:10:34 +00:00
< / section >
< sectioin class = "content__section" >
< h2 > The Site Owner< / h2 >
< img src = "/assets/leilukin/leilukin-bee.png" alt = "Avatar of a drawing of Leilukin bee" style = "border-radius: 50%; width: 15rem; margin: 0.5em auto;" >
2024-04-23 02:16:23 +00:00
< p > You can call me Leilukin. I am a Malaysian Chinese, queer, non-binary lesbian born in the early 90s. My pronouns are they/she/他/她.< / p >
2024-04-20 10:10:34 +00:00
< p > I speak Mandarin, English, Cantonese and Malay, though I am most fluent in Mandarin and English.< / p >
2024-04-23 02:16:23 +00:00
< p > I am also autistic, so I use this website as a platform to catalogue my interests.< / p >
2024-04-20 10:10:34 +00:00
< p > Social media platforms you can find me on:< br >
2024-05-10 12:31:53 +00:00
< i class = "fa-brands fa-tumblr" > < / i > < a href = "https://lesbiannova.tumblr.com/" > Tumblr< / a > |
< i class = "fa-brands fa-youtube" > < / i > < a href = "https://www.youtube.com/Leilukin" > YouTube< / a > |
< i class = "fa-brands fa-twitter" > < / i > < a href = "https://twitter.com/Leilukin" > Twitter< / a > |
< i class = "fa-brands fa-mastodon" > < / i > < a href = "https://mstdn.social/@leilukin" > Mastodon< / a > |
< i class = "fa-brands fa-mastodon" > < / i > < a href = "https://elekk.xyz/@leilukin" > Mastodon (for gaming)< / a > |
< i class = "fa-brands fa-bluesky" > < / i > < a href = "https://bsky.app/profile/leilukin.bsky.social" > Bluesky< / a > |
< i class = "fa-brands fa-instagram" > < / i > < a href = "https://www.instagram.com/leilukin" > Instagram< / a >
2024-04-20 10:10:34 +00:00
< / p >
< p > However, I am most active on Tumblr, so if you want to interact with me on a social media platform, Tumblr would be the best option.< / p >
< p > I also have media catalogues online on the following platforms:< br >
2024-05-10 12:31:53 +00:00
< i class = "fa-brands fa-steam-symbol" > < / i > < a href = "https://steamcommunity.com/id/leilukin/" > Steam< / a > |
< i class = "fa-solid fa-book-open" > < / i > < a href = "https://app.thestorygraph.com/profile/leilukin" > The StoryGraph< / a >
2024-04-20 10:10:34 +00:00
< / p >
< p > You can contact me via email: < a href = "mailto:leilukin@outlook.com" > leilukin@outlook.com< / a > .< / p >
< p > < a href = "/now" > Check out my Now page< / a > to learn what I am doing right now.< / p >
< p > If you enjoy my work, you can support me on Ko-Fi or Buy Me a Coffee:< / p >
< div class = "support-me" >
<!-- Ko - Fi button -->
< script webc:keep webc:bucket = "defer" type = 'text/javascript' src = 'https://storage.ko-fi.com/cdn/widget/Widget_2.js' > < / script >
< script webc:keep webc:bucket = "defer" type = 'text/javascript' > kofiwidget2 . init ( 'Support Me on Ko-fi' , '#7A37A3' , 'A1042UH4' ) ; kofiwidget2 . draw ( ) ; < / script >
<!-- Buy Me a Coffee button -->
< script webc:keep type = "text/javascript" src = "https://cdnjs.buymeacoffee.com/1.0.0/button.prod.min.js" data-name = "bmc-button" data-slug = "leilukin" data-color = "#7a37a3" data-emoji = "" data-font = "Cookie" data-text = "Buy me a coffee" data-outline-color = "#ffffff" data-font-color = "#ffffff" data-coffee-color = "#FFDD00" > < / script >
< / div >
< style >
.support-me {
display: flex;
flex-wrap: wrap;
gap: 1em;
align-items: center;
margin-top: 0.7em;
}
< / style >
< / sectioin >
< / 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;
}
2024-04-24 17:31:54 +00:00
.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" >
2024-04-20 10:59:51 +00:00
< li > < a
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;
}
2024-04-20 10:59:51 +00:00
.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 >
2024-04-21 19:05:20 +00:00
< 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;
2024-04-21 19:05:20 +00:00
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;
2024-04-21 19:05:20 +00:00
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;
2024-04-21 19:05:20 +00:00
aspect-ratio: 1 / 1;
2024-04-20 10:10:34 +00:00
}
.top-btn:focus {
2024-04-21 19:05:20 +00:00
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 >