Menu in /get

This commit is contained in:
DarkCat09 2023-08-16 14:08:53 +04:00
parent 3b82b1232b
commit 22b8af4012
No known key found for this signature in database
GPG Key ID: 4785B6FB1C50A540
3 changed files with 14 additions and 1 deletions

View File

@ -38,7 +38,7 @@ export default async function getRoute(fastify: FastifyInstance) {
return parsed.textContent; return parsed.textContent;
} else { } else {
reply.type("text/html; charset=utf-8"); reply.type("text/html; charset=utf-8");
return reply.view("/templates/get.ejs", { parsed: parsed }); return reply.view("/templates/get.ejs", { parsed, remoteUrl });
} }
} }
); );

View File

@ -1,3 +1,12 @@
.menu {
display: flex;
flex-direction: row;
column-gap: 1rem;
}
.title {
font-weight: 500;
}
a { a {
color: var(--link); color: var(--link);
} }

View File

@ -11,6 +11,10 @@
</head> </head>
<body> <body>
<main> <main>
<div class="menu">
<a href="/">Home</a>
<a href="<%= remoteUrl %>">Original page</a>
</div>
<div class="title"> <div class="title">
<%= parsed.title %> <%= parsed.title %>
</div> </div>