From 725d73201eb706e5f50c5a9f6a20e19a2b847f62 Mon Sep 17 00:00:00 2001 From: Stephanie Gredell Date: Sat, 16 Nov 2024 04:59:01 -0500 Subject: [PATCH] clean up goal styling, move css to own file, make naming consistent --- assets/css/goals.css | 95 +++++++++++++++++++++ assets/css/style.css | 27 ++++++ templates/goals.html | 197 ++++++------------------------------------- 3 files changed, 148 insertions(+), 171 deletions(-) create mode 100644 assets/css/goals.css diff --git a/assets/css/goals.css b/assets/css/goals.css new file mode 100644 index 0000000..ec4a3fd --- /dev/null +++ b/assets/css/goals.css @@ -0,0 +1,95 @@ +.goals-container { + max-width: 800px; + margin: 30px auto; + padding: 20px; +} + +.goals-page-header { + text-align: center; + margin-bottom: 40px; +} + +.goals-page-header-title { + font-size: 2em; + color: #457B9D; /* Muted blue for main headings */ +} + +.goals-page-header-content { + font-size: 1.1em; + color: #495057; /* Slightly darker gray for descriptions */ +} + +.add-goal { + margin-bottom: 40px; + padding: 20px; + background-color: #FFFFFF; /* White for section backgrounds */ + border-radius: 8px; + box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); +} + +.add-goals-title { + margin-bottom: 20px; + font-size: 1.5em; + color: #457B9D; +} + +.add-goal-title { + color: #A3C1AD; /* Muted green for emphasis */ +} + +.form-group { + margin-bottom: 20px; +} + +.goals-form-label { + display: block; + font-weight: bold; + margin-bottom: 8px; + color: #495057; /* Dark gray for labels */ +} + +input, textarea { + width: 100%; + padding: 10px; + font-size: 1em; + border: 1px solid #DDD; + border-radius: 5px; + box-sizing: border-box; +} + +.goals-textfield { + resize: none; + height: 100px; +} +.goal-items { + display: flex; + flex-direction: column; + gap: 20px; +} + +.goal-item { + display: flex; + justify-content: space-between; + align-items: center; + padding: 15px; + border: 1px solid #DDD; + border-radius: 5px; + background-color: #F9F9F9; /* Subtle light gray for contrast */ +} + +.item-info-title { + margin: 0 0 5px 0; + font-size: 1.2em; + color: #333; +} + +.item-info-content { + margin: 0; + font-size: 1em; + color: #666; +} + +.goal-progress { + font-weight: bold; + color: #457B9D; /* Muted blue for progress text */ +} \ No newline at end of file diff --git a/assets/css/style.css b/assets/css/style.css index 54c293b..055d4f8 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -82,6 +82,33 @@ body { transition: all 0.2s ease-in-out; } +.primary-btn { + background-color: #457B9D; /* Muted blue */ + color: #FFFFFF; +} + +.primary-btn:hover { + background-color: #356081; +} + +.danger-btn { + background-color: #E57373; /* Light muted red */ + color: #FFFFFF; +} + +.danger-btn:hover { + background-color: #D32F2F; +} + +.btn { + display: inline-block; + padding: 10px 20px; + border: none; + border-radius: 5px; + font-size: 1em; + cursor: pointer; +} + .how-it-works-button:hover { text-decoration: underline; } diff --git a/templates/goals.html b/templates/goals.html index d1ed32f..2bace47 100644 --- a/templates/goals.html +++ b/templates/goals.html @@ -4,209 +4,64 @@ + Goals - + {{template "pageheader" . }} -
-
-

Manage Your Goals

-

Add new goals or track progress on your current items.

+ +
+
+

Manage Your Goals

+

Add new goals or track progress on your current items.

-
-

Add a New Goal

+
+

Add a New Goal

- +
- +
- - + +
- +
- +
-
-

Your Current Wishlist

-
-
+
+

Your Current Goals

+
+
-

Full-Stack Development Certification

-

Progress: 75% funded

+

Full-Stack Development Certification

+

Progress: 75% funded

-
+
-

Data Science Course

-

Progress: 40% funded

+

Data Science Course

+

Progress: 40% funded

- -
+ {{template "footer"}} + \ No newline at end of file