refactor: use imported svg to display logos

This commit is contained in:
grassblock 2025-05-18 17:01:00 +08:00
parent 3b96b42d4b
commit 7851abb262
3 changed files with 5 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;
}