2023-07-19 21:31:30 +02:00
|
|
|
---
|
|
|
|
const today = new Date();
|
|
|
|
---
|
2024-02-21 23:36:26 +01:00
|
|
|
<script type="module" client:load>
|
2024-02-22 15:14:29 +01:00
|
|
|
const githubImage = document.getElementById('githubImage');
|
|
|
|
const spotifyImage = document.getElementById('spotifyImage');
|
2024-04-24 20:22:16 +02:00
|
|
|
const xxiivvwebringImage = document.getElementById('xxiivvwebringImage');
|
|
|
|
const grandlinewebringImage = document.getElementById('grandlinewebringImage');
|
2024-02-21 23:36:26 +01:00
|
|
|
|
|
|
|
const updateImageForTheme = () => {
|
|
|
|
const currentTheme = document.documentElement.classList.contains('dark') ? 'dark' : 'light';
|
2024-08-23 10:58:17 +02:00
|
|
|
githubImage.src = currentTheme === 'dark' ? '/socials/github_dark.svg' : '/socials/github_light.svg';
|
|
|
|
spotifyImage.src = currentTheme === 'dark' ? '/socials/spotify_dark.svg' : '/socials/spotify_light.svg';
|
|
|
|
xxiivvwebringImage.src = currentTheme === 'dark' ? '/socials/xxiivvwebring_dark.svg' : '/socials/xxiivvwebring_light.svg';
|
|
|
|
grandlinewebringImage.src = currentTheme === 'dark' ? '/socials/grandlinewebring.dark.svg' : '/socials/grandlinewebring.light.svg';
|
2024-02-21 23:36:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
updateImageForTheme();
|
|
|
|
|
|
|
|
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-22 15:14:29 +01:00
|
|
|
<div class="flex gap-1">
|
2024-02-23 17:10:50 +01:00
|
|
|
<a href="https://github.com/SindreKjelsrud" aria-label="Link to my GitHub" target="_blank">
|
2024-02-22 15:22:10 +01:00
|
|
|
<img id="githubImage" height="30" width="30" src="/socials/github_dark.svg" alt="GitHub"/>
|
2024-02-21 22:19:08 +01:00
|
|
|
</a>
|
2024-02-23 17:10:50 +01:00
|
|
|
<a href="https://open.spotify.com/user/kjelsrud!" aria-label="Link to my Spotify" target="_blank">
|
2024-02-22 15:22:10 +01:00
|
|
|
<img id="spotifyImage" height="30" width="30" src="/socials/spotify_dark.svg" alt="Spotify"/>
|
2024-02-22 15:14:29 +01:00
|
|
|
</a>
|
2024-04-24 20:22:16 +02:00
|
|
|
<a href="https://webring.kjelsrud.dev/#sid" target="_blank" rel="noopener" target="_blank">
|
|
|
|
<img id="grandlinewebringImage" height="30" width="30" src="/socials/grandlinewebring.dark.svg" alt="Grand Line Webring"/>
|
|
|
|
</a>
|
2024-02-23 17:10:50 +01:00
|
|
|
<a href="https://webring.xxiivv.com/#sid" target="_blank" rel="noopener" target="_blank">
|
2024-04-26 14:48:58 +02:00
|
|
|
<img id="xxiivvwebringImage" height="30" width="30" src="/socials/xxiivvwebring_dark.svg" alt="XXIIVV webring"/>
|
2024-02-21 23:36:26 +01:00
|
|
|
</a>
|
2024-02-21 22:19:08 +01:00
|
|
|
</div>
|
|
|
|
</footer>
|