Spaces:
Sleeping
Sleeping
Update templates/menu.html
Browse files- templates/menu.html +53 -4
templates/menu.html
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
|
12 |
|
13 |
/* subbu */
|
14 |
-
.addbutton .btn {
|
15 |
background: linear-gradient(135deg, #28a745, #006400); /* Gradient green */
|
16 |
color: white; /* Make the text color white */
|
17 |
border: none; /* Remove the border */
|
@@ -30,8 +30,41 @@
|
|
30 |
color: #28a745; /* Same color as the "ADD" button */
|
31 |
font-size: 14px; /* Same font size as the "ADD" button */
|
32 |
margin: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
}
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
|
37 |
|
@@ -560,7 +593,7 @@ form-check-input addon-option{
|
|
560 |
<h5 class="card-title">{{ item.Name }}</h5>
|
561 |
<p class="card-text">${{ item.Price__c }}</p>
|
562 |
</div>
|
563 |
-
<div class= "d-flex flex-column align-item-center justify-content-center">
|
564 |
<!-- <button class="btn btn-primary>ADD</button> -->
|
565 |
|
566 |
<div >
|
@@ -570,14 +603,30 @@ form-check-input addon-option{
|
|
570 |
ADD
|
571 |
</button>
|
572 |
</div>
|
573 |
-
<div>
|
574 |
<h5 class="customisable-text">Customisable</h5>
|
575 |
-
|
576 |
|
577 |
|
578 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
579 |
</div>
|
580 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
581 |
|
582 |
</div>
|
583 |
</div>
|
|
|
11 |
|
12 |
|
13 |
/* subbu */
|
14 |
+
/* .addbutton .btn {
|
15 |
background: linear-gradient(135deg, #28a745, #006400); /* Gradient green */
|
16 |
color: white; /* Make the text color white */
|
17 |
border: none; /* Remove the border */
|
|
|
30 |
color: #28a745; /* Same color as the "ADD" button */
|
31 |
font-size: 14px; /* Same font size as the "ADD" button */
|
32 |
margin: 0;
|
33 |
+
} */
|
34 |
+
|
35 |
+
.addbutton .btn {
|
36 |
+
background: linear-gradient(135deg, #28a745, #006400); /* Gradient green */
|
37 |
+
color: white; /* Make the text color white */
|
38 |
+
border: none; /* Remove the border */
|
39 |
+
padding: 6px 15px; /* Smaller padding */
|
40 |
+
font-size: 14px; /* Smaller font size */
|
41 |
+
border-radius: 5px; /* Optional: round the corners */
|
42 |
+
transition: background 0.3s ease; /* Add transition effect for hover */
|
43 |
}
|
44 |
|
45 |
+
.addbutton .btn:hover {
|
46 |
+
background: linear-gradient(135deg, #006400, #28a745); /* Reverse gradient for hover effect */
|
47 |
+
}
|
48 |
+
|
49 |
+
.customisable-text {
|
50 |
+
color: #28a745; /* Same color as the "ADD" button */
|
51 |
+
font-size: 14px; /* Same font size as the "ADD" button */
|
52 |
+
margin: 0;
|
53 |
+
}
|
54 |
+
|
55 |
+
/* Ensure the button is aligned to the right */
|
56 |
+
.d-flex.justify-content-end {
|
57 |
+
width: 100%; /* Make sure the parent div takes the full width */
|
58 |
+
justify-content: flex-end; /* Align the button to the right */
|
59 |
+
}
|
60 |
+
|
61 |
+
/* Center the "Customisable" text */
|
62 |
+
.d-flex.text-center {
|
63 |
+
width: 100%; /* Ensure the div takes the full width */
|
64 |
+
text-align: center; /* Center the text */
|
65 |
+
}
|
66 |
+
|
67 |
+
|
68 |
|
69 |
|
70 |
|
|
|
593 |
<h5 class="card-title">{{ item.Name }}</h5>
|
594 |
<p class="card-text">${{ item.Price__c }}</p>
|
595 |
</div>
|
596 |
+
<!-- <div class= "d-flex flex-column align-item-center justify-content-center">
|
597 |
<!-- <button class="btn btn-primary>ADD</button> -->
|
598 |
|
599 |
<div >
|
|
|
603 |
ADD
|
604 |
</button>
|
605 |
</div>
|
606 |
+
<div class="w-100 text-center">
|
607 |
<h5 class="customisable-text">Customisable</h5>
|
608 |
+
</div>
|
609 |
|
610 |
|
611 |
|
612 |
+
</div> -->
|
613 |
+
<div class="d-flex flex-column align-items-center justify-content-center">
|
614 |
+
<!-- Container for the button -->
|
615 |
+
<div class="d-flex justify-content-end w-100">
|
616 |
+
<button class="btn btn-primary"
|
617 |
+
data-bs-toggle="modal" data-bs-target="#itemModal"
|
618 |
+
onclick="showItemDetails('{{ item.Name }}', '{{ item.Price__c }}', '{{ item.Image2__c }}', '{{ item.Description__c }}', '{{ item.Section__c }}','{{ selected_category }}')">
|
619 |
+
ADD
|
620 |
+
</button>
|
621 |
</div>
|
622 |
|
623 |
+
<!-- Customisable text centered below the button -->
|
624 |
+
<div class="w-100 text-center">
|
625 |
+
<h5 class="customisable-text">Customisable</h5>
|
626 |
+
</div>
|
627 |
+
</div>
|
628 |
+
|
629 |
+
|
630 |
|
631 |
</div>
|
632 |
</div>
|