270 lines
8.4 KiB
HTML
270 lines
8.4 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 – Journey Mapper</title>
|
||
|
||
<!-- Open Props CSS -->
|
||
<link rel="stylesheet" href="https://unpkg.com/open-props"/>
|
||
<link rel="stylesheet" href="https://unpkg.com/open-props/normalize.min.css"/>
|
||
|
||
<!-- Font Awesome -->
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||
|
||
<!-- Google Fonts -->
|
||
<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;
|
||
}
|
||
|
||
/* Header */
|
||
.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 */
|
||
.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);
|
||
}
|
||
|
||
/* Main content */
|
||
.blog-container {
|
||
max-width: 1200px;
|
||
margin: var(--size-6) auto;
|
||
padding: 0 var(--size-4);
|
||
}
|
||
.blog-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: var(--size-6);
|
||
}
|
||
.blog-header h1 {
|
||
margin: 0;
|
||
font-size: var(--font-size-6);
|
||
color: var(--indigo-8);
|
||
}
|
||
.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:hover {
|
||
background: var(--indigo-8);
|
||
box-shadow: var(--shadow-3);
|
||
}
|
||
.posts-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||
gap: var(--size-6);
|
||
}
|
||
.post-card {
|
||
background: var(--surface-1);
|
||
border-radius: var(--radius-3);
|
||
overflow: hidden;
|
||
box-shadow: var(--shadow-2);
|
||
transition: transform 0.2s;
|
||
}
|
||
.post-card:hover {
|
||
transform: translateY(-4px);
|
||
}
|
||
.post-card-image {
|
||
width: 100%;
|
||
height: 200px;
|
||
object-fit: cover;
|
||
background: var(--surface-3);
|
||
}
|
||
.post-card-content {
|
||
padding: var(--size-4);
|
||
}
|
||
.post-card-title {
|
||
margin: 0 0 var(--size-2) 0;
|
||
font-size: var(--font-size-4);
|
||
}
|
||
.post-card-title a {
|
||
color: var(--gray-9);
|
||
text-decoration: none;
|
||
}
|
||
.post-card-title a:hover {
|
||
color: var(--indigo-7);
|
||
}
|
||
.post-card-meta {
|
||
color: var(--gray-6);
|
||
font-size: var(--font-size-1);
|
||
margin-bottom: var(--size-3);
|
||
}
|
||
.post-card-excerpt {
|
||
color: var(--gray-7);
|
||
line-height: var(--font-lineheight-3);
|
||
}
|
||
.empty-state {
|
||
text-align: center;
|
||
color: var(--gray-6);
|
||
padding: var(--size-8);
|
||
font-style: italic;
|
||
}
|
||
.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;
|
||
}
|
||
.filter-tabs {
|
||
display: flex;
|
||
gap: var(--size-2);
|
||
}
|
||
.filter-btn {
|
||
background: var(--surface-3);
|
||
color: var(--text-2);
|
||
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: all 0.2s;
|
||
}
|
||
.filter-btn.active {
|
||
background: var(--indigo-7);
|
||
color: white;
|
||
}
|
||
.filter-btn:hover {
|
||
background: var(--surface-4);
|
||
}
|
||
.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);
|
||
}
|
||
</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);">
|
||
<div class="filter-tabs">
|
||
<button class="filter-btn active" data-filter="all">All</button>
|
||
<button class="filter-btn" data-filter="own">My Posts</button>
|
||
<button class="filter-btn" data-filter="shared">Shared With Me</button>
|
||
<button class="filter-btn" data-filter="public">Public Posts</button>
|
||
</div>
|
||
<nav class="site-nav">
|
||
<a href="map-page.html">Map</a>
|
||
<a href="blog-list.html" class="active">Blog</a>
|
||
</nav>
|
||
<div class="user-menu" id="user-menu"></div>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
|
||
<main class="blog-container">
|
||
<div class="blog-header">
|
||
<h1><i class="fas fa-newspaper"></i> Blog Posts</h1>
|
||
<a href="map-page.html" class="btn"><i class="fas fa-plus"></i> New Journey</a>
|
||
</div>
|
||
<div id="posts-grid" class="posts-grid">
|
||
<!-- Posts loaded dynamically -->
|
||
</div>
|
||
</main>
|
||
|
||
<div id="toast" class="toast"></div>
|
||
|
||
<script src="js/auth.js"></script>
|
||
<script src="js/blog-list.js"></script>
|
||
</body>
|
||
</html>
|