diff --git a/assets/js/current-projects.js b/assets/js/current-projects.js index 5aee0f5d13..8208e9267e 100644 --- a/assets/js/current-projects.js +++ b/assets/js/current-projects.js @@ -476,94 +476,94 @@ function clearAllEventHandler(){ * Takes a single project object and returns the html string representing the project card */ function projectCardComponent(project){ -return ` -
  • -
    - - -
    - ${project.alt} -
    -
    - -
    -
    -
    ${ project.status }
    -
    - -

    ${ project.title }

    - -

    ${ project.description }

    - - - - ${project.partner ? - ` -
    - Partner: - ${ project.partner } -
    - `:"" - } - - ${project.tools ? - ` -
    - Tools: - ${ project.tools } -
    - `:"" - } - - ${project.looking ? "" : "" - // ` - //
    - // Looking for: - // ${project.looking.map( role => `

    ${ role.skill }

    `).join(", ")} - //
    - // `:"" - // ^ See issue #1997 for more info on why this is commented out - } - - ${project.languages?.length > 0 ? - ` -
    - Languages: - ${project.languages.map(language => `

    ${ language }

    `).join(", ")} -
    - `: "" - } - - ${project.technologies ? - ` -
    - Technologies: - ${project.technologies.map(tech => `

    ${ tech }

    `).join(", ")} -
    - `:"" - } - - ${project.programAreas ? - ` -
    - Program Areas: - ${project.programAreas.map(programArea => `

    ${ programArea }

    `).join(", ")} -
    - `:"" - } -
    -
    -
  • ` + return ` +
  • +
    + + +
    + ${project.alt} +
    +
    + +
    +
    +
    ${ project.status }
    +
    + +

    ${ project.title }

    + +

    ${ project.description }

    + + + + ${project.partner ? + ` +
    + Partner: + ${ project.partner } +
    + `:"" + } + + ${project.tools ? + ` +
    + Tools: + ${ project.tools } +
    + `:"" + } + + ${project.looking ? "" : "" + // ` + //
    + // Looking for: + // ${project.looking.map( role => `

    ${ role.skill }

    `).join(", ")} + //
    + // `:"" + // ^ See issue #1997 for more info on why this is commented out + } + + ${project.languages?.length > 0 ? + ` +
    + Languages: + ${project.languages.map(language => `

    ${ language }

    `).join(", ")} +
    + `: "" + } + + ${project.technologies ? + ` +
    + Technologies: + ${project.technologies.map(tech => `

    ${ tech }

    `).join(", ")} +
    + `:"" + } + + ${project.programAreas ? + ` +
    + Program Areas: + ${project.programAreas.map(programArea => `

    ${ programArea }

    `).join(", ")} +
    + `:"" + } +
    +
    +
  • ` } /** @@ -605,4 +605,4 @@ function filterTagComponent(filterName,filterValue){ ${filterName === "looking" ? "Role" : filterName}: ${filterValue} ` -} \ No newline at end of file +}