Compare commits

..

2 commits

Author SHA1 Message Date
grassblock
7851abb262 refactor: use imported svg to display logos 2025-05-18 17:01:00 +08:00
grassblock
3b96b42d4b chore(static web apps): fix 404 page 2025-05-18 16:48:51 +08:00
4 changed files with 24 additions and 3 deletions

View file

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before After
Before After

View file

@ -3,9 +3,11 @@ import '../styles/global.css';
import Search from '../components/Search.astro';
import ThemeSwitcher from '../components/ThemeSwitcher.astro';
import BackToTop from "../components/BackToTop.astro";
import { siteConfig } from "../config";
import Meta from "../components/helper/head/Meta.astro";
import { siteConfig } from "../config";
import Logo from '../assets/mercury.svg'
interface Props {
title: string;
description: string;
@ -65,7 +67,7 @@ const { title = pageTitle, description = siteConfig.description, ogImage = "" }
</div>
<div class="container">
<Fragment set:html={customFooter} />
<p>Powered by <a href="https://git.gb0.dev/gb/mercury"><img src="/mercury.svg" width="16px" alt="mercury logo" /> mercury</a></p>
<p>Powered by <a href="https://git.gb0.dev/gb/mercury" target="_blank"><Logo width={16} height={16} /> mercury</a></p>
</div>
</footer>
{ siteConfig.neko.enabled &&

View file

@ -134,7 +134,7 @@ main {
opacity: 0.7;
}
.footer img {
.footer svg {
vertical-align: middle;
}

19
staticwebapp.config.json Normal file
View file

@ -0,0 +1,19 @@
{
"trailingSlash": "auto",
"routes": [
{
"route": "/*",
"headers": {
"cache-control": "must-revalidate, max-age=15770000"
}
}
],
"responseOverrides": {
"404": {
"rewrite": "/404.html"
}
},
"globalHeaders": {
"content-security-policy": "default-src https: 'unsafe-eval' 'unsafe-inline'; object-src 'none'"
}
}