Welcome to Riba de Rivers, a comprehensive web platform dedicated to showcasing a unique vacation apartment experience in the picturesque Ribadesella region of Asturias, Spain. This website serves as a digital gateway to an exceptional holiday destination, offering potential guests an immersive preview of a charming vacation rental that seamlessly blends modern comfort with the breathtaking natural and cultural landscape of Northern Spain.
While the primary focus is on presenting our vacation apartment as an ideal accommodation choice, the website also celebrates the extraordinary environment surrounding the property. Visitors will discover the rich tapestry of Ribadesella’s natural beauty, cultural heritage and vibrant community activities, providing context and inspiration for their potential stay.
The website offers a multilingual experience, allowing visitors to explore its features in English, French or Spanish. By leveraging modern web technologies such as i18next for translations, this project ensures accessibility for a diverse, international audience. Whether you’re exploring the interactive map, browsing the gallery or reaching out through the contact form, Riba de Rivers provides an engaging digital experience.
The project is hosted on GitHub Pages for static content, with the backend currently configured for local development.
The website is packed with features designed to enhance the user experience:
Riba de Rivers incorporates i18next, a popular internationalization framework, to make the website accessible in three languages: English, French and Spanish. Visitors can easily switch between these languages using a dropdown menu that displays the selected language and corresponding flag.
i18next.changeLanguage
method.The translations are defined as follows:
const resources = {
en: { translation: { /* English translations */ } },
fr: { translation: { /* French translations */ } },
es: { translation: { /* Spanish translations */ } }
};
Each key corresponds to a piece of text on the website, ensuring seamless translation updates.
A dropdown menu allows users to select their preferred language. When a language is chosen, the following happens:
i18next.changeLanguage
function switches to the selected language.data-i18n
attribute are updated dynamically using the updateContent
function.Here’s the language-switching logic:
function changeLanguage(lang) {
i18next.changeLanguage(lang, function () {
updateContent(); // Update the page content
// Update the dropdown button with the selected language and flag
});
}
This project combines modern technologies to deliver an accessible, multilingual, and dynamic experience:
By integrating these technologies, Riba de Rivers ensures a robust and user-friendly experience for visitors.
You can explore the project live on the following platform:
Note: Backend services are currently configured for local development only.
To set up the project locally, follow these steps:
git clone https://github.com/rivers07-maker/riba-de-rivers.git
cd riba-de-rivers
Static Website: Open the index.html
file in your browser.
pip install -r backend/requirements.txt
python backend/app.py
http://localhost:5000
.data-i18n
attribute.Contributions are welcome! To contribute:
git checkout -b feature-name
git commit -m "Description of changes"
Your contributions can enhance Riba de Rivers for everyone!
This project is licensed under the MIT License. Feel free to use, modify, and distribute it with proper attribution. See the LICENSE file for details.
For inquiries or feedback, reach out to:
Enjoy exploring the world of Riba de Rivers!