From 4e6f0af0b165a5c4ee071f7257d3206f298d6c79 Mon Sep 17 00:00:00 2001 From: lucywalt Date: Wed, 2 Apr 2025 12:44:09 -0700 Subject: [PATCH 1/2] Fixed css for view task page --- frontend/react-app/src/css/ViewTask.css | 72 ++++++++++++++++++++++- frontend/react-app/src/index.css | 13 ++++ frontend/react-app/src/pages/ViewTask.jsx | 19 +++--- 3 files changed, 94 insertions(+), 10 deletions(-) diff --git a/frontend/react-app/src/css/ViewTask.css b/frontend/react-app/src/css/ViewTask.css index 4bb4a9f9..0cf204d5 100644 --- a/frontend/react-app/src/css/ViewTask.css +++ b/frontend/react-app/src/css/ViewTask.css @@ -24,8 +24,9 @@ div.header{ height: auto; } strong.nameOfTask{ - color: #fefcfd; + color: black; font-size: 30px; + font-weight: 900; } div.priority{ background-color: #3b3355; @@ -93,3 +94,72 @@ input.submit-comment{ cursor: pointer; } +.rowFlexbox { + /* background-color: red; */ +} + +.viewFlexbox { + +} + +.viewpageBody { + width: 40%; + margin: auto; + margin-top: 5%; + margin-bottom: 100px; + background-color: #e6e4f7; + padding: 5%; + border-radius: 15px; +} + +#viewDelete { + background-color: red; + margin: 1% 0% 3% 0%; + color: white; + border: none; +} + +#viewDelete:hover { + background-color: #8c002d; +} + +#viewEdit { + background-color: darkgreen; + margin: 3% 0% 1% 0%; + color: white; + border: none; +} + +#viewEdit:hover { + background-color: #004f07; +} + +#viewPriority { + color: white; + width: 100px; + height: 35px; + text-align: center; + margin: 2% 0%; + border: none; +} + +.viewFlexBox { + display: flex; + flex-direction: column; + background-color: red; + align-content: center; + justify-content: center; + width: 50%; + padding-top: 10%; + padding-bottom: 10%; +} + +#newStatus { + background-color: white; + width: 50%; + border: none; +} + +.description { + margin-left: 1%; +} \ No newline at end of file diff --git a/frontend/react-app/src/index.css b/frontend/react-app/src/index.css index 32e513e9..3882b348 100644 --- a/frontend/react-app/src/index.css +++ b/frontend/react-app/src/index.css @@ -101,3 +101,16 @@ li.logo a{ background-color: #3f5d8b; cursor: pointer; } + +.flexbox { + display: flex; + flex-direction: column; + /* background-color: red; */ + background-color: white; + /* align-content: center; + justify-content: center; + width: 50%; + padding-top: 10%; + padding-bottom: 10%; */ + width: 50%; +} \ No newline at end of file diff --git a/frontend/react-app/src/pages/ViewTask.jsx b/frontend/react-app/src/pages/ViewTask.jsx index 5fbc66e2..414ba374 100644 --- a/frontend/react-app/src/pages/ViewTask.jsx +++ b/frontend/react-app/src/pages/ViewTask.jsx @@ -42,15 +42,15 @@ function ViewTask(){ return(
-
-
+
+
{taskToSee.title + "\n"} -
-
- Assigned to:{teamMembers} +
+
+ Assigned to: {teamMembers}
{/* Place holder for when we get our database we will get the prority DB*/} -
+
Priority: {taskToSee.priority}
@@ -75,18 +75,19 @@ function ViewTask(){
*/} {!taskToSee.isLocked &&( -
+
+
- +
- +
)}
From 9c2713a8612a666ce40ad826f3a14c5aa4151768 Mon Sep 17 00:00:00 2001 From: lucywalt Date: Wed, 2 Apr 2025 12:53:16 -0700 Subject: [PATCH 2/2] Added pageBody div --- frontend/react-app/src/pages/ViewTask.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/react-app/src/pages/ViewTask.jsx b/frontend/react-app/src/pages/ViewTask.jsx index 414ba374..f07564c3 100644 --- a/frontend/react-app/src/pages/ViewTask.jsx +++ b/frontend/react-app/src/pages/ViewTask.jsx @@ -42,6 +42,7 @@ function ViewTask(){ return(
+
{taskToSee.title + "\n"} @@ -92,6 +93,7 @@ function ViewTask(){
)}
+
) }