Browse Source

to do list

IbrahimNour 1 year ago
parent
commit
d6b91ec698

BIN
dist.zip


+ 1 - 1
src/app/modules/dashboard/calender/calender.component.html

@@ -1,4 +1,4 @@
-<div class="calender">
+<div class="calender height-inherit">
   <mat-card class="demo-inline-calendar-card">
   <mat-card class="demo-inline-calendar-card">
     <mat-calendar [selected]="selected"></mat-calendar>
     <mat-calendar [selected]="selected"></mat-calendar>
   </mat-card>
   </mat-card>

+ 56 - 1
src/app/modules/dashboard/dashboard-theme.scss

@@ -3,7 +3,7 @@
     .dashboard {
     .dashboard {
       height: 100%;
       height: 100%;
       padding: 20px 0;
       padding: 20px 0;
-      div {
+      .div {
         height: 100%;
         height: 100%;
       }
       }
 
 
@@ -11,6 +11,10 @@
         background: $card-color;
         background: $card-color;
         box-shadow: -2px 6px 9px #2f2c8333;
         box-shadow: -2px 6px 9px #2f2c8333;
         border-radius: 20px;
         border-radius: 20px;
+        height: 255px;
+        @media (max-width: 767px) {
+          height: inherit;
+        }
         &__title {
         &__title {
           background-color: $main-color;
           background-color: $main-color;
           padding: 10px 20px;
           padding: 10px 20px;
@@ -120,5 +124,56 @@
         color: $white-color !important;
         color: $white-color !important;
       }
       }
     }
     }
+
+    .todo-list {
+      width: 100%;
+      box-shadow: -2px 6px 9px #2f2c8333;
+      border-radius: 25px;
+      &__main {
+        background-color: $main-color;
+        padding: 10px 20px;
+        border-radius: 25px 25px 0 0;
+        color: $white-color;
+        h1 {
+          span {
+            background-color: #ffffff26;
+            padding: 2px 8px;
+            border-radius: 50%;
+          }
+        }
+      }
+
+      ul {
+        list-style: none;
+        li {
+          border-bottom: 1px solid $open-blue;
+          &:last-child {
+            border-bottom: none;
+          }
+          .content {
+            padding: 10px 0;
+            p {
+              color: $span-color;
+              font-size: 15px;
+            }
+            .span {
+              font-size: 14px;
+              color: $span-color;
+            }
+            .calender {
+              margin-top: 5px;
+              font-size: 14px;
+              img {
+                width: 10px;
+              }
+              span {
+                color: $main-color !important;
+                margin: 0 5px;
+              }
+            }
+          }
+        }
+      }
+    }
   }
   }
 }
 }

+ 3 - 2
src/app/modules/dashboard/dashboard.component.html

@@ -1,6 +1,6 @@
 <section class="dashboard" fxLayout="row" fxLayoutAlign="start start">
 <section class="dashboard" fxLayout="row" fxLayoutAlign="start start">
-  <div fxFlex.lt-md="100" fxFlex.gt-sm="70">
-    <div class="gap-30" fxLayout="row wrap" fxLayoutAlign="start start">
+  <div class="div" fxFlex.lt-md="100" fxFlex.gt-sm="70">
+    <div class="gap-20" fxLayout="row wrap" fxLayoutAlign="start start">
       <app-payslip fxFlex.lt-md="100" fxFlex.gt-sm="31.3333"></app-payslip>
       <app-payslip fxFlex.lt-md="100" fxFlex.gt-sm="31.3333"></app-payslip>
       <app-message fxFlex.lt-md="100" fxFlex.gt-sm="31.3333"></app-message>
       <app-message fxFlex.lt-md="100" fxFlex.gt-sm="31.3333"></app-message>
       <app-today-meetings
       <app-today-meetings
@@ -11,6 +11,7 @@
   </div>
   </div>
   <div fxFlex.lt-md="100" fxFlex.gt-sm="30" class="plr-30">
   <div fxFlex.lt-md="100" fxFlex.gt-sm="30" class="plr-30">
     <app-calender></app-calender>
     <app-calender></app-calender>
+    <app-to-do></app-to-do>
   </div>
   </div>
 </section>
 </section>
 <router-outlet></router-outlet>
 <router-outlet></router-outlet>

+ 59 - 1
src/app/modules/dashboard/to-do/to-do.component.html

@@ -1 +1,59 @@
-<p>to-do works!</p>
+<section class="todo-list mt-2" fxLayout="column" fxLayoutAlign="start stretch">
+  <main class="todo-list__main">
+    <h1>To Do <span class="todo-list__counter">5</span></h1>
+  </main>
+  <ul>
+    <li fxLayout="row" fxLayoutAlign="start center" class="gap-5">
+      <mat-radio-group>
+        <mat-radio-button value="auto"></mat-radio-button>
+      </mat-radio-group>
+      <div class="content">
+        <p>Home Page Design</p>
+        <span class="span">home page containing meetings, m..</span>
+        <span fxLayout="row" fxLayoutAlign="start center" class="calender">
+          <img src="assets/images/calendar-days.jpg" alt="" title="" />
+          <span>15/1/2024</span>
+        </span>
+      </div>
+    </li>
+    <li fxLayout="row" fxLayoutAlign="start center" class="gap-5">
+      <mat-radio-group>
+        <mat-radio-button value="auto"></mat-radio-button>
+      </mat-radio-group>
+      <div class="content">
+        <p>Home Page Design</p>
+        <span class="span">home page containing meetings, m..</span>
+        <span fxLayout="row" fxLayoutAlign="start center" class="calender">
+          <img src="assets/images/calendar-days.jpg" alt="" title="" />
+          <span>15/1/2024</span>
+        </span>
+      </div>
+    </li>
+    <li fxLayout="row" fxLayoutAlign="start center" class="gap-5">
+      <mat-radio-group>
+        <mat-radio-button value="auto"></mat-radio-button>
+      </mat-radio-group>
+      <div class="content">
+        <p>Home Page Design</p>
+        <span class="span">home page containing meetings, m..</span>
+        <span fxLayout="row" fxLayoutAlign="start center" class="calender">
+          <img src="assets/images/calendar-days.jpg" alt="" title="" />
+          <span>15/1/2024</span>
+        </span>
+      </div>
+    </li>
+    <li fxLayout="row" fxLayoutAlign="start center" class="gap-5">
+      <mat-radio-group>
+        <mat-radio-button value="auto"></mat-radio-button>
+      </mat-radio-group>
+      <div class="content">
+        <p>Home Page Design</p>
+        <span class="span">home page containing meetings, m..</span>
+        <span fxLayout="row" fxLayoutAlign="start center" class="calender">
+          <img src="assets/images/calendar-days.jpg" alt="" title="" />
+          <span>15/1/2024</span>
+        </span>
+      </div>
+    </li>
+  </ul>
+</section>

+ 2 - 0
src/app/shared/shared.module.ts

@@ -18,6 +18,7 @@ import { MatDatepickerModule } from '@angular/material/datepicker';
 import { MatCardModule } from '@angular/material/card';
 import { MatCardModule } from '@angular/material/card';
 import { NativeDateAdapter } from '@angular/material/core';
 import { NativeDateAdapter } from '@angular/material/core';
 import { MatNativeDateModule } from '@angular/material/core';
 import { MatNativeDateModule } from '@angular/material/core';
+import { MatRadioModule } from '@angular/material/radio';
 
 
 const MATERIAL_MODULES = [
 const MATERIAL_MODULES = [
   FlexLayoutModule,
   FlexLayoutModule,
@@ -29,6 +30,7 @@ const MATERIAL_MODULES = [
   MatCheckboxModule,
   MatCheckboxModule,
   MatSidenavModule,
   MatSidenavModule,
   MatMenuModule,
   MatMenuModule,
+  MatRadioModule,
   // ErrorStateMatcher,
   // ErrorStateMatcher,
   MatChipsModule,
   MatChipsModule,
   MatCardModule,
   MatCardModule,

BIN
src/assets/images/calendar-days.jpg


+ 4 - 0
src/styles.scss

@@ -170,3 +170,7 @@ input.mat-input-element {
 .plr-30 {
 .plr-30 {
   padding: 0 30px;
   padding: 0 30px;
 }
 }
+
+.height-inherit {
+  height: inherit !important;
+}