feat: initial portfolio implementation with dark mode and i18n

- Add Astro portfolio with TypeScript
- Implement dark/light theme toggle
- Add Spanish/English translations
- Create under construction page
- Style with Tailwind CSS and glassmorphism effects
- Add profile image, projects, skills, and experience sections
This commit is contained in:
Itziar Zameza García
2026-03-14 22:41:48 +01:00
parent 085cc4c6cb
commit 476dd54c0e
13 changed files with 4546 additions and 16 deletions
+15
View File
@@ -0,0 +1,15 @@
(function() {
const theme = localStorage.getItem('theme');
const systemPrefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
const initialTheme = theme || (systemPrefersDark ? 'dark' : 'light');
document.documentElement.classList.toggle('dark', initialTheme === 'dark');
window.toggleTheme = function() {
const currentTheme = document.documentElement.classList.contains('dark') ? 'dark' : 'light';
const newTheme = currentTheme === 'dark' ? 'light' : 'dark';
document.documentElement.classList.toggle('dark');
localStorage.setItem('theme', newTheme);
};
})();