/
index.html
126 lines (94 loc) · 3.77 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
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
<!DOCTYPE html>
<html>
<title>James L. Avakian</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<body>
<!-- Navbar (sit on top) -->
<div class="w3-top">
<div class="w3-bar w3-white w3-wide w3-padding w3-card">
<a href="index.html" class="w3-bar-item w3-xlarge w3-button"><b>James L.</b> Avakian</a>
<!-- Float links to the right. Hide them on small screens -->
<div class="w3-right w3-hide-small">
<a href="index.html" class="w3-bar-item w3-xlarge w3-button">Calculator</a>
<a href="projects.html" class="w3-bar-item w3-xlarge w3-button">Cellphone </a>
<a href="about.html" class="w3-bar-item w3-xlarge w3-button">About</a>
<a href="contact.html" class="w3-bar-item w3-xlarge w3-button">Contact</a>
</div>
</div>
</div>
<!-- Header -->
<header class="w3-display-container w3-content w3-wide" style="max-width:1500px;" id="home">
<link rel="stylesheet" href="style.css">
</header>
<body>
<br> <br>
<img id="mode" src="./images/icon-moon.svg" alt="">
<br> <br>
<img id='mode2' src="./images/james.png" height="100px" width="100" alt="">
<!-- <img id='mode2' src="./images/me1.png" alt=""> -->
<!-- <img class='mode3' src="./images/me1.png" alt=""> -->
<div class="container">
<div class="left">
<div class="bill">
<p class="label">Bill</p>
<div class="input_container">
<img src="./images/icon-dollar.svg" alt="">
<input id="bill-input" type="text" placeholder="0" >
</div>
</div>
<div class="tip">
<!-- HW STYLE THE TIP BUTTONS DIV TO LOOK LIKE THE DESIGN -->
<!-- TWO WAYS FLEX BOX -->
<!-- display: grid -->
<p>Select Tip %</p>
<div class="buttons">
<button class="button">5%</button>
<button class="button">10%</button>
<button class="button">15%</button>
<button class="button">25%</button>
<button class="button">50%</button>
<input id = "custom-tip" type="number" placeholder="Custom" ></input>
</div>
</div>
<div class="people">
<p>Number of people</p>
<div class="input_container">
<img src="./images/icon-person.svg" alt="">
<input id="number-of-people" type="text" placeholder="0">
</div>
</div>
</div>
<div class="right">
<div class="display">
<div class="amount">
<div class="tip_per">
<p>Tip Amount</p>
<p>/person</p>
</div>
<h1 id = "tip-amount">$0.00</h1>
</div>
<div class="amount">
<div class="total_per">
<p>Total Amount</p>
<p>/person</p>
</div>
<h1 id = "total-amount">$0.00</h1>
</div>
</div>
<div class="reset">
<button id="reset-button">RESET</button>
</div>
</div>
</div>
<br><br>
<h4>Display by inspector at 400 px</h4>
<br><br>
<script src="script.js"></script>
<!-- Footer -->
<footer class="w3-center w3-padding-16">
<p id="copy">(c) 2021, Calculator, James L. Avakian, Developer, All rights reserved.</p>
</footer>
</body>
</html>