-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspace.html
More file actions
76 lines (68 loc) · 3.2 KB
/
Copy pathspace.html
File metadata and controls
76 lines (68 loc) · 3.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Slack</title>
<link rel="stylesheet" href="space.css" />
</head>
<body>
<!-- ── Not authenticated ──────────────────────────────────────────── -->
<div id="auth-panel" class="hidden">
<div class="auth-card">
<img src="icons/slack-96.svg" alt="Slack" class="auth-logo" />
<h2>Connect to Slack</h2>
<p>Please configure your Slack API token in the extension settings to get started.</p>
<button id="btn-open-settings" class="btn btn-primary">Open Settings</button>
</div>
</div>
<!-- ── Main 3-pane layout ─────────────────────────────────────────── -->
<div id="main-panel" class="hidden">
<!-- Left: channel list -->
<nav id="channel-sidebar">
<header id="sidebar-header">
<img src="icons/slack-16.svg" alt="" class="sidebar-logo" />
<button id="btn-refresh-channels" class="icon-btn" title="Refresh channels">↻</button>
</header>
<!-- Workspace name + channels are rendered here by space.js -->
<div id="channel-list" role="listbox" aria-label="Channels"></div>
</nav>
<!-- Right: messages + composer -->
<main id="content-area">
<header id="content-header">
<span id="channel-label"># welcome</span>
</header>
<div id="messages-container" role="log" aria-live="polite">
<div id="messages-list"></div>
</div>
<footer id="composer">
<textarea
id="message-input"
placeholder="Message #channel — press Enter to send, Shift+Enter for new line"
rows="3"
aria-label="New message"
></textarea>
<button id="btn-send" class="btn btn-primary" aria-label="Send message">Send</button>
</footer>
</main>
</div>
<!-- ── Context menu ───────────────────────────────────────────────── -->
<div id="context-menu" class="context-menu hidden" role="menu" aria-label="Options">
<ul id="context-menu-items"></ul>
</div>
<!-- ── Add channel dialog ─────────────────────────────────────────── -->
<div id="add-channel-dialog" class="dialog-overlay hidden" role="dialog" aria-modal="true" aria-labelledby="add-channel-title">
<div class="dialog">
<h3 id="add-channel-title">Add Channel</h3>
<p class="dialog-help">Pick a Slack channel to add.</p>
<select id="add-channel-select" class="dialog-input" aria-label="Channel to add"></select>
<div id="add-channel-error" class="error-msg hidden"></div>
<div class="dialog-actions">
<button id="btn-add-channel-cancel" class="btn btn-secondary">Cancel</button>
<button id="btn-add-channel-confirm" class="btn btn-primary">Add Channel</button>
</div>
</div>
</div>
<script src="space.js"></script>
</body>
</html>