umar141 commited on
Commit
e68a081
·
verified ·
1 Parent(s): f362b73

Create a modern, clean, and user-friendly informational website called “FixMyRights”.

Browse files

Purpose:
FixMyRights helps common people understand their basic legal rights in simple, non-technical language. The platform is designed for users with no legal background and focuses on practical, real-life situations in India.

Target Users:
• Students
• Employees
• Daily workers
• Tenants
• Small business workers
• Anyone facing police, employer, landlord, or online fraud issues

Core Concept:
A “street-smart legal guide” — no lawyer jargon, no complex laws, only clear and actionable guidance.

Website Structure & Pages:

1. Home Page
• Hero section with headline:
“Know Your Rights. Speak with Confidence.”
• Subtext:
“Simple legal guidance for real-life problems — explained in plain language.”
• Situation selector cards:
- Police stopped me
- Salary not paid
- Rent / landlord issue
- Online fraud or scam
• Call-to-action button:
“Check Your Rights Now”

2. Situation Detail Page (Dynamic Template)
For each situation, show the following sections clearly:

• “What Are Your Rights?”
- Bullet points in very simple language

• “What You Can Say” (Important)
- Exact sentences users can speak
- Example:
“Sir, I am aware of my legal rights. Please tell me the reason in writing.”

• “What Is Illegal or Wrong?”
- Clear do’s and don’ts
- Highlight common exploitation tactics

• “How to Take Action”
- Step-by-step complaint process
- Include police complaint, labor office, cybercrime portal, etc.

• Disclaimer:
“This is general guidance, not legal advice.”

3. Pro Version Page
• Offer downloadable PDFs
• WhatsApp guidance support
• Priority access to updated guides
• Clear pricing section (placeholder)

4. Ethical Lawyers Directory
• List lawyers by city
• Verified and ethical badge
• Filter by issue type
• Contact button (no direct ads tone)

5. About Page
• Mission: Make legal awareness accessible to everyone
• Focus on empowerment and education

6. Footer
• Privacy Policy
• Terms of Use
• Contact
• Disclaimer

Design Guidelines:
• Minimal and clean layout
• Mobile-first responsive design
• Icons instead of heavy text
• Soft colors (blue / white / neutral)
• No aggressive ads
• Easy navigation for non-tech users

Tone of Content:
• Simple
• Confident
• Supportive
• Non-threatening
• No legal jargon

Technology Expectations:
• Static or dynamic informational website
• SEO-friendly
• Fast loading
• Accessible typography

Overall Goal:
Help users understand their rights, gain confidence, and know exactly what to say and what steps to take in difficult situations.

Files changed (6) hide show
  1. README.md +7 -4
  2. components/footer.js +66 -0
  3. components/navbar.js +86 -0
  4. index.html +120 -19
  5. script.js +24 -0
  6. style.css +31 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Legalease Guardian
3
- emoji: 🚀
4
  colorFrom: green
5
- colorTo: purple
 
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: LegalEase Guardian 🛡️
 
3
  colorFrom: green
4
+ colorTo: pink
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/footer.js ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .footer-link {
7
+ transition: color 0.2s ease;
8
+ }
9
+ .footer-link:hover {
10
+ color: #3b82f6;
11
+ }
12
+ </style>
13
+ <footer class="bg-gray-800 text-white py-12 px-4">
14
+ <div class="max-w-6xl mx-auto">
15
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
16
+ <div>
17
+ <h3 class="text-xl font-bold mb-4">FixMyRights</h3>
18
+ <p class="text-gray-400">Empowering you with simple legal knowledge for everyday situations.</p>
19
+ </div>
20
+ <div>
21
+ <h4 class="text-lg font-semibold mb-4">Quick Links</h4>
22
+ <ul class="space-y-2">
23
+ <li><a href="index.html" class="text-gray-400 footer-link">Home</a></li>
24
+ <li><a href="about.html" class="text-gray-400 footer-link">About Us</a></li>
25
+ <li><a href="lawyers.html" class="text-gray-400 footer-link">Find a Lawyer</a></li>
26
+ <li><a href="pro.html" class="text-gray-400 footer-link">Pro Version</a></li>
27
+ </ul>
28
+ </div>
29
+ <div>
30
+ <h4 class="text-lg font-semibold mb-4">Legal</h4>
31
+ <ul class="space-y-2">
32
+ <li><a href="privacy.html" class="text-gray-400 footer-link">Privacy Policy</a></li>
33
+ <li><a href="terms.html" class="text-gray-400 footer-link">Terms of Use</a></li>
34
+ <li><a href="disclaimer.html" class="text-gray-400 footer-link">Disclaimer</a></li>
35
+ </ul>
36
+ </div>
37
+ <div>
38
+ <h4 class="text-lg font-semibold mb-4">Contact</h4>
39
+ <ul class="space-y-2">
40
+ <li class="flex items-center text-gray-400">
41
+ <i data-feather="mail" class="mr-2"></i> help@fixmyrights.com
42
+ </li>
43
+ <li class="flex items-center text-gray-400">
44
+ <i data-feather="phone" class="mr-2"></i> +91 98765 43210
45
+ </li>
46
+ </ul>
47
+ </div>
48
+ </div>
49
+ <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
50
+ <p>&copy; <span id="current-year"></span> FixMyRights. All rights reserved.</p>
51
+ </div>
52
+ </div>
53
+ </footer>
54
+ <script>
55
+ document.addEventListener('DOMContentLoaded', function() {
56
+ const yearElement = this.shadowRoot.getElementById('current-year');
57
+ if (yearElement) {
58
+ yearElement.textContent = new Date().getFullYear();
59
+ }
60
+ feather.replace();
61
+ });
62
+ </script>
63
+ `;
64
+ }
65
+ }
66
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .nav-link {
7
+ position: relative;
8
+ }
9
+ .nav-link::after {
10
+ content: '';
11
+ position: absolute;
12
+ width: 0;
13
+ height: 2px;
14
+ bottom: -2px;
15
+ left: 0;
16
+ background-color: #3b82f6;
17
+ transition: width 0.3s ease;
18
+ }
19
+ .nav-link:hover::after {
20
+ width: 100%;
21
+ }
22
+ .mobile-menu {
23
+ transition: all 0.3s ease;
24
+ }
25
+ </style>
26
+ <nav class="bg-white shadow-sm">
27
+ <div class="max-w-6xl mx-auto px-4">
28
+ <div class="flex justify-between h-16">
29
+ <div class="flex items-center">
30
+ <a href="index.html" class="text-xl font-bold text-blue-600 flex items-center">
31
+ <i data-feather="shield" class="mr-2"></i>
32
+ FixMyRights
33
+ </a>
34
+ </div>
35
+
36
+ <!-- Desktop Navigation -->
37
+ <div class="hidden md:flex items-center space-x-8">
38
+ <a href="index.html" class="text-gray-700 hover:text-blue-600 nav-link">Home</a>
39
+ <a href="about.html" class="text-gray-700 hover:text-blue-600 nav-link">About</a>
40
+ <a href="lawyers.html" class="text-gray-700 hover:text-blue-600 nav-link">Lawyers</a>
41
+ <a href="pro.html" class="text-gray-700 hover:text-blue-600 nav-link">Pro Version</a>
42
+ <a href="contact.html" class="text-gray-700 hover:text-blue-600 nav-link">Contact</a>
43
+ </div>
44
+
45
+ <!-- Mobile menu button -->
46
+ <div class="md:hidden flex items-center">
47
+ <button id="mobile-menu-button" class="text-gray-700 hover:text-blue-600">
48
+ <i data-feather="menu"></i>
49
+ </button>
50
+ </div>
51
+ </div>
52
+ </div>
53
+
54
+ <!-- Mobile Menu -->
55
+ <div id="mobile-menu" class="mobile-menu hidden md:hidden bg-white border-t">
56
+ <div class="px-2 pt-2 pb-3 space-y-1">
57
+ <a href="index.html" class="block px-3 py-2 text-gray-700 hover:text-blue-600 hover:bg-blue-50 rounded-md">Home</a>
58
+ <a href="about.html" class="block px-3 py-2 text-gray-700 hover:text-blue-600 hover:bg-blue-50 rounded-md">About</a>
59
+ <a href="lawyers.html" class="block px-3 py-2 text-gray-700 hover:text-blue-600 hover:bg-blue-50 rounded-md">Lawyers</a>
60
+ <a href="pro.html" class="block px-3 py-2 text-gray-700 hover:text-blue-600 hover:bg-blue-50 rounded-md">Pro Version</a>
61
+ <a href="contact.html" class="block px-3 py-2 text-gray-700 hover:text-blue-600 hover:bg-blue-50 rounded-md">Contact</a>
62
+ </div>
63
+ </div>
64
+ </nav>
65
+ <script>
66
+ document.addEventListener('DOMContentLoaded', function() {
67
+ const mobileMenuButton = this.shadowRoot.getElementById('mobile-menu-button');
68
+ const mobileMenu = this.shadowRoot.getElementById('mobile-menu');
69
+
70
+ mobileMenuButton.addEventListener('click', function() {
71
+ mobileMenu.classList.toggle('hidden');
72
+ feather.replace();
73
+ });
74
+
75
+ // Close mobile menu when clicking outside
76
+ document.addEventListener('click', function(event) {
77
+ if (!event.target.closest('custom-navbar')) {
78
+ mobileMenu.classList.add('hidden');
79
+ }
80
+ });
81
+ });
82
+ </script>
83
+ `;
84
+ }
85
+ }
86
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,120 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>FixMyRights - Know Your Rights in Simple Terms</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <script src="components/navbar.js"></script>
12
+ <script src="components/footer.js"></script>
13
+ </head>
14
+ <body class="bg-gray-50">
15
+ <custom-navbar></custom-navbar>
16
+
17
+ <!-- Hero Section -->
18
+ <section class="bg-blue-600 text-white py-20 px-4">
19
+ <div class="max-w-4xl mx-auto text-center">
20
+ <h1 class="text-4xl md:text-5xl font-bold mb-4">Know Your Rights. Speak with Confidence.</h1>
21
+ <p class="text-xl md:text-2xl mb-8">Simple legal guidance for real-life problems — explained in plain language.</p>
22
+ <a href="#situations" class="bg-white text-blue-600 px-8 py-3 rounded-lg font-semibold hover:bg-blue-50 transition duration-300 inline-block">Check Your Rights Now</a>
23
+ </div>
24
+ </section>
25
+
26
+ <!-- Situation Cards -->
27
+ <section id="situations" class="py-16 px-4 max-w-6xl mx-auto">
28
+ <h2 class="text-3xl font-bold text-center mb-12 text-gray-800">What's Your Situation?</h2>
29
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
30
+ <!-- Card 1 -->
31
+ <a href="situation.html?type=police" class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition duration-300">
32
+ <div class="p-6">
33
+ <div class="bg-blue-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
34
+ <i data-feather="shield" class="text-blue-600"></i>
35
+ </div>
36
+ <h3 class="text-xl font-semibold mb-2 text-gray-800">Police stopped me</h3>
37
+ <p class="text-gray-600">Know what you can and can't do when stopped by police</p>
38
+ </div>
39
+ </a>
40
+
41
+ <!-- Card 2 -->
42
+ <a href="situation.html?type=salary" class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition duration-300">
43
+ <div class="p-6">
44
+ <div class="bg-blue-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
45
+ <i data-feather="dollar-sign" class="text-blue-600"></i>
46
+ </div>
47
+ <h3 class="text-xl font-semibold mb-2 text-gray-800">Salary not paid</h3>
48
+ <p class="text-gray-600">Your rights when employer doesn't pay your salary</p>
49
+ </div>
50
+ </a>
51
+
52
+ <!-- Card 3 -->
53
+ <a href="situation.html?type=rent" class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition duration-300">
54
+ <div class="p-6">
55
+ <div class="bg-blue-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
56
+ <i data-feather="home" class="text-blue-600"></i>
57
+ </div>
58
+ <h3 class="text-xl font-semibold mb-2 text-gray-800">Rent / landlord issue</h3>
59
+ <p class="text-gray-600">Dealing with unfair landlords and rental problems</p>
60
+ </div>
61
+ </a>
62
+
63
+ <!-- Card 4 -->
64
+ <a href="situation.html?type=fraud" class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition duration-300">
65
+ <div class="p-6">
66
+ <div class="bg-blue-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
67
+ <i data-feather="alert-triangle" class="text-blue-600"></i>
68
+ </div>
69
+ <h3 class="text-xl font-semibold mb-2 text-gray-800">Online fraud or scam</h3>
70
+ <p class="text-gray-600">What to do when you're scammed online</p>
71
+ </div>
72
+ </a>
73
+ </div>
74
+ </section>
75
+
76
+ <!-- How It Works -->
77
+ <section class="bg-gray-100 py-16 px-4">
78
+ <div class="max-w-4xl mx-auto">
79
+ <h2 class="text-3xl font-bold text-center mb-12 text-gray-800">How FixMyRights Helps You</h2>
80
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
81
+ <div class="text-center">
82
+ <div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
83
+ <i data-feather="book-open" class="text-blue-600"></i>
84
+ </div>
85
+ <h3 class="text-xl font-semibold mb-2 text-gray-800">Simple Explanations</h3>
86
+ <p class="text-gray-600">No legal jargon, just plain language you can understand</p>
87
+ </div>
88
+ <div class="text-center">
89
+ <div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
90
+ <i data-feather="message-square" class="text-blue-600"></i>
91
+ </div>
92
+ <h3 class="text-xl font-semibold mb-2 text-gray-800">Exact Phrases</h3>
93
+ <p class="text-gray-600">Know exactly what to say in difficult situations</p>
94
+ </div>
95
+ <div class="text-center">
96
+ <div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
97
+ <i data-feather="arrow-right-circle" class="text-blue-600"></i>
98
+ </div>
99
+ <h3 class="text-xl font-semibold mb-2 text-gray-800">Actionable Steps</h3>
100
+ <p class="text-gray-600">Clear guidance on what to do next</p>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ </section>
105
+
106
+ <!-- CTA Section -->
107
+ <section class="py-16 px-4 bg-blue-50">
108
+ <div class="max-w-4xl mx-auto text-center">
109
+ <h2 class="text-3xl font-bold mb-6 text-gray-800">Empower Yourself Today</h2>
110
+ <p class="text-xl mb-8 text-gray-600">Knowledge is power. Know your rights to protect yourself and your family.</p>
111
+ <a href="#situations" class="bg-blue-600 text-white px-8 py-3 rounded-lg font-semibold hover:bg-blue-700 transition duration-300 inline-block">Explore Common Situations</a>
112
+ </div>
113
+ </section>
114
+
115
+ <custom-footer></custom-footer>
116
+ <script>feather.replace();</script>
117
+ <script src="script.js"></script>
118
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
119
+ </body>
120
+ </html>
script.js ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Main JavaScript file for common functionality
2
+
3
+ // Mobile menu toggle functionality
4
+ document.addEventListener('DOMContentLoaded', function() {
5
+ // This would be handled by the navbar component
6
+ });
7
+
8
+ // Smooth scrolling for anchor links
9
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
10
+ anchor.addEventListener('click', function (e) {
11
+ e.preventDefault();
12
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
13
+ behavior: 'smooth'
14
+ });
15
+ });
16
+ });
17
+
18
+ // Dynamic year for footer
19
+ document.addEventListener('DOMContentLoaded', function() {
20
+ const yearElement = document.getElementById('current-year');
21
+ if (yearElement) {
22
+ yearElement.textContent = new Date().getFullYear();
23
+ }
24
+ });
style.css CHANGED
@@ -1,28 +1,41 @@
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
 
 
 
 
 
 
28
  }
 
 
 
 
 
1
+ /* Custom styles that can't be handled by Tailwind */
2
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
3
+
4
  body {
5
+ font-family: 'Inter', sans-serif;
6
+ line-height: 1.6;
7
+ }
8
+
9
+ /* Smooth scrolling */
10
+ html {
11
+ scroll-behavior: smooth;
12
  }
13
 
14
+ /* Custom animation for cards */
15
+ .card-hover {
16
+ transition: all 0.3s ease;
17
  }
18
 
19
+ .card-hover:hover {
20
+ transform: translateY(-5px);
 
 
 
21
  }
22
 
23
+ /* Custom underline effect */
24
+ .link-underline {
25
+ position: relative;
 
 
 
26
  }
27
 
28
+ .link-underline::after {
29
+ content: '';
30
+ position: absolute;
31
+ width: 0;
32
+ height: 2px;
33
+ bottom: -2px;
34
+ left: 0;
35
+ background-color: #3b82f6;
36
+ transition: width 0.3s ease;
37
  }
38
+
39
+ .link-underline:hover::after {
40
+ width: 100%;
41
+ }