Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
games.js 1.66 KiB
Newer Older
  • Learn to ignore specific revisions
  • peter_rabbit's avatar
    peter_rabbit committed
    "use strict";
    
    
    peter_rabbit's avatar
    peter_rabbit committed
    const { images_url } = require("../../../constants");
    
    peter_rabbit's avatar
    peter_rabbit committed
    const WebPage = require("../../lib/web-page");
    
    peter_rabbit's avatar
    peter_rabbit committed
    const GameArticles = require("./components/game-articles");
    
    
    peter_rabbit's avatar
    peter_rabbit committed
    class GamesPage extends WebPage {
    
    peter_rabbit's avatar
    peter_rabbit committed
        render() {
            return {
                tag: "div",
    
    peter_rabbit's avatar
    peter_rabbit committed
                id: "games-page",
    
    peter_rabbit's avatar
    peter_rabbit committed
                contents: [
                    {
    
    peter_rabbit's avatar
    peter_rabbit committed
                        tag: "div",
    
    peter_rabbit's avatar
    peter_rabbit committed
                        class: "page-header logo-left",
    
    peter_rabbit's avatar
    peter_rabbit committed
                        contents: [
    
    peter_rabbit's avatar
    peter_rabbit committed
                            {
    
    peter_rabbit's avatar
    peter_rabbit committed
                                tag: "div",
                                class: "page-contents-center grid-wrapper",
                                contents: [
                                    {
                                        tag: "div",
                                        class: "logo",
                                        contents: [
    
    peter_rabbit's avatar
    peter_rabbit committed
                                            {
                                                tag: "img",
                                                alt: "image game controller",
    
                                                src: `${images_url}/game_controller.svg`,
    
    peter_rabbit's avatar
    peter_rabbit committed
                                            },
    
    peter_rabbit's avatar
    peter_rabbit committed
                                        ],
                                    },
    
    Pierre Jarriges's avatar
    Pierre Jarriges committed
                                    { tag: "h1", contents: t("Jeux") },
    
    peter_rabbit's avatar
    peter_rabbit committed
                                    {
                                        tag: "p",
    
    Pierre Jarriges's avatar
    Pierre Jarriges committed
                                        contents: t("games-page-intro"),
    
    peter_rabbit's avatar
    peter_rabbit committed
                                    },
                                ],
    
    peter_rabbit's avatar
    peter_rabbit committed
                            },
    
    peter_rabbit's avatar
    peter_rabbit committed
                        ],
    
    peter_rabbit's avatar
    peter_rabbit committed
                    },
    
    Pierre Jarriges's avatar
    Pierre Jarriges committed
                    new GameArticles({ translations_ready: this.translations_ready }).render(),
    
    peter_rabbit's avatar
    peter_rabbit committed
                ],
            };
        }
    }
    
    module.exports = GamesPage;