diff --git a/src/assets/icon/back-top.svg b/src/assets/icon/back-top.svg index 3905f18..16aa9dd 100644 --- a/src/assets/icon/back-top.svg +++ b/src/assets/icon/back-top.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/components/BackTop.astro b/src/components/BackTop.astro index f8a9a53..109a826 100644 --- a/src/components/BackTop.astro +++ b/src/components/BackTop.astro @@ -46,12 +46,16 @@ import backTopIcon from "@/assets/icon/back-top.svg?url"; display: none; } - .back-top :global(img) { + .back-top img { width: 100%; height: 100%; display: block; } + :global(.dark) .back-top img { + filter: invert(1); + } + .back-top:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; diff --git a/src/components/BaseFooter.astro b/src/components/BaseFooter.astro index 46bdaca..6bac2c8 100644 --- a/src/components/BaseFooter.astro +++ b/src/components/BaseFooter.astro @@ -1,8 +1,12 @@ --- +import { metadata } from "../consts"; + +const year = new Date().getFullYear(); ---