This branch contains the new landing page for our project, simplified but updated with all the information we need and developed for our MVP. The landing page will be localized in a few languages and the content is structured already to allow it easily.
The website is based upon Alpha by HTML5UP; On the link you can find the demo as well as layout pages. The theme is free to download so if we ever need to create new pages we can just download, copy and edit.
Localization is done in a pretty rough way, but since we have static content served from gh pages it should be ok and I didn't find another way.
There are 3 steps needed:
- Copy the current
en
version to a dedicated language folder and translate your content (duh!) - Translate/change the
meta
tags fordescription
,keywords
andLanguage
- Inside
assets/js/localization.js
add the correctcase
s to the switch statement ingetNewPath()
- Boring part: edit the menu on each version, adding your new language
For naming convention and flag names use ISO Alpha-2 names. Flags for the link are added using this library.
At the moment the detection uses the first part of the language name, so en-US
and en
are read as en
.
The default language is set to English.
- Integrate mailchimp
- Add Google Analytics from previous version
- Check and validate content
- Cleanup page code
- Remove unused pages from
en
- Translate in Italian
- Translate in Suomi
- Check for cookie usage and if so add disclaimer
- Add signup button in top menu (Maybe?)
- Localize mailchimp subscription response if possible
- Find a way to localize the survey automatically (pass to mailchimp the language of the viewed page? ask the user for the language?)