Skip to content

Commit

Permalink
Adição da funcionalidade de baixar plano de aula
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor-oss committed Dec 11, 2023
1 parent 61f3c47 commit db1f5dc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/src/pages/ViewPlan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,13 @@ const ViewPlan = () => {
const planDiv = document.createElement('div');
planDiv.style.margin = '50px'
planDiv.innerHTML = `
<center><h1 style="color: black; font-size: 2em; margin-top: 1em;">${planUpdated.title}</h1></center>
<center><h1 style="color: black; font-size: 2em; margin-top: 1em;">${title}</h1></center>
<br></br>
<h2 style="color: blue; font-size: 2em;">Objetivos</h2>
<p style="color: black;">${planUpdated.goals}</p>
<p style="color: black;">${goals}</p>
<br></br>
<h2 style="color: blue; font-size: 2em;">Observações</h2>
<p style="color: black;">${planUpdated.observations}</p>
<p style="color: black;">${observations}</p>
<br></br>
<h1 style="color: blue; font-size: 2em">Drills</h1>
`;
Expand All @@ -268,10 +268,10 @@ const ViewPlan = () => {
<br></br>
<center><h1 style="color: black; font-size: 2em">${drillData.title}</h2></center>
<br></br>
<h1 style="color: blue; font-size: 2em">Descrição</h1>
<h2 style="color: blue; font-size: 2em">Descrição</h1>
<p style="color: black;">${drillData.description}</p>
<br></br>
<h1 style="color: blue; font-size: 2em">Observações</h2>
<h2 style="color: blue; font-size: 2em">Observações</h2>
<p style="color: black;">${drillData.observations}</p>
<br></br>
<img src="${drillData.image}" style="width: 100%; max-width: 500px; height: auto; display: block; margin-left: auto; margin-right: auto;"/>
Expand Down Expand Up @@ -336,7 +336,7 @@ const ViewPlan = () => {
onClick={startEditingTitle}
className="clickableIcon"
/>
<button onClick={() => {}}
<button onClick={downloadPlan}
style={{paddingLeft: "10px"}}>
<Icon icon="bi:download" color="white" width="20" />
</button>
Expand Down

0 comments on commit db1f5dc

Please sign in to comment.