Add prayer journal app with request + answer tracking

Todo-list style app where users can add prayers, record how God answered
them, filter between active/answered, and tag entries for organization.
Persists to localStorage. Clean warm serif aesthetic with dark mode support.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DReRqHxSYuVfCzTzQGD9hZ
This commit is contained in:
Claude committed 2026-07-18 16:18:00 +00:00
commit 9e82ec2f1a
22 files changed
+18447

No files matched your search

+373
View File
@@ -0,0 +1,373 @@
:root {
--bg: #f7f5f0;
--surface: #ffffff;
--surface-hover: #f9f8f6;
--border: #e5e0d8;
--text: #2d2a25;
--text-muted: #7a7570;
--primary: #6b5b45;
--primary-hover: #56483a;
--answered: #3d6b52;
--answered-bg: #edf4f0;
--active-dot: #c07a3a;
--answered-dot: #3d6b52;
--tag-bg: #ede9e2;
--tag-text: #6b5b45;
--danger: #b54040;
--shadow: 0 1px 4px rgba(0,0,0,0.07);
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #1a1814;
--surface: #242018;
--surface-hover: #2c2820;
--border: #3a3530;
--text: #e8e3da;
--text-muted: #8a8480;
--primary: #c4a882;
--primary-hover: #d4b892;
--answered: #7abf96;
--answered-bg: #1a2e22;
--active-dot: #e09050;
--answered-dot: #7abf96;
--tag-bg: #322e26;
--tag-text: #c4a882;
--danger: #e07070;
--shadow: 0 1px 4px rgba(0,0,0,0.3);
}
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: var(--bg);
color: var(--text);
font-family: Georgia, 'Times New Roman', serif;
min-height: 100vh;
}
.app {
max-width: 680px;
margin: 0 auto;
padding: 2rem 1rem 4rem;
}
/* Header */
.header {
text-align: center;
margin-bottom: 2rem;
}
.header h1 {
font-size: 2rem;
font-weight: normal;
letter-spacing: 0.01em;
color: var(--text);
}
.subtitle {
margin-top: 0.35rem;
color: var(--text-muted);
font-style: italic;
font-size: 0.95rem;
}
/* Add form */
.add-form {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 10px;
padding: 1.25rem;
box-shadow: var(--shadow);
margin-bottom: 1.5rem;
}
.request-input,
.answer-input {
width: 100%;
border: 1px solid var(--border);
border-radius: 6px;
padding: 0.6rem 0.75rem;
background: var(--bg);
color: var(--text);
font-family: inherit;
font-size: 0.95rem;
resize: vertical;
outline: none;
transition: border-color 0.15s;
}
.request-input:focus,
.answer-input:focus {
border-color: var(--primary);
}
.add-row {
display: flex;
gap: 0.75rem;
margin-top: 0.75rem;
align-items: center;
}
.tag-input {
flex: 1;
border: 1px solid var(--border);
border-radius: 6px;
padding: 0.5rem 0.75rem;
background: var(--bg);
color: var(--text);
font-family: inherit;
font-size: 0.9rem;
outline: none;
}
.tag-input:focus {
border-color: var(--primary);
}
/* Buttons */
.btn {
padding: 0.55rem 1.1rem;
border-radius: 6px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text);
font-family: inherit;
font-size: 0.9rem;
cursor: pointer;
transition: background 0.12s, border-color 0.12s;
white-space: nowrap;
}
.btn:hover {
background: var(--surface-hover);
}
.btn-primary {
background: var(--primary);
color: #fff;
border-color: var(--primary);
}
.btn-primary:hover {
background: var(--primary-hover);
border-color: var(--primary-hover);
}
.btn-sm {
padding: 0.35rem 0.75rem;
font-size: 0.82rem;
}
.btn.ghost {
background: transparent;
border-color: transparent;
color: var(--text-muted);
font-size: 0.82rem;
padding: 0.3rem 0.5rem;
}
.btn.ghost:hover {
color: var(--text);
background: var(--surface-hover);
}
.btn.ghost.danger {
color: var(--danger);
}
.btn.ghost.danger:hover {
background: var(--surface-hover);
}
/* Filter bar */
.filter-bar {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
}
.filter-btn {
padding: 0.4rem 0.9rem;
border-radius: 20px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text-muted);
font-family: inherit;
font-size: 0.88rem;
cursor: pointer;
transition: background 0.12s, color 0.12s;
display: flex;
align-items: center;
gap: 0.4rem;
}
.filter-btn:hover {
background: var(--surface-hover);
color: var(--text);
}
.filter-btn.active {
background: var(--primary);
color: #fff;
border-color: var(--primary);
}
.count {
background: rgba(255,255,255,0.25);
border-radius: 10px;
padding: 0 0.4rem;
font-size: 0.78rem;
}
.filter-btn:not(.active) .count {
background: var(--tag-bg);
color: var(--tag-text);
}
/* Prayer list */
.prayer-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.empty {
text-align: center;
color: var(--text-muted);
font-style: italic;
padding: 2rem 0;
}
/* Prayer card */
.prayer-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 10px;
box-shadow: var(--shadow);
overflow: hidden;
transition: border-color 0.15s;
}
.prayer-card.answered {
border-left: 3px solid var(--answered-dot);
}
.prayer-card.active {
border-left: 3px solid var(--active-dot);
}
.card-top {
padding: 1rem 1.1rem;
cursor: pointer;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.card-top:hover {
background: var(--surface-hover);
}
.card-main {
display: flex;
align-items: flex-start;
gap: 0.6rem;
}
.status-dot {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
margin-top: 5px;
}
.status-dot.active { background: var(--active-dot); }
.status-dot.answered { background: var(--answered-dot); }
.status-dot.archived { background: var(--text-muted); }
.request-text {
font-size: 0.97rem;
line-height: 1.5;
flex: 1;
}
.card-meta {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
padding-left: 1.6rem;
}
.date {
font-size: 0.8rem;
color: var(--text-muted);
}
.tag {
background: var(--tag-bg);
color: var(--tag-text);
border-radius: 4px;
padding: 0.1rem 0.45rem;
font-size: 0.75rem;
font-family: sans-serif;
}
.chevron {
margin-left: auto;
color: var(--text-muted);
font-size: 0.7rem;
}
/* Card body */
.card-body {
padding: 0 1.1rem 1rem;
border-top: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: 1rem;
}
.answer-section {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding-top: 0.75rem;
}
.answer-label {
font-size: 0.78rem;
font-family: sans-serif;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
}
.answer-text {
font-size: 0.93rem;
line-height: 1.6;
color: var(--answered);
white-space: pre-wrap;
}
.answered-date {
font-size: 0.78rem;
color: var(--text-muted);
font-family: sans-serif;
}
.card-actions {
display: flex;
gap: 0.5rem;
align-items: center;
flex-wrap: wrap;
}
.card-actions.secondary {
border-top: 1px solid var(--border);
padding-top: 0.5rem;
}