refactor: use imported svg to display logos
This commit is contained in:
parent
3b96b42d4b
commit
7851abb262
3 changed files with 5 additions and 3 deletions
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
@ -3,9 +3,11 @@ import '../styles/global.css';
|
||||||
import Search from '../components/Search.astro';
|
import Search from '../components/Search.astro';
|
||||||
import ThemeSwitcher from '../components/ThemeSwitcher.astro';
|
import ThemeSwitcher from '../components/ThemeSwitcher.astro';
|
||||||
import BackToTop from "../components/BackToTop.astro";
|
import BackToTop from "../components/BackToTop.astro";
|
||||||
import { siteConfig } from "../config";
|
|
||||||
import Meta from "../components/helper/head/Meta.astro";
|
import Meta from "../components/helper/head/Meta.astro";
|
||||||
|
|
||||||
|
import { siteConfig } from "../config";
|
||||||
|
import Logo from '../assets/mercury.svg'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
description: string;
|
description: string;
|
||||||
|
@ -65,7 +67,7 @@ const { title = pageTitle, description = siteConfig.description, ogImage = "" }
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<Fragment set:html={customFooter} />
|
<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>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
{ siteConfig.neko.enabled &&
|
{ siteConfig.neko.enabled &&
|
||||||
|
|
|
@ -134,7 +134,7 @@ main {
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer img {
|
.footer svg {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue