Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update frontend/src/pages/Register.jsx
Browse files- frontend/src/pages/Register.jsx +20 -57
frontend/src/pages/Register.jsx
CHANGED
|
@@ -328,89 +328,52 @@ export const Register = () => {
|
|
| 328 |
<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">
|
| 329 |
|
| 330 |
{/* Header */}
|
| 331 |
-
<div className="flex justify-between items-center px-6 py-4 border-b border-slate-
|
| 332 |
-
<div className="flex items-center gap-2">
|
| 333 |
-
<span className="material-symbols-outlined text-blue-600 text-[
|
| 334 |
-
<h3 className="font-bold text-slate-900 text-
|
| 335 |
</div>
|
| 336 |
<button
|
| 337 |
type="button"
|
| 338 |
onClick={() => setLegalModal(null)}
|
| 339 |
-
className="text-slate-400 hover:text-slate-700 hover:bg-slate-
|
| 340 |
title="Close"
|
| 341 |
>
|
| 342 |
-
<span className="material-symbols-outlined text-[
|
| 343 |
-
</button>
|
| 344 |
-
</div>
|
| 345 |
-
|
| 346 |
-
{/* Policy Tab Switcher */}
|
| 347 |
-
<div className="flex border-b border-slate-200 bg-white px-6 overflow-x-auto">
|
| 348 |
-
<button
|
| 349 |
-
type="button"
|
| 350 |
-
onClick={() => setLegalModal('terms')}
|
| 351 |
-
className={`py-3 px-4 text-xs font-bold border-b-2 transition-all cursor-pointer bg-transparent border-0 whitespace-nowrap ${
|
| 352 |
-
legalModal === 'terms'
|
| 353 |
-
? 'border-blue-600 text-blue-600'
|
| 354 |
-
: 'border-transparent text-slate-500 hover:text-slate-900'
|
| 355 |
-
}`}
|
| 356 |
-
>
|
| 357 |
-
Terms of Service
|
| 358 |
-
</button>
|
| 359 |
-
<button
|
| 360 |
-
type="button"
|
| 361 |
-
onClick={() => setLegalModal('aup')}
|
| 362 |
-
className={`py-3 px-4 text-xs font-bold border-b-2 transition-all cursor-pointer bg-transparent border-0 whitespace-nowrap ${
|
| 363 |
-
legalModal === 'aup'
|
| 364 |
-
? 'border-blue-600 text-blue-600'
|
| 365 |
-
: 'border-transparent text-slate-500 hover:text-slate-900'
|
| 366 |
-
}`}
|
| 367 |
-
>
|
| 368 |
-
Acceptable Use Policy (AUP)
|
| 369 |
-
</button>
|
| 370 |
-
<button
|
| 371 |
-
type="button"
|
| 372 |
-
onClick={() => setLegalModal('privacy')}
|
| 373 |
-
className={`py-3 px-4 text-xs font-bold border-b-2 transition-all cursor-pointer bg-transparent border-0 whitespace-nowrap ${
|
| 374 |
-
legalModal === 'privacy'
|
| 375 |
-
? 'border-blue-600 text-blue-600'
|
| 376 |
-
: 'border-transparent text-slate-500 hover:text-slate-900'
|
| 377 |
-
}`}
|
| 378 |
-
>
|
| 379 |
-
Privacy Policy
|
| 380 |
</button>
|
| 381 |
</div>
|
| 382 |
|
| 383 |
{/* Modal Body */}
|
| 384 |
-
<div className="p-
|
| 385 |
{legalModal === 'terms' && (
|
| 386 |
<div>
|
| 387 |
-
<
|
| 388 |
-
<p className="text-xs font-
|
| 389 |
|
| 390 |
-
<div className="space-y-
|
| 391 |
<div>
|
| 392 |
-
<
|
| 393 |
-
<p className="
|
| 394 |
</div>
|
| 395 |
|
| 396 |
<div>
|
| 397 |
-
<
|
| 398 |
-
<p className="
|
| 399 |
</div>
|
| 400 |
|
| 401 |
<div>
|
| 402 |
-
<
|
| 403 |
-
<p className="
|
| 404 |
</div>
|
| 405 |
|
| 406 |
<div>
|
| 407 |
-
<
|
| 408 |
-
<p className="
|
| 409 |
</div>
|
| 410 |
|
| 411 |
<div>
|
| 412 |
-
<
|
| 413 |
-
<p className="
|
| 414 |
</div>
|
| 415 |
</div>
|
| 416 |
</div>
|
|
|
|
| 328 |
<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">
|
| 329 |
|
| 330 |
{/* Header */}
|
| 331 |
+
<div className="flex justify-between items-center px-6 py-4 border-b border-slate-100 bg-white">
|
| 332 |
+
<div className="flex items-center gap-2.5">
|
| 333 |
+
<span className="material-symbols-outlined text-blue-600 text-[22px]">gavel</span>
|
| 334 |
+
<h3 className="font-bold text-slate-900 text-base tracking-tight">Legal Policies</h3>
|
| 335 |
</div>
|
| 336 |
<button
|
| 337 |
type="button"
|
| 338 |
onClick={() => setLegalModal(null)}
|
| 339 |
+
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"
|
| 340 |
title="Close"
|
| 341 |
>
|
| 342 |
+
<span className="material-symbols-outlined text-[18px]">close</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 343 |
</button>
|
| 344 |
</div>
|
| 345 |
|
| 346 |
{/* Modal Body */}
|
| 347 |
+
<div className="p-8 overflow-y-auto max-h-[65vh] text-left text-sm leading-relaxed text-slate-600 space-y-6">
|
| 348 |
{legalModal === 'terms' && (
|
| 349 |
<div>
|
| 350 |
+
<h2 className="text-2xl font-bold text-slate-900 mb-1">Terms of Service</h2>
|
| 351 |
+
<p className="text-xs font-semibold text-slate-500 mb-5">Effective Date: August 15, 2026</p>
|
| 352 |
|
| 353 |
+
<div className="space-y-6">
|
| 354 |
<div>
|
| 355 |
+
<h3 className="font-bold text-slate-900 text-base mb-2">1. Acceptance of Terms</h3>
|
| 356 |
+
<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>
|
| 357 |
</div>
|
| 358 |
|
| 359 |
<div>
|
| 360 |
+
<h3 className="font-bold text-slate-900 text-base mb-2">2. Description of Service</h3>
|
| 361 |
+
<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>
|
| 362 |
</div>
|
| 363 |
|
| 364 |
<div>
|
| 365 |
+
<h3 className="font-bold text-slate-900 text-base mb-2">3. Authorization and Legal Use</h3>
|
| 366 |
+
<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>
|
| 367 |
</div>
|
| 368 |
|
| 369 |
<div>
|
| 370 |
+
<h3 className="font-bold text-slate-900 text-base mb-2">4. Limitation of Liability</h3>
|
| 371 |
+
<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>
|
| 372 |
</div>
|
| 373 |
|
| 374 |
<div>
|
| 375 |
+
<h3 className="font-bold text-slate-900 text-base mb-2">5. Termination</h3>
|
| 376 |
+
<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>
|
| 377 |
</div>
|
| 378 |
</div>
|
| 379 |
</div>
|