I created this Landing Page as a proposal for the a Video Game website called ”The Path Into The Abyss”. A videogame based on the universe created by filmmaker Matías Rispau.
🚀 Project Structure
├── public/images/
│ └── slides/
│ └── EN/
│ └── ES/
│
├── src/
│ └── data/
│ │ └── links.js
│ │ └── i18n.js
│ │
│ └── layout/
│ │ └── mainLayout.astro
│ │
│ └── components/
│ │ └── footer.astro
│ │ └── gameplay.astro
│ │ └── header.astro
│ │ └── hero.astro
│ │ └── links.astro
│ │ └── lore.astro
│ │ └── menu.astro
│ │ └── newsletter.astro
│ │ └── reviews.astro
│ │ └── specs.astro
│ │
│ └── pages/
│ └── index.astro
│ └── 404.astro
│ └── [lang]/
│ └── index.astro
└── package.jsonTo Add, Update or Delete copywriting or urls you'll need to modify the info in the following files:
- URLS & Relative Paths info:
src/data/links.js - Copywrite [EN/ES] info:
src/data/i18n.js
Note
In case the url doesn't exist it'll return the default homepage in english.
To add a new translation follow the next steps:
- Create a new copywriting following the default format at
src/data/i18n.js - Update the attributes for
getStaticPaths()function onsrc/pages/[lang]/index.js
export function getStaticPaths () {
return [
{params: {lang: 'en'}},
{params: {lang: 'es'}},
];
}Tip
HOW DOES IT WORK
The function getStaticPaths() will receive these attributes from the URL and save them as a const [lang] variable.
Another function will then compare the value of this variable with an attribute in src/data/i18n.js. In case the function finds a match, it will load the appropriate translation and pass the data as a parameter to the corresponding components..
E.g: website.com/ES/ is a positive match for es attribute at i18n.js file:
export const ui = {
es: {name:'el camino hacia el abismo'},
en: {name:'the path into the abyss'}
}Note
DISCLAIMER
All assets (images and GIFs) belong to Matias Rispau, and The Path Into The Abyss trademark, all copywriting was made by myself as well as the icons and the Metropolitan Area Map based on the information I could extract from The Abyss DevLog YouTube Video.
© 2024/2025 Brainstorm Films & XMR Productions. All Rights Reserved. Matias Rispau’s, The Path Into The Abyss, and the Brainstorm logo are registered or unregistered trademarks of Brainstorm Films and XMR productions in Argentina and/or other countries.
Microsoft, the Xbox Sphere mark, the Series X logo, Series S logo, Series X|S logo, Xbox One, Xbox Series X, Xbox Series S, and Xbox Series X|S are trademarks of the Microsoft group of companies. “PlayStation LOGO”, “PlayStation”, “PS5 LOGO” and “PS4 LOGO” are registered trademarks or trademarks of Sony Interactive Entertainment Inc.