rwssdcomplient / complaints.html
Nagadevan's picture
create android apps and website for customer complaints management and redressal system for water supply Infrastructure DBOT project in yadgir district in karnataka. - Initial Deployment
dfd5bc8 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>File Complaint - Yadgir Water Supply</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', sans-serif;
}
.map-container {
height: 300px;
width: 100%;
}
</style>
</head>
<body class="bg-gray-50">
<!-- Header -->
<header class="bg-blue-600 text-white shadow-lg">
<div class="container mx-auto px-4 py-6">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="droplet" class="w-8 h-8"></i>
<h1 class="text-2xl font-bold">Yadgir Water Supply</h1>
</div>
<nav class="hidden md:flex space-x-8">
<a href="index.html" class="hover:text-blue-200 font-medium">Home</a>
<a href="#" class="text-blue-200 font-medium">File Complaint</a>
<a href="track.html" class="hover:text-blue-200 font-medium">Track Complaint</a>
<a href="about.html" class="hover:text-blue-200 font-medium">About</a>
</nav>
<button class="md:hidden" id="mobile-menu-button">
<i data-feather="menu" class="w-6 h-6"></i>
</button>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<div class="max-w-4xl mx-auto bg-white rounded-xl shadow-md overflow-hidden" data-aos="fade-up">
<div class="bg-blue-600 text-white p-6">
<h1 class="text-2xl font-bold">File a Water Supply Complaint</h1>
<p class="mt-2">Report issues with water supply in your area</p>
</div>
<form class="p-6 space-y-6">
<div class="grid md:grid-cols-2 gap-6">
<div>
<label for="name" class="block text-gray-700 font-medium mb-2">Full Name</label>
<input type="text" id="name" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" required>
</div>
<div>
<label for="phone" class="block text-gray-700 font-medium mb-2">Phone Number</label>
<input type="tel" id="phone" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" required>
</div>
</div>
<div>
<label for="email" class="block text-gray-700 font-medium mb-2">Email Address</label>
<input type="email" id="email" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
</div>
<div class="grid md:grid-cols-2 gap-6">
<div>
<label for="village" class="block text-gray-700 font-medium mb-2">Village/Town</label>
<select id="village" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" required>
<option value="">Select your village</option>
<option value="yadgir">Yadgir</option>
<option value="shahapur">Shahapur</option>
<option value="gurmitkal">Gurmitkal</option>
<option value="hunsagi">Hunsagi</option>
<option value="other">Other</option>
</select>
</div>
<div>
<label for="ward" class="block text-gray-700 font-medium mb-2">Ward Number</label>
<input type="text" id="ward" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
</div>
</div>
<div>
<label for="address" class="block text-gray-700 font-medium mb-2">Full Address</label>
<textarea id="address" rows="3" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" required></textarea>
</div>
<div>
<label class="block text-gray-700 font-medium mb-2">Select Complaint Type</label>
<div class="grid md:grid-cols-2 gap-4">
<label class="flex items-center space-x-3 bg-gray-50 p-4 rounded-lg cursor-pointer hover:bg-gray-100">
<input type="radio" name="complaintType" value="no_water" class="h-5 w-5 text-blue-600">
<span>No Water Supply</span>
</label>
<label class="flex items-center space-x-3 bg-gray-50 p-4 rounded-lg cursor-pointer hover:bg-gray-100">
<input type="radio" name="complaintType" value="low_pressure" class="h-5 w-5 text-blue-600">
<span>Low Water Pressure</span>
</label>
<label class="flex items-center space-x-3 bg-gray-50 p-4 rounded-lg cursor-pointer hover:bg-gray-100">
<input type="radio" name="complaintType" value="leakage" class="h-5 w-5 text-blue-600">
<span>Pipe Leakage</span>
</label>
<label class="flex items-center space-x-3 bg-gray-50 p-4 rounded-lg cursor-pointer hover:bg-gray-100">
<input type="radio" name="complaintType" value="quality" class="h-5 w-5 text-blue-600">
<span>Water Quality Issue</span>
</label>
<label class="flex items-center space-x-3 bg-gray-50 p-4 rounded-lg cursor-pointer hover:bg-gray-100">
<input type="radio" name="complaintType" value="other" class="h-5 w-5 text-blue-600">
<span>Other Issue</span>
</label>
</div>
</div>
<div>
<label for="description" class="block text-gray-700 font-medium mb-2">Complaint Description</label>
<textarea id="description" rows="4" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" placeholder="Please describe your issue in detail..." required></textarea>
</div>
<div>
<label class="block text-gray-700 font-medium mb-2">Location on Map</label>
<div class="map-container bg-gray-200 rounded-lg mb-2" id="map">
<!-- Map will be loaded here -->
</div>
<button type="button" class="text-blue-600 hover:text-blue-800 flex items-center">
<i data-feather="map-pin" class="w-4 h-4 mr-1"></i>
<span>Use Current Location</span>
</button>
</div>
<div>
<label for="photo" class="block text-gray-700 font-medium mb-2">Upload Photo (Optional)</label>
<div class="flex items-center justify-center w-full">
<label class="flex flex-col items-center justify-center w-full h-32 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 hover:bg-gray-100">
<div class="flex flex-col items-center justify-center pt-5 pb-6">
<i data-feather="upload" class="w-8 h-8 text-gray-500 mb-2"></i>
<p class="text-sm text-gray-500">Click to upload or drag and drop</p>
</div>
<input id="photo" type="file" class="hidden" accept="image/*">
</label>
</div>
</div>
<div class="flex items-center">
<input id="terms" type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded" required>
<label for="terms" class="ml-2 block text-sm text-gray-700">
I agree to the <a href="#" class="text-blue-600 hover:text-blue-800">terms and conditions</a>
</label>
</div>
<div class="pt-4">
<button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-4 rounded-lg shadow-md transition duration-300 flex items-center justify-center">
<i data-feather="send" class="w-5 h-5 mr-2"></i>
Submit Complaint
</button>
</div>
</form>
</div>
</main>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-8 mt-12">
<div class="container mx-auto px-4">
<div class="grid md:grid-cols-4 gap-8">
<div>
<h3 class="text-xl font-bold mb-4">Yadgir Water Supply</h3>
<p class="text-gray-400">A DBOT project for efficient water supply complaint management in Yadgir District, Karnataka.</p>
</div>
<div>
<h4 class="font-bold mb-4">Quick Links</h4>
<ul class="space-y-2">
<li><a href="index.html" class="text-gray-400 hover:text-white transition">Home</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">File Complaint</a></li>
<li><a href="track.html" class="text-gray-400 hover:text-white transition">Track Complaint</a></li>
<li><a href="about.html" class="text-gray-400 hover:text-white transition">About Us</a></li>
</ul>
</div>
<div>
<h4 class="font-bold mb-4">Contact</h4>
<ul class="space-y-2 text-gray-400">
<li class="flex items-center"><i data-feather="mail" class="w-4 h-4 mr-2"></i> complaints@yadgirwater.org</li>
<li class="flex items-center"><i data-feather="phone" class="w-4 h-4 mr-2"></i> 080-23456789</li>
<li class="flex items-center"><i data-feather="map-pin" class="w-4 h-4 mr-2"></i> Yadgir, Karnataka</li>
</ul>
</div>
<div>
<h4 class="font-bold mb-4">Follow Us</h4>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="facebook"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="instagram"></i></a>
</div>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-6 text-center text-gray-400">
<p>&copy; 2023 Yadgir Water Supply DBOT Project. All rights reserved.</p>
</div>
</div>
</footer>
<!-- Mobile Menu -->
<div id="mobile-menu" class="fixed inset-0 bg-black bg-opacity-75 z-50 hidden">
<div class="absolute right-0 top-0 w-64 h-full bg-white shadow-lg">
<div class="p-4 flex justify-end">
<button id="close-mobile-menu">
<i data-feather="x" class="w-6 h-6"></i>
</button>
</div>
<nav class="flex flex-col p-4 space-y-4">
<a href="index.html" class="text-gray-800 hover:text-blue-600 font-medium py-2">Home</a>
<a href="#" class="text-blue-600 font-medium py-2">File Complaint</a>
<a href="track.html" class="text-gray-800 hover:text-blue-600 font-medium py-2">Track Complaint</a>
<a href="about.html" class="text-gray-800 hover:text-blue-600 font-medium py-2">About</a>
</nav>
</div>
</div>
<script>
AOS.init();
feather.replace();
// Mobile menu toggle
const mobileMenuButton = document.getElementById('mobile-menu-button');
const mobileMenu = document.getElementById('mobile-menu');
const closeMobileMenu = document.getElementById('close-mobile-menu');
mobileMenuButton.addEventListener('click', () => {
mobileMenu.classList.remove('hidden');
});
closeMobileMenu.addEventListener('click', () => {
mobileMenu.classList.add('hidden');
});
// Simple map initialization placeholder
document.addEventListener('DOMContentLoaded', function() {
const mapElement = document.getElementById('map');
mapElement.innerHTML = '<div class="flex items-center justify-center h-full text-gray-500"><i data-feather="map" class="w-12 h-12 mr-2"></i><span>Map will load here</span></div>';
feather.replace();
});
</script>
</body>
</html>