dickiethinking commited on
Commit
b5ba45c
·
verified ·
1 Parent(s): 48257de

This needs to be a lot better looking https://cdn.dribbble.com/userupload/45525533/file/176e1ed8f6a9c15b6324e6e6d3a8a00d.png?resize=1024x768&vertical=center

Browse files
Files changed (3) hide show
  1. components/search.js +40 -28
  2. index.html +50 -54
  3. style.css +121 -1
components/search.js CHANGED
@@ -4,30 +4,37 @@ class CustomSearch extends HTMLElement {
4
  this.shadowRoot.innerHTML = `
5
  <style>
6
  .search-container {
7
- background: #1f2937;
8
- border-radius: 0.5rem;
9
- padding: 1.5rem;
10
- margin-bottom: 2rem;
11
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
 
 
12
  }
13
  .search-title {
14
- font-size: 1.25rem;
15
- font-weight: 600;
16
- margin-bottom: 1rem;
17
- color: #f43f5e;
 
 
 
18
  }
19
  .search-form {
20
  display: flex;
21
  flex-direction: column;
22
- gap: 1rem;
23
  }
24
  .search-input {
25
- background: #111827;
26
- border: 1px solid #374151;
27
- border-radius: 0.375rem;
28
- padding: 0.75rem 1rem;
29
  color: white;
30
  width: 100%;
 
 
31
  }
32
  .search-input:focus {
33
  outline: none;
@@ -35,39 +42,44 @@ class CustomSearch extends HTMLElement {
35
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.3);
36
  }
37
  .search-button {
38
- background: #f43f5e;
39
  color: white;
40
  border: none;
41
- border-radius: 0.375rem;
42
- padding: 0.75rem 1rem;
43
  font-weight: 600;
44
  cursor: pointer;
45
- transition: background-color 0.2s;
 
 
 
46
  }
47
  .search-button:hover {
48
- background: #e11d48;
 
49
  }
50
  .search-options {
51
  display: flex;
52
  flex-wrap: wrap;
53
- gap: 0.5rem;
54
- margin-top: 0.5rem;
55
  }
56
  .search-option {
57
- background: #111827;
58
- border: 1px solid #374151;
59
  border-radius: 9999px;
60
- padding: 0.25rem 0.75rem;
61
  font-size: 0.875rem;
62
  cursor: pointer;
63
- transition: all 0.2s;
64
  }
65
  .search-option:hover, .search-option.active {
66
- background: #f43f5e;
67
- border-color: #f43f5e;
68
  color: white;
 
69
  }
70
- </style>
71
  <div class="search-container">
72
  <h3 class="search-title">Search Registry</h3>
73
  <form class="search-form" id="searchForm">
 
4
  this.shadowRoot.innerHTML = `
5
  <style>
6
  .search-container {
7
+ background: rgba(31, 41, 55, 0.7);
8
+ backdrop-filter: blur(10px);
9
+ border-radius: 16px;
10
+ padding: 2rem;
11
+ margin-bottom: 3rem;
12
+ border: 1px solid rgba(255, 255, 255, 0.1);
13
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
14
  }
15
  .search-title {
16
+ font-size: 1.5rem;
17
+ font-weight: 700;
18
+ margin-bottom: 1.5rem;
19
+ background: linear-gradient(90deg, #ef4444, #f43f5e);
20
+ -webkit-background-clip: text;
21
+ background-clip: text;
22
+ color: transparent;
23
  }
24
  .search-form {
25
  display: flex;
26
  flex-direction: column;
27
+ gap: 1.5rem;
28
  }
29
  .search-input {
30
+ background: rgba(17, 24, 39, 0.5);
31
+ border: 1px solid rgba(55, 65, 81, 0.5);
32
+ border-radius: 12px;
33
+ padding: 1rem 1.25rem;
34
  color: white;
35
  width: 100%;
36
+ font-size: 1rem;
37
+ transition: all 0.3s ease;
38
  }
39
  .search-input:focus {
40
  outline: none;
 
42
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.3);
43
  }
44
  .search-button {
45
+ background: linear-gradient(90deg, #ef4444, #f43f5e);
46
  color: white;
47
  border: none;
48
+ border-radius: 12px;
49
+ padding: 1rem 1.5rem;
50
  font-weight: 600;
51
  cursor: pointer;
52
+ transition: all 0.3s ease;
53
+ display: flex;
54
+ align-items: center;
55
+ justify-content: center;
56
  }
57
  .search-button:hover {
58
+ transform: translateY(-2px);
59
+ box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
60
  }
61
  .search-options {
62
  display: flex;
63
  flex-wrap: wrap;
64
+ gap: 0.75rem;
65
+ margin-top: 0.75rem;
66
  }
67
  .search-option {
68
+ background: rgba(17, 24, 39, 0.5);
69
+ border: 1px solid rgba(55, 65, 81, 0.5);
70
  border-radius: 9999px;
71
+ padding: 0.5rem 1rem;
72
  font-size: 0.875rem;
73
  cursor: pointer;
74
+ transition: all 0.3s ease;
75
  }
76
  .search-option:hover, .search-option.active {
77
+ background: linear-gradient(90deg, #ef4444, #f43f5e);
78
+ border-color: transparent;
79
  color: white;
80
+ transform: translateY(-2px);
81
  }
82
+ </style>
83
  <div class="search-container">
84
  <h3 class="search-title">Search Registry</h3>
85
  <form class="search-form" id="searchForm">
index.html CHANGED
@@ -26,103 +26,99 @@
26
  </head>
27
  <body class="bg-gray-900 text-gray-100 min-h-screen flex flex-col">
28
  <custom-navbar></custom-navbar>
29
-
30
  <main class="flex-1 container mx-auto px-4 py-8">
31
  <custom-search></custom-search>
32
- <div class="max-w-4xl mx-auto">
33
- <section class="mb-12">
34
- <h1 class="text-4xl font-bold mb-6 text-primary">False Accuser Alerts Registry</h1>
35
- <p class="text-lg text-gray-300 mb-8">
36
- A public registry to document and expose individuals who have made false accusations of domestic violence or abuse,
37
- helping to protect potential victims from malicious claims.
38
  </p>
39
- <div class="bg-gray-800 rounded-lg p-6 border-l-4 border-primary shadow-lg">
40
- <h2 class="text-2xl font-semibold mb-4 text-secondary">Why This Registry Exists</h2>
41
- <p class="mb-4">
42
- False accusations can destroy lives, reputations, and families. This registry serves as a warning system
43
- to protect innocent individuals from becoming victims of deceitful allegations.
44
- </p>
45
- <a href="/report" class="inline-flex items-center px-4 py-2 bg-primary hover:bg-red-600 rounded-md transition-colors text-white font-medium">
46
  <i data-feather="alert-triangle" class="mr-2"></i>
47
  Report a False Accuser
48
  </a>
 
 
 
 
49
  </div>
50
- </section>
 
51
 
52
- <section class="mb-12">
53
- <h2 class="text-2xl font-semibold mb-6 text-secondary">Recent Cases</h2>
 
54
  <div class="grid md:grid-cols-2 gap-6">
55
- <div class="bg-gray-800 rounded-lg p-6 shadow hover:shadow-lg transition-shadow">
56
- <div class="flex items-center mb-4">
57
- <div class="w-12 h-12 rounded-full bg-red-500 flex items-center justify-center text-white mr-4">
58
  <i data-feather="user"></i>
59
  </div>
60
  <div>
61
- <h3 class="font-semibold">Case #FA-2023-142</h3>
62
  <p class="text-sm text-gray-400">Reported: 2 weeks ago</p>
63
  </div>
64
  </div>
65
- <p class="text-gray-300 mb-4">False allegations of domestic abuse made during divorce proceedings. Case was dismissed due to lack of evidence.</p>
66
  <div class="flex flex-wrap gap-2">
67
- <span class="px-2 py-1 bg-gray-700 rounded-full text-xs">California</span>
68
- <span class="px-2 py-1 bg-gray-700 rounded-full text-xs">2023</span>
69
- <span class="px-2 py-1 bg-gray-700 rounded-full text-xs">Family Court</span>
 
70
  </div>
71
  </div>
72
 
73
- <div class="bg-gray-800 rounded-lg p-6 shadow hover:shadow-lg transition-shadow">
74
- <div class="flex items-center mb-4">
75
- <div class="w-12 h-12 rounded-full bg-red-500 flex items-center justify-center text-white mr-4">
76
  <i data-feather="user"></i>
77
  </div>
78
  <div>
79
- <h3 class="font-semibold">Case #FA-2023-141</h3>
80
  <p class="text-sm text-gray-400">Reported: 3 weeks ago</p>
81
  </div>
82
  </div>
83
- <p class="text-gray-300 mb-4">Retracted abuse allegations after being confronted with video evidence contradicting claims.</p>
84
  <div class="flex flex-wrap gap-2">
85
- <span class="px-2 py-1 bg-gray-700 rounded-full text-xs">Texas</span>
86
- <span class="px-2 py-1 bg-gray-700 rounded-full text-xs">2023</span>
87
- <span class="px-2 py-1 bg-gray-700 rounded-full text-xs">Criminal Case</span>
 
88
  </div>
89
  </div>
90
  </div>
91
- <div class="mt-6 text-center">
92
- <a href="/cases" class="inline-flex items-center px-4 py-2 bg-secondary hover:bg-rose-600 rounded-md transition-colors text-white font-medium">
93
- <i data-feather="list" class="mr-2"></i>
94
- View All Cases
95
- </a>
96
- </div>
97
  </section>
98
 
99
- <section>
100
- <h2 class="text-2xl font-semibold mb-6 text-secondary">Resources</h2>
101
  <div class="grid md:grid-cols-3 gap-6">
102
- <div class="bg-gray-800 rounded-lg p-6 shadow hover:shadow-lg transition-shadow">
103
- <div class="w-12 h-12 rounded-full bg-red-500 flex items-center justify-center text-white mb-4">
104
  <i data-feather="book"></i>
105
  </div>
106
- <h3 class="font-semibold mb-2">Legal Protection</h3>
107
- <p class="text-gray-300 text-sm">Know your rights when facing false accusations and how to protect yourself legally.</p>
108
  </div>
109
- <div class="bg-gray-800 rounded-lg p-6 shadow hover:shadow-lg transition-shadow">
110
- <div class="w-12 h-12 rounded-full bg-red-500 flex items-center justify-center text-white mb-4">
111
  <i data-feather="shield"></i>
112
  </div>
113
- <h3 class="font-semibold mb-2">Documentation Guide</h3>
114
- <p class="text-gray-300 text-sm">Learn how to properly document interactions to protect yourself from false claims.</p>
115
  </div>
116
- <div class="bg-gray-800 rounded-lg p-6 shadow hover:shadow-lg transition-shadow">
117
- <div class="w-12 h-12 rounded-full bg-red-500 flex items-center justify-center text-white mb-4">
118
  <i data-feather="users"></i>
119
  </div>
120
- <h3 class="font-semibold mb-2">Support Groups</h3>
121
- <p class="text-gray-300 text-sm">Connect with others who have been victims of false accusations.</p>
122
  </div>
123
  </div>
124
  </section>
125
- </div>
126
  </main>
127
 
128
  <custom-footer></custom-footer>
 
26
  </head>
27
  <body class="bg-gray-900 text-gray-100 min-h-screen flex flex-col">
28
  <custom-navbar></custom-navbar>
 
29
  <main class="flex-1 container mx-auto px-4 py-8">
30
  <custom-search></custom-search>
31
+
32
+ <section class="hero">
33
+ <div class="max-w-2xl">
34
+ <h1 class="hero-title">False Accuser Alerts Registry</h1>
35
+ <p class="text-xl text-gray-300 mb-8">
36
+ A verified public registry documenting false accusations to protect the innocent from malicious claims.
37
  </p>
38
+ <div class="flex space-x-4">
39
+ <a href="/report" class="btn btn-primary">
 
 
 
 
 
40
  <i data-feather="alert-triangle" class="mr-2"></i>
41
  Report a False Accuser
42
  </a>
43
+ <a href="/cases" class="btn" style="background: rgba(255,255,255,0.1); color: white;">
44
+ <i data-feather="list" class="mr-2"></i>
45
+ View All Cases
46
+ </a>
47
  </div>
48
+ </div>
49
+ </section>
50
 
51
+ <div class="max-w-6xl mx-auto">
52
+ <section class="mb-16">
53
+ <h2 class="section-title">Recent Cases</h2>
54
  <div class="grid md:grid-cols-2 gap-6">
55
+ <div class="card">
56
+ <div class="case-meta">
57
+ <div class="user-avatar">
58
  <i data-feather="user"></i>
59
  </div>
60
  <div>
61
+ <h3 class="font-semibold text-lg">Case #FA-2023-142</h3>
62
  <p class="text-sm text-gray-400">Reported: 2 weeks ago</p>
63
  </div>
64
  </div>
65
+ <p class="text-gray-300 mb-6">False allegations of domestic abuse made during divorce proceedings. Case was dismissed due to lack of evidence after investigation revealed inconsistencies in the accuser's testimony.</p>
66
  <div class="flex flex-wrap gap-2">
67
+ <span class="tag">California</span>
68
+ <span class="tag">2023</span>
69
+ <span class="tag">Family Court</span>
70
+ <span class="tag">Dismissed</span>
71
  </div>
72
  </div>
73
 
74
+ <div class="card">
75
+ <div class="case-meta">
76
+ <div class="user-avatar">
77
  <i data-feather="user"></i>
78
  </div>
79
  <div>
80
+ <h3 class="font-semibold text-lg">Case #FA-2023-141</h3>
81
  <p class="text-sm text-gray-400">Reported: 3 weeks ago</p>
82
  </div>
83
  </div>
84
+ <p class="text-gray-300 mb-6">Retracted abuse allegations after being confronted with video evidence contradicting claims. The accuser later admitted to fabricating the story.</p>
85
  <div class="flex flex-wrap gap-2">
86
+ <span class="tag">Texas</span>
87
+ <span class="tag">2023</span>
88
+ <span class="tag">Criminal Case</span>
89
+ <span class="tag">Retracted</span>
90
  </div>
91
  </div>
92
  </div>
 
 
 
 
 
 
93
  </section>
94
 
95
+ <section class="mb-16">
96
+ <h2 class="section-title">Resources</h2>
97
  <div class="grid md:grid-cols-3 gap-6">
98
+ <div class="card">
99
+ <div class="w-12 h-12 rounded-full bg-gradient-to-r from-red-500 to-pink-500 flex items-center justify-center text-white mb-6">
100
  <i data-feather="book"></i>
101
  </div>
102
+ <h3 class="font-semibold text-lg mb-3">Legal Protection</h3>
103
+ <p class="text-gray-300">Comprehensive guides on your rights when facing false accusations and how to protect yourself legally.</p>
104
  </div>
105
+ <div class="card">
106
+ <div class="w-12 h-12 rounded-full bg-gradient-to-r from-red-500 to-pink-500 flex items-center justify-center text-white mb-6">
107
  <i data-feather="shield"></i>
108
  </div>
109
+ <h3 class="font-semibold text-lg mb-3">Documentation Guide</h3>
110
+ <p class="text-gray-300">Step-by-step instructions for properly documenting interactions to protect yourself from false claims.</p>
111
  </div>
112
+ <div class="card">
113
+ <div class="w-12 h-12 rounded-full bg-gradient-to-r from-red-500 to-pink-500 flex items-center justify-center text-white mb-6">
114
  <i data-feather="users"></i>
115
  </div>
116
+ <h3 class="font-semibold text-lg mb-3">Support Network</h3>
117
+ <p class="text-gray-300">Connect with verified support groups and legal professionals who specialize in false accusation cases.</p>
118
  </div>
119
  </div>
120
  </section>
121
+ </div>
122
  </main>
123
 
124
  <custom-footer></custom-footer>
style.css CHANGED
@@ -1,9 +1,129 @@
1
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
2
-
3
  body {
4
  font-family: 'Inter', sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  }
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  /* Custom scrollbar */
8
  ::-webkit-scrollbar {
9
  width: 8px;
 
1
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
 
2
  body {
3
  font-family: 'Inter', sans-serif;
4
+ background: #0c0c0f;
5
+ color: #f8f9fa;
6
+ }
7
+
8
+ .container {
9
+ max-width: 1200px;
10
+ margin: 0 auto;
11
+ padding: 0 20px;
12
+ }
13
+
14
+ .hero {
15
+ background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
16
+ border-radius: 20px;
17
+ padding: 60px;
18
+ margin: 40px 0;
19
+ position: relative;
20
+ overflow: hidden;
21
+ }
22
+
23
+ .hero::after {
24
+ content: '';
25
+ position: absolute;
26
+ top: -50px;
27
+ right: -50px;
28
+ width: 200px;
29
+ height: 200px;
30
+ background: rgba(239, 68, 68, 0.1);
31
+ border-radius: 50%;
32
+ filter: blur(50px);
33
+ }
34
+
35
+ .hero-title {
36
+ font-size: 3rem;
37
+ font-weight: 800;
38
+ line-height: 1.2;
39
+ margin-bottom: 20px;
40
+ background: linear-gradient(90deg, #ef4444, #f43f5e);
41
+ -webkit-background-clip: text;
42
+ background-clip: text;
43
+ color: transparent;
44
+ }
45
+
46
+ .card {
47
+ background: rgba(255, 255, 255, 0.03);
48
+ backdrop-filter: blur(10px);
49
+ border-radius: 16px;
50
+ padding: 30px;
51
+ border: 1px solid rgba(255, 255, 255, 0.1);
52
+ transition: all 0.3s ease;
53
+ }
54
+
55
+ .card:hover {
56
+ transform: translateY(-5px);
57
+ box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.1), 0 10px 10px -5px rgba(239, 68, 68, 0.04);
58
+ }
59
+
60
+ .btn {
61
+ display: inline-flex;
62
+ align-items: center;
63
+ justify-content: center;
64
+ padding: 12px 24px;
65
+ border-radius: 8px;
66
+ font-weight: 600;
67
+ transition: all 0.3s ease;
68
+ }
69
+
70
+ .btn-primary {
71
+ background: linear-gradient(90deg, #ef4444, #f43f5e);
72
+ color: white;
73
+ }
74
+
75
+ .btn-primary:hover {
76
+ background: linear-gradient(90deg, #dc2626, #e11d48);
77
+ transform: translateY(-2px);
78
+ box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
79
+ }
80
+
81
+ .tag {
82
+ display: inline-block;
83
+ padding: 4px 12px;
84
+ border-radius: 20px;
85
+ font-size: 0.75rem;
86
+ font-weight: 600;
87
+ background: rgba(239, 68, 68, 0.1);
88
+ color: #ef4444;
89
  }
90
 
91
+ .user-avatar {
92
+ width: 50px;
93
+ height: 50px;
94
+ border-radius: 50%;
95
+ background: rgba(255, 255, 255, 0.1);
96
+ display: flex;
97
+ align-items: center;
98
+ justify-content: center;
99
+ color: white;
100
+ margin-right: 15px;
101
+ }
102
+
103
+ .case-meta {
104
+ display: flex;
105
+ align-items: center;
106
+ margin-bottom: 15px;
107
+ }
108
+
109
+ .section-title {
110
+ font-size: 1.5rem;
111
+ font-weight: 700;
112
+ margin-bottom: 30px;
113
+ position: relative;
114
+ display: inline-block;
115
+ }
116
+
117
+ .section-title::after {
118
+ content: '';
119
+ position: absolute;
120
+ bottom: -10px;
121
+ left: 0;
122
+ width: 50px;
123
+ height: 3px;
124
+ background: linear-gradient(90deg, #ef4444, #f43f5e);
125
+ border-radius: 3px;
126
+ }
127
  /* Custom scrollbar */
128
  ::-webkit-scrollbar {
129
  width: 8px;