Skip to content

Commit

Permalink
Some css and other styles adjustments (breakpoints, etc.)
Browse files Browse the repository at this point in the history
  • Loading branch information
valadas committed Jul 9, 2024
1 parent b1bd598 commit f81ae56
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
12 changes: 9 additions & 3 deletions src/components/nvq-loan-calculator/nvq-loan-calculator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
justify-content: center;
align-items: stretch;
color: var(--background-color-contrast);
@media (max-width: 48em){
@media (max-width: 62em){
flex-direction: column;
align-items: stretch;
width: 100%;
Expand All @@ -55,7 +55,7 @@
>div{
flex: 1 0 33%;
box-shadow: 0 16px 38px -12px var(--shadow-color);
@media (max-width: 48rem){
@media (max-width: 62rem){
flex-basis: 100%;
transform: scale(1);
margin-bottom: 1em;
Expand All @@ -79,7 +79,7 @@
color: var(--calculator-color-contrast);
display: flex;
flex-direction: column;
@media (min-width: 48em){
@media (min-width: 62em){
transform: scale(1.05);
}
label{
Expand Down Expand Up @@ -172,13 +172,19 @@
justify-content: center;
h4{
font-size: 1.5em;
@media (max-width: 62em){
margin: 0.25em 0;
}
}
.output{
font-size: 3em;
font-weight: 800;
}
.disclaimer{
margin-top: 50%;
@media (max-width: 62em){
margin-top: 0;
}
text-align: center;
}
}
Expand Down
7 changes: 4 additions & 3 deletions src/components/nvq-loan-calculator/nvq-loan-calculator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,15 @@ export class NvqLoanCalculator {
</div>
<div class="result">
<h4 class="text-center">{this.monthlyPaymentLabel}<sup></sup></h4>
<span class="output">{this.calculatePayment()}$</span>
<p class="disclaimer mb-4"><sup></sup>{this.monthlyPaymentDisclaimer}</p>
<span class="output">${this.calculatePayment()}</span>
<p class="disclaimer"><sup></sup>{this.monthlyPaymentDisclaimer}</p>
</div>
</div>
<slot name="footnote">
<hr />
<p>
<small>
<sup>*</sup> Your APR and monthly payment may differ based on loan purpose, amount, term, and your credit profile. Subject to credit approval. Conditions and limitations apply. Advertised rates and terms are subject to change without notice. Exact interest rate determined by credit profile.
* Your APR and monthly payment may differ based on loan purpose, amount, term, and your credit profile. Subject to credit approval. Conditions and limitations apply. Advertised rates and terms are subject to change without notice. Exact interest rate determined by credit profile.
</small>
</p>
</slot>
Expand Down
3 changes: 2 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ <h5>Example B:</h5>
</div>
</div>
<div slot="footnote">
<hr />
<p>
<small>
<sup>*</sup> Your APR and monthly payment may differ based on loan purpose, amount, term, and your credit profile. Subject to credit approval. Conditions and limitations apply. Advertised rates and terms are subject to change without notice. Exact interest rate determined by credit profile.
* Your APR and monthly payment may differ based on loan purpose, amount, term, and your credit profile. Subject to credit approval. Conditions and limitations apply. Advertised rates and terms are subject to change without notice. Exact interest rate determined by credit profile.
</small>
</p>
</div>
Expand Down

0 comments on commit f81ae56

Please sign in to comment.