forked from hngi/Lancer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreate_estimate_page.html
354 lines (311 loc) · 10.1 KB
/
create_estimate_page.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
<!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>Create Estimate</title>
<style>
* {
margin-right: 0px;
margin-left: 0px;
font-family: Ubuntu;
}
body {
margin-top: 0px;
}
ul {
display: inline-block;
float: right;
width: fit-content;
padding-inline-start: 10px;
margin-top: 24px;
}
li {
display: inline;
}
button {
float: left;
width: 80px;
background: #ffffff;
border: none;
height: 100%;
border-right: 2px solid rgba(196, 196, 196, 0.4);
}
header {
padding-right: 0px !important;
padding-top: 0px !important;
padding-bottom: 0px !important;
overflow: hidden;
height: 80px;
padding: 5px;
border-bottom: 4px solid;
border-bottom-color: rgba(196, 196, 196, 0.4);
}
.c-estimate {
width: fit-content;
float: left;
/* margin-left: auto; */
/* margin-right: auto; */
align-content: center;
margin-left: 2%;
margin-top: 30px;
font-weight: bold;
font-size: 20px;
line-height: 33px;
}
a {
text-decoration: none;
}
.next a {
color: #ffffff;
}
.next {
width: 10px;
padding: 26px;
background: rgba(196, 196, 196, 0.4);
float: right;
font-size: 24px;
font-weight: bold;
padding-right: 98px;
padding-left: 47px;
color: white;
}
.cree {
width: 80%;
float: left;
margin: 10px;
border: 1px solid #999999;
min-height: 300px;
padding: 30px;
}
.cree:focus,
.cree:focus-within {
border: 4px solid #999999;
}
section {
/* width: 80%; */
margin: auto;
/* position: relative; */
}
.a-next {
background: rgba(207, 204, 204, 0.4);
width: 200px;
padding: 20px;
margin: auto;
margin-left: 27%;
font-size: 24px;
font-weight: bold;
color: white;
margin-top: 12px;
clear: both;
}
.a-next a {
color: white;
}
p, h3 {
width: fit-content;
}
.lists {
width: fit-content;
}
.dropbtn, .project {
/* margin-top: 37px; */
width: 100%;
height: 75px;
padding: 10px;
border: 1px solid rgba(145, 145, 145, 0.4);
/* box-sizing: border-box; */
}
.project {
/* margin-top: 30px; */
border: 2px solid rgba(145, 145, 145, 0.4);
height: 60px;
width: 93% !important;
overflow: hidden;
}
.l-proj {
height: 47px;
border: none;
width: 100%;
}
.l-proj::placeholder {
font-family: Ubuntu;
font-size: 20px;
}
.l-proj:focus {
border: none;
}
.req {
/* margin-left: 221px; */
float: right;
}
.signup {
background: #0ABAB5;
width: 145px;
height: 54px;
font-weight: 500;
font-size: 18px;
line-height: 21px;
color: white;
}
.est {
color: white;
background: #0ABAB5;
font-weight: bold;
font-size: 28px;
line-height: 32px;
padding: 10px;
text-align: center;
padding-top: 10px !important;
}
li {
padding: 15px;
margin: 8px !important;
margin-top: 21px;
}
li a {
margin: 1px;
padding: 1px;
color: black;
}
#new_user {
margin-top: 20px;
margin-left: 2%;
}
.shift {
font-weight: bold;
font-size: 28px;
line-height: 32px;
}
.login {
font-weight: 500;
font-size: 18px;
line-height: 21px;
}
.hidden {
display: none;
}
.disabled {
cursor: not-allowed;
}
.box {
min-height: 180px;
}
@media screen and (min-width: 600px) {
section {
margin-left: 18% !important;
min-height: 500px;
overflow: hidden;
}
.cree {
width: 30%;
}
.a-next {
margin-left: 29%;
}
.c-estimate {
margin-left: 35%;
font-size: 27px;
}
.shift {
margin-left: 18% !important;
}
}
</style>
</head>
<body>
<div id="estimate">
<header>
<span class = "c-estimate shift">Estimates</span>
<ul>
<li class="login"><a href="signin.html">Login</a></li>
<li class = "signup" ><a class = "signup" href="signup.html">Signup</a></li>
</ul>
</header>
<section id="new_user">
<div>
<a class="btn est" id="est_content" href="#">Create Estimate</a> <br>
<h2><p class = "pad">Estimates helps you place value to your work and time!</p></h2>
<p class = "pad"><h5 class = "pad">Create and estimate and easily convert it to your invoice and send to your client</h5></p>
</div>
</section>
</div>
<div id="Create_estimate" class="hidden">
<header>
<button class="close" id="close"><img src="https://res.cloudinary.com/celx/image/upload/v1570718446/vhmdnd4sf3f5w3burj4m.svg" alt=""></button></li>
<h4 class="c-estimate" >Create Estimate</h4>
<!-- <ul class="heading-container"> -->
<a class="next disabled" href="#" >NEXT</a>
</header>
<section>
<h1>What project are you estimating</h1>
<div class="cree">
<div class="lists">
<div class="box">
<h3 class="first-head"><h3>A previously created project</h3></p>
<p class="contents">Find estimate for the previously created project, by
doing so the estimate gets populated with some of the data
</p>
</div>
<div class="contents dropdown">
<select class="dropbtn" name="" onmouseout="verifyPath()" id="projectSelect">
<option>Select Project</option>
<option>Glacier Fintech App</option>
<option> AB Technology Solutions Branding</option>
</select>
<!-- <i class="fa fa-caret-down"></i> -->
</div>
</div>
</div>
<div class="cree">
<div class="lists glacier">
<div class="box">
<h3 class="first-head">A new project</h3>
<p class="contents">Create a new estimate and set up a new project <br />
based on the information
</p>
</div>
<div class="contents project">
<input class="l-proj" type="text" onmouseout="verifyPath()" placeholder= "Project Name" name="" id="createProject">
<br>
<span class="req">Required</span></div>
</div>
</div>
<button class="a-next disabled"><a href="#">NEXT</a></button>
</section>
</div>
<script>
let est_content = document.querySelector('#est_content');
let estimate_page = document.querySelector('#Create_estimate');
let hide = () => {
// estimate_page.classList.add('hidden');
document.querySelector('#Create_estimate').classList.remove('hidden');
document.querySelector('#estimate').classList.add('hidden');
}
est_content.addEventListener('click', hide );
document.querySelector('#close').addEventListener('click', () => {
document.querySelector('#estimate').classList.remove('hidden');
document.querySelector('#Create_estimate').classList.add('hidden');
});
//createProject = '';
function verifyPath(){
let createProject = document.getElementById('createProject').value;
let projectSelect = document.getElementById('projectSelect');
let ele = projectSelect.selectedIndex;
if ( createProject !== "" || ele !== 0 ){
document.querySelector('.a-next').style.background = '#0ABAB5';
document.querySelector('.next').style.background = '#0ABAB5';
document.querySelector('.a-next').classList.remove('disabled');
document.querySelector('.next').classList.remove('disabled');
} else {
//console.log('here works');
document.querySelector('.next').style.background = 'rgba(207, 204, 204, 0.4)';
document.querySelector('.next').classList.add('disabled');
document.querySelector('.a-next').style.background = 'rgba(207, 204, 204, 0.4)';
document.querySelector('.a-next').classList.add('disabled');
}
}
</script>
</body>
</html>