|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | + <title>HTMLNotes</title> |
| 7 | + <link rel="stylesheet" href="./styles/styles.css" /> |
| 8 | + <script src="https://cdn.jsdelivr.net/npm/eruda"></script> |
| 9 | + <script>eruda.init();</script> |
| 10 | + <script src="https://unpkg.com/tiny-markdown-editor@0.2.3/dist/tiny-mde.min.js"></script> |
| 11 | + </head> |
| 12 | + <body> |
| 13 | + <div class="app-container"> |
| 14 | + <div class="sidebar"> |
| 15 | + <button |
| 16 | + class="sidebar-toggle" |
| 17 | + aria-label="Toggle sidebar" |
| 18 | + > |
| 19 | + ☰ |
| 20 | + </button> |
| 21 | + <div class="sidebar-title"> |
| 22 | + <h1>HTMLNotes</h1> |
| 23 | + </div> |
| 24 | + <div class="new-note-container"> |
| 25 | + <button |
| 26 | + class="btn add-note-btn" |
| 27 | + id="addNoteBtn" |
| 28 | + aria-label="Create a new note" |
| 29 | + aria-disabled="false" |
| 30 | + > |
| 31 | + New Note |
| 32 | + </button> |
| 33 | + </div> |
| 34 | + <div class="search-container"> |
| 35 | + <input |
| 36 | + type="text" |
| 37 | + class="search-box" |
| 38 | + placeholder="Search notes..." |
| 39 | + id="searchInput" |
| 40 | + aria-label="Search notes" |
| 41 | + /> |
| 42 | + </div> |
| 43 | + <div class="controls" id="filterControls"> |
| 44 | + <button |
| 45 | + class="btn active" |
| 46 | + data-filter="all" |
| 47 | + aria-label="Show all notes" |
| 48 | + > |
| 49 | + All Notes |
| 50 | + </button> |
| 51 | + <button |
| 52 | + class="btn" |
| 53 | + data-filter="recent" |
| 54 | + aria-label="Show recent notes" |
| 55 | + > |
| 56 | + Recent |
| 57 | + </button> |
| 58 | + </div> |
| 59 | + <div class="notes-list" id="notesList" role="list"></div> |
| 60 | + <div class="empty-state" id="sidebarEmptyState" style="display: none"> |
| 61 | + <h3>No notes found</h3> |
| 62 | + <p>Create a new note or adjust your search/filters.</p> |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + <div class="main-content" id="mainContent"> |
| 66 | + <div class="editor-area" id="editorArea" style="display: none"> |
| 67 | + <input |
| 68 | + type="text" |
| 69 | + id="noteTitle" |
| 70 | + placeholder="Note title..." |
| 71 | + aria-label="Note title" |
| 72 | + /> |
| 73 | + <div id="tinymde-editor"></div> |
| 74 | + <div id="tinymde_commandbar1"></div> |
| 75 | + <input |
| 76 | + type="text" |
| 77 | + id="noteTags" |
| 78 | + placeholder="Tags (comma separated)..." |
| 79 | + aria-label="Note tags" |
| 80 | + /> |
| 81 | + <div class="editor-buttons"> |
| 82 | + <div class="export-dropdown"> |
| 83 | + <button |
| 84 | + class="btn export-btn" |
| 85 | + id="exportNoteBtn" |
| 86 | + aria-haspopup="true" |
| 87 | + aria-expanded="false" |
| 88 | + aria-label="Export note" |
| 89 | + > |
| 90 | + Export Note <span>▼</span> |
| 91 | + </button> |
| 92 | + <div class="export-dropdown-content" role="menu"> |
| 93 | + <button id="exportJsonBtn" role="menuitem"> |
| 94 | + Export as JSON |
| 95 | + </button> |
| 96 | + <button id="exportMarkdownBtn" role="menuitem"> |
| 97 | + Export as Markdown |
| 98 | + </button> |
| 99 | + </div> |
| 100 | + </div> |
| 101 | + <div class="import-container"> |
| 102 | + <button class="btn" id="importNoteBtn" aria-label="Import note"> |
| 103 | + <i class="fas fa-file-import"></i> Import Note |
| 104 | + </button> |
| 105 | + <input type="file" id="importFileInput" accept=".json,.md,.txt" /> |
| 106 | + </div> |
| 107 | + <button |
| 108 | + class="btn delete-note-btn" |
| 109 | + id="deleteNoteBtn" |
| 110 | + aria-label="Delete note" |
| 111 | + > |
| 112 | + Delete Note |
| 113 | + </button> |
| 114 | + </div> |
| 115 | + </div> |
| 116 | + <div class="empty-state" id="mainEmptyState"> |
| 117 | + <h3>Select a Note or Create New</h3> |
| 118 | + <p> |
| 119 | + Choose a note from the sidebar or click "New Note" to get started. |
| 120 | + </p> |
| 121 | + </div> |
| 122 | + </div> |
| 123 | + </div> |
| 124 | + <div class="saving-indicator" id="savingIndicator"> |
| 125 | + <div class="spinner"></div> |
| 126 | + <span>Saving...</span> |
| 127 | + </div> |
| 128 | + <div id="toastContainer" class="toast-container"></div> |
| 129 | + |
| 130 | + <script type="module" src="./src/main.js"></script> |
| 131 | + </body> |
| 132 | +</html> |
0 commit comments