📝 Docs: 添加 uwu logo (#2689)

This commit is contained in:
StarHeart 2024-05-01 22:28:36 +08:00 committed by GitHub
parent a9a86aba61
commit ea49318809
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 23 additions and 0 deletions

View File

@ -251,6 +251,12 @@ const siteConfig = {
src: "https://cdn.wwads.cn/js/makemoney.js", src: "https://cdn.wwads.cn/js/makemoney.js",
async: true, async: true,
}, },
// uwu logo
{
type: "text/javascript",
charset: "UTF-8",
src: "/uwu.js",
},
], ],
presets: [ presets: [

View File

@ -47,6 +47,7 @@ function HomeHero(): JSX.Element {
return ( return (
<div className="home-hero"> <div className="home-hero">
<img src="/img/uwu.svg" alt="uwu" className="home-hero-uwu" />
<img src={logo!.src} alt={logo!.alt} className="home-hero-logo" /> <img src={logo!.src} alt={logo!.alt} className="home-hero-logo" />
<h1 className="home-hero-title"> <h1 className="home-hero-title">
<span className="text-primary">None</span> <span className="text-primary">None</span>

View File

@ -39,3 +39,16 @@
@apply inline-block !max-w-[600px]; @apply inline-block !max-w-[600px];
} }
} }
.home-hero-uwu {
@apply hidden;
}
[data-uwu=true] .home-hero-uwu {
@apply block max-w-xs;
}
[data-uwu=true] .home-hero-logo,
[data-uwu=true] .home-hero-title {
@apply hidden;
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 50 KiB

2
website/static/uwu.js Normal file
View File

@ -0,0 +1,2 @@
if (location.search.includes("?uwu"))
document.documentElement.setAttribute("data-uwu", "true");