-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (63 loc) · 2.8 KB
/
index.html
File metadata and controls
63 lines (63 loc) · 2.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Calories calculator</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container col-12 col-xl-8 col-lg-10">
<div class="row">
<div class="left-side py-5 col-12 col-md-6 bg-light">
<h1>Calories calculator</h1>
<form class="ml-3 mt-3">
<div class="form-group d-flex flex-column">
<label for="name">Product</label>
<input class="w-50" type="text" name="product" id="inp-product">
</div>
<h6>Macro nutrients <span class="small">(per 100g / 100 ml)</span></h6>
<div class="form-group d-flex justify-content-between">
<div class="d-flex flex-column">
<label for="name">Carbs(g)</label>
<input class="w-50" type="text" name="name" maxlength="3" id="inp-carbs">
</div>
<div class="d-flex flex-column">
<label for="name">Protein(g)</label>
<input class="w-50" type="text" name="name" maxlength="3" id="inp-protein">
</div>
<div class="d-flex flex-column">
<label for="name">Fat(g)</label>
<input class="w-50" type="text" name="name" maxlength="3" id="inp-fat">
</div>
</div>
<div class="form-group">
<h6>How much you ate?</h6>
<input class="w-25" type="number" id="inp-amount" min="0">
<p class="small d-inline">(100g / 100ml)</p>
</div>
<input class="btn btn-primary mt-5 ml-auto d-block" id="btn-add" type="button" value="Add">
</form>
</div><!-- /.left-side -->
<div class="right-side py-5 col-12 col-md-6 bg-dark text-light">
<h1>Consumed</h1>
<div class="products ml-3" id="products">
</div>
</div><!-- /.right-side -->
</div> <!-- /.row -->
</div> <!-- /.container-fluid -->
<div class="container col-12 col-xl-8 col-lg-10">
<div class="row">
<div class="total bg-info text-dark w-100" id="total">
<h1 class="text-center mt-3">Total</h1>
<div class="total-info d-flex flex-column flex-md-row align-items-center justify-content-around py-5" id="total-info">
<h2 class="text-center text-white-50 font-italic font-weight-normal">You still didnt consume anything for today.</h2>
</div>
</div>
</div><!-- /.row -->
</div><!-- /.container-fluid -->
<script src="main.js"></script>
</body>
</html>