larxius commited on
Commit
da15bf8
·
verified ·
1 Parent(s): 4892d2b

Update frontend/src/pages/Login.jsx

Browse files
Files changed (1) hide show
  1. frontend/src/pages/Login.jsx +20 -57
frontend/src/pages/Login.jsx CHANGED
@@ -235,89 +235,52 @@ export const Login = () => {
235
  <div className="bg-white border border-slate-200 shadow-2xl rounded-2xl w-full max-w-2xl relative z-10 animate-fade-in flex flex-col max-h-[90vh] overflow-hidden text-slate-900">
236
 
237
  {/* Header */}
238
- <div className="flex justify-between items-center px-6 py-4 border-b border-slate-200 bg-slate-50">
239
- <div className="flex items-center gap-2">
240
- <span className="material-symbols-outlined text-blue-600 text-[24px]">gavel</span>
241
- <h3 className="font-bold text-slate-900 text-lg">Legal Policies</h3>
242
  </div>
243
  <button
244
  type="button"
245
  onClick={() => setLegalModal(null)}
246
- className="text-slate-400 hover:text-slate-700 hover:bg-slate-200/60 p-2 rounded-full transition-colors border-0 bg-transparent cursor-pointer flex items-center justify-center"
247
  title="Close"
248
  >
249
- <span className="material-symbols-outlined text-[20px]">close</span>
250
- </button>
251
- </div>
252
-
253
- {/* Policy Tab Switcher */}
254
- <div className="flex border-b border-slate-200 bg-white px-6 overflow-x-auto">
255
- <button
256
- type="button"
257
- onClick={() => setLegalModal('terms')}
258
- className={`py-3 px-4 text-xs font-bold border-b-2 transition-all cursor-pointer bg-transparent border-0 whitespace-nowrap ${
259
- legalModal === 'terms'
260
- ? 'border-blue-600 text-blue-600'
261
- : 'border-transparent text-slate-500 hover:text-slate-900'
262
- }`}
263
- >
264
- Terms of Service
265
- </button>
266
- <button
267
- type="button"
268
- onClick={() => setLegalModal('aup')}
269
- className={`py-3 px-4 text-xs font-bold border-b-2 transition-all cursor-pointer bg-transparent border-0 whitespace-nowrap ${
270
- legalModal === 'aup'
271
- ? 'border-blue-600 text-blue-600'
272
- : 'border-transparent text-slate-500 hover:text-slate-900'
273
- }`}
274
- >
275
- Acceptable Use Policy (AUP)
276
- </button>
277
- <button
278
- type="button"
279
- onClick={() => setLegalModal('privacy')}
280
- className={`py-3 px-4 text-xs font-bold border-b-2 transition-all cursor-pointer bg-transparent border-0 whitespace-nowrap ${
281
- legalModal === 'privacy'
282
- ? 'border-blue-600 text-blue-600'
283
- : 'border-transparent text-slate-500 hover:text-slate-900'
284
- }`}
285
- >
286
- Privacy Policy
287
  </button>
288
  </div>
289
 
290
  {/* Modal Body */}
291
- <div className="p-6 overflow-y-auto max-h-[60vh] text-left text-sm leading-relaxed text-slate-600 space-y-4">
292
  {legalModal === 'terms' && (
293
  <div>
294
- <h3 className="text-xl font-bold text-slate-900 mb-1">Terms of Service</h3>
295
- <p className="text-xs font-bold text-blue-600 mb-4">Effective Date: August 15, 2026</p>
296
 
297
- <div className="space-y-4">
298
  <div>
299
- <h4 className="font-bold text-slate-900 text-sm">1. Acceptance of Terms</h4>
300
- <p className="mt-1">By accessing or using the Larshield platform (the "Service"), you agree to be bound by these Terms of Service. If you do not agree, you may not access the Service.</p>
301
  </div>
302
 
303
  <div>
304
- <h4 className="font-bold text-slate-900 text-sm">2. Description of Service</h4>
305
- <p className="mt-1">Larshield provides automated vulnerability scanning, active penetration testing, and security posture management tools. The Service actively probes designated targets to identify security flaws, misconfigurations, and compliance violations.</p>
306
  </div>
307
 
308
  <div>
309
- <h4 className="font-bold text-slate-900 text-sm">3. Authorization and Legal Use</h4>
310
- <p className="mt-1">You explicitly certify that you possess full, legally verifiable authorization from the system owner to conduct active security assessments against any target URL you submit. Unauthorized scanning is illegal and strictly prohibited. You assume all liability for damages resulting from unauthorized use of the Service.</p>
311
  </div>
312
 
313
  <div>
314
- <h4 className="font-bold text-slate-900 text-sm">4. Limitation of Liability</h4>
315
- <p className="mt-1">Larshield is provided "AS IS". Vulnerability scanning can cause unintended disruptions, including data loss or system crashes. To the maximum extent permitted by law, Larshield shall not be liable for any direct, indirect, incidental, special, or consequential damages resulting from the use or inability to use the Service.</p>
316
  </div>
317
 
318
  <div>
319
- <h4 className="font-bold text-slate-900 text-sm">5. Termination</h4>
320
- <p className="mt-1">We reserve the right to suspend or terminate your account immediately, without prior notice or liability, for any reason, including without limitation if you breach the Terms, particularly regarding unauthorized target scanning.</p>
321
  </div>
322
  </div>
323
  </div>
 
235
  <div className="bg-white border border-slate-200 shadow-2xl rounded-2xl w-full max-w-2xl relative z-10 animate-fade-in flex flex-col max-h-[90vh] overflow-hidden text-slate-900">
236
 
237
  {/* Header */}
238
+ <div className="flex justify-between items-center px-6 py-4 border-b border-slate-100 bg-white">
239
+ <div className="flex items-center gap-2.5">
240
+ <span className="material-symbols-outlined text-blue-600 text-[22px]">gavel</span>
241
+ <h3 className="font-bold text-slate-900 text-base tracking-tight">Legal Policies</h3>
242
  </div>
243
  <button
244
  type="button"
245
  onClick={() => setLegalModal(null)}
246
+ className="text-slate-400 hover:text-slate-700 hover:bg-slate-100 p-1.5 rounded-full transition-colors border-0 bg-transparent cursor-pointer flex items-center justify-center"
247
  title="Close"
248
  >
249
+ <span className="material-symbols-outlined text-[18px]">close</span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
  </button>
251
  </div>
252
 
253
  {/* Modal Body */}
254
+ <div className="p-8 overflow-y-auto max-h-[65vh] text-left text-sm leading-relaxed text-slate-600 space-y-6">
255
  {legalModal === 'terms' && (
256
  <div>
257
+ <h2 className="text-2xl font-bold text-slate-900 mb-1">Terms of Service</h2>
258
+ <p className="text-xs font-semibold text-slate-500 mb-5">Effective Date: August 15, 2026</p>
259
 
260
+ <div className="space-y-6">
261
  <div>
262
+ <h3 className="font-bold text-slate-900 text-base mb-2">1. Acceptance of Terms</h3>
263
+ <p className="text-sm text-slate-600 leading-relaxed">By accessing or using the Larshield platform (the "Service"), you agree to be bound by these Terms of Service. If you do not agree, you may not access the Service.</p>
264
  </div>
265
 
266
  <div>
267
+ <h3 className="font-bold text-slate-900 text-base mb-2">2. Description of Service</h3>
268
+ <p className="text-sm text-slate-600 leading-relaxed">Larshield provides automated vulnerability scanning, active penetration testing, and security posture management tools. The Service actively probes designated targets to identify security flaws, misconfigurations, and compliance violations.</p>
269
  </div>
270
 
271
  <div>
272
+ <h3 className="font-bold text-slate-900 text-base mb-2">3. Authorization and Legal Use</h3>
273
+ <p className="text-sm text-slate-600 leading-relaxed">You explicitly certify that you possess full, legally verifiable authorization from the system owner to conduct active security assessments against any target URL you submit. Unauthorized scanning is illegal and strictly prohibited. You assume all liability for damages resulting from unauthorized use of the Service.</p>
274
  </div>
275
 
276
  <div>
277
+ <h3 className="font-bold text-slate-900 text-base mb-2">4. Limitation of Liability</h3>
278
+ <p className="text-sm text-slate-600 leading-relaxed">Larshield is provided "AS IS". Vulnerability scanning can cause unintended disruptions, including data loss or system crashes. To the maximum extent permitted by law, Larshield shall not be liable for any direct, indirect, incidental, special, or consequential damages resulting from the use or inability to use the Service.</p>
279
  </div>
280
 
281
  <div>
282
+ <h3 className="font-bold text-slate-900 text-base mb-2">5. Termination</h3>
283
+ <p className="text-sm text-slate-600 leading-relaxed">We reserve the right to suspend or terminate your account immediately, without prior notice or liability, for any reason, including without limitation if you breach the Terms, particularly regarding unauthorized target scanning.</p>
284
  </div>
285
  </div>
286
  </div>