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 1022 B
Newer Older
  • Learn to ignore specific revisions
  • peter_rabbit's avatar
    peter_rabbit committed
    "use strict";
    
    
    peter_rabbit's avatar
    peter_rabbit committed
    const GameArticles = require("./components/game-articles");
    
    
    peter_rabbit's avatar
    peter_rabbit committed
    class GamesPage {
        constructor(args) {
            Object.assign(this, args);
        }
    
        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",
                        class: "page-header",
                        contents: [
    
    peter_rabbit's avatar
    peter_rabbit committed
                            { tag: "h1", contents: "Jeux", class: "page-contents-center" },
                            {
                                tag: "p",
                                class: "page-contents-center",
                                contents: `Créer des jeux vidéos c'est cœur de ce qui nous passionne.
                                <br/>Retrouvez ici nos créations, à jouer en ligne ou à télécharger, et découvrez nos projets en cours.`,
                            },
    
    peter_rabbit's avatar
    peter_rabbit committed
                        ],
    
    peter_rabbit's avatar
    peter_rabbit committed
                    },
    
    peter_rabbit's avatar
    peter_rabbit committed
                    new GameArticles().render(),
    
    peter_rabbit's avatar
    peter_rabbit committed
                ],
            };
        }
    }
    
    module.exports = GamesPage;