-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
173 lines (156 loc) · 4.25 KB
/
Copy pathindex.html
File metadata and controls
173 lines (156 loc) · 4.25 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>mux0.dev - tui portfolio</title>
<style>
:root {
--bg: #0f0f0f;
--ink: #f2f2f2;
--muted: #b5b5b5;
--brand: #f0833a;
--border: #2a2a2a;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font-family: "Courier New", Courier, monospace;
}
.wrap {
max-width: 880px;
margin: 0 auto;
padding: 72px 24px 64px;
}
h1 {
font-size: clamp(28px, 5vw, 46px);
margin: 0 0 12px;
}
p {
margin: 0 0 20px;
color: var(--muted);
line-height: 1.6;
}
.command {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
border: 1px solid var(--border);
padding: 16px 18px;
border-radius: 10px;
}
.command code {
color: var(--brand);
font-size: 16px;
}
.copy {
background: transparent;
border: 1px solid var(--border);
color: var(--ink);
padding: 8px 12px;
border-radius: 8px;
font-size: 12px;
cursor: pointer;
}
.steps {
margin-top: 32px;
border-top: 1px solid var(--border);
padding-top: 24px;
display: grid;
gap: 12px;
}
.step {
display: flex;
gap: 12px;
align-items: flex-start;
}
.step span {
color: var(--brand);
font-weight: 700;
}
.socials a {
color: var(--ink);
text-decoration: none;
margin-right: 8px;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 2px 6px;
border-radius: 6px;
border: 1px solid transparent;
}
.socials a:hover {
border-color: var(--border);
color: var(--brand);
}
.socials .dot {
color: var(--muted);
}
@media (max-width: 640px) {
.command {
flex-direction: column;
align-items: flex-start;
}
}
</style>
</head>
<body>
<div class="wrap">
<h1>mux0.dev</h1>
<p>Connect to the live TUI portfolio over SSH.</p>
<div class="command" id="ssh-command">
<code>$ ssh mux0.dev</code>
<button class="copy" id="copy-inline">Copy</button>
</div>
<section id="guide" class="steps">
<div class="step">
<span>1.</span>
<p>Open your terminal (Windows Terminal, iTerm2, kitty, etc).</p>
</div>
<div class="step">
<span>2.</span>
<p>Run <strong>ssh mux0.dev</strong>.</p>
</div>
<div class="step">
<span>3.</span>
<p>Navigate with j/k or arrows. Press tab to switch focus, q to quit.</p>
</div>
</section>
<section class="steps socials" style="margin-top: 24px;">
<div class="step">
<span>🔗</span>
<p>
<a href="https://github.com/daipham3213">🐙 GitHub</a>
<span class="dot">·</span>
<a href="https://launchpad.net/~daiplg">🚀 Launchpad</a>
<span class="dot">·</span>
<a href="https://review.opendev.org/q/owner:daiplg">🧩 Gerrit</a>
<span class="dot">·</span>
<a href="https://www.linkedin.com/in/daipham-3213">💼 LinkedIn</a>
<span class="dot">·</span>
<a href="mailto:daipham.3213@gmail.com">✉️ Email</a>
</p>
</div>
</section>
</div>
<script>
const command = "ssh mux0.dev";
const copy = async () => {
try {
await navigator.clipboard.writeText(command);
const btn = document.getElementById("copy-inline");
btn.textContent = "Copied!";
setTimeout(() => (btn.textContent = "Copy"), 1200);
} catch (err) {
alert("Copy failed. Please copy manually: " + command);
}
};
document.getElementById("copy-inline").addEventListener("click", copy);
</script>
</body>
</html>