-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
142 lines (129 loc) · 4.74 KB
/
Copy pathindex.html
File metadata and controls
142 lines (129 loc) · 4.74 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
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CoLab — Shared Workspace</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- TOPBAR -->
<header id="topbar">
<div class="topbar-left">
<span class="logo">⬡ CoLab</span>
<div class="user-badge" id="userBadge">
<span class="user-dot"></span>
<span id="userLabel">Connecting…</span>
</div>
</div>
<div class="topbar-center">
<div class="presence-bar" id="presenceBar">
<span id="onlineCount">1 user online</span>
<div id="avatarRow" class="avatar-row"></div>
</div>
</div>
<div class="topbar-right">
<div class="sync-badge" id="syncBadge">
<span class="sync-dot synced"></span>
<span id="syncLabel">Synced</span>
</div>
<button class="theme-toggle" id="themeToggle" title="Toggle dark/light mode">
<span id="themeIcon">☀</span>
</button>
</div>
</header>
<!-- TYPING INDICATOR BAR -->
<div class="typing-bar" id="typingBar">
<span id="typingText"></span>
</div>
<!-- MAIN LAYOUT -->
<div class="app-layout">
<!-- CONTENT AREA -->
<main class="content-area">
<!-- SECTION TABS -->
<nav class="section-tabs">
<button class="tab-btn active" data-tab="editor">
<span class="tab-icon">✎</span> Editor
</button>
<button class="tab-btn" data-tab="todos">
<span class="tab-icon">☑</span> Todos
</button>
<button class="tab-btn" data-tab="notes">
<span class="tab-icon">◈</span> Notes
</button>
</nav>
<!-- EDITOR SECTION -->
<section class="tab-panel active" id="tab-editor">
<div class="panel-header">
<h2>Shared Document</h2>
<span class="panel-meta" id="editorMeta">Editing together</span>
</div>
<div class="editor-wrap" id="editorWrap">
<textarea id="sharedEditor" placeholder="Start typing your shared document here… All changes sync in real-time across every open tab."></textarea>
<div class="conflict-banner hidden" id="editorConflict">
<span class="conflict-icon">⚠</span>
<span>Another user modified this document</span>
<div class="conflict-actions">
<button class="btn-overwrite" id="editorOverwrite">Keep Mine</button>
<button class="btn-merge" id="editorMerge">Merge</button>
</div>
</div>
</div>
</section>
<!-- TODOS SECTION -->
<section class="tab-panel" id="tab-todos">
<div class="panel-header">
<h2>Shared To-Do List</h2>
<span class="panel-meta" id="todoMeta">0 tasks</span>
</div>
<div class="add-row">
<input type="text" id="todoInput" placeholder="Add a new task…" maxlength="200" />
<button id="addTodoBtn" class="btn-primary">+ Add</button>
</div>
<ul class="todo-list" id="todoList">
<!-- Rendered by JS -->
</ul>
</section>
<!-- NOTES SECTION -->
<section class="tab-panel" id="tab-notes">
<div class="panel-header">
<h2>Shared Notes</h2>
<span class="panel-meta" id="notesMeta">0 notes</span>
</div>
<div class="add-row">
<input type="text" id="noteTitle" placeholder="Note title…" maxlength="100" />
<button id="addNoteBtn" class="btn-primary">+ Add Note</button>
</div>
<div class="notes-grid" id="notesList">
<!-- Rendered by JS -->
</div>
</section>
</main>
<!-- SIDE PANEL -->
<aside class="side-panel">
<div class="side-section">
<div class="side-header">
<span>◎ Activity Log</span>
<button class="clear-log-btn" id="clearLogBtn" title="Clear log">✕</button>
</div>
<ul class="activity-log" id="activityLog">
<li class="log-empty">No activity yet</li>
</ul>
</div>
<div class="side-section">
<div class="side-header">
<span>◉ Live Notifications</span>
</div>
<div class="notifications-area" id="notificationsArea">
<p class="log-empty">Waiting for collaboration…</p>
</div>
</div>
</aside>
</div>
<!-- TOAST CONTAINER -->
<div class="toast-container" id="toastContainer"></div>
<script src="script.js"></script>
</body>
</html>