318 lines
9.7 KiB
HTML
318 lines
9.7 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 – Journey Mapper</title>
|
||
|
||
<link rel="stylesheet" href="https://unpkg.com/open-props"/>
|
||
<link rel="stylesheet" href="https://unpkg.com/open-props/normalize.min.css"/>
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
||
|
||
<!-- Responsive Design -->
|
||
<link rel="stylesheet" href="css/style.css">
|
||
<link rel="stylesheet" href="css/responsive.css">
|
||
<style>
|
||
* { box-sizing: border-box; }
|
||
body {
|
||
font-family: var(--font-sans);
|
||
background: var(--gray-0);
|
||
color: var(--gray-9);
|
||
line-height: var(--font-lineheight-3);
|
||
margin: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 100vh;
|
||
}
|
||
.site-header {
|
||
background: var(--gray-9);
|
||
padding: var(--size-4) var(--size-6);
|
||
border-bottom: 1px solid var(--surface-4);
|
||
}
|
||
.site-header .container {
|
||
max-width: 1400px;
|
||
margin: 0 auto;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: var(--size-2);
|
||
}
|
||
.site-title {
|
||
margin: 0;
|
||
font-size: var(--font-size-4);
|
||
font-weight: var(--font-weight-6);
|
||
}
|
||
.site-title a {
|
||
color: var(--indigo-4);
|
||
text-decoration: none;
|
||
}
|
||
.site-nav {
|
||
display: flex;
|
||
gap: var(--size-4);
|
||
}
|
||
.site-nav a {
|
||
color: var(--gray-2);
|
||
text-decoration: none;
|
||
font-weight: var(--font-weight-5);
|
||
transition: color 0.2s;
|
||
padding: var(--size-1) var(--size-2);
|
||
border-radius: var(--radius-2);
|
||
}
|
||
.site-nav a:hover,
|
||
.site-nav a.active {
|
||
color: var(--indigo-4);
|
||
background: var(--surface-2);
|
||
}
|
||
.user-menu {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--size-2);
|
||
}
|
||
.user-menu .username {
|
||
color: var(--gray-2);
|
||
font-weight: var(--font-weight-5);
|
||
}
|
||
.logout-btn {
|
||
background: var(--indigo-7);
|
||
color: white;
|
||
border: none;
|
||
border-radius: var(--radius-2);
|
||
padding: var(--size-1) var(--size-3);
|
||
cursor: pointer;
|
||
font-size: var(--font-size-1);
|
||
font-weight: var(--font-weight-5);
|
||
transition: background 0.2s;
|
||
}
|
||
.logout-btn:hover {
|
||
background: var(--indigo-8);
|
||
}
|
||
.post-container {
|
||
max-width: 800px;
|
||
margin: var(--size-6) auto;
|
||
padding: 0 var(--size-4);
|
||
}
|
||
.post-card {
|
||
background: var(--surface-1);
|
||
border-radius: var(--radius-3);
|
||
padding: var(--size-6);
|
||
box-shadow: var(--shadow-2);
|
||
margin-bottom: var(--size-6);
|
||
}
|
||
.post-title {
|
||
font-size: var(--font-size-6);
|
||
margin-top: 0;
|
||
margin-bottom: var(--size-2);
|
||
}
|
||
.post-meta {
|
||
color: var(--gray-6);
|
||
margin-bottom: var(--size-4);
|
||
border-bottom: 1px solid var(--surface-4);
|
||
padding-bottom: var(--size-2);
|
||
}
|
||
.badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
margin-left: var(--size-2);
|
||
padding: 2px var(--size-2);
|
||
border-radius: var(--radius-2);
|
||
background: var(--indigo-1);
|
||
color: var(--indigo-8);
|
||
font-size: var(--font-size-0);
|
||
font-weight: var(--font-weight-6);
|
||
}
|
||
.post-image {
|
||
max-width: 100%;
|
||
border-radius: var(--radius-2);
|
||
margin: var(--size-4) 0;
|
||
}
|
||
.post-content {
|
||
line-height: 1.6;
|
||
}
|
||
.comments-section {
|
||
background: var(--surface-1);
|
||
border-radius: var(--radius-3);
|
||
padding: var(--size-6);
|
||
box-shadow: var(--shadow-2);
|
||
}
|
||
.comment {
|
||
border-bottom: 1px solid var(--surface-4);
|
||
padding: var(--size-4) 0;
|
||
}
|
||
.comment:last-child {
|
||
border-bottom: none;
|
||
}
|
||
.comment-meta {
|
||
font-size: var(--font-size-1);
|
||
color: var(--gray-6);
|
||
margin-bottom: var(--size-2);
|
||
}
|
||
.comment-text {
|
||
margin: 0;
|
||
}
|
||
.delete-comment {
|
||
background: none;
|
||
border: none;
|
||
color: var(--red-6);
|
||
cursor: pointer;
|
||
font-size: var(--font-size-1);
|
||
margin-left: var(--size-2);
|
||
}
|
||
.delete-comment:hover {
|
||
text-decoration: underline;
|
||
}
|
||
.comment-form {
|
||
margin-top: var(--size-4);
|
||
}
|
||
.comment-form textarea {
|
||
width: 100%;
|
||
padding: var(--size-2);
|
||
border: 1px solid var(--surface-4);
|
||
border-radius: var(--radius-2);
|
||
background: var(--surface-2);
|
||
font-family: inherit;
|
||
font-size: var(--font-size-2);
|
||
resize: vertical;
|
||
}
|
||
.btn {
|
||
padding: var(--size-2) var(--size-4);
|
||
border: none;
|
||
border-radius: var(--radius-2);
|
||
cursor: pointer;
|
||
font-size: var(--font-size-2);
|
||
font-weight: var(--font-weight-5);
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: var(--size-2);
|
||
transition: all 0.2s var(--ease-2);
|
||
box-shadow: var(--shadow-2);
|
||
background: var(--indigo-7);
|
||
color: white;
|
||
text-decoration: none;
|
||
}
|
||
.btn-secondary {
|
||
background: var(--gray-7);
|
||
}
|
||
.btn-danger {
|
||
background: var(--red-7);
|
||
}
|
||
.btn-sm {
|
||
padding: var(--size-1) var(--size-2);
|
||
font-size: var(--font-size-1);
|
||
}
|
||
.toast {
|
||
position: fixed;
|
||
bottom: var(--size-4);
|
||
right: var(--size-4);
|
||
background: var(--green-7);
|
||
color: white;
|
||
padding: var(--size-2) var(--size-4);
|
||
border-radius: var(--radius-2);
|
||
display: none;
|
||
z-index: 1100;
|
||
}
|
||
.chapters {
|
||
margin-top: var(--size-4);
|
||
}
|
||
.chapter {
|
||
margin-bottom: var(--size-6);
|
||
border-left: 3px solid var(--indigo-6);
|
||
padding-left: var(--size-4);
|
||
}
|
||
.chapter-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: baseline;
|
||
margin-bottom: var(--size-2);
|
||
}
|
||
.chapter-header h3 {
|
||
margin: 0;
|
||
font-size: var(--font-size-4);
|
||
}
|
||
.marker-date {
|
||
font-size: var(--font-size-1);
|
||
color: var(--gray-6);
|
||
}
|
||
.chapter-image {
|
||
max-width: 100%;
|
||
border-radius: var(--radius-2);
|
||
margin: var(--size-2) 0;
|
||
}
|
||
.chapter-images {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||
gap: var(--size-3);
|
||
margin: var(--size-3) 0;
|
||
}
|
||
.chapter-image-item {
|
||
position: relative;
|
||
border-radius: var(--radius-2);
|
||
overflow: hidden;
|
||
box-shadow: var(--shadow-2);
|
||
background: var(--surface-2);
|
||
}
|
||
.chapter-images img {
|
||
width: 100%;
|
||
aspect-ratio: 4 / 3;
|
||
object-fit: cover;
|
||
display: block;
|
||
}
|
||
.remove-chapter-image {
|
||
position: absolute;
|
||
top: var(--size-1);
|
||
right: var(--size-1);
|
||
width: 28px;
|
||
height: 28px;
|
||
border: none;
|
||
border-radius: var(--radius-round);
|
||
background: rgba(0, 0, 0, 0.72);
|
||
color: white;
|
||
cursor: pointer;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
box-shadow: var(--shadow-2);
|
||
}
|
||
.chapter-image-tools {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--size-2);
|
||
flex-wrap: wrap;
|
||
margin: var(--size-3) 0;
|
||
}
|
||
.chapter-image-input {
|
||
max-width: 360px;
|
||
}
|
||
.chapter-content {
|
||
line-height: 1.6;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<header class="site-header">
|
||
<div class="container">
|
||
<h1 class="site-title"><a href="map-page.html">Journey Mapper</a></h1>
|
||
<div style="display: flex; align-items: center; gap: var(--size-4);">
|
||
<nav class="site-nav">
|
||
<a href="map-page.html">Map</a>
|
||
<a href="blog-list.html">Blog</a>
|
||
</nav>
|
||
<div class="user-menu" id="user-menu"></div>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
|
||
<main class="post-container">
|
||
<div id="post-content"></div>
|
||
<div id="comments-section" class="comments-section"></div>
|
||
</main>
|
||
|
||
<div id="toast" class="toast"></div>
|
||
|
||
<script src="js/auth.js"></script>
|
||
<script src="js/markdown.js"></script>
|
||
<script src="js/blog-post.js"></script>
|
||
</body>
|
||
</html>
|