text: const { cardTemplate } = require("../src/html-template");
  const Employee = require("./Employee");
  
  class Engineer extends Employee {
  
      /**
       * 
       * @param {string} name 
       * @param {string} id 
       * @param {string} email 
       * @param {string} github github username
       */
      constructor(name, id, email, github) {
  
          super(name, id, email);
  
          this.github = github;
      }
  
      getGithub() {
          return this.github
      }
  
      getRole() {
          return 'Engineer'
      }
  
      generateHtml() {
          return `<div class="col my-2">
      <div class="shadow rounded">
          <div class="container-fluid text-light p-3 bg-primary rounded-top shadow">
              <h2>${this.name}</h2>
              <h3>${this.getRole()}</h3>
          </div>
          <div class="container-fluid bg-light px-3 py-5 rounded-bottom">
              <ul class="list-group">
                  <li class="list-group-item">ID: ${this.id}</li>
                  <li class="list-group-item">Email: <a href="mailto:${this.email}">${this.email}</a></li>
                  <li class="list-group-item">GitHub: <a href="https://github.com/${this.github}">${this.github}</a></li>
              </ul>
          </div>
      </div>
  </div>`
      }
  }
  
  module.exports = Engineer;