summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNinoReichardt <nino.reichardt@oakk.nl>2026-11-15 18:19:39 +0100
committerNinoReichardt <nino.reichardt@oakk.nl>2026-11-15 18:19:39 +0100
commit7a6863ba0c858554225648c788227fe3bc770927 (patch)
tree7abdcd7f3bec0ce0e1ee7c686a10e1fa19316ca1
parentfc6a8ec0adfd24d08c6ea993cde44784a835b430 (diff)
downloadnire-web-7a6863ba0c858554225648c788227fe3bc770927.tar.gz
nire-web-7a6863ba0c858554225648c788227fe3bc770927.zip
feat: csp and sitemap
-rw-r--r--_headers1
-rw-r--r--assets/main.css13
-rw-r--r--index.html5
-rw-r--r--sitemap.xml6
4 files changed, 21 insertions, 4 deletions
diff --git a/_headers b/_headers
index 88b5885..3ca0862 100644
--- a/_headers
+++ b/_headers
@@ -5,6 +5,7 @@
Content-Type: application/manifest+json
/*
+ Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self'; font-src 'self'; img-src 'self'; object-src 'none'; base-uri 'none'; frame-ancestors 'none'; form-action 'none'
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
X-Frame-Options: DENY
diff --git a/assets/main.css b/assets/main.css
index bcf5add..cae7aed 100644
--- a/assets/main.css
+++ b/assets/main.css
@@ -11,6 +11,17 @@ html {
background: #eeeeee
}
+#renderer {
+ position: fixed;
+ padding: 0;
+ margin: 0;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ z-index: -5;
+}
+
* {
font-family: "Inter", sans-serif;
font-optical-sizing: auto;
@@ -36,6 +47,8 @@ ul li {
}
hr {
+ margin-block: 1.25rem;
+ opacity: 0.5;
border: 0;
border-top: 1px solid var(--text-dim);
}
diff --git a/index.html b/index.html
index e1e477f..52763cd 100644
--- a/index.html
+++ b/index.html
@@ -29,10 +29,7 @@
</head>
<body>
- <div
- id="renderer"
- style="position: fixed; padding: 0; margin: 0; top: 0; bottom: 0; left: 0; right: 0; z-index: -5;"
- ></div>
+ <div id="renderer"></div>
<div class="center">
<main class="content-width padding-x-md">
<section>
diff --git a/sitemap.xml b/sitemap.xml
new file mode 100644
index 0000000..7660184
--- /dev/null
+++ b/sitemap.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+ <url>
+ <loc>https://nire.dev/</loc>
+ </url>
+</urlset>