Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1593,3 +1593,69 @@ html, body {
.wish-item-url:hover {
text-decoration: underline;
}

/* ========================
Notes
======================== */
.notes-container {
max-width: 800px;
margin: 0 auto;
}

.notes-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}

.notes-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 1rem;
}

.note-item {
background: #fff;
border: 1px solid var(--border-color, #e0e0e0);
border-radius: 8px;
padding: 1rem;
cursor: pointer;
transition: box-shadow 0.2s;
display: flex;
flex-direction: column;
gap: 0.4rem;
min-height: 100px;
}

.note-item:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.note-item-title {
font-weight: 600;
font-size: 1rem;
word-break: break-word;
}

.note-item-preview {
font-size: 0.875rem;
color: #555;
flex: 1;
overflow: hidden;
word-break: break-word;
white-space: pre-wrap;
}

.note-item-date {
font-size: 0.75rem;
color: #999;
margin-top: auto;
}

#noteContent {
width: 100%;
resize: vertical;
font-family: inherit;
font-size: 0.95rem;
}
40 changes: 40 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ <h1>📋 Task Manager</h1>
<button class="nav-tab" data-tab="habits">⭐ Habits</button>
<button class="nav-tab" data-tab="shop">🛒 Shop</button>
<button class="nav-tab" data-tab="wishlist">🎁 Wish List</button>
<button class="nav-tab" data-tab="notes">📝 Notes</button>
<button class="nav-tab" data-tab="finances">💰 Finances</button>
<button class="nav-tab" data-tab="settings">⚙️ Settings</button>
</nav>
Expand Down Expand Up @@ -663,6 +664,45 @@ <h3 id="wishItemModalTitle">Add Wish List Item</h3>
</div>
</section>

<!-- Notes Tab -->
<section class="tab-content" id="notes-tab">
<div class="notes-container">
<div class="notes-header">
<h2>Notes</h2>
<button class="btn btn-primary" id="addNoteBtn">+ Add Note</button>
</div>

<div class="notes-list" id="notesList">
<p class="empty-state">No notes yet. Add one to get started!</p>
</div>
</div>

<!-- Note Modal -->
<div class="modal" id="noteModal">
<div class="modal-content">
<div class="modal-header">
<h3 id="noteModalTitle">Add Note</h3>
<button class="close-btn">&times;</button>
</div>
<form id="noteForm">
<div class="form-group">
<label for="noteTitle">Title</label>
<input type="text" id="noteTitle" placeholder="Note title">
</div>
<div class="form-group">
<label for="noteContent">Content</label>
<textarea id="noteContent" rows="8" placeholder="Write your note here…"></textarea>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Save</button>
<button type="button" class="btn btn-secondary" id="deleteNoteBtn" style="display: none;">Delete</button>
<button type="button" class="btn btn-secondary" id="cancelNoteBtn">Cancel</button>
</div>
</form>
</div>
</div>
</section>

<!-- Settings Tab -->
<section class="tab-content" id="settings-tab">
<div class="settings-container">
Expand Down
2 changes: 1 addition & 1 deletion js/app.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 85 additions & 0 deletions js/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading