Skip to content

Commit 59b9fc3

Browse files
committed
Update css
1 parent 8f6e536 commit 59b9fc3

File tree

3 files changed

+34
-23
lines changed

3 files changed

+34
-23
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ jobs:
7373
path: |
7474
.next/cache
7575
# Generate a new cache whenever packages or source files change.
76-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
76+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock', '**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
7777
# If source files changed but packages didn't, rebuild from a prior cache.
7878
restore-keys: |
79-
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
79+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock', '**/pnpm-lock.yaml') }}-
8080
- name: Install dependencies
8181
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
8282
- name: Build with Next.js

src/app/waffle/page.module.css

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
margin: 3rem 1rem 1rem;
99
}
1010

11-
.waffleInput {
11+
.waffleInputContainer {
1212
display: grid;
1313
justify-content: center;
14-
label {
15-
display: grid;
16-
justify-content: center;
17-
padding-bottom: 0.5rem;
18-
}
19-
input {
20-
margin-bottom: 1rem;
21-
}
14+
}
15+
.waffleInputLabel {
16+
display: grid;
17+
justify-content: center;
18+
padding-bottom: 0.5rem;
19+
}
20+
.waffleInput {
21+
margin-bottom: 1rem;
2222
}
2323

2424
.cell {
@@ -38,10 +38,10 @@
3838
.steps {
3939
max-width: 20em;
4040
display: grid;
41-
div {
42-
display: grid;
43-
justify-content: center;
44-
}
41+
}
42+
.step {
43+
display: grid;
44+
justify-content: center;
4545
}
4646
.steps .selected {
4747
background-color: #d17724;
@@ -67,8 +67,9 @@
6767
flex-direction: row;
6868
gap: 1rem;
6969
width: 19rem;
70-
button {
71-
flex: auto;
72-
height: 5rem;
73-
}
70+
7471
}
72+
.nextprevbutton {
73+
flex: auto;
74+
height: 5rem;
75+
}

src/app/waffle/page.tsx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,16 @@ export default function Waffle() {
157157
return (
158158
<div className={styles.page}>
159159
<main className={styles.main}>
160-
<div className={styles.waffleInput}>
161-
<label htmlFor="puzzleInput">
160+
<div className={styles.waffleInputContainer}>
161+
<label
162+
className={styles.waffleInputLabel}
163+
htmlFor="puzzleInput"
164+
>
162165
Puzzle
163166
</label>
164167
<input
165168
id="puzzleInput"
169+
className={styles.waffleInput}
166170
value={puzzle}
167171
onChange={e => {
168172
setPuzzle(e.target.value);
@@ -179,11 +183,15 @@ export default function Waffle() {
179183
}}
180184
>
181185
</input>
182-
<label htmlFor="solutionInput">
186+
<label
187+
className={styles.waffleInputLabel}
188+
htmlFor="solutionInput"
189+
>
183190
Solution
184191
</label>
185192
<input
186193
id="solutionInput"
194+
className={styles.waffleInput}
187195
value={solution}
188196
onChange={e => {
189197
setSolution(e.target.value)
@@ -203,6 +211,7 @@ export default function Waffle() {
203211
<div className={styles.buttonBox}>
204212
<button
205213
disabled={cycleIndex <= 0}
214+
className={styles.nextprevbutton}
206215
onClick={() => {
207216
prev();
208217
}}
@@ -211,6 +220,7 @@ export default function Waffle() {
211220
</button>
212221
<button
213222
disabled={cycleIndex >= cycleSteps.length - 1}
223+
className={styles.nextprevbutton}
214224
onClick={() => {
215225
next();
216226
}}
@@ -225,7 +235,7 @@ export default function Waffle() {
225235
(item: number[], index: number) =>
226236
<div
227237
key={`step-${index}`}
228-
className={index === cycleIndex ? styles.selected : ''}
238+
className={`${index === cycleIndex ? styles.selected : ''} ${styles.step}`}
229239
>
230240
{`${gridCycleMapping[item[0]]} - ${gridCycleMapping[item[1]]}`}
231241
</div>

0 commit comments

Comments
 (0)