Compare commits

..

No commits in common. "dev" and "main" have entirely different histories.
dev ... main

8 changed files with 23 additions and 36 deletions

View file

@ -9,7 +9,7 @@ export default function Frame({ frame } : { frame: FrameType }) {
<ol className="steps"> <ol className="steps">
{frame.steps.map((step, stepIndex) => ( {frame.steps.map((step, stepIndex) => (
<li key={stepIndex} className="step"> <li key={stepIndex} className="step">
<span>{stepIndex + 1}.</span>{step.text} {step.text}
</li> </li>
))} ))}
</ol> </ol>

View file

@ -19,14 +19,14 @@
gap: var(--size-md); gap: var(--size-md);
} }
.frame button { .frame .buttons button {
padding: var(--size-sm) var(--size-md); padding: var(--size-sm) var(--size-md);
} }
.frame .remove-button { .frame .buttons .remove {
margin-left: auto; margin-left: auto;
} }
.frame ol { .frame ol {
margin-left: var(--size-sm); margin-left: var(--size-md);
} }

View file

@ -36,21 +36,21 @@ export default function Frame({
<div className="buttons"> <div className="buttons">
<button <button
type="button" type="button"
className="up-button" className="up"
onClick={() => reOrder(frameIndex, frameIndex - 1)} onClick={() => reOrder(frameIndex, frameIndex - 1)}
> >
Up Up
</button> </button>
<button <button
type="button" type="button"
className="down-button" className="down"
onClick={() => reOrder(frameIndex, frameIndex + 1)} onClick={() => reOrder(frameIndex, frameIndex + 1)}
> >
Down Down
</button> </button>
<button <button
type="button" type="button"
className="remove-button" className="remove"
onClick={() => onRemove(frame.id)} onClick={() => onRemove(frame.id)}
> >
Remove Frame Remove Frame
@ -67,7 +67,7 @@ export default function Frame({
<img src={objectUrl} alt={frame.title} /> <img src={objectUrl} alt={frame.title} />
<button <button
type="button" type="button"
className="add-step-button" className="add-step"
onClick={() => addStep(frame.id)} onClick={() => addStep(frame.id)}
> >
Add Step Add Step

View file

@ -1,11 +1,8 @@
.step { .step {
display: flex; display: flex;
gap: var(--size-xs); gap: var(--size-md);
}
.step span {
font-weight: bold;
color:#555;
} }
.step label { .step label {
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;

View file

@ -9,7 +9,7 @@ export default function Step({
}: { }: {
step: StepType; step: StepType;
removeStep: (stepId: string) => void; removeStep: (stepId: string) => void;
updateStep: (stepId: string, text: string) => void ; updateStep: (stepId: string, text: string) => void;
index: number; index: number;
}) { }) {
return ( return (
@ -22,7 +22,7 @@ export default function Step({
onChange={(e) => updateStep(step.id, e.target.value)} onChange={(e) => updateStep(step.id, e.target.value)}
/> />
</label> </label>
<button type="button" className="remove-step-button" onClick={() => removeStep(step.id)}> <button type="button" onClick={() => removeStep(step.id)}>
Remove Step Remove Step
</button> </button>
</li> </li>

View file

@ -4,15 +4,14 @@ main:has(.guide) {
justify-content: center; justify-content: center;
} }
.frames { .guide__frames {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 2rem; gap: var(--size-xl);
} }
.guide { .guide {
max-width: 600px; max-width: 600px;
.delete-button { .delete-button {
position: absolute; position: absolute;
bottom: var(--size-md); bottom: var(--size-md);
@ -30,31 +29,28 @@ main:has(.guide) {
top: var(--size-md); top: var(--size-md);
right: var(--size-md); right: var(--size-md);
} }
}
}
@media print { @media print {
main:has(.guide) { main:has(.guide) {
padding: 0rem; padding: 0rem;
justify-content: flex-start; justify-content: flex-start;
} }
.guide__frames {
display: block;
}
.guide__frame {
.frame {
position: relative; position: relative;
break-inside: avoid; break-inside: avoid;
page-break-inside: avoid; page-break-inside: avoid;
background-color: var(--color-bg-panel); background-color: var(--color-bg-panel);
margin: var(--size-lg) 0;
} }
.frame img { .guide__frame img {
max-width: 100%; max-width: 100%;
max-height: 300px; max-height: 100px;
} }
} }
@page {
size: A4;
margin: 2rem;
}

View file

@ -19,7 +19,7 @@ export default function Guide() {
<hr /> <hr />
<div className="frames"> <div className="guide__frames">
{guide.frames.map((frame, index) => ( {guide.frames.map((frame, index) => (
<Frame key={index} frame={frame} /> <Frame key={index} frame={frame} />
))} ))}

View file

@ -78,8 +78,6 @@ ul {
list-style: none; list-style: none;
} }
a, a,
input, input,
button, button,
@ -121,12 +119,10 @@ textarea,
border-radius: var(--radius); border-radius: var(--radius);
padding: var(--size-sm); padding: var(--size-sm);
} }
textarea { textarea {
resize: none; resize: none;
height: 5rem; height: 5rem;
} }
hr { hr {
margin: var(--size-md) 0; margin: var(--size-md) 0;
border: none; border: none;
@ -134,11 +130,9 @@ hr {
background-color: var(--color-bg-sidebar); background-color: var(--color-bg-sidebar);
border-radius: var(--radius); border-radius: var(--radius);
} }
:focus-visible { :focus-visible {
border: 2px solid var(--color-accent); border: 2px solid var(--color-accent);
} }
@media print { @media print {
header, header,
footer, footer,