-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
126 lines (126 loc) · 4.56 KB
/
index.html
File metadata and controls
126 lines (126 loc) · 4.56 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Mainendra Patel - Technology Enthusiast / Developer" />
<title>Mainendra's profile</title>
<script>
// Set theme vars before first paint to prevent flash
var t=parseInt(localStorage.getItem('themeIdx')||'2',10),
d=[['#1a1b26','#13141c','#c0caf5'],['#282a36','#1e1f29','#f8f8f2'],['#282828','#1d2021','#ebdbb2'],['#fdf6e3','#eee8d5','#657b83'],['#ffffff','#f0f0f0','#24292e']],
c=d[t%d.length];
document.documentElement.style.cssText='--bg:'+c[0]+';--bg-outer:'+c[1]+';--fg:'+c[2];
</script>
<style>
@font-face {
font-family: 'JetBrainsMonoNerdFont';
src: url('/JetBrainsMonoNerdFont-Regular.ttf') format('truetype');
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'JetBrainsMonoNerdFont', monospace;
height: 100vh;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg-outer);
color: var(--fg);
transition: background 0.3s, color 0.3s;
}
#app {
width: 90%;
max-width: 900px;
height: 85vh;
display: flex;
flex-direction: column;
background: var(--bg);
border-radius: 10px;
border: 1px solid var(--border);
overflow: hidden;
transition: background 0.3s, border-color 0.3s;
}
#profile {
display: flex;
align-items: center;
gap: 1.5rem;
padding: 1.5rem 2rem;
border-bottom: 1px solid var(--border);
}
#profile img {
width: 80px;
height: 80px;
border-radius: 50%;
border: 2px solid var(--accent);
}
#profile h1 { font-size: 1.4rem; color: var(--accent); }
#profile p { font-size: 0.85rem; color: var(--fg-dim); margin-top: 0.25rem; }
#profile .spacer { flex: 1; }
#theme-btn {
background: none;
border: 1px solid var(--border);
color: var(--fg-dim);
font-family: inherit;
font-size: 1.2rem;
padding: 0.4rem 0.6rem;
border-radius: 6px;
cursor: pointer;
transition: color 0.3s, border-color 0.3s;
}
#theme-btn:hover { color: var(--accent); border-color: var(--accent); }
#terminal { flex: 1; min-height: 0; overflow: hidden; margin: 1.5rem 0.5rem; }
#terminal .xterm-viewport { overflow-y: hidden !important; }
#hint {
padding: 0.4rem 2rem;
font-size: 0.75rem;
color: var(--fg-dim);
background: var(--bg-hint);
border-bottom: 1px solid var(--border);
transition: background 0.3s, color 0.3s;
}
#hint kbd {
color: var(--green);
background: var(--bg);
padding: 0.1rem 0.4rem;
border-radius: 3px;
border: 1px solid var(--border);
}
.hint-mobile { display: none; }
@media (max-width: 600px) {
.hint-desktop { display: none; }
.hint-mobile { display: inline; }
body { align-items: stretch; justify-content: stretch; }
#app { width: 100%; height: 100vh; max-width: none; border-radius: 0; border: none; }
#profile { padding: 0.75rem 1rem; gap: 0.75rem; }
#profile img { width: 48px; height: 48px; }
#profile h1 { font-size: 1rem; }
#profile p { font-size: 0.75rem; }
#hint { padding: 0.3rem 1rem; font-size: 0.65rem; }
#terminal { margin: 0.5rem; }
#terminal .xterm-screen { touch-action: pan-y; }
}
</style>
<script type="module" crossorigin src="/assets/index-BhS2aRkp.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DYP7pi_n.css">
</head>
<body>
<div id="app">
<div id="profile">
<img src="/me.png" alt="Mainendra Patel" />
<div>
<h1>Mainendra Patel</h1>
<p>Technology Enthusiast / Developer</p>
</div>
<div class="spacer"></div>
<button id="theme-btn" title="Switch theme">🎨</button>
</div>
<div id="hint">
<span class="hint-desktop">Type <kbd>help</kbd> for available commands · <kbd>Tab</kbd> to autocomplete · <kbd>↑↓</kbd> history</span>
<span class="hint-mobile">Type <kbd>help</kbd> · Swipe <kbd>←→</kbd> move cursor · <kbd>→→</kbd> autocomplete</span>
</div>
<div id="terminal"></div>
</div>
</body>
</html>