"use strict"; const { images_url } = require("../../constants"); class ThemeCard { constructor(props) { this.props = props; } render() { return { tag: "a", class: "theme-card", href: this.props.href, contents: [ { tag: "div", class: "card-img", contents: [{ tag: "img", src: `${images_url}/${this.props.img}` }], }, { tag: "div", class: "card-title", contents: [{ tag: "h2", class: "section-title", contents: this.props.title }], }, { tag: "div", class: "card-description", contents: [{ tag: "p", contents: this.props.description }], }, ], }; } } module.exports = ThemeCard;