Update -> refactor and optimize UI , code ,...

This commit is contained in:
2026-04-10 11:35:25 +03:30
parent 3327207f05
commit 0de951fd91
20 changed files with 1085 additions and 282 deletions

35
public/error.php Normal file
View File

@@ -0,0 +1,35 @@
<?php
$errorCode = $errorCode ?? 404;
$errorMessage = $errorMessage ?? 'Page not found.';
http_response_code($errorCode);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SafePaste — <?= $errorCode ?></title>
<link rel="stylesheet" href="/assets/css/style.css">
</head>
<body>
<div class="page-wrapper">
<header class="site-header">
<a href="/" class="logo">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="2" width="6" height="4" rx="1"/><path d="M5 4h-1a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-1"/><path d="M9 12h6M9 16h4"/></svg>
SafePaste
</a>
</header>
<main class="main-card error-card">
<div class="error-code"><?= $errorCode ?></div>
<p class="error-message"><?= htmlspecialchars($errorMessage) ?></p>
<a href="/" class="btn-primary" style="display:inline-flex;margin-top:2rem;">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/></svg>
Back to Home
</a>
</main>
<footer class="site-footer">
AES-256-CBC encrypted &middot; Open source &middot; No tracking
</footer>
</div>
</body>
</html>