-
Notifications
You must be signed in to change notification settings - Fork 0
/
resume-page.html
146 lines (134 loc) · 4.15 KB
/
resume-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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Exceptional Resume Creator</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1 class="main-page-heading">Submit Your Resume Information</h1>
<div class="input-form">
<input
class="input"
type="text"
id="user-input"
placeholder="Enter your Name..."
required
/>
<input
class="input"
type="text"
id="user-email"
placeholder="Enter your Email..."
/>
<input
class="input"
type="text"
id="user-phone"
placeholder="Enter your Phone..."
/>
<input
class="input"
type="text"
id="skillsInput"
placeholder="Enter skills ( Like HTML5,CSS3, JavaScript with comma separated)"
/>
<input
class="input"
type="text"
id="user-Education"
placeholder="Enter your Education..."
/>
<input
class="input"
type="text"
id="user-Experience"
placeholder="Enter your Experience..."
/>
<!-- File upload input -->
<input
class="input"
type="file"
id="imageUpload"
accept="image/*"
onchange="displayImage()"
/>
<div class="dialogue">
<p >Your resume will be created below upon submission<img class="sticker" src="/img/giphy1.gif" alt=""> </p>
</div>
<button class="generate-btn" onclick="updateName()">
Create Resume
</button>
</div>
<div class="resume">
<h1>Your Resume</h1>
<p class="editable">
You can edit your resume by simply clicking on any section you'd like to update. :)
</p>
<div class="container">
<div class="left-info">
<!-- Display the image here -->
<div class="profile-cont">
<img
id="profile-image"
src=""
alt="Profile Image"
style="width: 200px; height: 200px; object-fit: cover"
/>
</div>
<div class="item-col">
<span class="heading">Email Address:</span>
<p id="email" contenteditable="true"></p>
</div>
<div class="item">
<span class="heading">Phone Number:</span>
<p id="phone" contenteditable="true"></p>
</div>
</div>
<div class="right-info">
<div class="item-col">
<div class="item">
<p id="name" contenteditable="true"></p>
</div>
<div class="title">Educational Information:</div>
<p id="user-edu" contenteditable="true"></p>
</div>
<div class="item-col">
<div class="title">Professional Experience:</div>
<p id="user-exp" contenteditable="true"></p>
<div class="item-col skills">
<div class="title">Core Competencies:</div>
<ul id="skillsList" contenteditable="true"></ul>
</div>
</div>
</div>
</div>
<div class="download-section">
<button id="download-resume">Download Your Resume</button>
</div>
<script>
// Function to handle image upload and display
function displayImage() {
const file = document.getElementById("imageUpload").files[0];
const reader = new FileReader();
reader.onloadend = function () {
document.getElementById("profile-image").src = reader.result;
};
if (file) {
reader.readAsDataURL(file);
}
}
// Download resume functionality
document
.getElementById("download-resume")
.addEventListener("click", () => {
const content = document.getElementById("content");
html2pdf().from(content).save();
});
</script>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.3/html2pdf.bundle.min.js"></script>
<script src="script.js"></script>
</body>
</html>