diff --git a/public/Add icon.svg b/public/Add icon.svg new file mode 100644 index 0000000..156c4b5 --- /dev/null +++ b/public/Add icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/Clear all icon.svg b/public/Clear all icon.svg new file mode 100644 index 0000000..abcfee2 --- /dev/null +++ b/public/Clear all icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/Clear icon.svg b/public/Clear icon.svg new file mode 100644 index 0000000..cae5944 --- /dev/null +++ b/public/Clear icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/InputBox.jsx b/src/components/InputBox.jsx index a2b4915..27825bf 100644 --- a/src/components/InputBox.jsx +++ b/src/components/InputBox.jsx @@ -99,7 +99,10 @@ export const InputBox = ({ value="INDI" onChange={() => setCurrentInputMethod("INDI")} /> - +
@@ -111,7 +114,9 @@ export const InputBox = ({ onChange={() => setCurrentInputMethod("BULK")} defaultChecked /> - +
@@ -138,7 +143,13 @@ export const InputBox = ({ ) } > - Add + Add{" "} + Add icon )) : ["AR", "BT"].map((type) => (
- {" "} - +
+ {" "} + +
{(type === "AR" ? arrivalArray : burstTimeArray).length < 10 ? ( ) : (
diff --git a/src/styles/InputBox.css b/src/styles/InputBox.css index 5b9cd2c..94d87d7 100644 --- a/src/styles/InputBox.css +++ b/src/styles/InputBox.css @@ -26,7 +26,7 @@ } .add-method-container input { - margin-right: 6px; + margin-right: 6px; } .individual-input { @@ -34,8 +34,48 @@ flex-direction: column; } +.individual-input input[type="number"] { + width: 20%; +} + +.individual-input-inner { + display: flex; + gap: 8px; + align-items: center; + justify-content: center; + margin-top: 10px; +} + .text-box { padding: 4px; margin-right: 5px; } +.icon-class { + width: 24px; + height: 24px; +} + +button { + padding: 10px 15px; + font-size: 16px; + border: none; + border-radius: 8px; + cursor: pointer; + transition: all 0.3s ease; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); + transition: all 0.3s ease; +} + +button:hover { + transform: translateY(-3px); /* Smooth upward movement */ + background-color: #8e44ad; /* Transition to a lighter purple */ + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Highlighted shadow */ +} + +button:active { + transform: translateY(0); /* Reset the position on click */ + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Lower shadow on click */ +} + +