From fae0588cc8ca403838820c1f4593d74d0523fb7d Mon Sep 17 00:00:00 2001 From: Siddhant <201951151@iiitvadodara.ac.in> Date: Sun, 12 Dec 2021 03:22:56 +0530 Subject: [PATCH 1/5] fix:design fixes --- client/src/App.css | 2 +- client/src/components/dashboard/StoreDashboard.css | 3 +-- client/src/views/Inventory/Inventory.js | 1 - client/src/views/Invoice/Invoice.css | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/client/src/App.css b/client/src/App.css index 9f4c6bb4..22fcc0ff 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -1,7 +1,7 @@ .App { text-align: center; background-color: #DDF0EE; - + height: auto; } .App-logo { diff --git a/client/src/components/dashboard/StoreDashboard.css b/client/src/components/dashboard/StoreDashboard.css index b6619dea..591d4d5c 100644 --- a/client/src/components/dashboard/StoreDashboard.css +++ b/client/src/components/dashboard/StoreDashboard.css @@ -1,9 +1,8 @@ .Container{ - height: 100%; } .Content-right{ - height: 100%; + height: auto; } .Content-left{ height: 100%; diff --git a/client/src/views/Inventory/Inventory.js b/client/src/views/Inventory/Inventory.js index 2e72bb54..bc69ee9a 100644 --- a/client/src/views/Inventory/Inventory.js +++ b/client/src/views/Inventory/Inventory.js @@ -8,7 +8,6 @@ import InventoryTable from '../../components/dashboard/StoreDashboard/InventoryT function Inventory() { return (
-
diff --git a/client/src/views/Invoice/Invoice.css b/client/src/views/Invoice/Invoice.css index 41ad1e97..59186ec8 100644 --- a/client/src/views/Invoice/Invoice.css +++ b/client/src/views/Invoice/Invoice.css @@ -1,5 +1,4 @@ .Container{ - height: 800px; width: 100%; } .invoice-card{ From 07666f293376090ae6afa26e7ca6beddc8620be7 Mon Sep 17 00:00:00 2001 From: anuj-2001 <56990215+anuj-2001@users.noreply.github.com> Date: Sun, 12 Dec 2021 03:26:41 +0530 Subject: [PATCH 2/5] billing css --- client/src/views/Billing/Billing.css | 10 +-- client/src/views/Billing/Billing.js | 121 +++++++++++++++------------ 2 files changed, 71 insertions(+), 60 deletions(-) diff --git a/client/src/views/Billing/Billing.css b/client/src/views/Billing/Billing.css index 40488bda..36d5e73c 100644 --- a/client/src/views/Billing/Billing.css +++ b/client/src/views/Billing/Billing.css @@ -2,7 +2,7 @@ height: 160px; background: #E8E7FE; display: flex; - border: 1px solid #4F46E5; + border: 1px solid #40ccc4; } .billingtoph1{ @@ -29,7 +29,7 @@ } .formhead{ - background: #4F46E5; + background: #40ccc4; padding: 19px; font-weight: normal; font-size: 18px; @@ -75,7 +75,7 @@ .formsubmit{ width: 223px; height: 37px; - background: #4F46E5; + background: #40ccc4; color: white; margin-left: auto; margin-right: auto; @@ -117,7 +117,7 @@ .removebutton{ width: fit-content; - background: #4F46E5; + background: #40ccc4; color: white; margin-right: 14px; padding: 7px; @@ -126,7 +126,7 @@ .addbutton{ width: fit-content; - background: #4F46E5; + background: #40ccc4; color: white; margin-right: 14px; padding: 7px; diff --git a/client/src/views/Billing/Billing.js b/client/src/views/Billing/Billing.js index 59788d03..9d9a192b 100644 --- a/client/src/views/Billing/Billing.js +++ b/client/src/views/Billing/Billing.js @@ -2,6 +2,10 @@ import React, { useState } from 'react' import './Billing.css' import { v4 as uuidv4 } from 'uuid'; import axios from 'axios'; +import InvoiceForm from '../../components/dashboard/StoreDashboard/InvoiceForm'; +import TitleInvoice from '../../components/dashboard/StoreDashboard/TitleInvoice'; +import SideNav from '../../components/dashboard/StoreDashboard/SideNav'; + const Billing = () => { const [formkey, setFormkey] = useState(2); const [amount, setAmount] = useState(); @@ -67,63 +71,70 @@ const Billing = () => { } return (
-
-

Billing

-
-
-
-

Bill 12abc435

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

Bill 12abc435

+ + + +
+ +
+ +
+ + +
+ {inputFields.map((inputField , index)=> ( +
+ + handleChangeInput(inputField.id, event)} + className = "medicinequantity" + /> + + {index === inputFields.length - 1? + + :null} +
+ ))} +

Total Amount - 200

+ +
- {inputFields.map((inputField , index)=> ( -
- - handleChangeInput(inputField.id, event)} - className = "medicinequantity" - /> - - {index === inputFields.length - 1? - - :null} -
- ))} -

Total Amount - 200

- - +
) From 211a6c8d1d65661ab22d9c01f5ec1f5c9f1ed276 Mon Sep 17 00:00:00 2001 From: Siddhant <201951151@iiitvadodara.ac.in> Date: Sun, 12 Dec 2021 03:45:13 +0530 Subject: [PATCH 3/5] design fix --- client/src/components/dashboard/StoreDashboard/styler.css | 1 - client/src/index.css | 1 + client/src/views/Invoice/Invoice.css | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/components/dashboard/StoreDashboard/styler.css b/client/src/components/dashboard/StoreDashboard/styler.css index 95a33d74..c5624a89 100644 --- a/client/src/components/dashboard/StoreDashboard/styler.css +++ b/client/src/components/dashboard/StoreDashboard/styler.css @@ -111,7 +111,6 @@ { height: 100%; width: 15%; - background-color: #4CCCC0; } .medicine-card{ diff --git a/client/src/index.css b/client/src/index.css index bc047dab..7c665b12 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -10,6 +10,7 @@ body { sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + background: #DDF0EE; } code { diff --git a/client/src/views/Invoice/Invoice.css b/client/src/views/Invoice/Invoice.css index 64b2c8df..41d93aee 100644 --- a/client/src/views/Invoice/Invoice.css +++ b/client/src/views/Invoice/Invoice.css @@ -1,5 +1,7 @@ .Container{ width: 100%; + padding-bottom: 30px; + background: #DDF0EE; } .invoice-card{ margin-top: 20px; From b5a697c7be5edc67e95c04af11533dc25add5ed6 Mon Sep 17 00:00:00 2001 From: anuj-2001 <56990215+anuj-2001@users.noreply.github.com> Date: Sun, 12 Dec 2021 04:16:28 +0530 Subject: [PATCH 4/5] Donor dash --- .../src/components/dashboard/DonorDashboard.js | 17 +++++++++++++++-- .../src/components/dashboard/StoreDashboard.css | 1 - 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/client/src/components/dashboard/DonorDashboard.js b/client/src/components/dashboard/DonorDashboard.js index 65b0bf1e..78144d1c 100644 --- a/client/src/components/dashboard/DonorDashboard.js +++ b/client/src/components/dashboard/DonorDashboard.js @@ -1,9 +1,22 @@ import React from 'react' +import SideNav from './StoreDashboard/SideNav' +import IntroCard from './StoreDashboard/IntroCard' function DonorDashboard() { + const user = {name:'Anuj',email:'anujpillai1201@gmail.com'} return ( -
- DonorDashboard +
+
+
+
+ +
+
+
+ +

Hello from donor dashboard

+
+
) } diff --git a/client/src/components/dashboard/StoreDashboard.css b/client/src/components/dashboard/StoreDashboard.css index 591d4d5c..cbd3ef0f 100644 --- a/client/src/components/dashboard/StoreDashboard.css +++ b/client/src/components/dashboard/StoreDashboard.css @@ -1,4 +1,3 @@ - .Container{ } .Content-right{ From 0b6e21b92b7d55139a1b59522c5db27f80bb6f1b Mon Sep 17 00:00:00 2001 From: anuj-2001 <56990215+anuj-2001@users.noreply.github.com> Date: Sun, 12 Dec 2021 13:00:17 +0530 Subject: [PATCH 5/5] new --- .../components/dashboard/DonorDashboard.css | 11 ++++++++++ .../components/dashboard/DonorDashboard.js | 7 ++++++- .../dashboard/DonorDashboard/ProgressBar.js | 15 ++++++++++++++ .../dashboard/DonorDashboard/TotalDons.js | 14 +++++++++++++ .../dashboard/DonorDashboard/styler.css | 20 +++++++++++++++++++ 5 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 client/src/components/dashboard/DonorDashboard.css create mode 100644 client/src/components/dashboard/DonorDashboard/ProgressBar.js create mode 100644 client/src/components/dashboard/DonorDashboard/TotalDons.js create mode 100644 client/src/components/dashboard/DonorDashboard/styler.css diff --git a/client/src/components/dashboard/DonorDashboard.css b/client/src/components/dashboard/DonorDashboard.css new file mode 100644 index 00000000..e45177e0 --- /dev/null +++ b/client/src/components/dashboard/DonorDashboard.css @@ -0,0 +1,11 @@ +.circular .inner{ + position: absolute; + z-index: 6; + top: 50%; + left: 50%; + height: 80px; + width: 80px; + margin: -40px 0 0 -40px; + background: red; + border-radius: 100%; + } \ No newline at end of file diff --git a/client/src/components/dashboard/DonorDashboard.js b/client/src/components/dashboard/DonorDashboard.js index 78144d1c..67185dea 100644 --- a/client/src/components/dashboard/DonorDashboard.js +++ b/client/src/components/dashboard/DonorDashboard.js @@ -1,6 +1,10 @@ import React from 'react' import SideNav from './StoreDashboard/SideNav' import IntroCard from './StoreDashboard/IntroCard' +import Card from "react-bootstrap/Card"; +import DonorDashStyling from './DonorDashboard.css' +import Progress from './DonorDashboard/ProgressBar'; +import TotalDons from './DonorDashboard/TotalDons'; function DonorDashboard() { const user = {name:'Anuj',email:'anujpillai1201@gmail.com'} @@ -14,7 +18,8 @@ function DonorDashboard() {
-

Hello from donor dashboard

+ +
diff --git a/client/src/components/dashboard/DonorDashboard/ProgressBar.js b/client/src/components/dashboard/DonorDashboard/ProgressBar.js new file mode 100644 index 00000000..7d56eaf9 --- /dev/null +++ b/client/src/components/dashboard/DonorDashboard/ProgressBar.js @@ -0,0 +1,15 @@ +import React from 'react' +import styling from './styler.css' +import Card from "react-bootstrap/Card"; + +function ProgressBar() { + return ( +
+ +

Time since last donation : 69

+
+
+ ) +} + +export default ProgressBar diff --git a/client/src/components/dashboard/DonorDashboard/TotalDons.js b/client/src/components/dashboard/DonorDashboard/TotalDons.js new file mode 100644 index 00000000..b65b3614 --- /dev/null +++ b/client/src/components/dashboard/DonorDashboard/TotalDons.js @@ -0,0 +1,14 @@ +import React from 'react' +import Card from "react-bootstrap/Card"; + +function TotalDons() { + return ( +
+ +

Total Donations : 3

+
+
+ ) +} + +export default TotalDons \ No newline at end of file diff --git a/client/src/components/dashboard/DonorDashboard/styler.css b/client/src/components/dashboard/DonorDashboard/styler.css new file mode 100644 index 00000000..853b7feb --- /dev/null +++ b/client/src/components/dashboard/DonorDashboard/styler.css @@ -0,0 +1,20 @@ +.total-card{ + width: 100%; + margin: auto; + margin-top: 100px; + height: 120px; +} +.progress-card{ + width: 100%; + margin: auto; + margin-top: 30px; + height: 120px; +} +.total-title{ + font-size: 60px; + font-family: Arial, Helvetica, sans-serif; + font-weight: 600; + text-align: left; + margin-left: 10%; + margin-top: 2%; +} \ No newline at end of file