Spaces:
Running
Running
all states
Browse files- index.html +13 -4
- user-dashboard.html +9 -5
- user-login.html +56 -101
- worker-dashboard.html +22 -7
- worker-login.html +24 -4
index.html
CHANGED
|
@@ -76,11 +76,20 @@
|
|
| 76 |
<script>
|
| 77 |
document.addEventListener('DOMContentLoaded', function() {
|
| 78 |
AOS.init({
|
| 79 |
-
duration:
|
| 80 |
-
easing: 'ease-out-
|
| 81 |
-
once: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
});
|
| 83 |
});
|
| 84 |
-
|
| 85 |
</body>
|
| 86 |
</html>
|
|
|
|
| 76 |
<script>
|
| 77 |
document.addEventListener('DOMContentLoaded', function() {
|
| 78 |
AOS.init({
|
| 79 |
+
duration: 1000,
|
| 80 |
+
easing: 'ease-in-out-quad',
|
| 81 |
+
once: true,
|
| 82 |
+
mirror: false,
|
| 83 |
+
offset: 120
|
| 84 |
+
});
|
| 85 |
+
|
| 86 |
+
// Smooth hover animations
|
| 87 |
+
const hoverElements = document.querySelectorAll('.hero-section, .login-card, .role-btn');
|
| 88 |
+
hoverElements.forEach(el => {
|
| 89 |
+
el.style.willChange = 'transform, box-shadow';
|
| 90 |
+
el.style.backfaceVisibility = 'hidden';
|
| 91 |
});
|
| 92 |
});
|
| 93 |
+
</script>
|
| 94 |
</body>
|
| 95 |
</html>
|
user-dashboard.html
CHANGED
|
@@ -107,13 +107,17 @@
|
|
| 107 |
<script src="https://unpkg.com/scrollreveal@4.0.9/dist/scrollreveal.min.js"></script>
|
| 108 |
<script>
|
| 109 |
ScrollReveal().reveal('.worker-card', {
|
| 110 |
-
delay:
|
| 111 |
-
interval:
|
| 112 |
origin: 'bottom',
|
| 113 |
-
distance: '
|
| 114 |
-
easing: 'cubic-bezier(0.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
});
|
| 116 |
-
|
| 117 |
<script>
|
| 118 |
// Initialize map
|
| 119 |
const map = L.map('map').setView([20.5937, 78.9629], 13);
|
|
|
|
| 107 |
<script src="https://unpkg.com/scrollreveal@4.0.9/dist/scrollreveal.min.js"></script>
|
| 108 |
<script>
|
| 109 |
ScrollReveal().reveal('.worker-card', {
|
| 110 |
+
delay: 150,
|
| 111 |
+
interval: 80,
|
| 112 |
origin: 'bottom',
|
| 113 |
+
distance: '30px',
|
| 114 |
+
easing: 'cubic-bezier(0.25, 0.1, 0.25, 1.5)',
|
| 115 |
+
scale: 0.95,
|
| 116 |
+
opacity: 0,
|
| 117 |
+
reset: false,
|
| 118 |
+
mobile: false
|
| 119 |
});
|
| 120 |
+
</script>
|
| 121 |
<script>
|
| 122 |
// Initialize map
|
| 123 |
const map = L.map('map').setView([20.5937, 78.9629], 13);
|
user-login.html
CHANGED
|
@@ -1,140 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<!doctype html>
|
| 2 |
<html>
|
| 3 |
<head>
|
| 4 |
<meta charset="utf-8" />
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
| 8 |
<style>
|
| 9 |
-
|
| 10 |
-
background
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
}
|
| 12 |
-
.login-
|
| 13 |
max-width: 500px;
|
| 14 |
margin: 50px auto;
|
| 15 |
padding: 30px;
|
| 16 |
-
background: white;
|
| 17 |
-
border-radius: 10px;
|
| 18 |
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
| 19 |
-
|
| 20 |
-
|
| 21 |
}
|
| 22 |
-
.login-
|
| 23 |
transform: translateY(-5px);
|
| 24 |
-
box-shadow: 0
|
| 25 |
}
|
| 26 |
-
.
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
}
|
| 31 |
</style>
|
| 32 |
</head>
|
| 33 |
<body>
|
| 34 |
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
| 35 |
<div class="container">
|
| 36 |
-
<a class="navbar-brand" href="
|
| 37 |
<div class="navbar-nav">
|
| 38 |
<a class="nav-link" href="worker-login.html">Worker Login</a>
|
| 39 |
-
<a class="nav-link
|
| 40 |
</div>
|
| 41 |
</div>
|
| 42 |
</nav>
|
| 43 |
|
| 44 |
-
<div class="
|
| 45 |
-
<div class="
|
| 46 |
-
<
|
| 47 |
-
<
|
| 48 |
-
<div class="mb-3">
|
| 49 |
-
<label for="userMobile" class="form-label">Mobile Number</label>
|
| 50 |
-
<input type="tel" class="form-control" id="userMobile" required pattern="[0-9]{10}">
|
| 51 |
-
</div>
|
| 52 |
-
|
| 53 |
-
<div class="mb-3">
|
| 54 |
-
<label for="userState" class="form-label">State</label>
|
| 55 |
-
<select class="form-select" id="userState" required>
|
| 56 |
-
<option value="">Select State</option>
|
| 57 |
-
</select>
|
| 58 |
-
</div>
|
| 59 |
-
|
| 60 |
-
<div class="mb-3">
|
| 61 |
-
<label for="userDistrict" class="form-label">District</label>
|
| 62 |
-
<select class="form-select" id="userDistrict" required disabled>
|
| 63 |
-
<option value="">Select District</option>
|
| 64 |
-
</select>
|
| 65 |
-
</div>
|
| 66 |
-
|
| 67 |
-
<div class="d-grid">
|
| 68 |
-
<button type="submit" class="btn btn-primary">Login</button>
|
| 69 |
-
</div>
|
| 70 |
-
</form>
|
| 71 |
</div>
|
| 72 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
| 74 |
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
|
| 75 |
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
|
| 76 |
<script>
|
| 77 |
document.addEventListener('DOMContentLoaded', function() {
|
| 78 |
AOS.init({
|
| 79 |
-
duration:
|
| 80 |
-
easing: 'ease-out-
|
|
|
|
|
|
|
|
|
|
| 81 |
});
|
| 82 |
-
});
|
| 83 |
-
</script>
|
| 84 |
-
<script>
|
| 85 |
-
// Indian states and districts data (same as worker login)
|
| 86 |
-
const statesData = {
|
| 87 |
-
"Andhra Pradesh": ["Anantapur", "Chittoor", "East Godavari", "Guntur", "Krishna", "Kurnool", "Nellore", "Prakasam", "Srikakulam", "Visakhapatnam", "Vizianagaram", "West Godavari", "YSR Kadapa"],
|
| 88 |
-
"Arunachal Pradesh": ["Anjaw", "Changlang", "Dibang Valley", "East Kameng", "East Siang", "Kamle", "Kra Daadi", "Kurung Kumey", "Lepa Rada", "Lohit", "Longding", "Lower Dibang Valley", "Lower Siang", "Lower Subansiri", "Namsai", "Pakke Kessang", "Papum Pare", "Shi Yomi", "Siang", "Tawang", "Tirap", "Upper Siang", "Upper Subansiri", "West Kameng", "West Siang"],
|
| 89 |
-
"Assam": ["Baksa", "Barpeta", "Biswanath", "Bongaigaon", "Cachar", "Charaideo", "Chirang", "Darrang", "Dhemaji", "Dhubri", "Dibrugarh", "Dima Hasao", "Goalpara", "Golaghat", "Hailakandi", "Hojai", "Jorhat", "Kamrup", "Kamrup Metropolitan", "Karbi Anglong", "Karimganj", "Kokrajhar", "Lakhimpur", "Majuli", "Morigaon", "Nagaon", "Nalbari", "Sivasagar", "Sonitpur", "South Salmara-Mankachar", "Tinsukia", "Udalguri", "West Karbi Anglong"],
|
| 90 |
-
// More states would be added here...
|
| 91 |
-
"West Bengal": ["Alipurduar", "Bankura", "Birbhum", "Cooch Behar", "Dakshin Dinajpur", "Darjeeling", "Hooghly", "Howrah", "Jalpaiguri", "Jhargram", "Kalimpong", "Kolkata", "Malda", "Murshidabad", "Nadia", "North 24 Parganas", "Paschim Bardhaman", "Paschim Medinipur", "Purba Bardhaman", "Purba Medinipur", "Purulia", "South 24 Parganas", "Uttar Dinajpur"]
|
| 92 |
-
};
|
| 93 |
-
|
| 94 |
-
// Populate states dropdown
|
| 95 |
-
const stateSelect = document.getElementById('userState');
|
| 96 |
-
Object.keys(statesData).sort().forEach(state => {
|
| 97 |
-
const option = document.createElement('option');
|
| 98 |
-
option.value = state;
|
| 99 |
-
option.textContent = state;
|
| 100 |
-
stateSelect.appendChild(option);
|
| 101 |
-
});
|
| 102 |
-
|
| 103 |
-
// Handle state change to populate districts
|
| 104 |
-
stateSelect.addEventListener('change', function() {
|
| 105 |
-
const districtSelect = document.getElementById('userDistrict');
|
| 106 |
-
districtSelect.innerHTML = '<option value="">Select District</option>';
|
| 107 |
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
districtSelect.appendChild(option);
|
| 115 |
-
});
|
| 116 |
-
} else {
|
| 117 |
-
districtSelect.disabled = true;
|
| 118 |
-
}
|
| 119 |
-
});
|
| 120 |
-
|
| 121 |
-
// Handle form submission
|
| 122 |
-
document.getElementById('userLoginForm').addEventListener('submit', function(e) {
|
| 123 |
-
e.preventDefault();
|
| 124 |
-
|
| 125 |
-
// Get form data
|
| 126 |
-
const formData = {
|
| 127 |
-
mobile: document.getElementById('userMobile').value,
|
| 128 |
-
state: document.getElementById('userState').value,
|
| 129 |
-
district: document.getElementById('userDistrict').value
|
| 130 |
-
};
|
| 131 |
-
|
| 132 |
-
// Store in localStorage
|
| 133 |
-
localStorage.setItem('userData', JSON.stringify(formData));
|
| 134 |
-
|
| 135 |
-
// Redirect to dashboard
|
| 136 |
-
window.location.href = 'user-dashboard.html';
|
| 137 |
});
|
| 138 |
-
|
| 139 |
</body>
|
| 140 |
-
</html>
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
|
| 4 |
<!doctype html>
|
| 5 |
<html>
|
| 6 |
<head>
|
| 7 |
<meta charset="utf-8" />
|
| 8 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 9 |
+
<title>WorkerConnect India</title>
|
| 10 |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 11 |
+
<link rel="stylesheet" href="style.css" />
|
| 12 |
<style>
|
| 13 |
+
.hero-section {
|
| 14 |
+
background: url('http://static.photos/construction/1200x630/1') no-repeat center center;
|
| 15 |
+
background-size: cover;
|
| 16 |
+
padding: 100px 0;
|
| 17 |
+
color: white;
|
| 18 |
+
text-align: center;
|
| 19 |
+
transition: all 0.5s ease;
|
| 20 |
+
}
|
| 21 |
+
.hero-section:hover {
|
| 22 |
+
transform: scale(1.01);
|
| 23 |
}
|
| 24 |
+
.login-card {
|
| 25 |
max-width: 500px;
|
| 26 |
margin: 50px auto;
|
| 27 |
padding: 30px;
|
|
|
|
|
|
|
| 28 |
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
| 29 |
+
border-radius: 10px;
|
| 30 |
+
transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
|
| 31 |
}
|
| 32 |
+
.login-card:hover {
|
| 33 |
transform: translateY(-5px);
|
| 34 |
+
box-shadow: 0 6px 16px rgba(0,0,0,0.15);
|
| 35 |
}
|
| 36 |
+
.role-btn {
|
| 37 |
+
margin: 10px;
|
| 38 |
+
padding: 15px 30px;
|
| 39 |
+
font-size: 1.1rem;
|
| 40 |
+
transition: all 0.3s ease;
|
| 41 |
+
}
|
| 42 |
+
.role-btn:hover {
|
| 43 |
+
transform: translateY(-3px);
|
| 44 |
+
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
| 45 |
}
|
| 46 |
</style>
|
| 47 |
</head>
|
| 48 |
<body>
|
| 49 |
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
| 50 |
<div class="container">
|
| 51 |
+
<a class="navbar-brand" href="#">WorkerConnect India</a>
|
| 52 |
<div class="navbar-nav">
|
| 53 |
<a class="nav-link" href="worker-login.html">Worker Login</a>
|
| 54 |
+
<a class="nav-link" href="user-login.html">User Login</a>
|
| 55 |
</div>
|
| 56 |
</div>
|
| 57 |
</nav>
|
| 58 |
|
| 59 |
+
<div class="hero-section">
|
| 60 |
+
<div class="container">
|
| 61 |
+
<h1 class="display-4">Connecting Workers Across India</h1>
|
| 62 |
+
<p class="lead">Find skilled workers in your locality or register as a worker to get more opportunities</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
</div>
|
| 64 |
</div>
|
| 65 |
+
|
| 66 |
+
<div class="container text-center my-5">
|
| 67 |
+
<h2>Are you a Worker or User?</h2>
|
| 68 |
+
<div class="d-flex justify-content-center">
|
| 69 |
+
<a href="worker-login.html" class="btn btn-primary role-btn">Worker Login/Register</a>
|
| 70 |
+
<a href="user-login.html" class="btn btn-success role-btn">User Login</a>
|
| 71 |
+
</div>
|
| 72 |
+
</div>
|
| 73 |
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
| 74 |
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
|
| 75 |
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
|
| 76 |
<script>
|
| 77 |
document.addEventListener('DOMContentLoaded', function() {
|
| 78 |
AOS.init({
|
| 79 |
+
duration: 1000,
|
| 80 |
+
easing: 'ease-in-out-quad',
|
| 81 |
+
once: true,
|
| 82 |
+
mirror: false,
|
| 83 |
+
offset: 120
|
| 84 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
|
| 86 |
+
// Smooth hover animations
|
| 87 |
+
const hoverElements = document.querySelectorAll('.hero-section, .login-card, .role-btn');
|
| 88 |
+
hoverElements.forEach(el => {
|
| 89 |
+
el.style.willChange = 'transform, box-shadow';
|
| 90 |
+
el.style.backfaceVisibility = 'hidden';
|
| 91 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
});
|
| 93 |
+
</script>
|
| 94 |
</body>
|
| 95 |
+
</html>
|
worker-dashboard.html
CHANGED
|
@@ -139,15 +139,30 @@
|
|
| 139 |
<script src="https://unpkg.com/gsap@3.12.2/dist/gsap.min.js"></script>
|
| 140 |
<script>
|
| 141 |
document.addEventListener('DOMContentLoaded', function() {
|
| 142 |
-
gsap.
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
});
|
| 149 |
});
|
| 150 |
-
|
| 151 |
<script>
|
| 152 |
// Initialize map
|
| 153 |
const map = L.map('map').setView([20.5937, 78.9629], 13); // Default to India coordinates
|
|
|
|
| 139 |
<script src="https://unpkg.com/gsap@3.12.2/dist/gsap.min.js"></script>
|
| 140 |
<script>
|
| 141 |
document.addEventListener('DOMContentLoaded', function() {
|
| 142 |
+
gsap.registerEffect({
|
| 143 |
+
name: "fadeSlide",
|
| 144 |
+
effect: (targets, config) => {
|
| 145 |
+
return gsap.from(targets, {
|
| 146 |
+
duration: 0.8,
|
| 147 |
+
y: 50,
|
| 148 |
+
opacity: 0,
|
| 149 |
+
stagger: 0.15,
|
| 150 |
+
ease: "back.out(1.2)",
|
| 151 |
+
immediateRender: false
|
| 152 |
+
});
|
| 153 |
+
}
|
| 154 |
+
});
|
| 155 |
+
|
| 156 |
+
gsap.effects.fadeSlide(".profile-card");
|
| 157 |
+
|
| 158 |
+
// Smooth hover animations
|
| 159 |
+
const cards = document.querySelectorAll('.worker-card');
|
| 160 |
+
cards.forEach(card => {
|
| 161 |
+
card.style.willChange = 'transform';
|
| 162 |
+
card.style.transformStyle = 'preserve-3d';
|
| 163 |
});
|
| 164 |
});
|
| 165 |
+
</script>
|
| 166 |
<script>
|
| 167 |
// Initialize map
|
| 168 |
const map = L.map('map').setView([20.5937, 78.9629], 13); // Default to India coordinates
|
worker-login.html
CHANGED
|
@@ -122,13 +122,33 @@
|
|
| 122 |
<script>
|
| 123 |
document.addEventListener('DOMContentLoaded', function() {
|
| 124 |
gsap.from(".form-container", {
|
| 125 |
-
duration:
|
| 126 |
-
y:
|
| 127 |
opacity: 0,
|
| 128 |
-
ease: "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
});
|
| 130 |
});
|
| 131 |
-
|
| 132 |
<script>
|
| 133 |
// Indian states and districts data
|
| 134 |
const statesData = {
|
|
|
|
| 122 |
<script>
|
| 123 |
document.addEventListener('DOMContentLoaded', function() {
|
| 124 |
gsap.from(".form-container", {
|
| 125 |
+
duration: 1,
|
| 126 |
+
y: 80,
|
| 127 |
opacity: 0,
|
| 128 |
+
ease: "elastic.out(1, 0.5)",
|
| 129 |
+
delay: 0.2
|
| 130 |
+
});
|
| 131 |
+
|
| 132 |
+
// Smooth form interactions
|
| 133 |
+
const inputs = document.querySelectorAll('input, select');
|
| 134 |
+
inputs.forEach(input => {
|
| 135 |
+
input.addEventListener('focus', () => {
|
| 136 |
+
gsap.to(input, {
|
| 137 |
+
duration: 0.3,
|
| 138 |
+
boxShadow: '0 0 0 3px rgba(13, 110, 253, 0.25)',
|
| 139 |
+
ease: "power2.out"
|
| 140 |
+
});
|
| 141 |
+
});
|
| 142 |
+
input.addEventListener('blur', () => {
|
| 143 |
+
gsap.to(input, {
|
| 144 |
+
duration: 0.3,
|
| 145 |
+
boxShadow: 'none',
|
| 146 |
+
ease: "power2.out"
|
| 147 |
+
});
|
| 148 |
+
});
|
| 149 |
});
|
| 150 |
});
|
| 151 |
+
</script>
|
| 152 |
<script>
|
| 153 |
// Indian states and districts data
|
| 154 |
const statesData = {
|