@chubbyjs/chubbyjs-framework
Version:
A minimal, highly performant middleware PSR-15 microframework built with as little complexity as possible, aimed primarily at those developers who want to understand all the vendors they use.
121 lines (100 loc) • 2.95 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.errorTemplate = void 0;
exports.errorTemplate = `<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>__TITLE__</title>
<style>
html {
font-family: Helvetica, Arial, Verdana, sans-serif;
line-height: 1.5;
tab-size: 4;
}
body {
margin: 0;
}
* {
border-width: 0;
border-style: solid;
}
.container {
width: 100%
}
@media (min-width:640px) {
.container {
max-width: 640px
}
}
@media (min-width:768px) {
.container {
max-width: 768px
}
}
@media (min-width:1024px) {
.container {
max-width: 1024px
}
}
@media (min-width:1280px) {
.container {
max-width: 1280px
}
}
@media (min-width:1536px) {
.container {
max-width: 1536px
}
}
.mx-auto {
margin-left: auto;
margin-right: auto;
}
.inline-block {
display: inline-block;
}
.align-top {
vertical-align: top;
}
.mt-3 {
margin-top: .75rem;
}
.mt-12 {
margin-top: 3rem;
}
.mr-5 {
margin-right: 1.25rem;
}
.pr-5 {
padding-right: 1.25rem;
}
.text-gray-400 {
--tw-text-opacity: 1;
color: rgba(156, 163, 175, var(--tw-text-opacity));
}
.text-5xl {
font-size: 3rem;
line-height: 1;
}
.tracking-tighter {
letter-spacing: -.05em;
}
.border-gray-400 {
--tw-border-opacity: 1;
border-color: rgba(156, 163, 175, var(--tw-border-opacity));
}
.border-r-2 {
border-right-width: 2px;
}
</style>
</head>
<body>
<div class="container mx-auto tracking-tighter mt-12">
<div class="inline-block align-top text-gray-400 border-r-2 border-gray-400 pr-5 mr-5 text-5xl">__STATUS__</div>
<div class="inline-block align-top">
<div class="text-5xl">__TITLE__</div>
<div class="mt-3">__BODY__</div>
</div>
</div>
</body>
</html>`;