lokesh341 commited on
Commit
7826b55
·
verified ·
1 Parent(s): ac1d01f

Update templates/final_order.html

Browse files
Files changed (1) hide show
  1. templates/final_order.html +37 -25
templates/final_order.html CHANGED
@@ -3,41 +3,53 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Final Order</title>
7
  <style>
8
  body {
9
  font-family: Arial, sans-serif;
10
- margin: 20px;
 
 
11
  }
12
- .order-summary {
13
- padding: 15px;
14
- border: 1px solid #ddd;
 
 
 
 
 
 
 
 
 
 
15
  border-radius: 8px;
16
- background-color: #f9f9f9;
17
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
 
 
 
 
 
 
 
 
 
 
18
  }
19
  </style>
20
  </head>
21
  <body>
22
- <div class="order-summary">
23
- <h2>Final Order Summary</h2>
24
- <div id="order-details"></div>
25
- <button onclick="goBack()">Go Back to Menu</button>
 
 
 
 
26
  </div>
27
 
28
- <script>
29
- // Retrieve the final order summary from session storage
30
- const summary = sessionStorage.getItem('finalOrderSummary');
31
- if (summary) {
32
- document.getElementById('order-details').innerHTML = summary;
33
- } else {
34
- document.getElementById('order-details').innerHTML = "<p>No order found.</p>";
35
- }
36
- // Go back to the menu page
37
- function goBack() {
38
- window.location.href = "/index.html"; // Ensure this is the menu page
39
- }
40
-
41
- </script>
42
  </body>
43
  </html>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Order Confirmation</title>
7
  <style>
8
  body {
9
  font-family: Arial, sans-serif;
10
+ background-color: #f4f4f4;
11
+ margin: 0;
12
+ padding: 0;
13
  }
14
+ .container {
15
+ width: 80%;
16
+ margin: 50px auto;
17
+ text-align: center;
18
+ }
19
+ h1 {
20
+ color: #333;
21
+ }
22
+ .confirmation-message {
23
+ background-color: #fff;
24
+ padding: 30px;
25
+ margin: 20px 0;
26
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
27
  border-radius: 8px;
28
+ }
29
+ .btn-home {
30
+ padding: 12px;
31
+ background-color: #4CAF50;
32
+ color: white;
33
+ border: none;
34
+ border-radius: 4px;
35
+ cursor: pointer;
36
+ text-decoration: none;
37
+ }
38
+ .btn-home:hover {
39
+ background-color: #45a049;
40
  }
41
  </style>
42
  </head>
43
  <body>
44
+
45
+ <div class="container">
46
+ <h1>Thank You for Your Order!</h1>
47
+ <div class="confirmation-message">
48
+ <p>Your order has been successfully placed. We will notify you when it's ready for delivery or pickup.</p>
49
+ </div>
50
+
51
+ <a href="/" class="btn-home">Go to Home</a>
52
  </div>
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  </body>
55
  </html>