Fix tailwind formatting
Fix tailwind formatting to prettify the HTML for the error display page for Verter.
This commit is contained in:
parent
75964a7f16
commit
ebc351b1fd
1 changed files with 13 additions and 23 deletions
36
error.php
36
error.php
|
@ -2,30 +2,20 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Error</title>
|
||||
<style>
|
||||
body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
.error-message {
|
||||
text-align: center;
|
||||
font-size: 1.2em;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
</style>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="error-message">
|
||||
<?php
|
||||
$errorMessage = isset($_GET['error']) ? $_GET['error'] : "An unknown error occurred.";
|
||||
echo htmlspecialchars($errorMessage);
|
||||
?>
|
||||
<body class="flex items-center justify-center h-screen">
|
||||
<div class="text-center">
|
||||
<div class="error-message text-3xl font-bold">
|
||||
<?php
|
||||
$errorMessage = isset($_GET['error']) ? $_GET['error'] : "An unknown error occurred.";
|
||||
echo htmlspecialchars($errorMessage);
|
||||
?>
|
||||
</div>
|
||||
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded mt-6" onclick="window.location.href = 'https://convert.yoursite.com';">
|
||||
Return to Converter
|
||||
</button>
|
||||
</div>
|
||||
<button onclick="window.location.href = 'https://convert.yoursite.com';">Return to Converter</button>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
Loading…
Reference in a new issue