feat: add privacy policy, terms, and animated landing page
This commit is contained in:
31
views/pages/privacy.php
Normal file
31
views/pages/privacy.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<div class="legal-page">
|
||||
<div class="legal-container">
|
||||
<div style="max-width:960px;margin:3rem auto;padding:3rem 3.5rem;background:var(--card-bg);border-radius:12px;box-shadow:0 2px 16px rgba(0,0,0,0.18)">
|
||||
<h1 style="color:var(--text-primary);margin-bottom:0.25rem;font-size:1.8rem;font-weight:700">Privacy Policy</h1>
|
||||
<p style="color:var(--text-muted);font-size:0.9rem;margin-bottom:2rem">Last updated: June 2026</p>
|
||||
<hr style="border-color:var(--border-color);margin-bottom:2rem;opacity:0.5">
|
||||
<div class="legal-content" style="line-height:1.8;color:var(--text-primary);font-size:1rem">
|
||||
<?php
|
||||
$lines = explode("\n", $content ?? '');
|
||||
foreach ($lines as $line) {
|
||||
$line = htmlspecialchars($line);
|
||||
if (preg_match('/^[A-Z][A-Z\s]+$/', trim($line))) {
|
||||
echo '<h2 style="color:var(--accent-primary);font-size:1.2rem;margin:2rem 0 1rem;font-weight:600">' . $line . '</h2>';
|
||||
} elseif (preg_match('/^[a-z]\)\s/', trim($line))) {
|
||||
echo '<p style="margin:0.4rem 0 0.4rem 2rem">' . $line . '</p>';
|
||||
} elseif (preg_match('/^\d+\./', trim($line))) {
|
||||
echo '<h3 style="color:var(--text-primary);font-size:1rem;margin:1.2rem 0 0.5rem;font-weight:600">' . $line . '</h3>';
|
||||
} elseif (trim($line) === '') {
|
||||
echo '<div style="height:0.5rem"></div>';
|
||||
} else {
|
||||
echo '<p style="margin:0.4rem 0">' . $line . '</p>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="legal-footer" style="margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--border-color);text-align:center">
|
||||
<p><a href="/" style="color:var(--accent-primary);text-decoration:none;font-size:0.95rem">← Back to ServerManager</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user