diff --git a/src/app/components/add-task/add-task.component.html b/src/app/components/add-task/add-task.component.html
index 0d5d506..8136a97 100644
--- a/src/app/components/add-task/add-task.component.html
+++ b/src/app/components/add-task/add-task.component.html
@@ -51,6 +51,26 @@
-
+
+
+
Due date*
+
+
+ @if (!date.valid && date.touched) {
+
You must enter a date.
+ }
+
+
+
diff --git a/src/app/components/add-task/add-task.component.scss b/src/app/components/add-task/add-task.component.scss
index 99b9b0e..24dd8fd 100644
--- a/src/app/components/add-task/add-task.component.scss
+++ b/src/app/components/add-task/add-task.component.scss
@@ -6,24 +6,19 @@ section {
.content {
display: flex;
+ margin-top: 48px;
+ width: 100%;
}
-input {
- color: var(--light-gray);
- font-size: 20px;
- font-weight: 400;
- border-radius: 10px;
- border: 1px solid var(--light-gray);
- padding: 12px 21px;
-}
-
+input,
textarea {
color: var(--light-gray);
font-size: 20px;
font-weight: 400;
border-radius: 10px;
border: 1px solid var(--light-gray);
- padding: 18px 16px;
+ padding: 12px 21px;
+ width: 80%;
resize: none;
}
@@ -54,18 +49,30 @@ p {
font-size: 61px;
font-weight: 700;
}
- margin-bottom: 48px;
}
/*------------- LEFT SIDE -------------*/
+.left-side {
+ width: 45%;
+}
+
/*------------- MIDDLE -------------*/
-.line {
- width: 1px;
- height: 520px;
- background-color: var(--light-gray);
- margin: 0 48px;
+.middle-spacer {
+ display: flex;
+ justify-content: center;
+ width: 10%;
+ height: auto;
+ .line {
+ width: 1px;
+ background-color: var(--light-gray);
+ margin: 0 6px;
+ }
}
/*------------- RIGHT SIDE -------------*/
+
+.right-side {
+ width: 45%;
+}
diff --git a/src/app/components/add-task/add-task.component.ts b/src/app/components/add-task/add-task.component.ts
index 126ace6..db0a4e9 100644
--- a/src/app/components/add-task/add-task.component.ts
+++ b/src/app/components/add-task/add-task.component.ts
@@ -12,6 +12,7 @@ export class AddTaskComponent {
taskData = {
title: '',
description: '',
+ date: '',
};
onSubmit(ngForm: NgForm) {