diff --git a/src/pages/Split.module.css b/src/pages/Split.module.css
index bd6afe2..d1dc8b6 100644
--- a/src/pages/Split.module.css
+++ b/src/pages/Split.module.css
@@ -15,8 +15,21 @@
gap: 2rem;
}
+.test {
+ display: flex;
+ align-items: flex-start;
+ width: 100%;
+ gap: 3rem;
+}
+
.itemsContainer {
- width: 60%;
+ width: 55%;
+ width: min(980px, 100%);
+ border: 1px solid rgba(255, 255, 255, 0.6);
+ border-radius: 18px;
+ padding: 1.75rem;
+ box-shadow: 0 20px 50px rgba(140, 20, 70, 0.18);
+ backdrop-filter: blur(10px);
}
.itemsContainer button {
@@ -27,7 +40,7 @@
}
.resultsContainer {
- width: 40%;
+ width: 45%;
background-color: var(--primary-pink);
min-width: 300px;
border-radius: 1rem;
@@ -56,3 +69,28 @@
border-top: 2px solid rgba(255, 255, 255, 0.2);
padding-top: 0.5rem;
}
+
+.quantity {
+ color: white;
+ background-color: var(--primary-pink);
+ padding: 0.5rem 0.8rem;
+ line-height: 0;
+ text-align: center;
+
+ border: 2px solid var(--primary-pink);
+ border-radius: 8px;
+}
+
+.assignButton {
+ white-space: nowrap;
+ width: 100%;
+}
+
+.nameAndPrice {
+ border: 1px solid rgba(240, 180, 205, 0.65);
+ border-radius: 8px;
+ padding: 0.3rem;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
diff --git a/src/pages/Split.tsx b/src/pages/Split.tsx
index f72e868..fd1c134 100644
--- a/src/pages/Split.tsx
+++ b/src/pages/Split.tsx
@@ -75,66 +75,73 @@ const Split = () => {
<>
{/* Items & Assignment */}
-
-
setShowAddPersonModal(true)}
- onRemovePerson={removePerson}
- />
-
- {/* Items table */}
-
- {items.map((item) => (
-
- | {item.quantity} |
- {item.name} |
- ${item.price.toFixed(2)} |
-
-
- |
-
- ))}
-
-
- {/* Modals */}
- setShowAddPersonModal(false)}
- onSubmit={(name, color) => addPerson(name, color)}
- />
-
-
-
- {/* Results */}
-
-
Results
-
- {people.map((person) => (
-
- | {person.name}: |
- ${personTotals[person.id]?.toFixed(2) || "0.00"} |
-
- ))}
-
-
Total: ${grandTotal.toFixed(2)}
+
+
+
setShowAddPersonModal(true)}
+ onRemovePerson={removePerson}
+ />
+
+ {/* Items table */}
+
+ {items.map((item) => (
+
+ |
+ {item.quantity}
+ |
+
+
+ {item.name}${item.price.toFixed(2)}
+
+ |
+
+
+ |
+
+ ))}
+
+
+ {/* Modals */}
+ setShowAddPersonModal(false)}
+ onSubmit={(name, color) => addPerson(name, color)}
+ />
+
+
+
+ {/* Results */}
+
+
Results
+
+ {people.map((person) => (
+
+ | {person.name}: |
+ ${personTotals[person.id]?.toFixed(2) || "0.00"} |
+
+ ))}
+
+
Total: ${grandTotal.toFixed(2)}
+
>