-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirst.html
More file actions
468 lines (355 loc) · 11.3 KB
/
Copy pathfirst.html
File metadata and controls
468 lines (355 loc) · 11.3 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
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
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home-simple CV Generator
</title>
<style>
* {
margin: 2px;
padding: 2px;
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
}
body {
background-color: #f3f4f6;
color: #333;
}
header {
text-align: center;
margin-bottom: 20px;
}
header h1{
font-size: 2em;
color:#007bff
}
header h2{
font-size: 1.2em;
color: #555;
}
nav a {
margin: 10px;
color: #007bff;
text-decoration: none;
font-weight: bold;
padding: 1px;
}
nav a:hover{
text-decoration: underline;
}
main {
max-width: 600px;
margin: 20px auto;
padding: 20px;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
form label {
display: block;
font-weight: bold;
color: #555;
margin-top: 15px;
}
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="te1"],
form textarea{
width: 100%;
padding: 10px;
margin-top: 5px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1em;
background-color: #f9f9f9;
}
form textarea{
height: 80px;
}
form button.btn {
display: block;
width: 100%;
padding: 12px;
margin-top: 20px;
font-size: 1em;
color: white;
background-color: #007bff;
border: none;
border-radius: 4px;
cursor: pointer;
}
form button.btn:hover{
background-color: #0056b3;
}
#templates{
display: flex;
justify-content: space-between;
gap: 20px;
}
.templates {
text-align: center;
}
.templates img {
width: 100%;
max-width: 200px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.templates button {
margin-top: 10px;
padding: 10px;
color: #007bff;
border: 1px solid #007bff;
border-radius: 4px;
background: none;
cursor: pointer;
}
.templates button:hover {
background-color: #007bff;
color: white;
}
#downloadBtn {
display: block;
width: 100%;
padding: 12px;
font-size: 1em;
color: white;
background-color: #28a745;
border: none;
border-radius: 4px;
cursor: pointer;
text-align: center;
}
#downloadBtn:hover {
background-color: #218838;
}
#faq h2 {
font-size: 1.2em;
color: #007bff;
margin-top: 20px;
}
#faq p {
margin-top: 10px;
color:#666;
}
.container {
width: 100%;
max-width: 400px;
padding: 20px;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.progress-bar {
text-align: center;
font-size: 0.9em;
color: #555;
margin-bottom: 20px;
}
header {
text-align: center;
margin-bottom: 20px;
}
header h1 {
font-size: 1.5em;
color: #333;
}
header p {
color: #666;
font-size: 0.9em;
}
form label {
display: block;
font-weight: bold;
color: #333;
margin-top: 15px;
}
form input[type="text"],
form select {
width: 100%;
padding: 10px;
margin-top: 5px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1em;
background-color: #f9f9f9;
}
.next-btn {
display: block;
width: 100%;
padding: 12px;
margin-top: 20px;
font-size: 1em;
color: white;
background-color: #007bff;
border: none;
border-radius: 4px;
cursor: pointer;
text-align: center;
}
</style>
</head>
<body>
<script>
document.getElementById("downloadBtn").addEventListener("click", function () {
// Create a link element
const link = document.createElement("a");
// Set the URL of the file you want to download
link.href = "cv.pdf"; // Replace "cv.pdf" with the path to your CV file
// Set the download attribute with a default filename
link.download = "My_CV.pdf";
// Check if it's a mobile device (basic check)
const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
if (isMobile) {
// Open the file in a new tab on mobile devices
link.target = "_blank";
}
// Append the link to the body
document.body.appendChild(link);
// Programmatically click the link to trigger the download
link.click();
// Remove the link from the document
document.body.removeChild(link);
});
</script>
<header>
<h1>Home Page</h1>
<h2>Welcome to the Simple CV Generator</h2>
<nav>
<a href="cv-builder.html">start Building</a>
<a href="template-selection.html">Templates</a>
<a href="help.html">Help</a>
<a href="about.html">About</a>
</nav><br><br>
<div class="progress-bar">
<span id="progress-text">Step 1 of 5</span>
</div>
</div>
</header>
<main>
<p>Generate a professional Cv in minutes.choose a template,enter your details and download it instantly.</p>
<a href="cv-builder.html"
class="btn">Get Started</a>
</main><br><br>
<div class="progress-bar">
<span id="progress-text">Step 2 of 5</span>
</div>
</div><br><br>
<header>
<h1>CV builder page</h1>
<h2>Build Your Cv</h2>
</header>
<main>
<form id="cvForm">
<label for="First Name"> FIRST NAME</label><br>
<input type="text" id="First Name"
placeholder="First Name"
name="First Name" required><br><br>
<label for="Sur Name">SURNAME</label><br>
<input type="text" id="SurName"
placeholder="surName"
name="SueName" required><br><br>
<label for="CITY">CITY</label><br>
<input type="text" id="City"
placeholder="City"
name="City" required><br><br>
<label for="COUNTRY"> COUNTRY</label><br>
<input type="text" id="Country"
placeholder="Country"
name="Country" required><br><br>
<label for="PIN CODE"> PIN CODE</label><br>
<input type="text" id="Pin Code"
placeholder="111000"
name="Pin Code" required><br><br>
<label for="Phone"> PHONE</label><br>
<input type="te1" id="Phone"
name="Phone" required placeholder="+91 0987654321"><br><br>
<label for="email">Email</label><br>
<input type="email" id="email"
placeholder="name@gmail.com"
name="email" required><br><br>
<button type="Next"
class="btn">Next</button><br><br>
<div class="progress-bar">
<span id="progress-text">Step 3 of 5</span>
</div>
</div><br>
<h1>Experience</h1>
<p>Start with your most recent job first. You can add volunteer work, internships, or extracurricular activities too.</p>
</header>
<form id="experienceForm">
<label for="jobTitle">Job Title</label>
<input type="text" id="jobTitle" name="jobTitle" placeholder="Job Title" required>
<label for="employer">Employer</label>
<input type="text" id="employer" name="employer" placeholder="Position" required>
<label for="city">City</label>
<input type="text" id="city" name="city" placeholder="City" required>
<label for="country">Country</label>
<input type="text" id="country" name="country" placeholder="India" required>
<button type="submit" class="next-btn">Next</button>
</form>
</div>
</form>
</main><br><br>
<div class="progress-bar">
<span id="progress-text">Step 4 of 5</span>
</div>
<header>
<h1>Template Selection Page</h1>
<h2>Select a Template</h2>
</header>
<main>
<section id="templates">
<div class="templates">
<img src="template1.jpg">
<br><br>
<a href="template1.pdf"
download="template1.pdf">
<button>Select Template1</button>
</a>
</div><br>
<div class="templates">
<img src="template2.jpg">
<br><br>
<a href="template2.pdf"
download="template2.pdf">
<button>Select Template2</button>
</a>
</div>
</section>
</main><br><br>
<div class="progress-bar">
<span id="progress-text">Step 5 of 5</span>
</div>
<header>
<h1>Preview and Download Page</h1>
<h2>preview your CV</h2>
</header>
<main>
<section id="Preview">
<!--CV preview content will go here-->
</section>
<button id="downloadBtn"
class="btn">Download Cv</button>
</main><br><br>
<header>
<h1>Help & FAQ Page</h1>
</header>
<main>
<section id="faq">
<h2>How to use this tool?</h2>
<p>Follow the steps on each page to build and download your Cv.</p>
<h2>Can I customize the templates?</h2>
<p>Currently,you can choose from predefined templates.</p>
</section>
</main><br><br>
<header>
<h1>About Us</h1>
</header>
<main>
This Simple Cv Generator was created to help users quickly create professional Cvs.Developed with HTMl,CSS,and JavaScript,this tool aims to simplify Cv creation for everyone.
</main>
</body>
</html>