mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 03:05:25 +08:00
📝 Docs: 添加 uwu logo (#2689)
This commit is contained in:
parent
a9a86aba61
commit
ea49318809
@ -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: [
|
||||||
|
@ -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>
|
||||||
|
@ -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;
|
||||||
|
}
|
||||||
|
1
website/static/img/uwu.svg
Normal file
1
website/static/img/uwu.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 50 KiB |
2
website/static/uwu.js
Normal file
2
website/static/uwu.js
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
if (location.search.includes("?uwu"))
|
||||||
|
document.documentElement.setAttribute("data-uwu", "true");
|
Loading…
Reference in New Issue
Block a user