Skip to content

Commit 1196841

Browse files
committed
better error.html
1 parent 9288274 commit 1196841

File tree

1 file changed

+73
-17
lines changed

1 file changed

+73
-17
lines changed

templates/error.html

Lines changed: 73 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,84 @@
66
<title>Error - Algo salió mal</title>
77
<!-- Font Awesome for icons -->
88
<link
9-
rel="stylesheet"
10-
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
9+
rel="stylesheet"
10+
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
1111
/>
1212
<!-- Tailwind CSS CDN -->
1313
<script src="https://cdn.tailwindcss.com"></script>
1414
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" />
15+
<style>
16+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
17+
18+
body {
19+
font-family: 'Poppins', sans-serif;
20+
}
21+
22+
.animate-pulse-slow {
23+
animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
24+
}
25+
26+
@keyframes pulse {
27+
0%, 100% {
28+
opacity: 1;
29+
}
30+
50% {
31+
opacity: 0.6;
32+
}
33+
}
34+
35+
.blob {
36+
position: absolute;
37+
border-radius: 50%;
38+
filter: blur(60px);
39+
z-index: -1;
40+
}
41+
</style>
1542
</head>
16-
<body class="bg-red-100 flex items-center justify-center min-h-screen">
17-
<div class="bg-white p-8 rounded-lg shadow-lg text-center max-w-md w-full">
18-
<div class="text-red-700 mb-4">
19-
<i class="fas fa-exclamation-triangle text-5xl"></i>
43+
<body class="bg-gradient-to-b from-red-50 to-white flex items-center justify-center min-h-screen p-4 overflow-hidden relative">
44+
<!-- Animated background blobs -->
45+
<div class="blob bg-red-200/50 w-96 h-96 top-0 left-0 -translate-x-1/2 -translate-y-1/2"></div>
46+
<div class="blob bg-blue-200/50 w-96 h-96 bottom-0 right-0 translate-x-1/3 translate-y-1/3"></div>
47+
48+
<div class="bg-white/90 backdrop-blur-sm p-8 md:p-10 rounded-2xl shadow-2xl max-w-lg w-full border border-red-100 relative z-10">
49+
<div class="flex flex-col items-center">
50+
<!-- Error icon with animation -->
51+
<div class="mb-6 animate-float">
52+
<div class="h-28 w-28 bg-red-50 flex items-center justify-center rounded-full border-4 border-red-100 shadow-md">
53+
<i class="fas fa-exclamation-circle text-6xl text-red-500 animate-pulse-slow"></i>
54+
</div>
55+
</div>
56+
57+
<!-- Error heading -->
58+
<h1 class="text-3xl md:text-4xl font-bold text-gray-800 mb-3 text-center">¡Oops! Ocurrió un error</h1>
59+
60+
<!-- Red line divider -->
61+
<div class="w-16 h-1 bg-red-500 rounded-full mb-6"></div>
62+
63+
<!-- Error message with enhanced styling -->
64+
<div class="bg-red-50 border-l-4 border-red-500 p-4 mb-8 w-full rounded-r-lg shadow-sm">
65+
<p class="text-gray-700 text-center">{{ error_message }}</p>
66+
</div>
67+
68+
<!-- Suggestions -->
69+
<div class="text-sm text-gray-500 mb-8 text-center">
70+
<p class="mb-2">¿Qué puedes hacer?</p>
71+
<ul class="space-y-1">
72+
<li><i class="fas fa-redo-alt mr-2"></i>Intentar nuevamente más tarde</li>
73+
<li><i class="fas fa-search mr-2"></i>Verificar el término de búsqueda</li>
74+
<li><i class="fas fa-home mr-2"></i>Volver a la página de inicio</li>
75+
</ul>
76+
</div>
77+
78+
<!-- Back button with hover effects -->
79+
<a
80+
href="{{ url_for('index') }}"
81+
class="bg-gradient-to-r from-blue-500 to-blue-600 text-white font-medium px-8 py-3 rounded-lg hover:shadow-lg hover:from-blue-600 hover:to-blue-700 transition-all duration-300 flex items-center gap-2 group"
82+
>
83+
<i class="fas fa-arrow-left transform group-hover:-translate-x-1 transition-transform"></i>
84+
Volver al inicio
85+
</a>
86+
</div>
2087
</div>
21-
<h1 class="text-3xl font-bold text-red-700 mb-2">Oops! Ocurrió un error</h1>
22-
<p class="text-red-700 mb-6">{{ error_message }}</p>
23-
<div>
24-
<a
25-
href="{{ url_for('index') }}"
26-
class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700 transition duration-200"
27-
>
28-
Volver
29-
</a>
30-
</div>
31-
</div>
3288
</body>
3389
</html>

0 commit comments

Comments
 (0)