Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Update templates/menu.html
Browse files- templates/menu.html +46 -6
    	
        templates/menu.html
    CHANGED
    
    | @@ -16,6 +16,38 @@ | |
| 16 | 
             
                display: flex;
         | 
| 17 | 
             
                flex-direction: column;
         | 
| 18 | 
             
            }
         | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 19 | 
             
            .container {
         | 
| 20 | 
             
                max-width: 900px;
         | 
| 21 | 
             
            }
         | 
| @@ -463,14 +495,22 @@ form-check-input addon-option{ | |
| 463 | 
             
                            {% for item in items %}
         | 
| 464 | 
             
                                <div class="col-md-6 mb-4">
         | 
| 465 | 
             
                                    <div class="card menu-card">
         | 
| 466 | 
            -
                                         | 
| 467 | 
            -
             | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 468 | 
             
                                            <h5 class="card-title">{{ item.Name }}</h5>
         | 
| 469 | 
             
                                            <p class="card-text">${{ item.Price__c }}</p>
         | 
| 470 | 
            -
             | 
| 471 | 
            -
                                                onclick="showItemDetails('{{ item.Name }}', '{{ item.Price__c }}', '{{ item.Image2__c }}', '{{ item.Description__c }}', '{{ item.Section__c }}','{{ selected_category }}')">
         | 
| 472 | 
            -
                                                Add
         | 
| 473 | 
            -
                                            </button>
         | 
| 474 | 
             
                                        </div>
         | 
| 475 | 
             
                                    </div>
         | 
| 476 | 
             
                                </div>
         | 
|  | |
| 16 | 
             
                display: flex;
         | 
| 17 | 
             
                flex-direction: column;
         | 
| 18 | 
             
            }
         | 
| 19 | 
            +
                 /* ################################################################### */
         | 
| 20 | 
            +
            .customize-btn {
         | 
| 21 | 
            +
                position: absolute;
         | 
| 22 | 
            +
                top: 50%;
         | 
| 23 | 
            +
                 right: 0;
         | 
| 24 | 
            +
                transform: translateY(-50%);
         | 
| 25 | 
            +
                z-index: 2;
         | 
| 26 | 
            +
               background: linear-gradient(92.29deg, rgba(63, 63, 63, 0.7) 4.75%, rgba(0, 0, 0, 0.7) 93.57%);
         | 
| 27 | 
            +
                color: #fff;
         | 
| 28 | 
            +
                border: none;
         | 
| 29 | 
            +
                padding: 4px 12px;  /* Reduced padding for smaller height */
         | 
| 30 | 
            +
                border-radius: 5px 0px 0px 5px ;
         | 
| 31 | 
            +
                display: flex;
         | 
| 32 | 
            +
                align-items: center;
         | 
| 33 | 
            +
                font-size: 12px;  /* Slightly smaller text */
         | 
| 34 | 
            +
            }
         | 
| 35 | 
            +
             | 
| 36 | 
            +
            .customize-btn i {
         | 
| 37 | 
            +
                margin-left: 5px; /* Icon spacing */
         | 
| 38 | 
            +
            }
         | 
| 39 | 
            +
             | 
| 40 | 
            +
             | 
| 41 | 
            +
            /* ################################################################################################ */
         | 
| 42 | 
            +
             | 
| 43 | 
            +
             | 
| 44 | 
            +
             | 
| 45 | 
            +
             | 
| 46 | 
            +
             | 
| 47 | 
            +
             | 
| 48 | 
            +
             | 
| 49 | 
            +
             | 
| 50 | 
            +
                 
         | 
| 51 | 
             
            .container {
         | 
| 52 | 
             
                max-width: 900px;
         | 
| 53 | 
             
            }
         | 
|  | |
| 495 | 
             
                            {% for item in items %}
         | 
| 496 | 
             
                                <div class="col-md-6 mb-4">
         | 
| 497 | 
             
                                    <div class="card menu-card">
         | 
| 498 | 
            +
                                        
         | 
| 499 | 
            +
                                      <img src="{{ item.Image1__c }}" class="card-img-top menu-image" alt="{{ item.Name }}" onerror="this.src='/static/placeholder.jpg';" "loading="lazy">
         | 
| 500 | 
            +
                                         <!-- Customize Button on Image -->
         | 
| 501 | 
            +
                    <button class="btn customize-btn"
         | 
| 502 | 
            +
                        data-bs-toggle="modal" data-bs-target="#itemModal"
         | 
| 503 | 
            +
                        onclick="showItemDetails('{{ item.Name }}', '{{ item.Price__c }}', '{{ item.Image2__c }}', '{{ item.Description__c }}', '{{ item.Section__c }}','{{ selected_category }}')">
         | 
| 504 | 
            +
                        Customize <i class="bi bi-caret-right-fill"></i>
         | 
| 505 | 
            +
                    </button>
         | 
| 506 | 
            +
                                      
         | 
| 507 | 
            +
                                      
         | 
| 508 | 
            +
                                      
         | 
| 509 | 
            +
                                      
         | 
| 510 | 
            +
                                      <div class="card-body">
         | 
| 511 | 
             
                                            <h5 class="card-title">{{ item.Name }}</h5>
         | 
| 512 | 
             
                                            <p class="card-text">${{ item.Price__c }}</p>
         | 
| 513 | 
            +
                                           
         | 
|  | |
|  | |
|  | |
| 514 | 
             
                                        </div>
         | 
| 515 | 
             
                                    </div>
         | 
| 516 | 
             
                                </div>
         | 
