LawBot / src /apps /templates /woman.html
Vishwanath77's picture
Upload 78 files
b82f276 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shakti - Women's Empowerment Hub</title>
<link rel="stylesheet" href="/static/css/entrance.css">
<script src="/static/js/entrance.js" defer></script>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
:root {
--primary: #E91E63;
--secondary: #9C27B0;
--accent: #FF4081;
--dark: #2A0944;
--light: #F8BBD0;
}
* {
margin: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
background: linear-gradient(135deg, #fff5f7 0%, #f8f4ff 100%);
color: var(--dark);
}
.fir-generator-container {
position: fixed;
left: 30px;
top: 50%;
transform: translateY(-50%);
z-index: 999;
}
.fir-generator {
background: rgba(255, 255, 255, 0.95);
padding: 1.5rem;
border-radius: 15px;
box-shadow: 0 8px 32px rgba(233, 30, 99, 0.2);
width: 280px;
text-align: center;
backdrop-filter: blur(10px);
transition: transform 0.3s ease;
margin-top: -230px;
}
.fir-generator:hover {
transform: translateX(10px);
}
.fir-button {
background: var(--primary);
color: white;
padding: 0.8rem 1.5rem;
border: none;
border-radius: 25px;
cursor: pointer;
margin-top: 1rem;
display: inline-flex;
align-items: center;
gap: 8px;
font-weight: 500;
}
.fir-button:hover {
background: var(--accent);
}
.hero {
display: flex;
justify-content: center;
align-items: center;
min-height: 70vh;
}
@media (max-width: 768px) {
.fir-generator-container {
position: static;
transform: none;
margin: 2rem auto;
width: 90%;
}
.hero {
flex-direction: column;
padding-top: 6rem;
}
}
.emergency-alert {
position: fixed;
bottom: 30px;
right: 30px;
background: var(--primary);
color: white;
padding: 20px;
border-radius: 50px;
box-shadow: 0 8px 24px rgba(233, 30, 99, 0.3);
cursor: pointer;
z-index: 1000;
display: flex;
align-items: center;
gap: 10px;
}
.navbar {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
padding: 1rem 5%;
position: sticky;
top: 0;
z-index: 100;
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
.hero {
display: flex;
justify-content: center;
align-items: center;
min-height: 70vh;
text-align: center;
color: white;
background: url('/images/woman.jpeg') no-repeat center center/cover;
padding: 5%;
}
.grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
padding: 4rem 5%;
}
.feature-card {
background: rgba(255, 255, 255, 0.9);
padding: 2rem;
border-radius: 20px;
backdrop-filter: blur(10px);
transition: transform 0.3s ease;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}
.feature-card:hover {
transform: translateY(-10px);
}
.law-section {
background: var(--dark);
color: white;
padding: 4rem 5%;
margin: 4rem 0;
}
.quick-links {
flex-wrap: wrap;
gap: 1rem;
margin: 2rem 0;
}
.quick-linkss {
flex-wrap: wrap;
gap: 1rem;
margin: 0;
}
.quick-link {
background: var(--light);
padding: 0.8rem 1.5rem;
border-radius: 50px;
text-decoration: none;
color: var(--dark);
transition: all 0.3s ease;
}
.quick-link:hover {
background: var(--accent);
color: white;
}
.title-container {
display: flex;
justify-content: space-between;
/* Places text on the same line */
align-items: center;
/* Aligns vertically */
padding: 0;
/* Adds space on both sides */
}
.chatbot-text {
color: white;
font-weight: bold;
font-size: 20px;
/* Bigger size */
text-transform: uppercase;
}
.chatbot-container {
text-align: right;
padding-right: 70px;
margin-top: 20px;
}
.chatbot-button {
background-color: #4CAF50;
/* Green color */
color: white;
padding: 10px 15px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 16px;
text-decoration: none;
display: inline-block;
}
.chatbot-button:hover {
background-color: #45a049;
/* Darker green on hover */
}
footer {
background: var(--dark);
color: white;
padding: 4rem 5%;
text-align: center;
}
.safety-button {
background: var(--primary);
color: white;
padding: 1rem 2rem;
border: none;
border-radius: 50px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 10px;
transition: all 0.3s ease;
}
@media (max-width: 768px) {
.hero {
padding: 4rem 5%;
}
}
/* User Profile Dropdown Styles */
.top-header-bar {
position: fixed;
top: 20px;
right: 30px;
z-index: 1001;
display: flex;
align-items: center;
gap: 15px;
}
.user-profile-menu {
position: relative;
display: flex;
align-items: center;
cursor: pointer;
}
.profile-icon-btn {
width: 42px;
height: 42px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary), var(--secondary));
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.2rem;
border: 2px solid rgba(255, 255, 255, 0.4);
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}
.profile-icon-btn:hover {
transform: scale(1.1);
border-color: white;
box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}
.dropdown-menu {
position: absolute;
top: 120%;
right: 0;
width: 200px;
background: white;
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
overflow: hidden;
display: none;
flex-direction: column;
border: 1px solid rgba(233, 30, 99, 0.1);
animation: dropdownFade 0.3s ease;
}
@keyframes dropdownFade {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.dropdown-menu.show {
display: flex;
}
.dropdown-item {
padding: 12px 20px;
font-size: 0.95rem;
color: var(--dark);
text-decoration: none;
display: flex;
align-items: center;
gap: 10px;
transition: background 0.2s;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.dropdown-item:last-child {
border-bottom: none;
}
.dropdown-item:hover {
background: rgba(233, 30, 99, 0.05);
}
.dropdown-item.role-info {
font-weight: 600;
color: var(--secondary);
background: rgba(156, 39, 176, 0.05);
cursor: default;
}
.logout-action {
color: #d32f2f;
font-weight: 500;
}
.logout-action:hover {
background: rgba(211, 47, 47, 0.05);
}
</style>
</head>
<body>
<!-- Top Header Bar with Logout Dropdown -->
<div class="top-header-bar">
<div class="user-profile-menu" id="userProfileMenu">
<div class="profile-icon-btn">
<i class="fas fa-user"></i>
</div>
<div class="dropdown-menu" id="dropdownMenu">
<div class="dropdown-item role-info">
Role: Woman
</div>
<a href="#" class="dropdown-item logout-action" onclick="logout()">
<i class="fas fa-sign-out-alt"></i>
Logout
</a>
</div>
</div>
</div>
<div class="fir-generator-container">
<div class="fir-generator">
<h3>File Instant FIR</h3>
<p>In case of harassment or violence, generate immediate FIR report</p>
<button class="fir-button" onclick="window.location.href='/FIR.html'">
<i class="fas fa-file-alt"></i>
Generate FIR
</button>
</div>
</div>
<!-- Emergency Button -->
<div class="emergency-alert" onclick="triggerEmergency()">
<i class="fas fa-bell"></i>
Emergency Alert
</div>
<!-- Hero Section -->
<section class="hero">
<div class="hero-content">
<h1>Empowering Indian Women</h1>
<p>Your Safety, Rights, and Growth Hub</p>
<div class="quick-links">
<a href="/safetytips.html" class="quick-link">Safety Tips</a>
<a href="/legalrights.html" class="quick-link">Legal Rights</a>
<a href="/resources.html" class="quick-link">Health Resources</a>
</div>
</div>
</section>
<!-- Main Content -->
<div class="grid-container">
<!-- Safety Section -->
<div class="feature-card">
<h3>🚨 Immediate Safety</h3>
<ul>
<li>Panic Button to Nearest Police Station</li>
<li>Live Location Sharing</li>
<li>Safe Ride Integration</li>
</ul>
<button class="safety-button">
<i class="fas fa-shield-alt"></i>
Activate Protection
</button>
</div>
<!-- Legal Rights -->
<div class="feature-card">
<h3>⚖️ Legal Empowerment</h3>
<ul>
<li>PWDVA 2005 Protection</li>
<li>Section 498A (Dowry)</li>
<li>POSH Act 2013</li>
</ul>
<button class="safety-button">
<i class="fas fa-balance-scale"></i>
Know Your Rights
</button>
</div>
<!-- Health Section -->
<div class="feature-card">
<h3>❤️ Health & Wellness</h3>
<ul>
<li>Period Tracker</li>
<li>Mental Health Support</li>
<li>Maternal Care Resources</li>
</ul>
<button class="safety-button">
<i class="fas fa-heartbeat"></i>
Health Portal
</button>
</div>
</div>
<!-- Legal Section -->
<section class="law-section">
<h2>Key Indian Laws for Women </h2>
<h2 style="text-align: right;">Need any assistance? </h2>
<div class="quick-linkss">
<a href="#" class="quick-link">Domestic Violence Act</a>
<a href="#" class="quick-link">Sexual Harassment Law</a>
<a href="#" class="quick-link">Property Rights</a>
</div>
<div class="chatbot-container">
<a href="/womanchatbot.html" class="chatbot-button"> Visit Lawbot</a>
</div>
</section>
<footer class="professional-footer"
style="background: var(--dark); color: white; padding: 2rem 5%; text-align: center; border-top: 1px solid rgba(255,255,255,0.1);">
<div style="max-width: 1200px; margin: 0 auto;">
<div style="margin-bottom: 2rem;">
<p style="margin-bottom: 0.5rem; font-size: 1.1rem;">
<i class="fas fa-phone-alt" style="margin-right: 8px;"></i>24/7 Helpline: 112
</p>
<p style="font-size: 1.1rem;">
<i class="fas fa-female" style="margin-right: 8px;"></i>Women's Helpline: 1091
</p>
</div>
<p>&copy; 2026 Law Bot AI | Managed by <a href="https://www.linkedin.com/in/vishwanath77" target="_blank"
style="color: var(--accent); text-decoration: none;">Vishwanath</a></p>
</div>
</footer>
<script>
// User Profile Dropdown
const userProfileMenu = document.getElementById('userProfileMenu');
const dropdownMenu = document.getElementById('dropdownMenu');
userProfileMenu.addEventListener('click', (e) => {
e.stopPropagation();
dropdownMenu.classList.toggle('show');
});
document.addEventListener('click', () => {
if (dropdownMenu.classList.contains('show')) {
dropdownMenu.classList.remove('show');
}
});
// Logout Functionality
function logout() {
if (window.dashboardEntrance) {
window.dashboardEntrance.logout();
} else {
localStorage.removeItem('token');
window.location.href = '/role';
}
}
// Emergency Functionality
function openFIRForm() {
// Redirect to FIR form page or show modal
window.location.href = 'FIR.html';
// For demo purpose:
alert('Redirecting to FIR submission form...');
}
// Emergency Functionality
function triggerEmergency() {
navigator.geolocation.getCurrentPosition(position => {
const lat = position.coords.latitude;
const lng = position.coords.longitude;
// Send alert to nearest police station
alert(`Emergency alert sent to authorities!\nCoordinates: ${lat},${lng}`);
// Optional: Connect to backend API
// fetch('/emergency', { method: 'POST', body: JSON.stringify({ lat, lng }) });
});
}
// Add smooth scroll
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
</script>
</body>
</html>