669 lines
14 KiB
HTML
669 lines
14 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
|
<title>{{ title }} — {{ config.site.name }}</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400&family=Roboto+Mono:wght@400;500&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css">
|
|
<style>
|
|
html { background: #191b22; }
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
:root {
|
|
--bg: #191b22;
|
|
--column: #16181f;
|
|
--card: #1f2130;
|
|
--card-hover: #242638;
|
|
--purple: #6364ff;
|
|
--purple-light: #858afa;
|
|
--blue-accent: #2b90d9;
|
|
--text: #ffffff;
|
|
--text-secondary: #c3c8e0;
|
|
--text-muted: #9099c1;
|
|
--border: #313549;
|
|
--boost: #79bd9a;
|
|
--fav: #ca8f04;
|
|
--reply: #9099c1;
|
|
}
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: "Roboto", system-ui, sans-serif;
|
|
font-size: 21px;
|
|
line-height: 1.45;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Mastodon layout */
|
|
.app {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Left navigation */
|
|
.nav-sidebar {
|
|
width: 240px;
|
|
flex-shrink: 0;
|
|
background: var(--column);
|
|
border-right: 1px solid var(--border);
|
|
padding: 16px 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.nav-logo {
|
|
padding: 8px 12px 16px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.nav-logo-icon {
|
|
font-size: 42px;
|
|
color: var(--purple);
|
|
line-height: 1;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.nav-logo-name {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
}
|
|
|
|
.nav-logo-handle {
|
|
font-size: 18px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border-radius: 8px;
|
|
font-size: 22px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
cursor: default;
|
|
}
|
|
|
|
.nav-item.active {
|
|
color: var(--text);
|
|
}
|
|
|
|
.nav-item-icon {
|
|
font-size: 30px;
|
|
width: 24px;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-compose {
|
|
margin-top: 16px;
|
|
background: var(--purple);
|
|
color: #fff;
|
|
font-weight: 700;
|
|
border-radius: 999px;
|
|
text-align: center;
|
|
padding: 12px;
|
|
font-size: 21px;
|
|
}
|
|
|
|
/* Main content column */
|
|
.main-column {
|
|
flex: 1;
|
|
max-width: 600px;
|
|
border-right: 1px solid var(--border);
|
|
}
|
|
|
|
/* Column header */
|
|
.column-header {
|
|
background: rgba(31,33,48,0.9);
|
|
backdrop-filter: blur(12px);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 14px 16px;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.column-header-back {
|
|
font-size: 27px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.column-header-title {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
}
|
|
|
|
/* Status card */
|
|
.status {
|
|
background: var(--card);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 16px;
|
|
}
|
|
|
|
.status-pinned {
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.status-header {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.avatar {
|
|
width: 46px;
|
|
height: 46px;
|
|
border-radius: 8px;
|
|
background: linear-gradient(135deg, var(--purple) 0%, #9b59b6 100%);
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 30px;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
}
|
|
|
|
.avatar-sm {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 4px;
|
|
background: linear-gradient(135deg, var(--purple) 0%, #9b59b6 100%);
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
}
|
|
|
|
.status-meta {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.status-name-row {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.status-name {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
}
|
|
|
|
.status-handle {
|
|
font-size: 20px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.status-dot {
|
|
color: var(--text-muted);
|
|
font-size: 18px;
|
|
}
|
|
|
|
.status-time {
|
|
font-size: 20px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Toot title as a subtitle */
|
|
.toot-subject {
|
|
font-size: 20px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
background: rgba(99,100,255,0.1);
|
|
border-left: 3px solid var(--purple);
|
|
padding: 8px 12px;
|
|
margin-bottom: 10px;
|
|
border-radius: 0 6px 6px 0;
|
|
}
|
|
|
|
/* Content */
|
|
.status-body {
|
|
color: var(--text-secondary);
|
|
font-size: 22px;
|
|
line-height: 1.5;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.content-area h1 {
|
|
font-size: 27px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
margin: 16px 0 8px;
|
|
}
|
|
|
|
.content-area h2 {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
margin: 14px 0 6px;
|
|
}
|
|
|
|
.content-area h3 {
|
|
font-size: 21px;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
margin: 12px 0 5px;
|
|
}
|
|
|
|
.content-area h4, .content-area h5, .content-area h6 {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
margin: 10px 0 4px;
|
|
}
|
|
|
|
.content-area p {
|
|
font-size: 22px;
|
|
margin-bottom: 10px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.content-area a {
|
|
color: var(--blue-accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.content-area a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.content-area code {
|
|
font-family: "Roboto Mono", monospace;
|
|
font-size: 20px;
|
|
background: rgba(255,255,255,0.08);
|
|
color: #e6e6ff;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.content-area pre {
|
|
background: #111218;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 14px 16px;
|
|
margin: 12px 0;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.content-area pre code {
|
|
background: none;
|
|
color: #d4d8f0;
|
|
padding: 0;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.content-area blockquote {
|
|
border-left: 3px solid var(--border);
|
|
padding: 8px 14px;
|
|
margin: 10px 0;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
.content-area blockquote p {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.content-area ul {
|
|
margin: 8px 0 12px 0;
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.content-area ul li {
|
|
padding-left: 16px;
|
|
margin-bottom: 4px;
|
|
color: var(--text-secondary);
|
|
position: relative;
|
|
}
|
|
|
|
.content-area ul li::before {
|
|
content: "·";
|
|
position: absolute;
|
|
left: 4px;
|
|
color: var(--purple-light);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.content-area ol {
|
|
margin: 8px 0 12px 20px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.content-area li {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.content-area table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 12px 0;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.content-area th {
|
|
background: rgba(255,255,255,0.05);
|
|
padding: 7px 12px;
|
|
text-align: left;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
border-bottom: 1px solid var(--border);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.content-area td {
|
|
padding: 7px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.content-area img {
|
|
max-width: 100%;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.content-area hr {
|
|
border: none;
|
|
border-top: 1px solid var(--border);
|
|
margin: 16px 0;
|
|
}
|
|
|
|
/* Hashtags */
|
|
.status-hashtags {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.hashtag {
|
|
color: var(--blue-accent);
|
|
font-size: 22px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Status timestamp detail */
|
|
.status-timestamp {
|
|
font-size: 20px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 12px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
/* Action bar */
|
|
.status-actions {
|
|
display: flex;
|
|
gap: 0;
|
|
justify-content: space-between;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.action-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 20px;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
cursor: default;
|
|
}
|
|
|
|
.action-btn-icon {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.action-btn.boost { color: var(--boost); }
|
|
.action-btn.fav { color: var(--fav); }
|
|
|
|
/* Boost count strip */
|
|
.engagement-strip {
|
|
padding: 10px 0 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
border-top: 1px solid var(--border);
|
|
margin-bottom: 12px;
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.engagement-item {
|
|
font-size: 21px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.engagement-count {
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
}
|
|
|
|
/* Right sidebar */
|
|
.right-sidebar {
|
|
width: 300px;
|
|
flex-shrink: 0;
|
|
padding: 20px 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.sidebar-card {
|
|
background: var(--card);
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sidebar-card-header {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
padding: 14px 16px 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.sidebar-card-item {
|
|
padding: 10px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.sidebar-card-item:last-child { border-bottom: none; }
|
|
|
|
.sidebar-item-text {
|
|
font-size: 20px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.sidebar-item-label {
|
|
font-size: 16px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.nav-sidebar { display: none; }
|
|
.right-sidebar { display: none; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<a href="/{{ preview_query }}" style="position:fixed;top:calc(1rem + env(safe-area-inset-top, 0px));left:calc(1rem + env(safe-area-inset-left, 0px));z-index:9999;font-family:system-ui,-apple-system,sans-serif;font-size: 1.08rem;padding:0.5rem 0.9rem;background:rgba(255,255,255,0.95);color:#000;text-decoration:none;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,0,0.15);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(0,0,0,0.1);transition:transform 0.2s">← back</a>
|
|
|
|
<div class="app">
|
|
|
|
<nav class="nav-sidebar">
|
|
<div class="nav-logo">
|
|
<div class="nav-logo-icon">M</div>
|
|
<div class="nav-logo-name">{{ config.site.author | truncate(18) }}</div>
|
|
<div class="nav-logo-handle">@felix@{{ config.site.name }}</div>
|
|
</div>
|
|
<div class="nav-item">
|
|
<span class="nav-item-icon">●</span>
|
|
<span>Home</span>
|
|
</div>
|
|
<div class="nav-item active">
|
|
<span class="nav-item-icon">○</span>
|
|
<span>Notifications</span>
|
|
</div>
|
|
<div class="nav-item">
|
|
<span class="nav-item-icon">⌕</span>
|
|
<span>Explore</span>
|
|
</div>
|
|
<div class="nav-item">
|
|
<span class="nav-item-icon">⚐</span>
|
|
<span>Local</span>
|
|
</div>
|
|
<div class="nav-item">
|
|
<span class="nav-item-icon">◉</span>
|
|
<span>Federated</span>
|
|
</div>
|
|
<div class="nav-item">
|
|
<span class="nav-item-icon">☉</span>
|
|
<span>Profile</span>
|
|
</div>
|
|
<div class="nav-compose">Compose</div>
|
|
</nav>
|
|
|
|
<main class="main-column">
|
|
|
|
<div class="column-header">
|
|
<div class="column-header-back">←</div>
|
|
<div class="column-header-title">Post</div>
|
|
</div>
|
|
|
|
<div class="status">
|
|
|
|
<div class="status-header">
|
|
<div class="avatar">{{ config.site.author | first }}</div>
|
|
<div class="status-meta">
|
|
<div class="status-name-row">
|
|
<span class="status-name">{{ config.site.author }}</span>
|
|
<span class="status-handle">@felix@{{ config.site.name }}</span>
|
|
</div>
|
|
<div class="status-time">{{ published_date }}</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="toot-subject">{{ title }}</div>
|
|
|
|
<div class="status-body">
|
|
<div class="content-area">
|
|
{{ content | safe }}
|
|
</div>
|
|
</div>
|
|
|
|
{% if taxonomy.tags %}
|
|
<div class="status-hashtags">
|
|
{% for tag in taxonomy.tags %}
|
|
<span class="hashtag">#{{ tag | replace(" ", "") }}</span>{% if not loop.last %} {% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="status-timestamp">
|
|
{{ published_date }} · {{ reading_time }}{% if updated_date %} · Updated {{ updated_date }}{% endif %} · via {{ config.site.name }}
|
|
</div>
|
|
|
|
<div class="engagement-strip">
|
|
<div class="engagement-item"><span class="engagement-count">0</span> Reposts</div>
|
|
<div class="engagement-item"><span class="engagement-count">0</span> Quotes</div>
|
|
<div class="engagement-item"><span class="engagement-count">0</span> Favourites</div>
|
|
</div>
|
|
|
|
<div class="status-actions">
|
|
<div class="action-btn">
|
|
<span class="action-btn-icon">▴</span>
|
|
<span>Reply</span>
|
|
</div>
|
|
<div class="action-btn boost">
|
|
<span class="action-btn-icon">↻</span>
|
|
<span>Boost</span>
|
|
</div>
|
|
<div class="action-btn fav">
|
|
<span class="action-btn-icon">★</span>
|
|
<span>Favourite</span>
|
|
</div>
|
|
<div class="action-btn">
|
|
<span class="action-btn-icon">⋯</span>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<aside class="right-sidebar">
|
|
<div class="sidebar-card">
|
|
<div class="sidebar-card-header">About {{ config.site.author }}</div>
|
|
<div class="sidebar-card-item">
|
|
<div class="avatar-sm">{{ config.site.author | first }}</div>
|
|
<div>
|
|
<div class="sidebar-item-text">{{ config.site.author }}</div>
|
|
<div class="sidebar-item-label">{{ config.site.name }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="sidebar-card-item">
|
|
<div>
|
|
<div class="sidebar-item-text">{{ published_date }}</div>
|
|
<div class="sidebar-item-label">Published</div>
|
|
</div>
|
|
</div>
|
|
<div class="sidebar-card-item">
|
|
<div>
|
|
<div class="sidebar-item-text">{{ reading_time }}</div>
|
|
<div class="sidebar-item-label">Reading time</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% if taxonomy.tags %}
|
|
<div class="sidebar-card">
|
|
<div class="sidebar-card-header">Hashtags</div>
|
|
{% for tag in taxonomy.tags %}
|
|
<div class="sidebar-card-item">
|
|
<div class="sidebar-item-text" style="color: var(--blue-accent);">#{{ tag | replace(" ", "") }}</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
</aside>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|