nagasurendra commited on
Commit
5b32888
·
verified ·
1 Parent(s): 5233fbf

Update templates/reward_status.html

Browse files
Files changed (1) hide show
  1. templates/reward_status.html +1 -127
templates/reward_status.html CHANGED
@@ -87,77 +87,6 @@
87
  font-size: 0.9em;
88
  color: #333;
89
  }
90
-
91
- /* Item Details Card */
92
- .item-card {
93
- background-color: #fff;
94
- border-radius: 10px;
95
- padding: 20px;
96
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
97
- margin-top: 30px;
98
- }
99
-
100
- .item-card img {
101
- max-width: 100%;
102
- border-radius: 10px;
103
- }
104
-
105
- .ingredient-img {
106
- width: 100px;
107
- height: 100px;
108
- object-fit: cover;
109
- border-radius: 50%;
110
- cursor: pointer;
111
- }
112
-
113
- .ingredients {
114
- display: flex;
115
- justify-content: space-between;
116
- margin-top: 10px;
117
- }
118
-
119
- .popup {
120
- display: none;
121
- position: fixed;
122
- top: 0;
123
- left: 0;
124
- width: 100%;
125
- height: 100%;
126
- background-color: rgba(0, 0, 0, 0.5);
127
- justify-content: center;
128
- align-items: center;
129
- }
130
-
131
- .popup-content {
132
- background-color: #fff;
133
- padding: 20px;
134
- border-radius: 10px;
135
- width: 300px;
136
- max-width: 80%;
137
- }
138
-
139
- .popup-content h3 {
140
- font-size: 1.5em;
141
- color: #ff6f00;
142
- }
143
-
144
- .popup-content p {
145
- font-size: 1em;
146
- color: #333;
147
- }
148
-
149
- .popup button {
150
- background-color: #ff6f00;
151
- color: #fff;
152
- padding: 10px;
153
- border: none;
154
- border-radius: 5px;
155
- cursor: pointer;
156
- }
157
-
158
- .popup button:hover {
159
- background-color: #e65c00;
160
- }
161
  </style>
162
  </head>
163
  <body>
@@ -190,62 +119,7 @@
190
  <div class="next-tier">Next tier: {{ next_tier }}</div>
191
  </div>
192
  </div>
193
-
194
- <!-- Item Details Section -->
195
- <div class="item-card">
196
- <h3>{{ item_name }}</h3>
197
- <img src="{{ item_image }}" alt="{{ item_name }}">
198
-
199
- <div class="ingredients">
200
- <div class="ingredient">
201
- <img class="ingredient-img" src="{{ ingredient_1_image }}" alt="{{ ingredient_1_name }}" onclick="openPopup('ingredient_1')">
202
- <p>{{ ingredient_1_name }}</p>
203
- </div>
204
- <div class="ingredient">
205
- <img class="ingredient-img" src="{{ ingredient_2_image }}" alt="{{ ingredient_2_name }}" onclick="openPopup('ingredient_2')">
206
- <p>{{ ingredient_2_name }}</p>
207
- </div>
208
- </div>
209
- </div>
210
-
211
- <!-- Ingredient Popup -->
212
- <div id="ingredient-popup" class="popup">
213
- <div class="popup-content">
214
- <h3 id="popup-title">Ingredient Name</h3>
215
- <p id="popup-health-benefits"><strong>Health Benefits:</strong></p>
216
- <p id="popup-fun-facts"><strong>Fun Facts:</strong></p>
217
- <button onclick="closePopup()">Close</button>
218
- </div>
219
- </div>
220
-
221
  </div>
222
 
223
- <script>
224
- const ingredientDetails = {
225
- ingredient_1: {
226
- name: "{{ ingredient_1_name }}",
227
- health_benefits: "{{ ingredient_1_health_benefits }}",
228
- fun_facts: "{{ ingredient_1_fun_facts }}"
229
- },
230
- ingredient_2: {
231
- name: "{{ ingredient_2_name }}",
232
- health_benefits: "{{ ingredient_2_health_benefits }}",
233
- fun_facts: "{{ ingredient_2_fun_facts }}"
234
- }
235
- };
236
-
237
- function openPopup(ingredient) {
238
- const details = ingredientDetails[ingredient];
239
- document.getElementById('popup-title').innerText = details.name;
240
- document.getElementById('popup-health-benefits').innerText = 'Health Benefits: ' + details.health_benefits;
241
- document.getElementById('popup-fun-facts').innerText = 'Fun Facts: ' + details.fun_facts;
242
- document.getElementById('ingredient-popup').style.display = 'flex';
243
- }
244
-
245
- function closePopup() {
246
- document.getElementById('ingredient-popup').style.display = 'none';
247
- }
248
- </script>
249
-
250
  </body>
251
- </html>
 
87
  font-size: 0.9em;
88
  color: #333;
89
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  </style>
91
  </head>
92
  <body>
 
119
  <div class="next-tier">Next tier: {{ next_tier }}</div>
120
  </div>
121
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  </div>
123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  </body>
125
+ </html>