From 89e9b520435da89b67928fb7471c920fa40c61b0 Mon Sep 17 00:00:00 2001 From: Chiara Oxender <46496608+coxender@users.noreply.github.com> Date: Mon, 1 Jan 2024 20:32:44 -0500 Subject: [PATCH] feat: :poop: Add some UI spacing and color changes add primary, secondary, tertiary colors. add colors to header and buttons. add spacing to main div, to description. fix issues with header and main.. --- index.html | 100 ++++++++++++++++++++++++++++++++------------------ src/main.ts | 2 +- src/style.css | 22 ++++++++++- 3 files changed, 86 insertions(+), 38 deletions(-) diff --git a/index.html b/index.html index ac14441..ca5f952 100644 --- a/index.html +++ b/index.html @@ -11,41 +11,69 @@ Task Aggregator -

Task Aggregator

-

Add Tasks

-
- - - -
-
- - -
-

Created Tags

-
-
- - - -

-
-

Past Tasks

-
- - -

Open File

- - -
+
+

Task Aggregator

+
+
+

Add Tasks

+
+ + + +
+
+ +
+ +
+

Created Tags

+
+
+ + + +

+
+

Past Tasks

+
+ + +

Open File

+ + +
+
diff --git a/src/main.ts b/src/main.ts index 06007ae..30c7c86 100644 --- a/src/main.ts +++ b/src/main.ts @@ -77,7 +77,7 @@ function updateTasks() { - ${task.date} + ${task.date} | ${displayDuration(task.minutes)} ${task.tagNames.map( (tagName) => html`${tagName}` diff --git a/src/style.css b/src/style.css index 840c0cc..0481a5c 100644 --- a/src/style.css +++ b/src/style.css @@ -1,9 +1,12 @@ :root { color-scheme: dark light; - --secondary-color: rebeccapurple; + --primary-color: #061a40; + --secondary-color: #0353a4; + --tertiary-color: #b9d6f2; } body { + margin:0; font-size: 24px; font-family: Arial, Helvetica, sans-serif; } @@ -15,6 +18,23 @@ button { padding: 0px; border-radius: 4px; } +.header { + background-color: var(--primary-color); +} +.header > h1 { + margin:inherit; + padding: 12px; +} + +.main { + padding: 0 24px +} + +.form-button { + padding: 4px 8px; + background-color: var(--secondary-color); +} + .tag { display: inline-block; margin: 8px;