language switch functionality added
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<svg class="signal-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="24" height="24">
|
||||
<path fill="currentColor" d="M128 26.6C71.9 26.6 26.6 71.9 26.6 128c0 56.1 45.3 101.4 101.4 101.4c56.1 0 101.4-45.3 101.4-101.4C229.4 71.9 184.1 26.6 128 26.6zM128 220c-50.7 0-92-41.3-92-92s41.3-92 92-92s92 41.3 92 92S178.7 220 128 220z M128 76.5c-28.4 0-51.5 23.1-51.5 51.5s23.1 51.5 51.5 51.5s51.5-23.1 51.5-51.5S156.4 76.5 128 76.5z M128 170c-23.1 0-42-18.9-42-42s18.9-42 42-42s42 18.9 42 42S151.1 170 128 170z M128 98.5c-16.3 0-29.5 13.2-29.5 29.5s13.2 29.5 29.5 29.5s29.5-13.2 29.5-29.5S144.3 98.5 128 98.5z"/>
|
||||
</svg>
|
||||
<a href="https://signal.me/#eu/aJ9SSOqcjDjvmJbFB_2p4CM4cwGjeYvbIuhGuTIU-eZ-dgDvM3BD4ocEEff8mhaR">Signal</a>
|
||||
<a href="https://signal.me/#eu/aJ9SSOqcjDjvmJbFB_2p4CM4cwGjeYvbIuhGuTIU-eZ-dgDvM3BD4ocEEff8mhaR" data-i18n="footer.signal">Signal</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="social-links">
|
||||
@@ -23,7 +23,7 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="legal-links">
|
||||
<a href="impressum.html">Impressum</a>
|
||||
<a href="datenschutz.html">Datenschutz</a>
|
||||
<a href="impressum.html" data-i18n="footer.imprint">Impressum</a>
|
||||
<a href="datenschutz.html" data-i18n="footer.privacy">Datenschutz</a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -10,10 +10,16 @@
|
||||
<a href="index.html" id="start-link">Home</a>
|
||||
<a href="#services" id="expertise-link">Expertise</a>
|
||||
<a href="#contact" id="contact-link">Kontakt</a>
|
||||
<button class="theme-toggle" aria-label="Theme Toggle">
|
||||
<i class="fas fa-sun"></i>
|
||||
<i class="fas fa-moon"></i>
|
||||
</button>
|
||||
<div class="nav-controls">
|
||||
<div class="language-switcher">
|
||||
<button class="lang-btn" data-lang="de">DE</button>
|
||||
<button class="lang-btn" data-lang="en">EN</button>
|
||||
</div>
|
||||
<button class="theme-toggle" aria-label="Theme Toggle">
|
||||
<i class="fas fa-sun"></i>
|
||||
<i class="fas fa-moon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<button class="mobile-menu-toggle" aria-label="Toggle Menu">
|
||||
@@ -21,11 +27,4 @@
|
||||
</button>
|
||||
</div>
|
||||
<div class="header-horizontal-line"></div>
|
||||
<script>
|
||||
// Hide expertise and contact links on non-index pages
|
||||
if (window.location.pathname !== '/' && window.location.pathname !== '/index.html') {
|
||||
document.getElementById('expertise-link').style.display = 'none';
|
||||
document.getElementById('contact-link').style.display = 'none';
|
||||
}
|
||||
</script>
|
||||
</header>
|
||||
|
||||
4
public/components/language-switcher.html
Normal file
4
public/components/language-switcher.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<div class="language-switcher">
|
||||
<button class="lang-btn" data-lang="de">DE</button>
|
||||
<button class="lang-btn" data-lang="en">EN</button>
|
||||
</div>
|
||||
Reference in New Issue
Block a user