Files
project-behind-the-desk/single-post.html
T

200 lines
7.4 KiB
HTML

<!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>
/* Add specific styles for single-post page if needed */
.single-post-container {
max-width: 450px; /* Increased width for longer fields */
margin-top: 2rem;
}
.single-post-container h2 {
font-size: 1.2rem;
margin-bottom: 1rem;
color: #38315f; /* Updated text color */
}
.single-post-container .field {
margin-bottom: 0.75rem;
}
.single-post-container .label {
font-size: 0.9rem;
font-weight: normal;
color: #38315f; /* Updated text color */
margin-bottom: 0.25rem;
display: inline-block; /* HN style labels */
width: 100px; /* Align inputs */
}
.single-post-container .input,
.single-post-container .textarea,
.single-post-container .select select {
font-size: 0.9rem;
max-width: 250px; /* Increased max-width for longer fields */
display: inline-block; /* Align with label */
width: calc(100% - 110px); /* Adjust width */
background-color: #ffffff; /* Ensure white background */
color: #363636; /* Default input text color */
border: 1px solid #dbdbdb; /* Standard Bulma border */
}
.single-post-container .input:focus,
.single-post-container .textarea:focus,
.single-post-container .select select:focus {
border-color: #38315f; /* Highlight focus */
box-shadow: 0 0 0 0.125em rgba(56, 49, 95, 0.25);
}
.single-post-container .button.is-primary { /* Target the specific button */
font-size: 0.9rem;
margin-left: 100px; /* Align button with inputs */
margin-top: 0.5rem;
background-color: #38315f; /* Updated button color */
color: #ffffff; /* White text for contrast */
border-color: transparent; /* Remove default border */
}
.single-post-container .button.is-primary:hover {
background-color: #2d274a; /* Slightly darker on hover */
}
.single-post-container .select {
margin-left: auto; /* Align dropdown to the right */
}
</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>
<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 is-align-self-flex-start pt-1">
<a href="#" class="upvote-arrow" title="Upvote">▲</a>
</div>
<div class="media-content">
<div class="content">
<p>
<strong><a href="#" class="post-title">The saga of the disappearing ergonomic chair continues. <span class="update-tick">✏️</span></a></strong>
</p>
<p>
<small class="handle">@deskdetective</small> | <small class="time">1h ago</small> <a href="#" class="next-action">next</a>
</p>
<p>
The saga of the disappearing ergonomic chair continues. Every time I leave my desk, it seems to vanish into thin air. I've started to suspect my colleagues are playing a prank on me. Has anyone else experienced 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>Comments</h3>
<div class="comments-list">
<!-- Example Comment 1 -->
<div class="comment">
<div class="comment-header">
<small class="handle">@commenter1</small> <small class="time">2h ago</small> <small class="reply">reply</small>
</div>
<div class="comment-body">
<p>This is a comment on the post.</p>
</div>
<!-- Nested Comment 1 -->
<div class="nested-comment">
<div class="comment-header">
<small class="handle">@nestedcommenter1</small> <small class="time">1h ago</small> <small class="reply">reply</small>
</div>
<div class="comment-body">
<p>This is a nested comment in response to the first comment.</p>
</div>
</div>
</div>
<!-- Example Comment 2 -->
<div class="comment">
<div class="comment-header">
<small class="handle">@commenter2</small> <small class="time">3h ago</small> <small class="reply">reply</small>
</div>
<div class="comment-body">
<p>Another comment on the post.</p>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Simple script to toggle mobile menu -->
<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>