very final fixes lol

This commit is contained in:
TopchetoEU 2023-07-01 01:20:20 +03:00
parent fa7b92e535
commit f38effcaa3
6 changed files with 15 additions and 6 deletions

View File

@ -25,7 +25,7 @@ if (Deno.args[0] === "prod") {
})); }));
else req.respondWith(r.toFetchResponse()); else req.respondWith(r.toFetchResponse());
} }
})(); })().catch(console.error);
} }
} }
else { else {

View File

@ -111,7 +111,7 @@ export default class Router {
const r = await this.handle(RestRequest.fromMessage(req)); const r = await this.handle(RestRequest.fromMessage(req));
if (r) req.respondWith(r.toFetchResponse()); if (r) req.respondWith(r.toFetchResponse());
} }
})(); })().catch(console.error);
} }
} }
} }

View File

@ -5,24 +5,32 @@
box-shadow: .25rem .25rem 1rem -.5rem #000; box-shadow: .25rem .25rem 1rem -.5rem #000;
padding: 1rem; padding: 1rem;
box-sizing: border-box; box-sizing: border-box;
display: inline-flex; display: inline-block;
flex-direction: column; flex-direction: column;
gap: 1rem; gap: 1rem;
margin: 1rem; margin: 1rem;
align-items: center;
min-width: 15rem;
.image { .image {
cursor: pointer; cursor: pointer;
height: 15rem; height: 15rem;
display: block; display: block;
margin: auto;
} }
.name, .author { .name, .author {
text-align: left; text-align: left;
padding: 0; padding: 0;
margin: 0; margin: 0;
word-break: break-all;
}
.name {
margin: 1rem 0;
} }
.stats { .stats {
width: 100%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;

View File

@ -3,11 +3,11 @@
display: block; display: block;
width: min(100%, 85rem); width: min(100%, 85rem);
margin: auto; margin: auto;
gap: 5rem;
align-items: stretch;
box-sizing: border-box; box-sizing: border-box;
padding: 0 1rem; padding: 0 1rem;
text-align: center; display: flex;
flex-wrap: wrap;
justify-content: center;
} }
@media screen and (width < 50rem) { @media screen and (width < 50rem) {
.images { .images {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 948 B

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -6,6 +6,7 @@
<base href="/"> <base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="icon" type="image/x-icon" href="favicon.ico">
<script>var $_url = "http://api.localhost/"</script>
<script src="/http-url.js"></script> <script src="/http-url.js"></script>
</head> </head>
<body> <body>