Skip to content

Commit

Permalink
Adição das experiencias profissionais
Browse files Browse the repository at this point in the history
  • Loading branch information
RenanJPaula committed Aug 17, 2022
1 parent 47c7500 commit d8e82ac
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
14 changes: 14 additions & 0 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,25 @@ function updatePortfolio(profileData) {
}).join('')
}

function updateProfessionalExperience(profileData) {
const professionalExperience = document.getElementById('profile.professionalExperience')
professionalExperience.innerHTML = profileData.professionalExperience.map(experience => {
return `
<li>
<h3 class="title">${experience.name}</h3>
<p class="period">${experience.period}</p>
<p>${experience.description}</p>
</li>
`
}).join('')
}

(async () => {
const profileData = await fetchProfileData()
updateProfileInfo(profileData)
updateSoftSkills(profileData)
updateHardSkills(profileData)
updateLanguages(profileData)
updatePortfolio(profileData)
updateProfessionalExperience(profileData)
})()
21 changes: 1 addition & 20 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,26 +99,7 @@ <h2>Experiência Profissional</h2>
</button>

<div class="content">
<ul class="experience">
<li>
<h3 class="title">Front-end Developer / dio.me</h3>
<p class="period">Jan 2020 - Current</p>
<p>
Lorem ipsum dolor sit amet. Praesentium magnam consectetur vel in deserunt aspernatur est
reprehenderit sunt hic. Nulla tempora soluta ea et odio, unde doloremque repellendus iure,
iste.
</p>
</li>

<li>
<h3 class="title">Front-end Developer / dio.me</h3>
<p class="period">Jan 2020 - Current</p>
<p>
Lorem ipsum dolor sit amet. Praesentium magnam consectetur vel in deserunt aspernatur est
reprehenderit sunt hic. Nulla tempora soluta ea et odio, unde doloremque repellendus iure,
iste.
</p>
</li>
<ul class="experience" id="profile.professionalExperience">
</ul>
</div>
</section>
Expand Down

0 comments on commit d8e82ac

Please sign in to comment.