Add language switcher and translations for menu items

This commit is contained in:
vista-man
2025-02-20 09:52:41 +01:00
parent df75d5221c
commit 49b055ca14
3 changed files with 88 additions and 15 deletions

View File

@@ -150,7 +150,7 @@ body {
display: none; /* Initially hide the cart icon */
position: fixed;
top: 80px; /* Move the cart icon down */
right: 20px;
right: 60px; /* Adjust right position to make space for language switcher */
background-color: #ff6600;
color: white;
padding: 10px 15px;
@@ -312,4 +312,22 @@ body {
.logo.hidden {
opacity: 0; /* Hide the logo */
visibility: hidden; /* Ensure the logo is not clickable */
}
.language-switcher {
position: fixed;
bottom: 20px; /* Position at the bottom */
left: 20px; /* Position at the left */
background-color: #ff8c00;
color: white;
padding: 10px 20px;
border-radius: 25px;
cursor: pointer;
font-size: 1em;
transition: all 0.3s ease;
z-index: 1100; /* Ensure it is above other elements */
}
.language-switcher:hover {
background-color: #e65c00;
}