diff --git a/src/App.css b/src/App.css index 810e639..1952907 100644 --- a/src/App.css +++ b/src/App.css @@ -1,8 +1,9 @@ @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Aboreto&family=Rubik+Doodle+Shadow&display=swap"); -@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&ital,wght@0,200..800;1,200..800&display=swap"); +@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&display"); + :root { - --brand-primary: #73a585; /* general brand (e.g., music player) */ + --brand-primary: #73a585; /* general brand (e. g., music player) */ --brand-sage: #6B8F71; /* sage green for active category */ --brand-sage-50: #F0F6F2; /* very light hover bg */ --brand-sage-100: #E9F3ED; /* light hover bg */ @@ -66,7 +67,15 @@ body { /* Ensure sticky cart bar stays above item overlays */ .StickyCartBar { - z-index: 3000 !important; + z-index: 100 !important; /* Menurunkan z-index agar tidak menutupi material list */ + position: fixed; + bottom: 0; + left: 0; + right: 0; + background-color: white; + box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); + padding: 15px 20px; + border-radius: 20px 20px 0 0; } .App-link { @@ -91,4 +100,4 @@ body { to { transform: rotate(360deg); } -} +} \ No newline at end of file diff --git a/src/components/Carousel.js b/src/components/Carousel.js deleted file mode 100644 index 820b3a9..0000000 --- a/src/components/Carousel.js +++ /dev/null @@ -1,52 +0,0 @@ -import React, { useState } from "react"; -import styles from "./Carousel.module.css"; // Import CSS module - -const Carousel = ({ selectedIndex, items, onSelect }) => { - - const moveToNext = () => { - console.log('aa') - if (selectedIndex < items.length - 1) { - console.log('bb') - onSelect(selectedIndex + 1); // Send the next index to the parent - } - }; - - const moveToPrev = () => { - if (selectedIndex > -1) { - onSelect(selectedIndex - 1); // Send the previous index to the parent - } - }; - - return ( -
{initialDescription}
+ )} {!forInvoice && (Nama item
{/* Increased margin and font size */} setItemName(e.target.value)} - onFocus={(e) => e.target.style.borderColor = '#60d37e'} - onBlur={(e) => e.target.style.borderColor = '#ccc'} + type="file" + ref={fileInputRef} + className={styles.fileInput} + onChange={handleFileChange} + accept="image/*" + style={{ display: "none" }} />Harga
{/* Increased margin and font size */} +Harga promo
{/* Increased margin and font size */} - setItemPromoPrice(e.target.value)} - onFocus={(e) => e.target.style.borderColor = '#60d37e'} - onBlur={(e) => e.target.style.borderColor = '#ccc'} + +Deskripsi
{/* Increased margin and font size */} - -{currentQuantity + quantityChange}
- -harga per {materials && materials[selectedMaterialIndex]?.unit} sekarang
-