Initial Daybook MVP

This commit is contained in:
peter 2026-06-10 15:48:19 +01:00
commit 3974276c9b
25 changed files with 1647 additions and 0 deletions

411
static/daybook.css Normal file
View file

@ -0,0 +1,411 @@
:root {
color-scheme: light;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: #f4f1ea;
color: #1d2528;
}
body {
margin: 0;
}
.topbar {
align-items: center;
background: #17313b;
color: #fffaf0;
display: grid;
gap: 0;
grid-template-columns: minmax(13rem, 25%) 1fr;
padding: 0;
}
.brandline {
align-items: baseline;
display: flex;
gap: 0.55rem;
padding: 0.38rem 0.65rem;
}
.brandline p {
color: #d9e5e8;
font-size: 0.78rem;
font-weight: 600;
margin: 0;
}
.eyebrow {
color: #e2b66a;
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.14em;
margin: 0 0 0.18rem;
text-transform: uppercase;
}
h1 {
font-size: clamp(1.2rem, 2vw, 1.75rem);
line-height: 1;
margin: 0;
}
.toolbar {
align-items: center;
align-self: stretch;
background: #d9c9ad;
display: flex;
gap: 0.45rem;
min-width: 0;
padding: 0.32rem 0.6rem;
}
.filter {
align-items: end;
display: flex;
gap: 0.35rem;
}
.filter label {
color: #304149;
display: grid;
font-size: 0.68rem;
gap: 0.08rem;
}
.filter select,
.filter input {
border: 0;
border-radius: 999px;
font: inherit;
padding: 0.32rem 0.62rem;
}
.filter input {
width: 9rem;
}
.filter button {
background: #17313b;
border: 0;
border-radius: 999px;
color: #fffaf0;
cursor: pointer;
font: inherit;
font-weight: 700;
padding: 0.32rem 0.7rem;
}
.view-toggle {
background: rgba(23, 49, 59, 0.12);
border: 1px solid rgba(23, 49, 59, 0.18);
border-radius: 999px;
display: flex;
padding: 0.12rem;
}
.view-toggle a {
border-radius: 999px;
color: #17313b;
font-size: 0.76rem;
padding: 0.3rem 0.58rem;
text-decoration: none;
}
.view-toggle a.selected {
background: #17313b;
color: #fffaf0;
}
.feed {
--artifacts-width: 280px;
--days-width: 144px;
display: grid;
grid-template-columns: var(--days-width) 1px var(--artifacts-width) 1px minmax(0, 1fr);
min-height: calc(100vh - 3.2rem);
}
.day-sidebar,
.artifact-sidebar,
.preview-pane {
min-width: 0;
padding: 0.55rem;
}
.day-sidebar {
background: #ebe4d5;
}
.artifact-sidebar {
background: #f8f2e7;
}
.preview-pane {
align-items: stretch;
display: flex;
flex-direction: column;
justify-content: center;
padding: 0;
}
.splitter {
background: #d9c9ad;
cursor: col-resize;
position: relative;
touch-action: none;
}
.splitter::after {
background: transparent;
bottom: 0;
content: "";
left: -4px;
position: absolute;
right: -4px;
top: 0;
}
.splitter:hover,
.is-resizing .splitter {
background: #a98d5e;
}
.is-resizing {
cursor: col-resize;
user-select: none;
}
.day-sidebar h2,
.pane-heading h2 {
color: #68543b;
font-size: 0.68rem;
letter-spacing: 0.1em;
margin: 0 0 0.45rem;
text-transform: uppercase;
}
.day-list,
.artifact-list {
display: grid;
gap: 0.35rem;
}
.day-link,
.artifact-row {
color: inherit;
text-decoration: none;
}
.day-link {
border-radius: 10px;
display: grid;
gap: 0.1rem;
padding: 0.48rem;
}
.day-link:hover,
.day-link.selected {
background: #fffaf0;
box-shadow: 0 10px 24px rgba(57, 44, 28, 0.08);
}
.day-link span,
.pane-heading span,
.artifact-row-main strong {
color: #7b6b55;
font-size: 0.7rem;
}
.day-link strong {
color: #17313b;
font-size: 0.82rem;
}
.pane-heading {
align-items: baseline;
display: flex;
justify-content: space-between;
margin-bottom: 0.45rem;
}
.artifact-list {
align-content: start;
}
.artifact-row {
align-items: center;
background: #fffaf0;
border: 1px solid #e5d8c0;
border-radius: 11px;
display: flex;
gap: 0.45rem;
padding: 0.45rem;
}
.artifact-row:hover {
border-color: #c9b38d;
box-shadow: 0 12px 28px rgba(57, 44, 28, 0.08);
}
.artifact-row.selected {
background: #17313b;
border-color: #17313b;
color: #fffaf0;
}
.artifact-row.selected .artifact-row-main strong,
.artifact-row.selected .artifact-row-main span {
color: #fffaf0;
}
.kind-icon {
align-items: center;
background: #dfe9ea;
border-radius: 7px;
color: #17313b;
display: inline-flex;
flex: 0 0 2.25rem;
font-size: 0.58rem;
font-weight: 800;
height: 1.75rem;
justify-content: center;
letter-spacing: 0.04em;
}
.kind-image {
background: #dfeee2;
color: #265336;
}
.kind-pdf {
background: #f3dedb;
color: #78352f;
}
.kind-markdown {
background: #e7e1f2;
color: #443265;
}
.kind-deck {
background: #f6e5bf;
color: #6e4a12;
}
.artifact-row-main {
display: grid;
gap: 0.1rem;
min-width: 0;
}
.artifact-row-main span {
color: #17313b;
font-size: 0.86rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.empty {
background: #fffaf0;
border-radius: 16px;
padding: 1.2rem;
}
.empty.compact {
padding: 1rem;
}
.empty.compact h3,
.preview-empty h2 {
margin-top: 0;
}
.preview-empty {
max-width: 34rem;
}
.preview-frame-wrap {
align-items: center;
display: flex;
flex: 1;
justify-content: center;
min-height: 0;
}
.artifact-actions {
align-items: center;
background: #d9c9ad;
border-top: 1px solid #c7b48f;
display: flex;
flex: 0 0 auto;
gap: 0.75rem;
justify-content: space-between;
min-height: 2.25rem;
padding: 0.28rem 0.55rem;
}
.artifact-action-links {
align-items: center;
display: flex;
gap: 0.35rem;
}
.artifact-action-links a,
.artifact-action-links button {
background: #fffaf0;
border: 1px solid rgba(23, 49, 59, 0.14);
border-radius: 999px;
color: #17313b;
cursor: pointer;
font: inherit;
font-size: 0.76rem;
line-height: 1;
padding: 0.42rem 0.65rem;
text-decoration: none;
}
.artifact-action-links button:disabled {
cursor: not-allowed;
opacity: 0.48;
}
.preview-frame {
background: #fff;
border: 0;
height: 100%;
width: 100%;
}
.preview-image {
background: #fff;
max-height: 100%;
max-width: 100%;
object-fit: contain;
}
@media (max-width: 720px) {
.topbar {
align-items: stretch;
grid-template-columns: 1fr;
}
.toolbar,
.filter,
.artifact-actions {
align-items: stretch;
flex-wrap: wrap;
}
.feed {
grid-template-columns: 1fr;
}
.splitter {
display: none;
}
.day-sidebar,
.artifact-sidebar {
border-bottom: 1px solid #d9c9ad;
border-right: 0;
}
}

18
static/themes/base.css Normal file
View file

@ -0,0 +1,18 @@
body.artifact {
box-sizing: border-box;
color: #1d2528;
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
line-height: 1.65;
margin: 0 auto;
max-width: 900px;
padding: 3rem 1.25rem;
}
img,
table {
max-width: 100%;
}
pre {
overflow-x: auto;
}

30
static/themes/deck.css Normal file
View file

@ -0,0 +1,30 @@
body.deck {
background: #111827;
color: #f9fafb;
font-family: Inter, ui-sans-serif, system-ui, sans-serif;
margin: 0;
}
.slides {
display: grid;
gap: 2rem;
margin: 0 auto;
max-width: 1100px;
padding: 2rem;
}
.slides section {
background: linear-gradient(135deg, #1f2937, #111827);
border: 1px solid #374151;
border-radius: 28px;
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
min-height: 62vh;
padding: clamp(2rem, 6vw, 5rem);
}
.slides h1,
.slides h2 {
color: #fbbf24;
font-size: clamp(2rem, 7vw, 5rem);
line-height: 1;
}

41
static/themes/report.css Normal file
View file

@ -0,0 +1,41 @@
@import url("/static/themes/base.css");
body.artifact {
background: #fffaf0;
color: #1e2b2f;
font-family: Georgia, "Times New Roman", serif;
font-size: 1.08rem;
}
h1,
h2,
h3 {
color: #17313b;
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
line-height: 1.15;
}
a {
color: #8a4f16;
}
blockquote {
border-left: 4px solid #d5a24c;
color: #5b5449;
margin-left: 0;
padding-left: 1rem;
}
code,
pre {
background: #efe5d2;
border-radius: 8px;
}
code {
padding: 0.1rem 0.3rem;
}
pre {
padding: 1rem;
}

20
static/themes/tasks.css Normal file
View file

@ -0,0 +1,20 @@
@import url("/static/themes/base.css");
body.artifact {
background: #f7fbff;
color: #17202a;
max-width: 760px;
}
h1 {
border-bottom: 3px solid #66a7d8;
padding-bottom: 0.5rem;
}
li {
margin: 0.45rem 0;
}
input[type="checkbox"] {
transform: translateY(1px) scale(1.1);
}