Skip to content

Commit

Permalink
Improving comparison styling
Browse files Browse the repository at this point in the history
  • Loading branch information
UniqueClone committed Jun 6, 2024
1 parent 9a708ff commit 6655f22
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,27 +59,33 @@ const OptionSection: React.FC<{
onChange={(e) => setHousePrice(parseInt(e.target.value))}
/>
</label>
<h3>House Price: {formatter.format(housePrice)}</h3>
<h3>
House Price: <p>{formatter.format(housePrice)}</p>
</h3>
<h3>
Monthly Payment:{" "}
{formatter.format(
getMonthlyPayment(
housePrice * 0.9,
option.interestRate,
option.mortgageTerm
)
)}
<p>
{formatter.format(
getMonthlyPayment(
housePrice * 0.9,
option.interestRate,
option.mortgageTerm
)
)}
</p>
</h3>
<h3>
Savings Required:{" "}
{formatter.format(
housePrice * option.depositPercentage +
option.fees.valuationFee +
option.fees.surveyFee +
option.fees.legalFee +
housePrice * 0.01 + // stamp duty
option.fees.searchFee
)}
<p>
{formatter.format(
housePrice * option.depositPercentage +
option.fees.valuationFee +
option.fees.surveyFee +
option.fees.legalFee +
housePrice * 0.01 + // stamp duty
option.fees.searchFee
)}
</p>
</h3>
</div>
);
Expand Down
4 changes: 3 additions & 1 deletion src/components/MortgageCalculator/MortgageCalculator.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,7 @@ h2 {

h3 {
font-size: large;
color: lightgreen
p {
color: lightgreen
}
}

0 comments on commit 6655f22

Please sign in to comment.