🚚 move jollyroger into img-folder
Signed-off-by: SindreKjelsrud <sindre@kjelsrud.dev>
This commit is contained in:
parent
f43199bec6
commit
2e4a9d0ce5
3 changed files with 2 additions and 2 deletions
Before (image error) Size: 74 KiB After (image error) Size: 74 KiB |
Before (image error) Size: 74 KiB After (image error) Size: 74 KiB |
|
@ -12,7 +12,7 @@ const { title, description, pubDate } = Astro.props;
|
||||||
|
|
||||||
const updateImageForTheme = () => {
|
const updateImageForTheme = () => {
|
||||||
const currentTheme = document.documentElement.classList.contains('dark') ? 'dark' : 'light';
|
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();
|
updateImageForTheme();
|
||||||
|
@ -33,7 +33,7 @@ const { title, description, pubDate } = Astro.props;
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center justify-center">
|
<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>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</main>
|
</main>
|
||||||
|
|
Loading…
Add table
Reference in a new issue