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.72 KiB
Newer Older
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 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",
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
                                    ],
                                },
                                { tag: "h1", contents: "Jeux" },
                                {
                                    tag: "p",
peter_rabbit's avatar
peter_rabbit committed
                                    contents: `Création de jeux vidéos indépendants.
                                    <br/>Jeux web, PC et projets en cours de développement`,
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
                },
peter_rabbit's avatar
peter_rabbit committed
                new GameArticles().render(),
peter_rabbit's avatar
peter_rabbit committed
            ],
        };
    }
}

module.exports = GamesPage;