2024-04-27 07:08:58 +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 = "Happy Lesbian Visibility Day and 1-Year Anniversary of Cassette Beasts | Blog" >
< 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 = "Celebrating both Lesbian Visibility Day and the 1st year anniversary of Cassette Beasts' release on 26 April 2024." >
< meta name = "generator" content = "Eleventy v2.0.1" >
< meta property = "og:type" content = "website" >
< meta property = "og:url" content = "https://leilukin.neocities.org/blog/posts/2024-04-27-lesbian-visibility-day1-year-anniversary-of-cassette-beasts/" >
< meta property = "og:site_name" content = "Leilukin's Hub" >
< meta property = "og:locale" content = "en_MY" >
< meta property = "og:description" content = "Celebrating both Lesbian Visibility Day and the 1st year anniversary of Cassette Beasts' release on 26 April 2024." >
< meta name = "twitter:card" content = "summary" >
< meta name = "twitter:url" content = "https://leilukin.neocities.org/blog/posts/2024-04-27-lesbian-visibility-day1-year-anniversary-of-cassette-beasts/" >
< meta name = "twitter:description" content = "Celebrating both Lesbian Visibility Day and the 1st year anniversary of Cassette Beasts' release on 26 April 2024." >
< link rel = "canonical" href = "https://leilukin.neocities.org/blog/posts/2024-04-27-lesbian-visibility-day1-year-anniversary-of-cassette-beasts/" >
< 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-27 07:08:58 +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 >
Happy Lesbian Visibility Day and 1-Year Anniversary of Cassette Beasts | Blog | 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" >
< / 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%;
padding: 0.5em 0.7em;
}
.hero__img {
display: grid;
place-content: center;
}
.hero img {
object-fit: contain;
overflow: hidden;
max-height: 16rem;
filter: drop-shadow(0.1rem 0.1rem 0.2rem black);
}
< / 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-27 07:08:58 +00:00
heroTopBarEl.classList.remove('hidden');
2024-04-29 05:07:49 +00:00
heroTopBarEl.innerHTML = todayEvent.blurb;
2024-04-27 07:08:58 +00:00
2024-04-29 05:07:49 +00:00
if (todayEvent.class) {
headerImgEl.classList.add(todayEvent.class);
2024-04-27 07:08:58 +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-27 07:08:58 +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-27 07:08:58 +00:00
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-29 05:07:49 +00:00
else
return null;
2024-04-27 07:08:58 +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-27 07:08:58 +00:00
< 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 >
< / li >
< li >
< a href = "/articles/" > Articles< / a >
< / li >
< li >
< a href = "/projects/" > Projects< / a >
< / li >
< li >
< a href = "/shrines/" > Shrines< / a >
< / li >
< li >
< a href = "/links/" > Links< / a >
< / 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-27 07:08:58 +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-27 07:08:58 +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-27 07:08:58 +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-27 07:08:58 +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-27 07:08:58 +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-27 07:08:58 +00:00
< main >
< header class = "main__header" >
< ul class = "breadcrumbs" >
< li >
< a href = "/blog/" > Blog< / a >
< / li >
< li >
< a href = "/blog/posts/" > Blog Archive< / a >
< / li >
< / ul >
< h1 > Happy Lesbian Visibility Day and 1-Year Anniversary of Cassette Beasts< / h1 >
< div class = "article__info" >
< p > Posted on 27 April 2024 by Leilukin
< p > Categories:
< a href = "/categories/lesbian" > lesbian< / a > ,
< a href = "/categories/cassette-beasts" > cassette beasts< / a >
< / p >
2024-04-27 08:14:49 +00:00
< p > 🍿 3 min. read< / p >
2024-04-27 07:08:58 +00:00
< / div >
< / header >
< div class = "content__wrapper" >
< article class = "article" >
< p > 26 April 2024 was a day of celebration for me, as it was both Lesbian Visibility Day and the < a href = "https://store.steampowered.com/news/app/1321440/view/4179979397366287532" > first anniversary of the release of < cite > Cassette Beasts< / cite > < / a > , my all-time favourite video game.< / p >
< p > As a lesbian, < a href = "https://en.wikipedia.org/wiki/Lesbian_Visibility_Week" > Lesbian Visibility Day and Lesbian Visibility Week< / a > are an important annual event, as there can never be enough lesbians nor love for lesbians. It had been about 8 years ago when I finally realised I was a lesbian, and I am still happy and proud to be a lesbian.< / p >
< p > Meanwhile, < cite > Cassette Beasts< / cite > has become my all-time favourite video game ever since I started playing it in July 2023, to the extent I had created a < a href = "/shrines/cassettebeasts/" > shrine< / a > for the game on my own website. There are no words adequate to describe the depth of my love for < cite > Cassette Beasts< / cite > .< / p >
< p > As a lesbian fan of < cite > Cassette Beasts< / cite > , I am also absolutely delighted by the fact that the initial release date of < cite > Cassette Beasts< / cite > coincided with Lesbian Visibility Day on April 26. For bonus points, < cite > Cassette Beasts< / cite > features not only LGBTQ+ representation in both the main and supporting cast, but also an actual canon old married lesbian couple in the supporting characters Ianthe and Wilma.< / p >
< p > To celebrate both Lesbian Visibility Day and the 1-year anniversary of < cite > Cassette Beasts< / cite > ' release, I made lesbian pride icons featuring the < cite > Cassette Beasts< / cite > logo as well as Ianthe and Wilma both individually and together, and shared them on social media accounts, including < a href = "https://lesbiannova.tumblr.com/post/748826429723148288" > Tumblr< / a > , < a href = "https://twitter.com/Leilukin/status/1783736715641024828" > Twitter< / a > , < a href = "https://elekk.xyz/@leilukin/112336010189257467" > Mastodon< / a > and < a href = "https://bsky.app/profile/leilukin.bsky.social/post/3kqzahri66x2x" > Bluesky< / a > . I had also shared them in the < a href = "https://discord.gg/byttenstudio" > official Bytten Studio Discord server< / a > .< / p >
2024-04-27 08:14:49 +00:00
< div class = "tumblr-post" data-href = "https://embed.tumblr.com/embed/post/t:7iNKXlbr-xwxyjZTq8C8hQ/748826429723148288/v2" data-did = "6dbdfd5b616fdd82f7aabd63e6a1aae35b467d73" > < a href = "https://www.tumblr.com/lesbiannova/748826429723148288/happy-lesbian-visibility-day-and-happy-birthday" > https://www.tumblr.com/lesbiannova/748826429723148288/happy-lesbian-visibility-day-and-happy-birthday< / a > < / div > < script async src = "https://assets.tumblr.com/post.js?_v=38df9a6ca7436e6ca1b851b0543b9f51" > < / script >
2024-04-27 07:08:58 +00:00
< p > My < cite > Cassette Beasts< / cite > lesbian pride icons have been well-received, by not only other fans of the game, but also the developer Bytten Studio themselves. On Twitter, Bytten Studio not only retweeted, but also replied to my icons.< / p >
< p > < a href = "https://postimg.cc/gxxzpPPj" > < img src = "https://i.postimg.cc/x1RcK0xv/1-year-cassette-beasts-anniversary-twitter-repost.png" alt = "Bytten Studio's Twitter account retweeted Leilukin's lesbian pride Cassette Beasts icons" > < / a > < / p >
< p > < a href = "https://postimg.cc/9r8msQKs" > < img src = "https://i.postimg.cc/pLxmh9ZV/1-year-cassette-beasts-anniversary-twitter-reply.png" alt = "Twitter exchange between Bytten Studio and Leilukin about the lesbian pride Cassette Beasts icons" > < / a > < / p >
< p > On Mastodon, Bytten Studio also boosted my icons.< / p >
< p > < a href = "https://postimg.cc/hh0PbrrD" > < img src = "https://i.postimg.cc/3rs4hf0v/1-year-cassette-beasts-anniversary-mastodon-boost.png" alt = "The official Cassette Beasts account on Mastodon boosted Leilukin's lesbian pride Cassette Beasts icons" > < / a > < / p >
< p > Furthermore, I had set up my website's header to display the lesbian pride flag and a blurb about Lesbian Visibility Day, and my < a href = "/shrines/cassettebeasts/" > < shrine > Cassette Beasts< / shrine > shrine< / a > to display a blurb about the game's release anniversary, both on April 26 annually.< / p >
< p > < a href = "https://postimg.cc/N2DV9LRt" > < img src = "https://i.postimg.cc/hhRqYdjX/leilukin-s-hub-lesbian-visibility-day.png" alt = "Leilukin's Hub header displaying lesbian pride flag and a top blurb about Lesbian Visibility Day" > < / a > < / p >
< p > < a href = "https://postimg.cc/sMbVD0Vc" > < img src = "https://i.postimg.cc/7LZb9pdp/leilukin-s-hub-cassette-beasts-anniversary.png" alt = "Cassette Beasts shrine displaying a top blurb about the 1-year anniversary of Cassette Beasts' release" > < / a > < / p >
< p > In conclusion, this had been an exciting day for me as a lesbian gaymer.< / p >
2024-05-06 15:43:57 +00:00
< p > On a somewhat related note, I love the fact that this week is not only < a href = "https://www.lesbianvisibilityweek.com/" > Lesbian Visibility Week< / a > , but also has two of my all-time favourite games, < cite > Cassette Beasts< / cite > and < cite > A Summer’ s End — Hong Kong 1986< / cite > (which I had also created a < a href = "/shrines/asummersend" > shrine< / a > for), both of which happen to feature lesbian representation, celebrating their release anniversaries.< / p >
2024-04-27 07:08:58 +00:00
< p > < strong > Happy Lesbian Visibility Day and Happy Birthday to < cite > Cassette Beasts< / cite > !< / strong > < / p >
2024-05-14 15:01:54 +00:00
< ul class = "blog__post--nextprev" > < li > Previous Post: < 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 > Next Post: < 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 >
2024-04-27 07:08:58 +00:00
< / ul >
< style >
.blog__post--nextprev {
list-style: none;
padding-left: 0;
padding-top: 0.8em;
margin-top: 2.5em;
border-top: 0.1em solid var(--clr-title-border);
}
< / style >
< / article >
< aside class = "right-sidebar" >
< nav class = "content__nav sidebar--sticky" >
< h2 class = "content__nav--title" > My Contents< / h2 >
< ul class = "content__nav--links" >
< li > < a href = "/archive/" > Content Archive< / a > < / li >
< li > < a href = "/categories/" > Content Categories< / a > < / li >
< li > < a href = "/articles/" > Articles< / a > < / li >
< li > < a href = "/blog/posts/" > Blog Archive< / a > < / li >
< li > < a href = "/blog/" > Blog Home< / a > < / li >
< / ul >
< / nav >
< / aside >
< style >
.content__nav {
padding: 1.2em clamp(1em, 5%, 1.5em);
background-color: var(--clr-content-bg);
}
.content__nav--title {
font-size: 1.7rem;
}
< / style >
< / 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;
}
< / style >
< / main >
< footer class = "footer" >
< p > Made with ♥ by Leilukin since < time > 11 September 2022< / time > < / p >
< ul class = "footer__links" >
< li > < a
href="/sitemap/
">Site Map< / a > < / li >
< li > < a
href="/changelogs/"
>Changelogs< / a > < / li >
< 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-27 07:08:58 +00:00
background: var(--clr-main-footer-bg);
2024-05-09 17:13:56 +00:00
padding: 1rem 1rem 3rem 1rem;
2024-04-27 07:08:58 +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-27 07:08:58 +00:00
.footer {
2024-05-09 17:13:56 +00:00
padding: 1rem;
2024-04-27 07:08:58 +00:00
}
}
< / style >
< button class = "top-btn hidden" aria-label = "Scroll to top" >
< i class = "fa-solid fa-chevron-up" > < / i >
< / button >
< style >
.top-btn {
position: fixed;
margin: 0;
padding: 0;
bottom: 0.5rem;
right: 0.5rem;
z-index: 999;
border: none;
background-color: var(--clr-top-btn-bg);
color: var(--clr-top-btn-txt);
border-radius: 50em;
width: 2rem;
aspect-ratio: 1 / 1;
}
.top-btn:focus {
outline: 0.25em solid var(--clr-top-btn-bg);
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 >