Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 19 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import EngineApp from '../../Framework/engine.js' |
||
2 | let eng =new EngineApp() |
||
3 | |||
4 | |||
5 | function cardPeople(id,renderTarget,urlAvatar,name,functionName,text){ |
||
6 | eng.componentsEngine.createComponent("card0"+id,renderPeople(urlAvatar,name,functionName,text)) |
||
7 | eng.componentsEngine.renderComponent(renderTarget,"card0"+id) |
||
8 | } |
||
9 | |||
10 | function renderPeople(urlAvatar,name,functionName,text){ |
||
11 | return "<br><div class='card aboutcard left' style='width: 18rem;color='black''>"+ |
||
12 | "<div class='aboutCreator'><img class='aboutCreator' src="+urlAvatar+"></div>"+ |
||
13 | "<div class='card-body><h1 class='card-title' style='font-size='10vh''>"+name+"</h1>"+ |
||
14 | "<h6 class='card-subtitle mb-2 text-muted'>"+functionName+"</h6>"+ |
||
15 | "<p class='card-text'>"+text+"</p>"+ |
||
16 | "</div>" |
||
17 | } |
||
18 | |||
19 | export default cardPeople |