Fix tailwind formatting

Fix tailwind formatting to prettify the HTML for the error display page for Verter.
This commit is contained in:
John Norton 2024-06-30 09:25:06 -05:00
parent 75964a7f16
commit ebc351b1fd

View file

@ -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>