Skip to content

Commit 88e007c

Browse files
committed
reorganised and tidied up presentation
1 parent 08e6df4 commit 88e007c

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

client/src/components/task_form.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,25 +64,25 @@ export function TaskForm({ userId, onTaskCreated }: TaskFormProps) {
6464
return (
6565
<form
6666
onSubmit={handleSubmit}
67-
className="space-y-4 rounded-xl border bg-zinc-700 p-4"
67+
className="mx-auto h-[79vh] w-full max-w-md space-y-4 overflow-y-auto rounded-xl bg-zinc-700 p-4"
6868
>
6969
<input
7070
type="text"
7171
value={taskName}
7272
onChange={(e) => setTaskName(e.target.value)}
7373
placeholder="Task Name"
74-
className="w-full rounded border bg-zinc-800 p-2 text-zinc-200"
74+
className="w-full rounded border-2 bg-zinc-700 p-2 text-zinc-200"
7575
required
7676
/>
7777
<textarea
7878
value={description}
7979
onChange={(e) => setDescription(e.target.value)}
8080
placeholder="Description"
81-
className="w-full rounded border bg-zinc-800 p-2 text-zinc-200"
81+
className="h-32 w-full resize-none rounded border-2 bg-zinc-700 p-2 text-zinc-200"
8282
/>
8383
<button
8484
type="submit"
85-
className="rounded bg-blue-600 px-4 py-2 text-white hover:bg-blue-700"
85+
className="rounded border-2 border-zinc-200 bg-blue-600 px-4 py-2 text-zinc-200 hover:bg-blue-700"
8686
>
8787
Add Task
8888
</button>

client/src/components/task_item.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ export function TaskItem({ item, onToggle }: ItemProps) {
5757
</div>
5858
</div>
5959

60-
<div className="flex space-x-1 text-sm text-zinc-300">
60+
<div className="flex flex-wrap gap-1 text-sm text-zinc-300">
6161
{item.topics.length > 0
6262
? item.topics.map((topic) => (
6363
<span
6464
key={topic.id}
65-
className="flex items-center gap-1 rounded-full border-2 border-zinc-800 px-2 py-0.5 text-zinc-100"
65+
className="flex items-center gap-1 rounded-lg border-2 border-zinc-500 px-2 py-0.5 text-zinc-100"
6666
>
6767
<span
6868
className="h-2 w-2 rounded-full"

client/src/components/task_list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function TaskList({ items, onToggleTask }: ListProps) {
3737
);
3838
}
3939
return (
40-
<div className="mx-auto h-[85vh] w-full max-w-md overflow-y-auto p-2">
40+
<div className="mx-auto h-[79vh] w-full max-w-md overflow-y-auto p-2">
4141
<ul className="space-y-2">
4242
{items.map((item) => (
4343
<li key={item.id}>

client/src/pages/[id]/tasks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default function TasksPage() {
7070
}
7171

7272
return (
73-
<div>
73+
<div className="container mx-auto flex flex-row items-center justify-center p-4">
7474
<div className="m-4 h-fit w-fit rounded-xl bg-zinc-700 p-4 text-center">
7575
<h1 className="mb-4 text-3xl font-bold text-zinc-300">Task List</h1>
7676
<TaskList items={items} onToggleTask={handleToggleTask} />

0 commit comments

Comments
 (0)