From b08ee1ac1ccf3cbcda017d975651b46d26be983b Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 2 Dec 2025 15:57:18 -0800 Subject: add header for comment sections of webmentions --- .../posts/2025-12-01-hello-world/index.html | 21 +++++++++++++++++++++ .../posts/2025-12-02-china-town-fair/index.html | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) (limited to 'micro.pinapelz.moe/posts') diff --git a/micro.pinapelz.moe/posts/2025-12-01-hello-world/index.html b/micro.pinapelz.moe/posts/2025-12-01-hello-world/index.html index 4a957c0..9481550 100644 --- a/micro.pinapelz.moe/posts/2025-12-01-hello-world/index.html +++ b/micro.pinapelz.moe/posts/2025-12-01-hello-world/index.html @@ -212,6 +212,17 @@ AtProto allows you to host a PDS (Personal Data Server) which store } +.wm-comments-header { + font-size: 1.1rem; + font-weight: 600; + color: var(--titlecolor); + margin-bottom: 0.5rem; + margin-top: 1rem; + text-transform: uppercase; + letter-spacing: 0.5px; +} + + .wm-regular { display: flex; flex-direction: column; @@ -284,6 +295,10 @@ AtProto allows you to host a PDS (Personal Data Server) which store .wm-reaction-title { font-size: 1rem; } + + .wm-comments-header { + font-size: 1rem; + } } @@ -407,6 +422,12 @@ async function loadMentions() { const regularMentionsToShow = [...replies, ...regularMentions]; if (regularMentionsToShow.length > 0) { + + const commentsHeader = document.createElement("div"); + commentsHeader.className = "wm-comments-header"; + commentsHeader.textContent = "Comments"; + container.appendChild(commentsHeader); + const regularDiv = document.createElement("div"); regularDiv.className = "wm-regular"; diff --git a/micro.pinapelz.moe/posts/2025-12-02-china-town-fair/index.html b/micro.pinapelz.moe/posts/2025-12-02-china-town-fair/index.html index 88ce868..691974c 100644 --- a/micro.pinapelz.moe/posts/2025-12-02-china-town-fair/index.html +++ b/micro.pinapelz.moe/posts/2025-12-02-china-town-fair/index.html @@ -217,6 +217,17 @@ } +.wm-comments-header { + font-size: 1.1rem; + font-weight: 600; + color: var(--titlecolor); + margin-bottom: 0.5rem; + margin-top: 1rem; + text-transform: uppercase; + letter-spacing: 0.5px; +} + + .wm-regular { display: flex; flex-direction: column; @@ -289,6 +300,10 @@ .wm-reaction-title { font-size: 1rem; } + + .wm-comments-header { + font-size: 1rem; + } } @@ -412,6 +427,12 @@ async function loadMentions() { const regularMentionsToShow = [...replies, ...regularMentions]; if (regularMentionsToShow.length > 0) { + + const commentsHeader = document.createElement("div"); + commentsHeader.className = "wm-comments-header"; + commentsHeader.textContent = "Comments"; + container.appendChild(commentsHeader); + const regularDiv = document.createElement("div"); regularDiv.className = "wm-regular"; -- cgit v1.2.3