← back to Jill Website
views/error.ejs
86 lines
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Error - Nosara Beachfront Rentals</title>
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- Stylesheets -->
<link rel="stylesheet" href="/css/style.css">
<style>
.error-container {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
background: linear-gradient(135deg, #2c5f8d 0%, #16a085 100%);
}
.error-content {
text-align: center;
color: white;
max-width: 600px;
}
.error-icon {
font-size: 5rem;
margin-bottom: 2rem;
opacity: 0.9;
}
.error-title {
font-family: 'Playfair Display', serif;
font-size: 3rem;
font-weight: 700;
margin-bottom: 1rem;
}
.error-message {
font-size: 1.2rem;
margin-bottom: 2rem;
opacity: 0.9;
}
.error-button {
display: inline-block;
padding: 1rem 2rem;
background: white;
color: #2c5f8d;
text-decoration: none;
border-radius: 10px;
font-weight: 600;
transition: all 0.3s ease;
}
.error-button:hover {
transform: translateY(-2px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
</style>
</head>
<body>
<div class="error-container">
<div class="error-content">
<div class="error-icon">
<i class="fas fa-exclamation-triangle"></i>
</div>
<h1 class="error-title">Oops!</h1>
<p class="error-message"><%= message || 'Something went wrong' %></p>
<a href="/" class="error-button">
<i class="fas fa-home"></i> Back to Home
</a>
</div>
</div>
</body>
</html>