-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.html
More file actions
154 lines (146 loc) · 7.72 KB
/
Copy pathnotes.html
File metadata and controls
154 lines (146 loc) · 7.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Smart Notes — NeuroStudy Hub</title>
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/auth.css" />
<link rel="stylesheet" href="css/notes.css" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet" />
</head>
<body class="app-body">
<aside class="sidebar" id="sidebar">
<div class="sidebar-logo"><a href="index.html">Neuro<span>Study</span></a></div>
<nav class="sidebar-nav">
<div class="nav-group">
<span class="nav-group-label">Main</span>
<a href="dashboard.html" class="nav-item">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/></svg>
Dashboard
</a>
<a href="marketplace.html" class="nav-item">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z"/></svg>
AI Tools
</a>
<a href="notes.html" class="nav-item active">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"/></svg>
Smart Notes
</a>
</div>
<div class="nav-group">
<span class="nav-group-label">Account</span>
<a href="profile.html" class="nav-item">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
Profile
</a>
</div>
</nav>
<div class="sidebar-footer">
<div class="user-mini">
<div class="user-avatar">?</div>
<div class="user-info"><span class="user-name">Loading...</span></div>
</div>
</div>
</aside>
<main class="main-content">
<header class="topbar">
<button class="sidebar-toggle" id="sidebarToggle">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
</button>
<div class="topbar-search">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>
<input type="text" id="notesSearch" placeholder="Search notes..." />
</div>
<div class="topbar-right">
<a href="profile.html" class="user-avatar-btn">?</a>
</div>
</header>
<div class="page-content">
<div class="page-header">
<div>
<h1>Smart Notes</h1>
<p class="page-subtitle">Create, edit, and organize your notes.</p>
</div>
<button class="btn btn-primary" id="newNoteBtn">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>
New Note
</button>
</div>
<!-- NOTES LAYOUT -->
<div class="notes-layout">
<!-- NOTES LIST -->
<div class="notes-list-panel" id="notesListPanel">
<div class="notes-list" id="notesList">
<div class="notes-loading">Loading notes...</div>
</div>
</div>
<!-- NOTE EDITOR -->
<div class="note-editor-panel" id="noteEditorPanel">
<div class="editor-empty" id="editorEmpty">
<div class="editor-empty-icon">📝</div>
<p>Select a note to edit</p>
<span>or create a new one</span>
<button class="btn btn-primary" id="newNoteBtn2">New Note</button>
</div>
<div class="editor-active" id="editorActive" style="display:none">
<div class="editor-toolbar">
<input type="text" id="noteTitle" class="note-title-input" placeholder="Note title..." />
<div class="editor-actions">
<button class="mic-btn" id="notesMicBtn" title="Voice input — dictate your note" type="button">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M12 1a3 3 0 00-3 3v8a3 3 0 006 0V4a3 3 0 00-3-3z"/>
<path d="M19 10v2a7 7 0 01-14 0v-2M12 19v4M8 23h8"/>
</svg>
</button>
<button class="btn btn-ghost btn-sm" id="pinNoteBtn" title="Pin note">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z"/><circle cx="12" cy="10" r="3"/></svg>
Pin
</button>
<button class="btn btn-primary btn-sm" id="saveNoteBtn">Save</button>
<button class="btn btn-ghost btn-sm danger" id="deleteNoteBtn">Delete</button>
</div>
</div>
<div class="editor-tags">
<input type="text" id="noteTags" placeholder="Tags (comma separated)" />
</div>
<textarea id="noteContent" class="note-content-input" placeholder="Start writing your note..."></textarea>
<div class="editor-status" id="editorStatus"></div>
</div>
</div>
</div>
</div>
</main>
<!-- FLOATING AI BUTTON -->
<button class="ai-fab" id="aiFab" title="Open AI Tools">
<div class="rhombus-inner">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>
</div>
<div class="fab-ring"></div>
</button>
<div class="ai-panel" id="aiPanel">
<div class="ai-panel-header">
<h3><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg> AI Assistant</h3>
<button class="panel-close" id="panelClose"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg></button>
</div>
<div class="ai-panel-tools">
<a href="tool.html?tool=Summarizer&icon=%F0%9F%93%84" class="panel-tool">📄 Summarizer</a>
<a href="tool.html" class="panel-tool">✍️ Essay Writer</a>
<a href="tool.html" class="panel-tool">🧠 Flashcard Gen</a>
</div>
<div class="ai-panel-footer">
<a href="marketplace.html" class="btn btn-primary" style="width:100%;justify-content:center;">View All 100+ Tools</a>
</div>
</div>
<div class="panel-overlay" id="panelOverlay"></div>
<script src="js/api.js"></script>
<script src="js/voice.js"></script>
<script src="js/main.js"></script>
<script src="js/notes.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
Voice.attachMic('noteContent', 'notesMicBtn');
});
</script>
</body>
</html>