-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskill_developer.html
More file actions
194 lines (168 loc) · 5.49 KB
/
skill_developer.html
File metadata and controls
194 lines (168 loc) · 5.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Apply Now – Elicit Interiors</title>
<style>
* {
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
}
body {
background: #fdfdfd;
padding: 2rem;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.form-wrapper {
background: #fff;
padding: 2rem 2.5rem;
border-radius: 1.2rem;
max-width: 550px;
width: 100%;
box-shadow: 0 0 20px rgba(0,0,0,0.08);
border: 1px solid #eee;
}
h2.section-common-heading {
font-size: 2rem;
margin-bottom: 1.5rem;
text-align: center;
color: #141313;
}
.hiringForm_field {
margin-bottom: 1.2rem;
}
.hiringForm_field label {
display: block;
font-weight: 500;
margin-bottom: 0.5rem;
color: #555;
}
.hiringForm_field input,
.hiringForm_field select,
.hiringForm_field textarea {
width: 100%;
padding: 0.75rem 1rem;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 0.6rem;
background-color: #fafafa;
transition: border 0.3s;
}
#hiringForm_submit {
background-color: #0b61d1;
color: #fff;
border: none;
padding: 0.9rem 1.5rem;
border-radius: 0.6rem;
font-size: 1rem;
cursor: pointer;
width: 100%;
margin-top: 0.5rem;
transition: background 0.3s ease;
}
#hiringForm_submit:hover {
background-color: #0b61d1;
}
#hiringForm_success {
color: #28a745;
font-weight: 600;
text-align: center;
display: none;
margin-top: 1.2rem;
animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-5px); }
to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
body {
padding: 1rem;
}
.form-wrapper {
padding: 1.5rem;
}
}
</style>
</head>
<body>
<div class="form-wrapper">
<form id="hiringForm_form">
<h2 class="section-common-heading">Apply</h2>
<div class="hiringForm_field">
<label for="hiringForm_name">Full Name</label>
<input type="text" id="hiringForm_name" name="name" required>
</div>
<div class="hiringForm_field">
<label for="hiringForm_email">Email</label>
<input type="email" id="hiringForm_email" name="email" required oninput="validateEmail()">
<small id="email_error">Invalid email format</small>
</div>
<div class="hiringForm_field">
<label for="hiringForm_phone">Phone Number</label>
<input type="tel" id="hiringForm_phone" name="phone" required oninput="validatePhone()">
<small id="phone_error">Invalid phone format (10 digits)</small>
</div>
<div class="hiringForm_field">
<label for="hiringForm_position">Position Applied For</label>
<select id="hiringForm_position" name="position" required>
<option value="">Select a position</option>
<option value="Interior Designer">Interior Designer</option>
<option value="3D Visualizer">3D Visualizer</option>
<option value="Site Supervisor">Site Supervisor</option>
<option value="Vendor / Carpenter">Vendor / Carpenter</option>
</select>
</div>
<div class="hiringForm_field">
<label for="hiringForm_resume">Portfolio or Resume Link</label>
<input type="url" id="hiringForm_resume" name="resume" placeholder="Google Drive / Dropbox etc." required>
</div>
<div class="hiringForm_field">
<label for="hiringForm_message">Why do you want to join us?</label>
<textarea id="hiringForm_message" name="message" rows="4"></textarea>
</div>
<button id="hiringForm_submit" type="submit">Submit Application</button>
<p id="hiringForm_success">✅ Thank you! Your application has been received.</p>
</form>
</div>
<script>
const scriptURL = 'https://script.google.com/macros/s/AKfycbwS69NcWquwgZ0IUlUYCEyU-oJVWN4Gzi88rHgtfYk37Ya28RfDXw4KHLryMejVAd9A/exec';
const form = document.getElementById('hiringForm_form');
const successMessage = document.getElementById('hiringForm_success');
form.addEventListener('submit', e => {
e.preventDefault();
fetch(scriptURL, { method: 'POST', body: new FormData(form) })
.then(response => {
if (response.ok) {
successMessage.style.display = 'block';
form.reset();
} else {
alert("❌ Something went wrong. Please try again.");
}
})
.catch(error => {
console.error('Error!', error.message);
alert("❌ Something went wrong. Please try again.");
});
});
function validateEmail() {
const email = document.getElementById("hiringForm_email").value;
const error = document.getElementById("email_error");
const regex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
error.style.display = regex.test(email) ? "none" : "inline";
}
function validatePhone() {
const phone = document.getElementById("hiringForm_phone").value;
const error = document.getElementById("phone_error");
const regex = /^[0-9]{10}$/;
error.style.display = regex.test(phone) ? "none" : "inline";
}
</script>
</body>
</html>