-
Notifications
You must be signed in to change notification settings - Fork 572
/
index.html
87 lines (85 loc) · 2.76 KB
/
index.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
<!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>Lab 6 - Recipe Cards</title>
<!-- Recipe Card Custom Element -->
<script src="assets/scripts/RecipeCard.js" type="module"></script>
<!-- Main Stylesheets & Scripts -->
<link rel="stylesheet" href="assets/styles/main.css" />
<script src="assets/scripts/main.js" type="module"></script>
</head>
<body>
<main>
<!-- Add Recipes Here -->
</main>
<!-- For the Explore section - Remove "hidden" class before beginning -->
<form id="new-recipe" class="hidden">
<fieldset>
<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>
<legend>Title:</legend>
<label for="title-txt">Text:
<input type="text" id="titleTxt" name="titleTxt" required>
</label>
<label for="title-lnk">Link:
<input type="url" id="titleLnk" name="titleLnk" required>
</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>
<label for="numRatings">
Num Ratings:
<input type="number" id="numRatings" name="numRatings">
</label>
</fieldset>
<fieldset>
<legend>Other Info:</legend>
<label for="organization">
Organization:
<input type="text" id="organization" name="organization" required>
</label>
<label for="lengthTime">
Length (time):
<input type="text" id="lengthTime" name="lengthTime" required>
</label>
<label for="ingredients">
<p>Ingredients:</p>
<textarea name="ingredients" id="ingredients" cols="38" rows="5"
required></textarea>
</label>
</fieldset>
<button type="submit">Add Recipe</button>
<button type="button" class="danger">Clear Local Storage</button>
</form>
</body>
</html>