2023-07-19 21:31:30 +02:00
|
|
|
---
|
|
|
|
const today = new Date();
|
|
|
|
---
|
2024-02-21 22:19:08 +01:00
|
|
|
<script src="https://code.iconify.design/iconify-icon/1.0.7/iconify-icon.min.js"></script>
|
2024-02-21 23:36:26 +01:00
|
|
|
|
|
|
|
<script type="module" client:load>
|
|
|
|
const themeImage = document.getElementById('themeImage');
|
|
|
|
|
|
|
|
const updateImageForTheme = () => {
|
|
|
|
const currentTheme = document.documentElement.classList.contains('dark') ? 'dark' : 'light';
|
|
|
|
themeImage.src = currentTheme === 'dark' ? '/webring_dark.svg' : '/webring_light.svg';
|
|
|
|
};
|
|
|
|
|
|
|
|
// Initial update on page load
|
|
|
|
updateImageForTheme();
|
|
|
|
|
|
|
|
// Listen for theme changes if your theme toggle updates a class or attribute
|
|
|
|
const themeToggle = document.getElementById('themeToggle');
|
|
|
|
if (themeToggle) {
|
|
|
|
themeToggle.addEventListener('click', updateImageForTheme);
|
|
|
|
}
|
|
|
|
</script>
|
2023-07-19 21:31:30 +02:00
|
|
|
|
2024-02-21 22:25:57 +01:00
|
|
|
<footer class="flex justify-between py-5 mt-5 footerbg">
|
2024-02-21 22:19:08 +01:00
|
|
|
<div>Sindre Kjelsrud © {today.getFullYear()}</div>
|
2024-02-21 23:36:26 +01:00
|
|
|
<div class="flex social">
|
2024-02-21 22:19:08 +01:00
|
|
|
<a href="https://github.com/SindreKjelsrud" aria-label="Link to my GitHub">
|
|
|
|
<iconify-icon icon="ri:github-line" width="30" height="30" />
|
|
|
|
</a>
|
|
|
|
<a href="https://open.spotify.com/user/kjelsrud!" aria-label="Link to my Spotify">
|
|
|
|
<iconify-icon icon="mdi:spotify" width="30" height="30" />
|
|
|
|
</a>
|
2024-02-21 23:36:26 +01:00
|
|
|
<a href="https://webring.xxiivv.com/#sid" target="_blank" rel="noopener">
|
|
|
|
<img id="themeImage" height="30" width="30" src="/webring_light.svg" alt="XXIIVV webring"/>
|
|
|
|
</a>
|
2024-02-21 22:19:08 +01:00
|
|
|
</div>
|
|
|
|
</footer>
|