chore: Remove single-post.html and add dismiss button to info box

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-07 07:26:21 +08:00
1 parent b855da785b
commit 622c3e6f39
2 files changed
+12 -290

No files matched your search

+12 -6
View File
@@ -2,12 +2,18 @@
<div class="w-full mx-auto rounded-lg p-6 bg-bg-footer">
<h2 class="text-xl font-semibold text-center text-primary mb-6">Account Settings</h2>
<!-- Email Info Box -->
<div class="bg-rules-bg p-4 rounded mb-6 text-primary text-sm">
<p>
Please provide a valid email address. This ensures we can assist you with password recovery if needed. Rest assured, your email address remains confidential between you and us, invisible to web crawlers and other users.
</p>
</div>
<div id="info-box" class="relative p-4 rounded mb-4 border border-gray-300 text-gray-700">
<button
type="button"
aria-label="Close info"
onclick="document.getElementById('info-box').style.display='none'"
class="absolute top-2 right-3 text-gray-500 hover:text-gray-700 focus:outline-none focus:ring-1 focus:ring-gray-500 rounded-md p-1">
<i class="fas fa-times"></i>
</button>
<p class="mr-8"> <!-- Ensure text doesn't overlap with the close button -->
Please provide a valid email address. This ensures we can assist you with password recovery if needed. Rest assured, your email address remains confidential between you and us, invisible to web crawlers and other users.
</p>
</div>
<!-- Tabs Navigation -->
<div class="mb-4 border-b border-gray-200">
-284
View File
@@ -1,284 +0,0 @@
<!doctype html>
<html lang="en" class="bg-bg-light">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Post - Behind the Desk</title>
<link href="/assets/css/styles.css" rel="stylesheet">
</head>
<body class="font-sans text-text-default pt-navbar-height">
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
<div class="max-w-screen-lg mx-auto px-4">
<div class="flex justify-between">
<div class="flex">
<a class="py-2 px-3 font-bold text-primary" href="/">
Behind the Desk
</a>
<div class="hidden md:flex">
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary font-semibold" href="#">top 🔥</a>
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">ask</a>
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">show</a>
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">submit</a>
</div>
</div>
<div class="flex items-center">
<div class="py-2 px-3">
<a href="/login.html" class="text-primary hover:bg-opacity-5 hover:bg-primary">login</a>
</div>
</div>
<!-- Mobile menu button -->
<div class="md:hidden flex items-center">
<button id="menuButton" class="text-primary p-3" aria-label="menu" aria-expanded="false">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
</svg>
</button>
</div>
</div>
<!-- Mobile Menu -->
<div id="mobileMenu" class="hidden md:hidden">
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary font-semibold" href="#">top 🔥</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">ask</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">show</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">submit</a>
</div>
</div>
</nav>
<main class="max-w-screen-lg mx-auto py-4 pb-16 bg-bg-footer">
<div class="px-4 mt-8">
<article class="flex">
<div class="mr-2">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Upvote">▲</a>
</div>
<div class="flex-1 text-left">
<div>
<p>
<strong><a href="#" class="text-text-title font-normal text-base hover:underline">[Ask] The saga of the disappearing ergonomic chair continues. ✏️</a></strong>
</p>
<!-- Post title header -->
<div class="mt-0.5 mb-2 text-sm flex items-center">
<small class="text-text-muted ml-2 text-sm hover:underline">@deskdetective</small>
<small class="text-text-muted ml-2 text-sm">1h ago | <a href="#" class="ml-2 text-xs text-primary hover:underline">report</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">12 comments</a></small>
</div>
<p>
Every time I leave my desk, it seems to vanish. Suspecting foul play at this point. Anyone else faced something like this?
</p>
</div>
</div>
</article>
<div class="mt-8">
<form>
<div class="mb-4">
<label class="block font-medium text-sm mb-1" for="comment-body">Comment:</label>
<div>
<textarea class="w-full px-3 py-2 bg-bg-light border border-gray-300 rounded" id="comment-body" name="body" placeholder="Enter your comment" required></textarea>
</div>
</div>
<div>
<button class="px-4 py-2 bg-primary text-white rounded hover:bg-primary-dark" type="submit">Add Comment</button>
</div>
</form>
<h3 class="mt-4 text-lg font-medium">Comments</h3>
<div class="mt-4">
<!-- Main Comment -->
<div class="px-0 text-sm">
<div class="mb-1">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
<small class="text-text-muted ml-2 text-sm">@commenter1</small>
<small class="text-text-muted ml-2 text-sm">2h ago | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a></small>
</div>
<div>
<p>Haha, this totally happened to me last year. We had a phantom chair thief at work and it became an ongoing office joke for months!</p>
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
</div>
<!-- Nested Comment -->
<div class="ml-2 mt-4 border-l-2 border-gray-200 pl-2 text-sm md:pl-4">
<div class="mb-1">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
<small class="text-text-muted ml-2 text-sm">@nestedcommenter1</small>
<small class="text-text-muted ml-2 text-sm">1h ago | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a></small>
</div>
<div>
<p>Did they ever catch who it was? 😂 I'd totally set up a hidden camera if it kept happening that much.</p>
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
</div>
<!-- Reply Box -->
<div class="mt-4">
<textarea class="w-full px-3 py-2 bg-bg-light border border-gray-300 rounded text-sm mb-2" placeholder="Reply to this comment..."></textarea>
<button class="px-3 py-1 text-xs bg-primary text-white rounded hover:bg-primary-dark">Reply</button>
</div>
</div>
</div>
<!-- Another Comment -->
<div class="px-0 text-sm">
<div class="mb-1">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
<small class="text-text-muted ml-2 text-sm">@commenter2</small>
<small class="text-text-muted ml-2 text-sm">3h ago | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a></small>
</div>
<div>
<p>At my old job, chairs were so bad people would "borrow" a good one whenever someone went on vacation. A real survival of the fittest situation!</p>
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
</div>
</div>
<!-- Third Comment -->
<div class="px-0 text-sm">
<div class="mb-1">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
<small class="text-text-muted ml-2 text-sm">@commenter3</small>
<small class="text-text-muted ml-2 text-sm">5h ago | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a></small>
</div>
<div>
<p>I recommend putting a bright sticker with your name on the chair. Makes it harder for people to pretend they didn't know it wasn't theirs.</p>
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
</div>
</div>
<!-- Main Comment with Deeply Nested Replies -->
<div class="px-0 text-sm">
<div class="mb-1">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
<small class="text-text-muted ml-2 text-sm">@commenter1</small>
<small class="text-text-muted ml-2 text-sm">2h ago | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a></small>
</div>
<div>
<p>Haha, this totally happened to me last year. It was hilarious and annoying at the same time.</p>
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
</div>
<!-- Level 1 Nested Comment -->
<div class="ml-2 mt-4 border-l-2 border-gray-200 pl-2 text-sm md:pl-4">
<div class="mb-1">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
<small class="text-text-muted ml-2 text-sm">@nested1</small>
<small class="text-text-muted ml-2 text-sm">1h 50m ago | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a></small>
</div>
<div>
<p>Honestly, office pranks can either build great vibes or cause chaos if not handled well 😂</p>
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
</div>
<!-- Level 2 Nested Comment -->
<div class="ml-2 mt-4 border-l-2 border-gray-200 pl-2 text-sm md:pl-4">
<div class="mb-1">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
<small class="text-text-muted ml-2 text-sm">@nested2</small>
<small class="text-text-muted ml-2 text-sm">1h 40m ago | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a></small>
</div>
<div>
<p>Yeah, in our team it turned into an inside joke that lasted months. No HR complaints thankfully!</p>
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
</div>
<!-- Level 3 Nested Comment -->
<div class="ml-2 mt-4 border-l-2 border-gray-200 pl-2 text-sm md:pl-4">
<div class="mb-1">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
<small class="text-text-muted ml-2 text-sm">@nested3</small>
<small class="text-text-muted ml-2 text-sm">1h 30m ago | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a></small>
</div>
<div>
<p>Ours got so bad management had to install chair locks (yes, seriously!).</p>
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
</div>
<!-- Reply Box -->
<div class="mt-4">
<textarea class="w-full px-3 py-2 bg-bg-light border border-gray-300 rounded text-sm mb-2" placeholder="Reply to this comment..."></textarea>
<button class="px-3 py-1 text-xs bg-primary text-white rounded hover:bg-primary-dark">Reply</button>
</div>
<!-- Level 4 Nested Comment -->
<div class="ml-2 mt-4 border-l-2 border-gray-200 pl-2 text-sm md:pl-4">
<div class="mb-1">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
<small class="text-text-muted ml-2 text-sm">@nested4</small>
<small class="text-text-muted ml-2 text-sm">1h 20m ago | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a></small>
</div>
<div>
<p>😂 Chair locks?! That's next level commitment to stopping thefts.</p>
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
</div>
<!-- Level 5 Nested Comment -->
<div class="ml-2 mt-4 border-l-2 border-gray-200 pl-2 text-sm md:pl-4">
<div class="mb-1">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
<small class="text-text-muted ml-2 text-sm">@nested5</small>
<small class="text-text-muted ml-2 text-sm">1h 10m ago | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a></small>
</div>
<div>
<p>I would LOVE to see the memo that went out announcing chair locks to employees 😆</p>
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
</div>
<!-- Level 6 Nested Comment -->
<div class="ml-2 mt-4 border-l-2 border-gray-200 pl-2 text-sm md:pl-4">
<div class="mb-1">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover">▲</a>
<small class="text-text-muted ml-2 text-sm">@nested6</small>
<small class="text-text-muted ml-2 text-sm">1h 5m ago | <a href="#" class="ml-2 text-xs text-primary hover:underline">parent</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a></small>
</div>
<div>
<p>Imagine coming into work one day and finding your chair padlocked to the floor 😅</p>
<small class="text-right underline text-xs cursor-pointer mt-1 inline-block">reply</small>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<footer class="max-w-screen-lg mx-auto bg-bg-footer py-8 px-6 text-text-muted border-t border-navbar-border">
<div class="text-center">
<p>
Seen something today? Don't let it go to waste. <a href="#" class="text-primary hover:underline">Submit it</a>.
</p>
<div class="mt-4 text-sm">
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Guidelines</a> |
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Tips</a> |
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Privacy</a> |
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">DMCA</a>
</div>
<div class="mt-4 text-center">
<input type="text" placeholder="Search..." class="px-3 py-2 border border-gray-300 rounded w-48 bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary">
</div>
</div>
</footer>
<script>
document.addEventListener('DOMContentLoaded', () => {
const menuButton = document.getElementById('menuButton');
const mobileMenu = document.getElementById('mobileMenu');
menuButton.addEventListener('click', () => {
mobileMenu.classList.toggle('hidden');
const expanded = menuButton.getAttribute('aria-expanded') === 'true';
menuButton.setAttribute('aria-expanded', !expanded);
});
});
</script>
</body>
</html>