add robots.txt and selfhosted page
All checks were successful
Docker / build (push) Successful in 1m21s

This commit is contained in:
Robin Bärtschi 2025-02-23 12:55:34 +01:00
parent 6bea4e1323
commit 8ee3db36fb
4 changed files with 46 additions and 1 deletions

View File

@ -5,6 +5,8 @@ export const Header: FC = () => {
<a href="/">/</a> <a href="/">/</a>
<span class="header-span"></span> <span class="header-span"></span>
<a href="/accounts">/accounts</a> <a href="/accounts">/accounts</a>
<span class="header-span"></span>
<a href="/selfhosted">/selfhosted</a>
</header>; </header>;
}; };

26
src/Selfhosted.tsx Normal file
View File

@ -0,0 +1,26 @@
import type { FC } from 'hono/jsx';
import Header from './Header';
import Footer from './Footer';
export const Selfhosted: FC = () => {
return (
<>
<Header />
<main class="middle-flex">
<h1>Self hosted services</h1>
<article>
I self host some services, some of them are open for registration, for the other ones, you can always ask for access.
<ul class="link-list">
<li><a href="https://maven.robaertschi.xyz">Maven</a> You can get an account if you ask nicely :)</li>
<li><a href="https://git.robaertschi.xyz/">Gitea instance</a> You can register if you want to join, if you want access to my gitea runner, send me a <a href="/accounts">message</a></li>
</ul>
</article>
</main>
<Footer />
</>
);
};
export default Selfhosted;

View File

@ -4,6 +4,7 @@ import { logger } from 'hono/logger';
import BaseDocument from './BaseDocument'; import BaseDocument from './BaseDocument';
import Main from './Main'; import Main from './Main';
import Accounts from './Accounts'; import Accounts from './Accounts';
import Selfhosted from './Selfhosted';
const app = new Hono(); const app = new Hono();
@ -26,6 +27,18 @@ app.get("/accounts", c => {
); );
}); });
app.get("/selfhosted", c => {
return c.html(
<BaseDocument title="Selfhosted - RoBaertschi">
<Selfhosted />
</BaseDocument>
);
});
app.get("/robots.txt", c => {
return c.text("User-agent: *\nDisallow:\n");
});
export default { export default {
port: 3000, port: 3000,
fetch: app.fetch, fetch: app.fetch,

View File

@ -77,9 +77,13 @@ button.primary:hover {
cursor: pointer; cursor: pointer;
} }
ul.link-list {
padding: 0;
}
.link-list li { .link-list li {
list-style: none; list-style: none;
padding: 0.2rem; padding: 0.2rem 0;
} }
.introduction { .introduction {