🚚 move jollyroger into img-folder

Signed-off-by: SindreKjelsrud <sindre@kjelsrud.dev>
This commit is contained in:
Sid 2024-08-26 00:26:15 +02:00
parent f43199bec6
commit 2e4a9d0ce5
Signed by: sidski
GPG key ID: D2BBDF3EDE6BA9A6
3 changed files with 2 additions and 2 deletions

View file

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

View file

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

View file

@ -12,7 +12,7 @@ const { title, description, pubDate } = Astro.props;
const updateImageForTheme = () => {
const currentTheme = document.documentElement.classList.contains('dark') ? 'dark' : 'light';
jollyroger.src = currentTheme === 'dark' ? '/jollyroger_dark.svg' : '/jollyroger_light.svg';
jollyroger.src = currentTheme === 'dark' ? '/img/jollyroger_dark.svg' : '/img/jollyroger_light.svg';
};
updateImageForTheme();
@ -33,7 +33,7 @@ const { title, description, pubDate } = Astro.props;
<slot />
</div>
<div class="flex items-center justify-center">
<img src="/jollyroger_dark.svg" id="jr" class="md:w-48 w-40" alt="Jolly Roger"/>
<img src="/img/jollyroger_dark.svg" id="jr" class="md:w-48 w-40" alt="My custom jolly roger"/>
</div>
</article>
</main>