Files
project-behind-the-desk/single-post.html
T
2025-04-27 20:31:44 +08:00

404 lines
15 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="node_modules/bulma/css/bulma.min.css">
<link rel="stylesheet" href="style.css">
<title>Post - Behind the Desk</title>
<style>
.single-post-container {
max-width: 600px;
margin-top: 2rem;
}
.comment-section {
margin-top: 2rem;
}
.comment {
margin-top: 1.5rem;
padding-left: 0;
font-size: 0.9rem; /* Smaller text for comments */
}
.nested-comment {
margin-left: 1.5rem;
margin-top: 1rem;
border-left: 2px solid #ddd;
padding-left: 1rem;
font-size: 0.9rem;
}
.comment-header small.reply {
text-decoration: underline;
font-size: 0.75rem;
cursor: pointer;
margin-left: 0.5rem;
display: inline-block;
}
.comment-header a.nav-link {
font-size: 0.75rem;
margin-left: 0.5rem;
text-decoration: underline;
color: #38315f;
}
.comment-header a.nav-link:hover {
color: #2d274a;
}
.upvote-arrow {
font-size: 0.9rem;
margin-right: 0.5rem;
color: #6c757d;
}
.upvote-arrow:hover {
color: #ff6600;
}
.reply-box {
margin-left: 2rem;
margin-top: 1rem;
}
.reply-box textarea {
margin-bottom: 0.5rem;
background-color: #f8f9fa;
border: 1px solid #dbdbdb;
font-size: 0.9rem;
}
.comments-list {
margin-top: 1rem;
}
.comment-header {
margin-bottom: 0.3rem;
}
.comment-body p {
margin-bottom: 0.5rem;
}
.button.is-primary {
background-color: #38315f;
border-color: transparent;
color: #fff;
}
.button.is-primary:hover {
background-color: #2d274a;
}
textarea.textarea {
background-color: #f8f9fa;
border: 1px solid #dbdbdb;
color: #363636;
}
/* Styling the post title header to appear below the title and closer to it */
.post-title-header {
font-size: 0.9rem; /* Slightly smaller font size */
margin-top: 0.1rem; /* Reduced space between title and header */
margin-bottom: 0.5rem; /* Added space below the title header */
color: #38315f; /* Regular color */
}
/* Style for handle and time (grey color and bigger text) */
.post-title-header .handle,
.post-title-header .time {
font-size: 1rem; /* Increase the font size */
color: #6b6b6b; /* Grey color for handle and time */
}
/* Make the handle underlined on hover */
.post-title-header .handle {
text-decoration: none;
cursor: pointer;
}
.post-title-header .handle:hover {
text-decoration: underline; /* Underline effect on hover */
}
/* Style for the navigation links (parent, next) */
.post-title-header .nav-link {
font-size: 0.875rem; /* Smaller font size for the links */
margin-left: 0.5rem;
color: #38315f; /* Match the color with other text */
text-decoration: none;
}
.post-title-header .nav-link:hover {
color: #2d274a; /* Darker color on hover */
text-decoration: underline; /* Underline effect on hover */
}
/* Styling for the body text to create more space below the title header */
.content p:first-of-type {
margin-bottom: 0.0rem; /* Add more space below the title header and before the body */
}
/* Ensure post text is aligned to the left */
.media-content {
text-align: left;
}
</style>
</head>
<body>
<nav class="navbar is-fixed-top" role="navigation" aria-label="main navigation">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item has-text-weight-bold" href="/">Behind the Desk</a>
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
<span aria-hidden="true"></span><span aria-hidden="true"></span><span aria-hidden="true"></span>
</a>
</div>
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="/">top 🔥</a>
<a class="navbar-item" href="#">new</a>
<a class="navbar-item" href="#">nearby</a>
<a class="navbar-item" href="#">past</a>
<a class="navbar-item" href="#">ask</a>
<a class="navbar-item" href="#">show</a>
<a class="navbar-item" href="#">submit</a>
</div>
<div class="navbar-end">
<div class="navbar-item">
<a href="/login.html">login</a>
</div>
</div>
</div>
</div>
</nav>
<main class="section main-content">
<div class="container single-post-container">
<article class="media">
<div class="media-left">
<a href="#" class="upvote-arrow" title="Upvote">▲</a>
</div>
<div class="media-content">
<div class="content">
<p>
<strong><a href="#" class="post-title">[Ask] The saga of the disappearing ergonomic chair continues. ✏️</a></strong>
</p>
<!-- Moved post-title-header below the title -->
<div class="post-title-header">
<small class="handle">@deskdetective</small> <small class="time">1h ago</small>
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
</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="comment-section">
<form>
<div class="field">
<label class="label" for="comment-body">Comment:</label>
<div class="control">
<textarea class="textarea" id="comment-body" name="body" placeholder="Enter your comment" required></textarea>
</div>
</div>
<div class="field">
<div class="control">
<button class="button is-primary" type="submit">Add Comment</button>
</div>
</div>
</form>
<h3 class="mt-4">Comments</h3>
<div class="comments-list">
<!-- Main Comment -->
<div class="comment">
<div class="comment-header">
<a href="#" class="upvote-arrow">▲</a>
<small class="handle">@commenter1</small> <small class="time">2h ago</small>
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
<small class="reply">reply</small>
</div>
<div class="comment-body">
<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>
</div>
<!-- Nested Comment -->
<div class="nested-comment">
<div class="comment-header">
<a href="#" class="upvote-arrow">▲</a>
<small class="handle">@nestedcommenter1</small> <small class="time">1h ago</small>
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
<small class="reply">reply</small>
</div>
<div class="comment-body">
<p>Did they ever catch who it was? 😂 I'd totally set up a hidden camera if it kept happening that much.</p>
</div>
<!-- Example Reply Box -->
<div class="reply-box">
<textarea class="textarea" placeholder="Reply to this comment..."></textarea>
<button class="button is-small is-primary">Reply</button>
</div>
</div>
</div>
<!-- Another Comment -->
<div class="comment">
<div class="comment-header">
<a href="#" class="upvote-arrow">▲</a>
<small class="handle">@commenter2</small> <small class="time">3h ago</small>
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
<small class="reply">reply</small>
</div>
<div class="comment-body">
<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>
</div>
</div>
<!-- Third Comment -->
<div class="comment">
<div class="comment-header">
<a href="#" class="upvote-arrow">▲</a>
<small class="handle">@commenter3</small> <small class="time">5h ago</small>
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
<small class="reply">reply</small>
</div>
<div class="comment-body">
<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>
</div>
</div>
<!-- Main Comment -->
<div class="comment">
<div class="comment-header">
<a href="#" class="upvote-arrow">▲</a>
<small class="handle">@commenter1</small> <small class="time">2h ago</small>
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
<small class="reply">reply</small>
</div>
<div class="comment-body">
<p>Haha, this totally happened to me last year. It was hilarious and annoying at the same time.</p>
</div>
<!-- Level 1 Nested Comment -->
<div class="nested-comment">
<div class="comment-header">
<a href="#" class="upvote-arrow">▲</a>
<small class="handle">@nested1</small> <small class="time">1h 50m ago</small>
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
<small class="reply">reply</small>
</div>
<div class="comment-body">
<p>Honestly, office pranks can either build great vibes or cause chaos if not handled well 😂</p>
</div>
<!-- Level 2 Nested Comment -->
<div class="nested-comment">
<div class="comment-header">
<a href="#" class="upvote-arrow">▲</a>
<small class="handle">@nested2</small> <small class="time">1h 40m ago</small>
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
<small class="reply">reply</small>
</div>
<div class="comment-body">
<p>Yeah, in our team it turned into an inside joke that lasted months. No HR complaints thankfully!</p>
</div>
<!-- Level 3 Nested Comment -->
<div class="nested-comment">
<div class="comment-header">
<a href="#" class="upvote-arrow">▲</a>
<small class="handle">@nested3</small> <small class="time">1h 30m ago</small>
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
<small class="reply">reply</small>
</div>
<div class="comment-body">
<p>Ours got so bad management had to install chair locks (yes, seriously!).</p>
</div>
<!-- Example Reply Box -->
<div class="reply-box">
<textarea class="textarea" placeholder="Reply to this comment..."></textarea>
<button class="button is-small is-primary">Reply</button>
</div>
<!-- Level 4 Nested Comment -->
<div class="nested-comment">
<div class="comment-header">
<a href="#" class="upvote-arrow">▲</a>
<small class="handle">@nested4</small> <small class="time">1h 20m ago</small>
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
<small class="reply">reply</small>
</div>
<div class="comment-body">
<p>😂 Chair locks?! That's next level commitment to stopping thefts.</p>
</div>
<!-- Level 5 Nested Comment -->
<div class="nested-comment">
<div class="comment-header">
<a href="#" class="upvote-arrow">▲</a>
<small class="handle">@nested5</small> <small class="time">1h 10m ago</small>
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
<small class="reply">reply</small>
</div>
<div class="comment-body">
<p>I would LOVE to see the memo that went out announcing chair locks to employees 😆</p>
</div>
<!-- Level 6 Nested Comment -->
<div class="nested-comment">
<div class="comment-header">
<a href="#" class="upvote-arrow">▲</a>
<small class="handle">@nested6</small> <small class="time">1h 5m ago</small>
<a href="#" class="nav-link">parent</a> <a href="#" class="nav-link">next</a>
<small class="reply">reply</small>
</div>
<div class="comment-body">
<p>Imagine coming into work one day and finding your chair padlocked to the floor 😅</p>
</div>
</div>
</div> <!-- Level 5 -->
</div> <!-- Level 4 -->
</div> <!-- Level 3 -->
</div> <!-- Level 2 -->
</div> <!-- Level 1 -->
</div> <!-- Main Comment -->
</div>
</div>
</div>
</main>
<footer class="footer">
<div class="content has-text-centered">
<p>
Seen something today? Don’t let it go to waste. <a href="#">Submit it</a>.
</p>
<div class="footer-menu">
<a href="#">Guidelines</a> |
<a href="#">Tips</a> |
<a href="#">Privacy</a> |
<a href="#">DMCA</a>
</div>
<div class="search-box">
<input type="text" placeholder="Search...">
</div>
</div>
</footer>
<script>
document.addEventListener('DOMContentLoaded', () => {
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
if ($navbarBurgers.length > 0) {
$navbarBurgers.forEach(el => {
el.addEventListener('click', () => {
const target = el.dataset.target;
const $target = document.getElementById(target);
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
}
});
</script>
</body>
</html>