87 lines
3.5 KiB
HTML
87 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Blog Post</title>
|
|
<link rel="stylesheet" href="css/style.css">
|
|
<link rel="stylesheet" href="css/blog.css">
|
|
</head>
|
|
<body>
|
|
<header class="site-header">
|
|
<div class="container">
|
|
<h1 class="site-title"><a href="/">My Blog</a></h1>
|
|
<nav class="site-nav">
|
|
<a href="map-page.html">Map</a>
|
|
<a href="blog-page.html">Blog</a>
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="container post-page">
|
|
<article class="post">
|
|
<h2 class="post-title">Post Title</h2>
|
|
<div class="post-meta">By <span class="author">Author</span> — <time datetime="2026-01-01">Jan 1, 2026</time></div>
|
|
<figure class="post-hero">
|
|
<img src="https://via.placeholder.com/800x350?text=Hero+Image" alt="Post image">
|
|
</figure>
|
|
<div class="post-content">
|
|
<p>This is a placeholder paragraph for the blog post content. Replace with real content.</p>
|
|
</div>
|
|
</article>
|
|
<aside class="sidebar">
|
|
<div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;">
|
|
<h3 style="margin:0">Posts</h3>
|
|
<button id="create-post-btn" class="btn btn-primary">New</button>
|
|
</div>
|
|
|
|
<div id="posts-list">
|
|
<!-- JS will render list of posts here -->
|
|
</div>
|
|
|
|
<section class="about" id="post-form" style="display:none;margin-top:16px;">
|
|
<h3 id="form-title">New Post</h3>
|
|
<form id="blog-form">
|
|
<div class="form-group">
|
|
<label for="post-title-input">Title</label>
|
|
<input id="post-title-input" name="title" required />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="post-journey-input">Journey ID</label>
|
|
<input id="post-journey-input" name="journeyId" placeholder="optional" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="post-image-input">Image URL</label>
|
|
<input id="post-image-input" name="image" placeholder="https://..." />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="post-content-input">Content</label>
|
|
<textarea id="post-content-input" name="content" rows="6" required></textarea>
|
|
</div>
|
|
<div style="display:flex;gap:8px">
|
|
<button type="submit" class="btn btn-primary">Save</button>
|
|
<button type="button" id="cancel-post-btn" class="btn btn-secondary">Cancel</button>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
|
|
<section class="about" style="margin-top:18px;">
|
|
<h3>About</h3>
|
|
<p>Short author bio or related links.</p>
|
|
</section>
|
|
</aside>
|
|
</main>
|
|
|
|
<section class="comments container">
|
|
<h3>Comments</h3>
|
|
<div class="comments-list"></div>
|
|
</section>
|
|
|
|
<footer class="site-footer">
|
|
<div class="container">© 2026 My Blog</div>
|
|
</footer>
|
|
|
|
<script src="js/main.js"></script>
|
|
<script src="js/blog-posts.js"></script>
|
|
</body>
|
|
</html> |