Draw Employee
Draw Employee
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<style>
/*employee*/
.sign-in-form {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 20px;
border-radius: 8px;
}
.modal-header, .modal-footer {
padding: 20px;
}
.modal-body {
padding: 0 20px;
}
h4 {
font-size: 24px;
}
.modal-title{
font: 100px;
}
.center-text {
text-align: center;
}
.form-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
padding: 20px;
}
.form-column {
display: flex;
flex-direction: column;
}
.input-field {
max-width: 380px;
width: 100%;
background-color: #f0f0f0;
margin: 10px 0;
height: 55px;
border-radius: 55px;
display: grid;
grid-template-columns: 15% 85%;
padding: 0 0.4rem;
position: relative;
}
.input-field i {
text-align: center;
line-height: 55px;
color: #acacac;
transition: 0.5s;
font-size: 1.1rem;
}
.input-field input {
background: none;
outline: none;
border: none;
line-height: 1;
font-weight: 600;
font-size: 15px;
color: #333;
}
.input-field input::placeholder {
color: #aaa;
font-weight: 500;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
font-weight: bold;
margin-bottom: 5px;
display: block;
}
.form-group select:focus {
outline: none;
border-color: #007bff;
}
.form-group small {
color: #666;
font-size: 12.5px;
}
.upload {
text-align: center;
align-items: center;
justify-content: center;
margin-bottom: 15px;
position: relative;
display: flex;
}
.upload img {
width: 100px;
height: 100px;
border-radius: 50%;
border: 2px solid #ccc;
object-fit: cover;
}
.upload .leftRound {
right: auto;
left: 0;
}
.upload .fa {
color: white;
}
.upload input {
position: absolute;
transform: scale(2);
opacity: 0;
}
.modal-footer .btn {
width: 100%;
padding: 10px;
font-size: 16px;
border-radius: 4px;
color: #fff;
border: none;
cursor: pointer;
transition: background-color 0.3s;
}
.modal-footer .btn:hover {
background-color: #0056b3;
}
.input-field {
max-width: 100%;
height: 50px;
border-radius: 25px;
margin: 8px 0;
}
.input-field i {
font-size: 1rem;
line-height: 50px;
}
.input-field input {
font-size: 14px;
}
.modal-title {
font-size: 20px;
margin-bottom: 15px;
}
.upload img {
width: 80px;
height: 80px;
}
.form-group label {
font-size: 14px;
}
.form-group select,
.form-group input[type="file"] {
padding: 8px;
font-size: 14px;
}
.modal-footer .btn {
font-size: 16px;
padding: 12px;
border-radius: 25px;
}
}
.input-field i {
font-size: 0.9rem;
line-height: 45px;
}
.input-field input {
font-size: 13px;
}
.modal-title {
font-size: 18px;
}
.upload img {
width: 70px;
height: 70px;
}
.form-group label {
font-size: 13px;
}
.form-group select,
.form-group input[type="file"] {
padding: 7px;
font-size: 13px;
}
.form-group small {
font-size: 11px;
}
.modal-footer .btn {
font-size: 14px;
padding: 10px;
}
}
</style>
<div class="input-field">
<i class="fas fa-lock"></i>
<input type="password" placeholder="Re-type password again"
name="confirmpassword" required />
</div>
</div>
<div class="form-column">
<div class="input-field">
<i class="fas fa-envelope"></i>
<input type="email" placeholder="Enter your email address"
name="email" required />
</div>
<div class="form-group">
<label for="gender"><i class="fas fa-genderless"></i>
Gender</label>
<select name="gender" id="gender" required>
<option value="" disabled selected>Select your
gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
</select>
</div>
<div class="form-group">
<label for="valid_id"><i class="fas fa-id-card"></i>
Upload/Enter your valid ID</label>
<input type="file" id="valid_id" name="valid_id"
required />
<small class="form-text text-muted" style="font-size:
12.5px;">
Please upload a valid government-issued ID (e.g.,
passport, driver's license, or national ID).
</small>
</div>
</form>
<script>
document.addEventListener('DOMContentLoaded', function () {
const togglePasswordVisibility = (toggleId, passwordId) => {
const togglePassword = document.querySelector(toggleId);
const passwordField = document.querySelector(passwordId);
togglePassword.addEventListener('click', function () {
const type = passwordField.getAttribute('type') === 'password' ? 'text' :
'password';
passwordField.setAttribute('type', type);