openvk/Web/Presenters/templates/@error.xml

69 lines
1.8 KiB
XML
Raw Normal View History

{var instance_name = OPENVK_ROOT_CONF['openvk']['appearance']['name']}
2020-06-07 19:04:43 +03:00
<!DOCTYPE html>
<html>
<head>
<title>An error occurred - {$instance_name}</title>
2020-06-07 19:04:43 +03:00
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<style>
@keyframes gradient {
0% {
background-position: 0% 50%;
2020-06-07 19:04:43 +03:00
}
2020-06-07 19:04:43 +03:00
50% {
background-position: 100% 50%;
2020-06-07 19:04:43 +03:00
}
2020-06-07 19:04:43 +03:00
100% {
background-position: 0% 50%;
2020-06-07 19:04:43 +03:00
}
}
2020-06-07 19:04:43 +03:00
body {
background: linear-gradient(-30deg, #2b2b2b, #f479ff);
color: #fff;
font-family: sans-serif;
font-weight: 900;
animation: gradient 30s ease-in-out infinite;
background-size: 400% 400%;
}
2020-06-07 19:04:43 +03:00
#error {
width: 35rem;
max-width: 85vw;
}
2020-06-07 19:04:43 +03:00
main {
display: flex;
justify-content: space-evenly;
align-items: center;
height: 97vh;
}
2020-06-07 19:04:43 +03:00
@media screen and (max-width: 768px) {
main {
flex-direction: column;
justify-content: center;
}
2020-06-07 19:04:43 +03:00
main > p:first-of-type {
display: none;
}
}
</style>
</head>
<body>
<!-- OpenVK ERROR REPORT: -->
<!-- HTTP {$code} -->
<!-- {$msg} -->
2020-06-07 19:04:43 +03:00
<main>
<p>{$desc}</p>
<a href="/"><img src="/assets/packages/static/openvk/img/oof.apng" alt="Ouch" id="error" /></a>
<p>{$desc}</p>
</main>
</body>
</html>