Update -> refactor and optimize UI , code ,...
This commit is contained in:
35
public/error.php
Normal file
35
public/error.php
Normal 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 · Open source · No tracking
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user