feat: add task creation board

This commit is contained in:
Urban Modig
2026-07-25 10:31:37 +02:00
parent 050f248857
commit 3f152eeccc
16 changed files with 962 additions and 29 deletions

View File

@ -8,7 +8,7 @@ body {
margin: 0;
}
main {
.panel {
max-width: 40rem;
margin: 6rem auto;
padding: 2rem;
@ -22,7 +22,8 @@ h1 {
}
button,
input {
input,
textarea {
font: inherit;
}
@ -36,7 +37,8 @@ button {
}
button:disabled,
input:disabled {
input:disabled,
textarea:disabled {
cursor: not-allowed;
opacity: 0.65;
}
@ -68,6 +70,168 @@ input {
border-radius: 0.4rem;
}
textarea {
box-sizing: border-box;
width: 100%;
padding: 0.6rem;
border: 1px solid #9ca3af;
border-radius: 0.4rem;
resize: vertical;
}
.error {
margin: 0;
color: #b91c1c;
}
.task-app {
min-height: 100vh;
padding: 2rem clamp(1rem, 4vw, 4rem);
background: #f3f4f6;
}
.app-header,
.board-toolbar,
.user-controls,
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.app-header {
margin: 0 auto 2rem;
max-width: 90rem;
}
.app-header h1,
.eyebrow {
margin: 0;
}
.eyebrow {
color: #64748b;
font-weight: 600;
}
.user-controls {
justify-content: flex-end;
}
.compact {
margin-top: 0;
}
.board-toolbar {
min-height: 2.75rem;
margin: 0 auto 1rem;
max-width: 90rem;
}
.link-button {
padding: 0.25rem 0.5rem;
color: #2563eb;
background: transparent;
text-decoration: underline;
}
.board {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1rem;
margin: 0 auto;
max-width: 90rem;
}
.board-column {
min-height: 20rem;
padding: 1rem;
border-radius: 0.75rem;
background: #e5e7eb;
}
.board-column h2 {
margin: 0 0 1rem;
font-size: 1.1rem;
}
.task-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.task-card {
padding: 1rem;
border-radius: 0.5rem;
background: white;
box-shadow: 0 0.125rem 0.4rem rgb(0 0 0 / 8%);
}
.task-card h3,
.task-card p {
margin: 0;
}
.task-card p {
margin-top: 0.5rem;
color: #475569;
white-space: pre-wrap;
}
.modal-backdrop {
position: fixed;
inset: 0;
display: grid;
place-items: center;
padding: 1rem;
background: rgb(15 23 42 / 55%);
}
.modal {
width: min(100%, 34rem);
padding: 1.5rem;
border-radius: 0.75rem;
background: white;
box-shadow: 0 1rem 3rem rgb(0 0 0 / 25%);
}
.modal-header {
margin-bottom: 1.25rem;
}
.modal-header h2 {
margin: 0;
}
.close-button {
padding: 0.2rem 0.55rem;
color: #475569;
background: transparent;
font-size: 1.75rem;
line-height: 1;
}
@media (max-width: 48rem) {
.panel {
margin: 2rem 1rem;
}
.app-header {
align-items: flex-start;
}
.user-controls {
flex-direction: column;
align-items: flex-end;
}
.board {
grid-template-columns: 1fr;
}
.board-column {
min-height: 8rem;
}
}