Revert "align factoring problems on the equal sign"
Build and Push Docker Image / build (push) Successful in 8s

This reverts commit eb225bae4b.
This commit is contained in:
2026-07-10 15:17:47 -04:00
parent eb225bae4b
commit d5b9201e29
+11 -13
View File
@@ -93,22 +93,21 @@
} }
.problem { .problem {
display: grid; display: flex;
grid-template-columns: 26px 1fr auto auto;
align-items: baseline; align-items: baseline;
column-gap: 6px; gap: 6px;
font-size: 1.2rem; font-size: 1.2rem;
font-weight: 700; font-weight: 700;
padding: 7px 4px; padding: 7px 4px;
border-bottom: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0;
} }
.prob-num { .prob-num {
min-width: 26px;
font-size: 0.78rem; font-size: 0.78rem;
font-weight: 800; font-weight: 800;
color: #999; color: #999;
flex-shrink: 0;
} }
.lhs { text-align: right; }
.rhs { text-align: left; }
.answer-line { .answer-line {
border-bottom: 2px solid #111; border-bottom: 2px solid #111;
min-width: 34px; min-width: 34px;
@@ -223,24 +222,23 @@ function renderProblems() {
// Part I - Factor: given a + b, write the factored form // Part I - Factor: given a + b, write the factored form
const partA = genUnique(PER_PART).map((t, i) => const partA = genUnique(PER_PART).map((t, i) =>
`<div class="problem"><span class="prob-num">${i+1}.</span>` + `<div class="problem"><span class="prob-num">${i+1}.</span>` +
`<span class="lhs">${t.a} + ${t.b}</span><span>=</span>` + `<span>${t.a} + ${t.b} = ` +
`<span class="rhs"><span class="answer-line"></span>(<span class="answer-line"></span> + <span class="answer-line"></span>)</span>` + `<span class="answer-line"></span>(<span class="answer-line"></span> + <span class="answer-line"></span>)` +
`</div>` `</span></div>`
).join(''); ).join('');
// Part II - Expand: given x(y + z), write the sum // Part II - Expand: given x(y + z), write the sum
const partB = genUnique(PER_PART).map((t, i) => const partB = genUnique(PER_PART).map((t, i) =>
`<div class="problem"><span class="prob-num">${i+1}.</span>` + `<div class="problem"><span class="prob-num">${i+1}.</span>` +
`<span class="lhs">${t.x}(${t.y} + ${t.z})</span><span>=</span>` + `<span>${t.x}(${t.y} + ${t.z}) = ` +
`<span class="rhs"><span class="answer-line"></span> + <span class="answer-line"></span></span>` + `<span class="answer-line"></span> + <span class="answer-line"></span>` +
`</div>` `</span></div>`
).join(''); ).join('');
// Part III - Find the common factor: fill the box // Part III - Find the common factor: fill the box
const partC = genUnique(PER_PART).map((t, i) => const partC = genUnique(PER_PART).map((t, i) =>
`<div class="problem"><span class="prob-num">${i+1}.</span>` + `<div class="problem"><span class="prob-num">${i+1}.</span>` +
`<span class="lhs">${t.a} + ${t.b}</span><span>=</span>` + `<span>${t.a} + ${t.b} = <span class="box-blank"></span>(${t.y} + ${t.z})</span></div>`
`<span class="rhs"><span class="box-blank"></span>(${t.y} + ${t.z})</span></div>`
).join(''); ).join('');
return ` return `