-
Notifications
You must be signed in to change notification settings - Fork 0
/
add-recipe.html
180 lines (153 loc) · 7.71 KB
/
add-recipe.html
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Recipe Post || TasteNest</title>
<!-- normalize -->
<link rel="stylesheet" href="./css/normalize.css" />
<!-- font-awesome -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
/>
<!-- Dashboard -->
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- main css -->
<link rel="stylesheet" href="./css/main.css" />
<link rel="stylesheet" href="./css/profile.css" />
</head>
<body>
<!-- nav -->
<nav class="navbar">
<div class="nav-center">
<div class="nav-header">
<a href="index.html" class="nav-logo">
<img src="./assets/logo.png" alt="simply recipes" height="30px" width="80px" style="margin-top: -5px;"/>
</a>
<button class="nav-btn btn">
<i class="fas fa-align-justify"></i>
</button>
</div>
<div class="nav-links">
<a href="index.html" class="nav-link"> home </a>
<a href="about.html" class="nav-link"> about </a>
<a href="recipes.html" class="nav-link"> recipes </a>
<a href="events.html" class="nav-link"> events </a>
<div class="nav-link contact-link">
<a id="loginLink" href="login.html" class="btn"> login </a>
<a id="profileLink" href="profile.html" class="btn"> profile </a>
</div>
</div>
</div>
</nav>
<!-- end of nav -->
<main class="page">
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="col-md-3 ">
<div class="list-group ">
<a href="./profile.html" class="list-group-item list-group-item-action">Dashboard</a>
<a href="./update.html" class="list-group-item list-group-item-action">Update Info</a>
<a href="./profile-recipe.html" class="list-group-item list-group-item-action">Recipe Managment</a>
<a href="./add-recipe.html" class="list-group-item list-group-item-action active">Post Recipe</a>
<a href="./profile-event.html" class="list-group-item list-group-item-action">Event Managment</a>
<a href="./add-event.html" class="list-group-item list-group-item-action">Post Event</a>
<a href="#" onclick="handleLogout()" class="list-group-item list-group-item-action">Logout</a>
</div>
</div>
<div class="col-md-9">
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-md-12">
<h4>Post Recipe</h4>
<hr>
</div>
</div>
<div class="row">
<div class="col-md-12">
<form>
<div class="form-group row">
<label for="name" class="col-4 col-form-label">Title</label>
<div class="col-8">
<input id="title" name="title" placeholder="Recipe Title" class="form-control here" type="text">
</div>
</div>
<div class="form-group row">
<label for="image" class="col-4 col-form-label">Image</label>
<div class="col-8">
<input id="recipe-image" name="image" placeholder="" class="form-control here" type="file">
</div>
</div>
<div class="form-group row">
<label for="description" class="col-4 col-form-label">Description</label>
<div class="col-8">
<textarea id="description" name="description" cols="40" rows="4" class="form-control"></textarea>
</div>
</div>
<div class="form-group row">
<label for="name" class="col-4 col-form-label">Prepare Time</label>
<div class="col-8">
<input id="prepare-time" name="title" placeholder="Prepare Time" class="form-control here" type="text">
</div>
</div>
<div class="form-group row">
<label for="name" class="col-4 col-form-label">Cooking Time</label>
<div class="col-8">
<input id="cooking-time" name="title" placeholder="Cooking Time" class="form-control here" type="text">
</div>
</div>
<div class="form-group row">
<label for="name" class="col-4 col-form-label">Serving</label>
<div class="col-8">
<input id="serving" name="title" placeholder="Serving" class="form-control here" type="text">
</div>
</div>
<div class="form-group row">
<label for="ingredients" class="col-4 col-form-label">Ingredients</label>
<div class="col-8">
<textarea id="ingredients" name="ingredients" cols="40" rows="4" class="form-control"></textarea>
</div>
</div>
<div class="form-group row">
<label for="instruction" class="col-4 col-form-label">Instructions</label>
<div class="col-8">
<textarea id="instruction" name="instruction" cols="40" rows="4" class="form-control"></textarea>
</div>
</div>
<div class="form-group row">
<div class="offset-4 col-8">
<button onclick="handleRecipePost(event)" name="submit" type="submit" class="btn btn-primary">Recipe Post</button>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- -->
</div>
</div>
</div>
</div>
</main>
<!-- footer -->
<footer class="page-footer">
<p>
© <span id="date"></span>
<span class="footer-logo">TasteNest</span>
Customized by
<a href="https://www.linkedin.com/in/mohammad-elias/">Elias</a>
</p>
</footer>
<script src="./js/app.js"></script>
<script src="./js/is_logged.js"></script>
<script src="./js/jwt.js"></script>
<script src="./js/post_recipe.js"></script>
<script src="./js/auth.js"></script>
</body>
</html>