generated from goitacademy/vanilla-app-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
124 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,44 @@ | ||
import svgSprite from '../../img/sport-sprite.svg'; | ||
|
||
export function createDevMarkup(developers) { | ||
return developers | ||
.map(developer => { | ||
const { name, linkedin, github } = developer; | ||
return `<li class="team-item"> | ||
<svg class="more-icon" width="20" height="20"> | ||
<use href="./img/sport-sprite.svg#icon-more"></use> | ||
</svg> | ||
<h3 class="team-name">${name}</h3> | ||
<ul class="team-soc-list"> | ||
<li class="team-soc-item"> | ||
<a href="${linkedin}" | ||
class="team-link" target="_blank" rel="noopener noreferrer" > | ||
<svg class="team-icon" width="28" height="28"> | ||
<use href="./img/sport-sprite.svg#icon-linkedin"></use> | ||
</svg> | ||
</a> | ||
</li> | ||
<li class="team-soc-item"> | ||
<a href="${github}" class="team-link" target="_blank" rel="noopener noreferrer" > | ||
<svg class="team-icon" width="28" height="28"> | ||
<use href="./img/sport-sprite.svg#icon-github"></use> | ||
</svg> | ||
</a> | ||
</li> | ||
</ul> | ||
</li>`; | ||
return ` <li class="team-item"> | ||
<svg class="more-icon" width="20" height="20"> | ||
<use href="${svgSprite}#icon-more"></use> | ||
</svg> | ||
<h3 class="team-name">${name}</h3> | ||
<div class="hidden-content"> | ||
<ul class="team-soc-list"> | ||
<li class="team-soc-item"> | ||
<a | ||
href="${linkedin}" | ||
class="team-link" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<svg class="team-icon" width="28" height="28"> | ||
<use href="${svgSprite}#icon-linkedin"></use> | ||
</svg> | ||
</a> | ||
</li> | ||
<li class="team-soc-item"> | ||
<a | ||
href="${github}" | ||
class="team-link" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<svg class="team-icon" width="28" height="28"> | ||
<use href="${svgSprite}#icon-github"></use> | ||
</svg> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</li> | ||
`; | ||
}) | ||
.join(''); | ||
} |
Oops, something went wrong.