Skip to content

Commit

Permalink
remove flexbox
Browse files Browse the repository at this point in the history
  • Loading branch information
abir-taheer committed Apr 21, 2024
1 parent 53bb1df commit d4eda6e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 47 deletions.
38 changes: 19 additions & 19 deletions utils/mail/templates/renderPluralityVoteEmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ export const renderPluralityVoteEmail = ({ election, vote, choice }) => {
}
.flex-root {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
min-height: 600px;
}
Expand All @@ -28,10 +24,11 @@ export const renderPluralityVoteEmail = ({ election, vote, choice }) => {
border: 2px solid rgba(108, 92, 231, 0.1);
width: 600px;
max-width: 90%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: auto;
}
.text-center {
text-align: center;
}
.checkmark {
Expand All @@ -42,6 +39,7 @@ export const renderPluralityVoteEmail = ({ election, vote, choice }) => {
p {
font-weight: lighter;
margin: 28px 10px;
}
.vote-id {
Expand All @@ -56,22 +54,24 @@ export const renderPluralityVoteEmail = ({ election, vote, choice }) => {
<body>
<div class="flex-root">
<div class="card">
<img
src="https://vote.stuysu.org/email-checkmark.png"
class="checkmark"
alt="a checkmark icon"
/>
<div class="text-center">
<img
src="https://vote.stuysu.org/email-checkmark.png"
class="checkmark"
alt="a checkmark icon"
/>
</div>
<h1>You've voted!</h1>
<p>Your vote for ${election.name} was saved.</p>
<p>You voted for ${choice.name}<p>
<p>Your Vote ID is: <span class="vote-id">${vote._id.toUpperCase()}</span></p>
<p>You may audit the election after it has concluded and look up your vote using your Vote ID to ensure that it was recorded correctly.</p>
<p>
<p class="text-center">
<a href="https://vote.stuysu.org/election/${election.url}/audit">
https://vote.stuysu.org/election/${election.url}/audit
</a>
Expand Down
56 changes: 28 additions & 28 deletions utils/mail/templates/renderRunoffVoteEmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ export const renderRunoffVoteEmail = ({ election, vote, choices }) => {
}
.flex-root {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
min-height: 600px;
}
Expand All @@ -28,10 +24,11 @@ export const renderRunoffVoteEmail = ({ election, vote, choices }) => {
border: 2px solid rgba(108, 92, 231, 0.1);
width: 600px;
max-width: 90%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: auto;
}
.text-center {
text-align: center;
}
.checkmark {
Expand All @@ -42,6 +39,7 @@ export const renderRunoffVoteEmail = ({ election, vote, choices }) => {
p {
font-weight: lighter;
margin: 28px 10px;
}
.vote-id {
Expand All @@ -55,31 +53,33 @@ export const renderRunoffVoteEmail = ({ election, vote, choices }) => {
</head>
<body>
<div class="flex-root">
<div class="card">
<img
src="https://vote.stuysu.org/email-checkmark.png"
class="checkmark"
alt="a checkmark icon"
/>
<h1>You've voted!</h1>
<div class="card">
<div class="text-center">
<img
src="https://vote.stuysu.org/email-checkmark.png"
class="checkmark"
alt="a checkmark icon"
/>
</div>
<h1>You've voted!</h1>
<p>Your vote for ${election.name} was saved.</p>
<p>Your vote for ${election.name} was saved.</p>
<p>Below are your rankings:</p>
<p>Below are your rankings:</p>
<ol>
${choices.map((candidate) => `<li>${candidate.name}</li>`).join("")}
</ol>
<ol>
${choices.map((candidate) => `<li>${candidate.name}</li>`).join("")}
</ol>
<p>Your Vote ID is: <span class="vote-id">${vote._id.toUpperCase()}</span></p>
<p>Your Vote ID is: <span class="vote-id">${vote._id.toUpperCase()}</span></p>
<p>You may audit the election after it has concluded and look up your vote using your Vote ID to ensure that it was recorded correctly.</p>
<p>
<a href="https://vote.stuysu.org/election/${election.url}/audit">
https://vote.stuysu.org/election/${election.url}/audit
</a>
</p>
</div>
<p>You may audit the election after it has concluded and look up your vote using your Vote ID to ensure that it was recorded correctly.</p>
<p class="text-center">
<a href="https://vote.stuysu.org/election/${election.url}/audit">
https://vote.stuysu.org/election/${election.url}/audit
</a>
</p>
</div>
</div>
</body>
</html>`;
Expand Down

0 comments on commit d4eda6e

Please sign in to comment.