This commit is contained in:
zadit frontend
2024-10-04 04:09:17 +00:00
parent a86aaef4f6
commit aec707c714
13 changed files with 215 additions and 283 deletions

View File

@@ -353,6 +353,10 @@ const Header = ({
onChange={() => setIsEditMode(!isEditMode)}
/>
</div>
<Child onClick={() => setModal("welcome_config")}>
welcoming page
</Child>
<Child onClick={() => setModal("add_material")}>
stock
</Child>

View File

@@ -19,7 +19,7 @@
font-family: "Poppins", sans-serif;
font-weight: 500;
font-style: normal;
font-size: 32px;
font-size: 28px;
color: rgba(88, 55, 50, 1);
text-align: left;
width: calc(70% - 10px);

View File

@@ -101,6 +101,14 @@ export default function ItemType({
create
</button>
)}
<div
style={{
backgroundColor: "black",
width: "200%",
height: "200%",
position: "absolute",
}}
></div>
</div>
);
}

View File

@@ -63,7 +63,7 @@ const Modal = ({ shop, isOpen, onClose, modalContent }) => {
{modalContent === "update_stock" && (
<MaterialMutationsPage cafeId={shop.cafeId} />
)}
{modalContent === "welcome_config" && <WelcomePageEditor />}
{modalContent === "welcome_config" && <WelcomePageEditor cafeId={shop.cafeId} welcomePageConfig={shop.welcomePageConfig} />}
{modalContent === "reports" && <Reports cafeId={shop.cafeId} />}
</div>
</div>

View File

@@ -104,7 +104,7 @@
position: relative;
left: 0;
right: 0;
background-color: rgb(108, 255, 128);
background-color: rgb(29, 185, 84);
/* background-color: rgb(218 163 99); */
border-radius: 0 0 23px 23px;
/* Rounded corners at the bottom */
@@ -121,7 +121,7 @@
}
.expand-button:hover {
background-color: rgb(108, 255, 128);
background-color: rgb(29, 185, 84);
}
/* Adjust height of the music player container when expanded */
@@ -134,7 +134,7 @@
display: flex;
align-items: center;
padding: 10px;
background-color: rgb(108, 255, 128);
background-color: rgb(29, 185, 84);
}
.search-box input[type="text"] {
@@ -167,7 +167,7 @@
display: flex;
align-items: center;
padding: 10px;
background-color: rgb(108, 255, 128);
background-color: rgb(29, 185, 84);
}
.auth-box input[type="text"] {

View File

@@ -18,7 +18,7 @@
right: 0;
height: 122px;
/* Adjust height as needed */
background-image: url('https://s3-alpha-sig.figma.com/img/3678/baa2/4bf884c3841dee965b827acbd7555b98?Expires=1719792000&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=bKQcSkMF~H8797MOcDHKeUzRWE1Ei9V2SWIyc4LsB-xzHOzMfd5WUNyFnDVr5pOMJdOWNI2xtsxaeVoH4h6g84vAyK6MUrCvWKhsxYrRK4O-3A0VTeIdGKICTMMj~EXZ7mjFoG5JwSGAGyj7Jx8iKS1OkoT0mTl7RDCRTvdChWZyv24BQaXsl~DfbNizjInhvwCvl3IcsdZBEnGYNSq2BbM4ZzU6w07-zMvNvC~EYPm33pAYXkDUsMh4XEQGc9gMAsNxJJZ4a5bo2vGwHREkkBDYgNGhwetefH6B0iZ7OnTqEFm3mcO3bAZtKdH0Evrcu2hNL-62pkK4JtdQ6~Anww__');
background-image: url("https://s3-alpha-sig.figma.com/img/3678/baa2/4bf884c3841dee965b827acbd7555b98?Expires=1719792000&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=bKQcSkMF~H8797MOcDHKeUzRWE1Ei9V2SWIyc4LsB-xzHOzMfd5WUNyFnDVr5pOMJdOWNI2xtsxaeVoH4h6g84vAyK6MUrCvWKhsxYrRK4O-3A0VTeIdGKICTMMj~EXZ7mjFoG5JwSGAGyj7Jx8iKS1OkoT0mTl7RDCRTvdChWZyv24BQaXsl~DfbNizjInhvwCvl3IcsdZBEnGYNSq2BbM4ZzU6w07-zMvNvC~EYPm33pAYXkDUsMh4XEQGc9gMAsNxJJZ4a5bo2vGwHREkkBDYgNGhwetefH6B0iZ7OnTqEFm3mcO3bAZtKdH0Evrcu2hNL-62pkK4JtdQ6~Anww__");
background-size: cover;
/* Adjust background image size */
background-position: center;
@@ -103,7 +103,7 @@
left: 0;
right: 0;
height: 25px;
background-color: rgb(108, 255, 128);
background-color: rgb(29, 185, 84);
border-radius: 0 0 15px 15px;
/* Rounded corners at the bottom */
cursor: pointer;
@@ -117,7 +117,7 @@
}
.expand-button:hover {
background-color: rgb(108, 255, 128);
background-color: rgb(29, 185, 84);
}
/* Adjust height of the music player container when expanded */
@@ -130,7 +130,7 @@
display: flex;
align-items: center;
padding: 10px;
background-color: rgb(108, 255, 128);
background-color: rgb(29, 185, 84);
}
.search-box input[type="text"] {
@@ -162,4 +162,4 @@
/* Add hover effect for the search icon */
.search-box .search-icon:hover {
color: #555;
}
}