cse110-fa22-group29/index.html

91 lines
2.6 KiB
HTML
Raw Normal View History

2022-11-08 23:35:49 +00:00
2022-11-08 03:18:05 +00:00
<!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" />
2022-11-08 23:18:46 +00:00
<title>Food Journal</title>
2022-11-08 03:18:05 +00:00
<!-- Recipe Card Custom Element -->
2022-11-08 23:57:02 +00:00
<script src="/source/assets/scripts/ReviewCard.js" type="module"></script>
2022-11-08 03:18:05 +00:00
2022-11-08 23:18:46 +00:00
<!-- Main Stylesheets & Scripts -->
2022-11-08 03:18:05 +00:00
<link rel="stylesheet" href="assets/styles/main.css" />
<script src="assets/scripts/main.js" type="module"></script>
2022-11-08 23:57:02 +00:00
2022-11-08 03:18:05 +00:00
</head>
<body>
<main>
2022-11-08 23:18:46 +00:00
<!-- Add Food Entries Here -->
2022-11-08 03:18:05 +00:00
</main>
2022-11-08 03:50:29 +00:00
<form id="new-food-entry">
2022-11-08 03:18:05 +00:00
<fieldset>
2022-11-08 23:35:49 +00:00
2022-11-08 03:18:05 +00:00
<legend>Image:</legend>
<label for="image-src">
Source:
<input type="text" id="imgSrc" name="imgSrc" required>
</label>
<label for="image-alt">
Alt Text:
<input type="text" id="imgAlt" name="imgAlt" required>
</label>
</fieldset>
<fieldset>
2022-11-08 23:57:02 +00:00
2022-11-08 03:50:29 +00:00
<legend> Meal: </legend>
/* TODO: change parameters */
<label for="Meal: "> Meal:
2022-11-08 03:18:05 +00:00
<input type="text" id="titleTxt" name="titleTxt" required>
</label>
2022-11-08 03:50:29 +00:00
/* navigate to review page */
2022-11-08 03:18:05 +00:00
<label for="title-lnk">Link:
<input type="url" id="titleLnk" name="titleLnk" required>
2022-11-08 23:57:02 +00:00
2022-11-08 03:18:05 +00:00
</label>
</fieldset>
<fieldset>
<legend>Rating</legend>
<label for="rating-0">
0<input type="radio" id="rating-0" value="0" name="rating">
</label>
<label for="rating-1">
1<input type="radio" id="rating-1" value="1" name="rating">
</label>
<label for="rating-2">
2<input type="radio" id="rating-2" value="2" name="rating">
</label>
<label for="rating-3">
3<input type="radio" id="rating-3" value="3" name="rating">
</label>
<label for="rating-4">
4<input type="radio" id="rating-4" value="4" name="rating">
</label>
<label for="rating-5">
5<input type="radio" id="rating-5" value="5" name="rating">
</label>
2022-11-08 23:57:02 +00:00
2022-11-08 03:18:05 +00:00
</fieldset>
<fieldset>
<legend>Other Info:</legend>
2022-11-08 03:50:29 +00:00
<label for="restaurant">
Restaurant:
<input type="text" id="restaurant" name="restaurant" required>
2022-11-08 03:18:05 +00:00
</label>
2022-11-08 03:50:29 +00:00
<label for="comments">
Comments:
<input type="text" id="comments" name="comments" required>
2022-11-08 03:18:05 +00:00
</label>
2022-11-08 23:35:49 +00:00
<label for="comments">
Tags:
<input type="text" id="comments" name="comments" required>
</label>
2022-11-08 23:57:02 +00:00
2022-11-08 03:18:05 +00:00
</fieldset>
2022-11-08 03:50:29 +00:00
<button type="submit">Add Review</button>
2022-11-08 03:18:05 +00:00
<button type="button" class="danger">Clear Local Storage</button>
</form>
</body>
</html>