Add Nav, About/Projects pages and nginx hardening
CI / ci (push) Successful in 28s

Harden nginx: add CSP, HSTS, Referrer-Policy and Permissions-Policy;
include image/svg+xml in gzip types; set X-Content-Type-Options on
static assets; change try_files to return =404.

Add Nav component and wire into BaseLayout; add About and Projects
pages with projects.json, an initial blog post, and small layout/padding
adjustments (removed redundant back links).
This commit is contained in:
2026-03-04 19:53:13 +01:00
parent 50efbf6f57
commit 7fbe9a3e43
11 changed files with 738 additions and 60 deletions
+1
View File
@@ -60,6 +60,7 @@ import BaseLayout from "../layouts/BaseLayout.astro";
justify-content: center;
min-height: 100vh;
padding: var(--space-md);
padding-top: calc(var(--space-md) + 3rem);
}
.container {
+236
View File
@@ -0,0 +1,236 @@
---
import BaseLayout from "../layouts/BaseLayout.astro";
---
<BaseLayout
title="About — Hidden Den Cafe"
description="About Latte — IT wizard, self-hosting advocate, privacy enthusiast, and the person behind Hidden Den Cafe."
>
<div class="matrix-bg" aria-hidden="true"></div>
<main class="main">
<div class="container">
<header class="header fade-in">
<h1 class="title">About</h1>
<div class="divider">══════════════════════════════</div>
</header>
<section class="section fade-in">
<h2>The Den</h2>
<p class="desc">
Hidden Den Cafe is my little corner of the internet — self-hosted,
self-maintained, and free from corporate nonsense. No trackers, no ads,
no data harvesting. Just a cozy space that I built and control.
</p>
</section>
<section class="section fade-in">
<h2>Who I Am</h2>
<p class="desc">
I'm <span class="highlight">Latte</span> — an IT wizard with a homelab,
a love for privacy, and a deep distrust of companies that treat your data
like their product. I believe in owning your infrastructure, running your
own services, and keeping things under your own roof.
</p>
<p class="desc">
I'm a gay furry developer who builds things because I want them to exist —
not because some product manager told me to. My stack leans toward Python
and self-hosted tooling, but I'm always exploring new things.
</p>
</section>
<section class="section fade-in">
<h2>The Homelab</h2>
<p class="desc">
Most of what runs here lives on my own hardware — Gitea for code, Docker
for deployment, nginx for serving. Where physical infra doesn't make sense,
I rent VPS capacity from OVH and Play.hosting. For work, the Microsoft 365
ecosystem does what it needs to do.
</p>
<p class="desc">
The goal isn't purity — it's control. Keep data minimal, choose providers
you understand, avoid surveillance-adjacent platforms. Self-host what you
can; rent infra where it's practical; use what you need without pretending
you don't.
</p>
</section>
<section class="section fade-in">
<h2>Ethos</h2>
<ul class="values">
<li><span class="value-key">privacy:</span> Your data is yours. Period.</li>
<li><span class="value-key">self-hosting:</span> If you can run it yourself, you should.</li>
<li><span class="value-key">open source:</span> Knowledge should be shared.</li>
<li><span class="value-key">small web:</span> The internet is better when it's personal.</li>
</ul>
</section>
<footer class="footer fade-in">
<p>Made with love by Latte</p>
</footer>
</div>
</main>
</BaseLayout>
<style>
.matrix-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.03;
background:
linear-gradient(var(--color-accent) 1px, transparent 1px),
linear-gradient(90deg, var(--color-accent) 1px, transparent 1px);
background-size: 50px 50px;
animation: grid-move 20s linear infinite;
}
@keyframes grid-move {
0% { transform: translate(0, 0); }
100% { transform: translate(50px, 50px); }
}
.main {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-lg) var(--space-md);
padding-top: calc(var(--space-lg) + 3rem);
}
.container {
max-width: 700px;
width: 100%;
background: rgba(30, 30, 46, 0.8);
backdrop-filter: blur(10px);
border: 1px solid var(--color-surface);
border-radius: 8px;
padding: var(--space-xl);
}
.header {
text-align: center;
margin-bottom: var(--space-lg);
}
.title {
font-size: 2rem;
font-weight: 700;
letter-spacing: 2px;
}
.divider {
color: var(--color-surface);
text-align: center;
font-size: 0.75rem;
margin: var(--space-md) 0;
user-select: none;
}
.section {
margin: var(--space-lg) 0;
}
.section h2 {
font-size: 1rem;
text-transform: uppercase;
letter-spacing: 2px;
margin-bottom: var(--space-sm);
color: var(--color-accent);
}
.desc {
color: var(--color-text-dim);
line-height: 1.7;
margin-bottom: var(--space-sm);
}
.desc:last-child {
margin-bottom: 0;
}
.highlight {
color: var(--color-accent-bright);
font-weight: 700;
}
.values {
list-style: none;
display: flex;
flex-direction: column;
gap: var(--space-xs);
}
.values li {
color: var(--color-text-dim);
line-height: 1.6;
}
.value-key {
color: var(--color-accent);
font-weight: 600;
}
.footer {
margin-top: var(--space-xl);
text-align: center;
}
.footer p {
color: var(--color-text-dim);
font-size: 0.85rem;
}
.fade-in {
animation: fadeIn 0.6s ease-out forwards;
opacity: 0;
}
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }
.fade-in:nth-child(7) { animation-delay: 0.7s; }
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 600px) {
.container {
padding: var(--space-md);
}
.title {
font-size: 1.5rem;
}
.divider {
font-size: 0.6rem;
}
}
@media (prefers-reduced-motion: reduce) {
.matrix-bg {
animation: none;
}
.fade-in {
animation: none;
opacity: 1;
}
}
</style>
+2 -17
View File
@@ -27,8 +27,6 @@ function formatDate(date: Date) {
<main class="main">
<div class="container">
<header class="header fade-in">
<p class="back"><a href="/blog">← back to blog</a></p>
<div class="divider">══════════════════════════════</div>
<h1 class="title">{post.data.title}</h1>
<p class="date">{formatDate(post.data.date)}</p>
<div class="divider">══════════════════════════════</div>
@@ -39,7 +37,6 @@ function formatDate(date: Date) {
</article>
<footer class="footer fade-in">
<div class="divider">══════════════════════════════</div>
<p>Made with love by Latte</p>
</footer>
</div>
@@ -73,6 +70,7 @@ function formatDate(date: Date) {
align-items: center;
justify-content: center;
padding: var(--space-lg) var(--space-md);
padding-top: calc(var(--space-lg) + 3rem);
}
.container {
@@ -89,19 +87,6 @@ function formatDate(date: Date) {
margin-bottom: var(--space-lg);
}
.back {
margin-bottom: var(--space-sm);
font-size: 0.85rem;
}
.back a {
color: var(--color-text-dim);
}
.back a:hover {
color: var(--color-accent);
}
.divider {
color: var(--color-surface);
text-align: center;
@@ -224,7 +209,7 @@ function formatDate(date: Date) {
}
.footer {
margin-top: var(--space-lg);
margin-top: var(--space-xl);
text-align: center;
}
+2 -16
View File
@@ -19,7 +19,6 @@ function formatDate(date: Date) {
<main class="main">
<div class="container">
<header class="header fade-in">
<p class="back"><a href="/">← back to home</a></p>
<h1 class="title">Blog</h1>
<div class="divider">══════════════════════════════</div>
</header>
@@ -45,7 +44,6 @@ function formatDate(date: Date) {
)}
<footer class="footer fade-in">
<div class="divider">══════════════════════════════</div>
<p>Made with love by Latte</p>
</footer>
</div>
@@ -79,6 +77,7 @@ function formatDate(date: Date) {
align-items: center;
justify-content: center;
padding: var(--space-lg) var(--space-md);
padding-top: calc(var(--space-lg) + 3rem);
}
.container {
@@ -95,19 +94,6 @@ function formatDate(date: Date) {
margin-bottom: var(--space-lg);
}
.back {
margin-bottom: var(--space-sm);
font-size: 0.85rem;
}
.back a {
color: var(--color-text-dim);
}
.back a:hover {
color: var(--color-accent);
}
.title {
font-size: 2rem;
font-weight: 700;
@@ -176,7 +162,7 @@ function formatDate(date: Date) {
}
.footer {
margin-top: var(--space-lg);
margin-top: var(--space-xl);
text-align: center;
}
+3 -23
View File
@@ -38,8 +38,6 @@ if (now < new Date(now.getFullYear(), 6, 8)) age--;
</div>
</section>
<div class="divider">══════════════════════════════</div>
<!-- Cryptographic Keys -->
<section class="section fade-in">
<h2>Cryptographic Keys</h2>
@@ -59,8 +57,6 @@ if (now < new Date(now.getFullYear(), 6, 8)) age--;
</div>
</section>
<div class="divider">══════════════════════════════</div>
<!-- Games -->
<section class="section fade-in">
<h2>Games</h2>
@@ -69,8 +65,6 @@ if (now < new Date(now.getFullYear(), 6, 8)) age--;
</p>
</section>
<div class="divider">══════════════════════════════</div>
<!-- Socials -->
<section class="section fade-in">
<h2>Socials</h2>
@@ -84,8 +78,6 @@ if (now < new Date(now.getFullYear(), 6, 8)) age--;
</ul>
</section>
<div class="divider">══════════════════════════════</div>
<!-- Services -->
<section class="section fade-in">
<h2>Services</h2>
@@ -94,8 +86,6 @@ if (now < new Date(now.getFullYear(), 6, 8)) age--;
</ul>
</section>
<div class="divider">══════════════════════════════</div>
<!-- Donate -->
<section class="section fade-in">
<h2>Support</h2>
@@ -111,19 +101,8 @@ if (now < new Date(now.getFullYear(), 6, 8)) age--;
</div>
</section>
<div class="divider">══════════════════════════════</div>
<!-- Blog -->
<section class="section fade-in">
<h2>Blog</h2>
<ul class="links">
<li><a href="/blog">blog</a> — thoughts and things</li>
</ul>
</section>
<!-- Footer -->
<footer class="footer fade-in">
<div class="divider">══════════════════════════════</div>
<p>Made with love by Latte</p>
</footer>
</div>
@@ -158,6 +137,7 @@ if (now < new Date(now.getFullYear(), 6, 8)) age--;
align-items: center;
justify-content: center;
padding: var(--space-lg) var(--space-md);
padding-top: calc(var(--space-lg) + 3rem);
}
.container {
@@ -190,7 +170,7 @@ if (now < new Date(now.getFullYear(), 6, 8)) age--;
}
.section {
margin: var(--space-md) 0;
margin: var(--space-lg) 0;
}
.section h2 {
@@ -322,7 +302,7 @@ if (now < new Date(now.getFullYear(), 6, 8)) age--;
}
.footer {
margin-top: var(--space-lg);
margin-top: var(--space-xl);
text-align: center;
}
+321
View File
@@ -0,0 +1,321 @@
---
import BaseLayout from "../layouts/BaseLayout.astro";
import projects from "../data/projects.json";
type Project = {
name: string;
description: string;
tags: string[];
status: "stable" | "wip" | "concept";
links: {
site?: string;
gitea?: string;
github?: string;
};
};
const statusColors: Record<string, string> = {
stable: "var(--color-green)",
wip: "var(--color-peach)",
concept: "var(--color-text-dim)",
};
const typedProjects = projects as Project[];
function getPrimaryLink(project: Project): string | undefined {
return project.links.site || project.links.gitea || project.links.github;
}
---
<BaseLayout
title="Projects — Hidden Den Cafe"
description="Things Latte has built — bots, tools, self-hosted services, and experiments from the den."
>
<div class="matrix-bg" aria-hidden="true"></div>
<main class="main">
<div class="container">
<header class="header fade-in">
<h1 class="title">Projects</h1>
<div class="divider">══════════════════════════════</div>
</header>
<section class="section fade-in">
<ul class="project-list">
{typedProjects.map((project) => (
<li class="project-item">
{getPrimaryLink(project) && (
<a
class="project-card-link"
href={getPrimaryLink(project)}
target="_blank"
rel="noopener noreferrer"
aria-label={project.name}
></a>
)}
<div class="project-header">
<h3 class="project-name">{project.name}</h3>
<span
class="project-status"
style={`color: ${statusColors[project.status]}`}
>
[{project.status}]
</span>
</div>
<p class="project-desc">{project.description}</p>
<div class="project-meta">
<div class="project-tags">
{project.tags.map((tag) => (
<span class="tag">{tag}</span>
))}
</div>
<div class="project-links">
{project.links.site && (
<a class="project-link-badge" href={project.links.site} target="_blank" rel="noopener noreferrer">site</a>
)}
{project.links.gitea && (
<a class="project-link-badge" href={project.links.gitea} target="_blank" rel="noopener noreferrer">gitea</a>
)}
{project.links.github && (
<a class="project-link-badge" href={project.links.github} target="_blank" rel="noopener noreferrer">github</a>
)}
</div>
</div>
</li>
))}
</ul>
</section>
<footer class="footer fade-in">
<p>Made with love by Latte</p>
</footer>
</div>
</main>
</BaseLayout>
<style>
.matrix-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.03;
background:
linear-gradient(var(--color-accent) 1px, transparent 1px),
linear-gradient(90deg, var(--color-accent) 1px, transparent 1px);
background-size: 50px 50px;
animation: grid-move 20s linear infinite;
}
@keyframes grid-move {
0% { transform: translate(0, 0); }
100% { transform: translate(50px, 50px); }
}
.main {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-lg) var(--space-md);
padding-top: calc(var(--space-lg) + 3rem);
}
.container {
max-width: 700px;
width: 100%;
background: rgba(30, 30, 46, 0.8);
backdrop-filter: blur(10px);
border: 1px solid var(--color-surface);
border-radius: 8px;
padding: var(--space-xl);
}
.header {
text-align: center;
margin-bottom: var(--space-lg);
}
.title {
font-size: 2rem;
font-weight: 700;
letter-spacing: 2px;
}
.divider {
color: var(--color-surface);
text-align: center;
font-size: 0.75rem;
margin: var(--space-md) 0;
user-select: none;
}
.section {
margin: var(--space-lg) 0;
}
.project-list {
list-style: none;
display: flex;
flex-direction: column;
gap: var(--space-md);
}
.project-item {
position: relative;
border: 1px solid var(--color-surface);
border-radius: 6px;
padding: var(--space-md);
background: var(--color-bg);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.project-item:hover {
border-color: var(--color-accent);
box-shadow: 0 0 0 1px var(--color-accent);
}
.project-item:hover .project-name {
text-decoration: underline;
text-underline-offset: 3px;
}
/* Stretched link covers the full card */
.project-card-link {
position: absolute;
inset: 0;
z-index: 0;
border-radius: 6px;
}
.project-header {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: var(--space-sm);
margin-bottom: var(--space-xs);
}
.project-name {
font-size: 1rem;
color: var(--color-accent-bright);
font-weight: 700;
}
.project-status {
font-size: 0.75rem;
white-space: nowrap;
}
.project-desc {
color: var(--color-text-dim);
font-size: 0.85rem;
line-height: 1.6;
margin-bottom: var(--space-sm);
}
.project-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-sm);
flex-wrap: wrap;
}
.project-tags {
display: flex;
gap: var(--space-xs);
flex-wrap: wrap;
}
.tag {
font-size: 0.7rem;
color: var(--color-accent);
border: 1px solid var(--color-surface);
padding: 1px 6px;
border-radius: 3px;
}
.project-links {
display: flex;
gap: var(--space-sm);
position: relative;
z-index: 1;
}
.project-link-badge {
color: var(--color-blue);
font-size: 0.8rem;
}
.project-link-badge:hover {
color: var(--color-accent-bright);
}
.footer {
margin-top: var(--space-xl);
text-align: center;
}
.footer p {
color: var(--color-text-dim);
font-size: 0.85rem;
}
.fade-in {
animation: fadeIn 0.6s ease-out forwards;
opacity: 0;
}
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 600px) {
.container {
padding: var(--space-md);
}
.title {
font-size: 1.5rem;
}
.divider {
font-size: 0.6rem;
}
.project-header {
flex-direction: column;
gap: 2px;
}
.project-meta {
flex-direction: column;
align-items: flex-start;
}
}
@media (prefers-reduced-motion: reduce) {
.matrix-bg {
animation: none;
}
.fade-in {
animation: none;
opacity: 1;
}
}
</style>