modif html et css
This commit is contained in:
parent
c10b0d39ce
commit
5995d85878
|
@ -11,12 +11,12 @@
|
|||
<body>
|
||||
<h1>Our Team Members</h1>
|
||||
<section id="bloc1">
|
||||
<div id="fiche">
|
||||
<!--<div id="fiche">
|
||||
<img id = "avatar" src="" alt="Photo d'identité">
|
||||
<p id = "nom"></p> <p id = "prenom"></p>
|
||||
<p id = "identifiant"></p>
|
||||
<p id = "email"></p>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
<div id="personne"></div>
|
||||
</section>
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
"description": "TP sur JavaScript, API et Parcell",
|
||||
"main": "index.html",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "parcel index.html"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
12
script.js
12
script.js
|
@ -21,12 +21,12 @@ fetch(API_URL)
|
|||
console.log(PERSONNE);
|
||||
|
||||
MEMBER.innerHTML +=`
|
||||
<div>
|
||||
<p>${PERSONNE.last_name}</p>
|
||||
<p>${PERSONNE.first_name}</p>
|
||||
<p>${PERSONNE.id}</p>
|
||||
<p>${PERSONNE.email}</p>
|
||||
<img src="${PERSONNE.avatar}" alt="">
|
||||
<div = fiche>
|
||||
<img src="${PERSONNE.avatar}" alt="Photo d'identité">
|
||||
<p id= "nom">${PERSONNE.last_name}</p>
|
||||
<p id="prenom">${PERSONNE.first_name}</p>
|
||||
<p id ="identifiant">${PERSONNE.id}</p>
|
||||
<p id = "email">${PERSONNE.email}</p>
|
||||
</div>
|
||||
`
|
||||
|
||||
|
|
Loading…
Reference in New Issue