generated from lighthouse-labs/node-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrestaurant_menu.ejs
147 lines (129 loc) · 5.95 KB
/
restaurant_menu.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home Page</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="/vendor/normalize-4.1.1.css" type="text/css" />
<link rel="stylesheet" href="/vendor/border-box.css" type="text/css" />
<link rel="stylesheet" href="/styles/layout.css" type="text/css" />
<link rel="stylesheet" href="/styles/menu.css" type="text/css" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Archivo+Black|Merriweather&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Ibarra+Real+Nova|Oswald&display=swap" rel="stylesheet">
<script type="text/javascript" src="/vendor/jquery-3.0.0.js"></script>
<script>const menu = '<%- JSON.stringify(menu) %>'</script>
<script type="text/javascript" src="../scripts/restaurantMenu.js"></script>
</head>
<body>
<%- include('./partials/_header') %>
<main>
<div class = "container1">
<section class = "red-section shadow">
<span class = "invisible show1 caption1">Handcrafted</span>
<span class = "invisible show2 caption2">BURGERS & FRIES</span>
<span class = "invisible show3 caption1">since 1986</span>
<span class = "invisible show4 menu-text">MENU</span>
<a href="#menu"><i class="invisible show4 material-icons arrow-down">
keyboard_arrow_down
</i></a>
</section>
<div class = "main-section">
<div id="menu" class = "menu-section">
<p class="category"> Entrees </p>
<ul>
<% for(let food of menu) { %>
<li>
<div class = "each-item">
<div class = "food-item">
<strong class="food-name"><%= food.name %></strong>
<em> $<%= food.price/100 %>.00</em>
<% if (food.is_popular) { %>
<span>🔥</span>
<% } %>
<p class="item-description"> <%= food.description %></p>
</div>
<div class="def-number-input number-input safari_only">
<button onclick="this.parentNode.querySelector('input[type=number]').stepDown()" class="minus quant-button"></button>
<input class="quantity <%= food.id %>" min="0" name="<%= food.id %>-quantity" value="0" type="number">
<button onclick="this.parentNode.querySelector('input[type=number]').stepUp()" class="plus quant-button"></button>
</div>
</div>
</li>
<% } %>
</ul>
</div>
<div class = "menu-section">
<p class="category"> Beverages </p>
<ul>
<% for(let food of menu) { %>
<li>
<div class = "each-item">
<div class = "food-item">
<strong class="food-name"><%= food.name %></strong>
<em> $<%= food.price/100 %>.00</em>
<% if (food.is_popular) { %>
<span>🔥</span>
<% } %>
<p class="item-description"> <%= food.description %></p>
</div>
<div class="def-number-input number-input safari_only">
<button onclick="this.parentNode.querySelector('input[type=number]').stepDown()" class="minus quant-button"></button>
<input class="quantity <%= food.id %>" min="0" name="<%= food.id %>-quantity" value="0" type="number">
<button onclick="this.parentNode.querySelector('input[type=number]').stepUp()" class="plus quant-button"></button>
</div>
</div>
</li>
<% } %>
</ul>
</div>
<div class = "menu-section">
<p class="category"> Sides </p>
<ul>
<% for(let food of menu) { %>
<li>
<div class = "each-item">
<div class = "food-item">
<strong class="food-name"><%= food.name %></strong>
<em> $<%= food.price/100 %>.00</em>
<% if (food.is_popular) { %>
<span>🔥</span>
<% } %>
<p class="item-description"> <%= food.description %></p>
</div>
<div class="def-number-input number-input safari_only">
<button onclick="this.parentNode.querySelector('input[type=number]').stepDown()" class="minus quant-button"></button>
<input class="quantity <%= food.id %>" min="0" name="<%= food.id %>-quantity" value="0" type="number">
<button onclick="this.parentNode.querySelector('input[type=number]').stepUp()" class="plus quant-button"></button>
</div>
</div>
</li>
<% } %>
</ul>
</div>
</div>
</div>
</main>
<div class="fixed-bottom cart-section shadow-lg p-3 mb-5 bg-white rounded">
<p class="cart-title">My items</p>
<div class="cart">
</div>
<div class="buttons">
<a class="btn btn-primary checkout" href="/order_review">Proceed</a>
</div>
</div>
<a class="btn btn-primary fixed-bottom open-cart"><i style="color:white;" class="material-icons cart-icon">
shopping_cart
</i></a>
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
</body>
</html>