Skip to content

Commit

Permalink
rounder border
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericHeem committed Nov 4, 2024
1 parent 9246483 commit 94424c7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ export default function (context: Context) {
grid-template-columns: 1fr;
}
> section {
padding: 1rem;
}
.calculator-form {
padding: 1rem;
background-color: var(--white);
header {
display: flex;
justify-content: space-between;
button {
text-decoration: underline;
background: none;
color: var(--grey-500);
color: var(--grey-700);
}
}
form {
Expand All @@ -66,11 +66,17 @@ export default function (context: Context) {
}
}
}
.result-container {
background-color: var(--white);
}
.result {
padding: 1rem;
color: var(--grey-100);
background-color: var(--grey-900);
padding: 1rem;
border-bottom-left-radius: 4rem;
display: flex;
height: 100%;
flex-direction: column;
gap: 1rem;
&.no-result {
Expand All @@ -83,7 +89,7 @@ export default function (context: Context) {
p,
span {
color: var(--grey-500);
color: var(--grey-300);
}
.payments {
background-color: var(--grey-1000);
Expand Down Expand Up @@ -252,11 +258,11 @@ export default function (context: Context) {
button({ type: "submit" }, "Calculate Repayment")
)
),
() =>
section({ class: "result-container" }, () =>
monthlyRepaymentState.val == ""
? section(
{ class: "result no-result" },
img({ src: "./assets/images/illustration-empty.svg" }),
img({ src: "./assets/images/illustration-empty.svg", alt: "" }),
h1("Results shown here"),
p(
"Complete the form and click “calculate repayments” to see what your monthly repayments would be."
Expand All @@ -283,6 +289,7 @@ export default function (context: Context) {
)
)
)
)
);
};
}
2 changes: 1 addition & 1 deletion examples/mortgage-repayment-calculator/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ button[type="submit"] {
}

label {
color: var(--grey-500);
color: var(--grey-700);
font-size: 0.8rem;
font-weight: 600;
margin-bottom: 1rem;
Expand Down

0 comments on commit 94424c7

Please sign in to comment.