Skip to content

Commit cf4fe5b

Browse files
committed
Add kawaii mode~ ✨
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent cbf010c commit cf4fe5b

6 files changed

Lines changed: 299 additions & 2 deletions

File tree

layouts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h2>Install from macOS</h2>
1111
<h3><a class="more" href="/fedora/#device-support">Device support<i class="fas fa-angle-right more"></i></a></h3>
1212
</div>
1313
<div>
14-
<img src="/img/asahilinux_laptop.svg?{{ slicestr (readFile "static/img/asahilinux_laptop.svg" | md5) 0 8 }}" alt="Asahi Linux on a laptop">
14+
<img class="laptop" src="/img/asahilinux_laptop.svg?{{ slicestr (readFile "static/img/asahilinux_laptop.svg" | md5) 0 8 }}" alt="Asahi Linux on a laptop">
1515
</div>
1616
</div>
1717
</section>

layouts/partials/footer.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
<img src="/img/AsahiLinux_logomark.svg" class="logo" alt="Asahi Linux logo">
66
</a>
77
<span class="license">Licensed under CC BY-SA 4.0</span>
8-
<span class="disclaimer">Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries. All other product names, logos, and brands are property of their respective owners.</span>
8+
<span class="disclaimer">Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries. All other product names, logos, and brands are property of their respective owners.
9+
<span class="kawaii-disclaimer">Kawaii Asahi Linux logo by <a href="https://github.com/SAWARATSUKI/Logos">SAWARATSUKI</a> (see link for license).</span>
10+
</span>
911
</div>
1012
<div class="footer-links">
1113
<ul class="footer-services">

layouts/partials/header.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@
2525

2626
<meta property="og:image" content="https://asahilinux.org/img/AsahiLinux_logomark_256px.png">
2727
<meta property="og:title" content="{{ if not .IsHome }}{{.Title}} - {{ end }}Asahi Linux">
28+
<script>
29+
var kawaii = (new URLSearchParams(window.location.search)).get("kawaii") ?? localStorage.getItem("kawaii");
30+
if (kawaii == "true") {
31+
document.documentElement.classList.add("kawaii");
32+
localStorage.setItem("kawaii", "true");
33+
} else {
34+
localStorage.removeItem("kawaii");
35+
}
36+
</script>
2837
</head>
2938
<body class="{{ .Scratch.Get "body_class" }}">
3039
<header id="header">

static/css/main.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,27 @@ ul.footer-services i {
13111311
opacity: 0.8;
13121312
}
13131313

1314+
.disclaimer a {
1315+
text-decoration: underline;
1316+
}
1317+
1318+
/* Kawaii mode */
1319+
html.kawaii img.logo {
1320+
content: url("/img/AsahiLinux_kawaii_logo.png");
1321+
}
1322+
1323+
html.kawaii img.laptop {
1324+
content: url("/img/asahilinux_kawaii_laptop.svg");
1325+
}
1326+
1327+
.kawaii-disclaimer {
1328+
display: none;
1329+
}
1330+
1331+
html.kawaii .kawaii-disclaimer {
1332+
display: inline;
1333+
}
1334+
13141335
@media screen and (max-width: 1050px) {
13151336
.community-links > div {
13161337
display: block;
203 KB
Loading

static/img/asahilinux_kawaii_laptop.svg

Lines changed: 265 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)