-
© 2025 ZorahM. All rights reserved.
+
+
© 2025 ZorahM. All rights reserved.
@@ -130,7 +162,7 @@
'nav.home': 'Home',
'nav.cv': 'CV',
'nav.contact': 'Contact',
- 'contact.title': 'Connect With Me',
+ 'contact.title': 'Contact Me',
'footer.home': 'Home',
'footer.cv': 'CV',
'footer.contact': 'Contact',
@@ -140,7 +172,7 @@
'nav.home': 'Главная',
'nav.cv': 'Резюме',
'nav.contact': 'Контакты',
- 'contact.title': 'Свяжитесь со мной',
+ 'contact.title': 'Контакты',
'footer.home': 'Главная',
'footer.cv': 'Резюме',
'footer.contact': 'Контакты',
@@ -167,15 +199,17 @@
// Theme toggling
const themeToggle = document.getElementById('theme-toggle');
const themeIcon = document.getElementById('theme-icon');
- const body = document.getElementById('body');
+ const body = document.body;
function setTheme(theme) {
if (theme === 'dark') {
body.classList.add('dark');
- themeIcon.innerHTML = '
';
+ themeIcon.classList.remove('fa-sun');
+ themeIcon.classList.add('fa-moon');
} else {
body.classList.remove('dark');
- themeIcon.innerHTML = '
';
+ themeIcon.classList.remove('fa-moon');
+ themeIcon.classList.add('fa-sun');
}
localStorage.setItem('theme', theme);
}
@@ -194,10 +228,22 @@
// Initialize on page load
document.addEventListener('DOMContentLoaded', () => {
+ // Set language
const savedLanguage = localStorage.getItem('language') || 'en';
- const savedTheme = localStorage.getItem('theme') || 'light';
languageSwitcher.value = savedLanguage;
setLanguage(savedLanguage);
+
+ // Set theme
+ const savedTheme = localStorage.getItem('theme') || 'light';
setTheme(savedTheme);
+
+ // Close mobile menu when clicking on a link
+ document.querySelectorAll('#mobile-menu a').forEach(link => {
+ link.addEventListener('click', () => {
+ mobileMenu.classList.add('hidden');
+ });
+ });
});
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/index.html b/index.html
index 3053cd1..dbc332f 100644
--- a/index.html
+++ b/index.html
@@ -3,510 +3,544 @@