"use strict"; const { images_url } = require("../constants"); const ThemeCard = require("./home-page-components/theme-card"); const WebPage = require("./lib/web-page"); class HomePage extends WebPage { render() { return { tag: "div", id: "home-page", contents: [ { tag: "div", class: "page-header", contents: [ { tag: "div", class: "big-logo page-contents-center", contents: [ { tag: "img", alt: "logo Kuadrado", src: `${images_url}/logo_kuadrado.svg`, }, { tag: "img", class: "logo-text", alt: "Kuadrado", src: `${images_url}/logo_kuadrado_txt.svg`, }, ], }, { tag: "h1", contents: "Kuadrado Software", class: "page-contents-center" }, { tag: "p", class: "page-contents-center", contents: `Studio de création de jeux vidéo basé en Ardèche, Vernoux en Vivarais.<br />Création artisitique numérique | Développement d'outillage logiciel libre et open source | Pédagogie.`, }, { tag: "ul", class: "philo-bubbles", contents: ["Simplicité", "Légèreté", "Écologie"].map(word => { return { tag: "li", contents: [{ tag: "span", contents: word }], }; }), }, ], }, { tag: "section", class: "page-contents-center poles", contents: [ { title: "Jeux", img: "game_controller.svg", href: "/games/", description: "Créations vidéoludiques, jeux web et jeux PC, projets en cours.", }, { title: "Pédagogie", img: "brain.svg", href: "/education/", description: `S'approprier la technologie par le partage de connaissances.`, }, { title: "Software", img: "meca_proc.svg", href: "/software-development/", description: `R&D, projets expérimentaux, web et outillage logiciel`, }, ].map(cardProps => new ThemeCard(cardProps).render()), }, ], }; } } module.exports = HomePage;