-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
85 lines (73 loc) · 1.9 KB
/
index.html
File metadata and controls
85 lines (73 loc) · 1.9 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Ingredient Adjuster based on Recipe Weight</title>
<style>
/* CSS styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
text-align: center;
background-color: #f2f2f2;
}
#container {
max-width: 400px;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
h1 {
color: #333;
margin-bottom: 30px;
}
label {
display: block;
margin-bottom: 10px;
text-align: left;
font-weight: bold;
}
input[type="number"] {
width: 100px;
padding: 5px;
border-radius: 4px;
border: 1px solid #ccc;
margin-bottom: 10px;
}
button {
margin-top: 10px;
padding: 10px 20px;
background-color: #333;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
#output {
margin-top: 20px;
text-align: left;
}
.food-image {
width: 100%;
max-width: 300px;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div id="container">
<h1>Ingredient Adjuster based on Recipe Weight</h1>
<label for="ingredients">How many ingredients?</label>
<input type="number" id="ingredients" />
<div id="inputContainer"></div>
<button id="submitButton">Submit</button>
<div id="output"></div>
</div>
<script src="script.js"></script>
</body>
</html>