-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
142 lines (134 loc) · 6.04 KB
/
Copy pathindex.html
File metadata and controls
142 lines (134 loc) · 6.04 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-US">
<head>
<link rel="icon" type="image/png" href="/favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>David Goldberg</title>
<style type='text/css'>
html, body { height: 100%; margin: 0; }
body {
background-color: black;
color: #4bc853;
font-family: 'Courier New', monospace;
text-shadow: 0 0 10px #4bc853, 0 0 25px #3a9e40, 0 0 50px #2a7e30;
}
a[href] { color:#4bc853; text-decoration:none; }
#crt-scanlines, #crt-vignette {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
pointer-events: none;
}
#crt-scanlines {
background: repeating-linear-gradient(
0deg,
transparent, transparent 3px,
rgba(0, 255, 0, 0.018) 3px,
rgba(0, 255, 0, 0.018) 4px
);
z-index: 100;
}
#crt-vignette {
background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.8) 100%);
z-index: 101;
}
#screen {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
flex-direction: column;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
.cursor {
display: inline-block;
animation: blink 1s step-end infinite;
}
#mobile { display: none; }
@media (max-width: 600px) {
#terminal { display: none; }
#mobile { display: block; }
}
</style>
</head>
<body>
<div id="crt-scanlines"></div>
<div id="crt-vignette"></div>
<div id="screen">
<pre id="terminal"></pre>
<pre id="mobile"></pre>
<p id="inquiries">For Inquiries, please contact: ZGF2ZUB0aGVkZWNyeXB0LmNvbQ=</p>
</div>
<script>
const lines = [
'+------------------------------------------------------------------------------+',
'| |',
'| <a href="https://www.linkedin.com/in/davidtgoldberg/">DAVID GOLDBERG</a> |',
'| ============== |',
'| |',
'| |',
'| HISTORY |',
'| ------- |',
'| |',
'| <a href=\'https://toasttab.com/\'>TOAST </a> // ENG LEADER |',
'| <a href=\'https://ghostwrite.com/\'>GHOSTWRITE </a> // COFOUNDER |',
'| <a href=\'http://fanatics.com/\'>FANATICS COLLECTIBLES </a> // CPTO |',
'| <a href=\'http://meta.com/\'>META </a> // ENG LEADER |',
'| <a href=\'http://contently.com/\'>CONTENTLY </a> // COFOUNDER, CTO |',
'| |',
'| |',
'+------------------------------------------------------------------------------+'
];
const terminal = document.getElementById('terminal');
const cursorEl = document.createElement('span');
cursorEl.className = 'cursor';
cursorEl.textContent = '▌';
let i = 0;
function typeLine() {
if (i < lines.length) {
terminal.innerHTML += (i === 0 ? '' : '\n') + lines[i];
i++;
setTimeout(typeLine, 80);
} else {
// Typing complete — append blinking cursor after the inquiries line
const inquiries = document.getElementById('inquiries');
inquiries.appendChild(cursorEl);
}
}
// Each line: | + 32 visible chars + |
// Links add invisible HTML so we pass visible text separately to compute padding
function ml(visibleText, html) {
const pad = ' '.repeat(32 - visibleText.length);
return '|' + html + pad + '|';
}
const mobileLines = [
'+--------------------------------+',
'| |',
ml(' DAVID GOLDBERG ', ' <a href="https://www.linkedin.com/in/davidtgoldberg/">DAVID GOLDBERG</a> '),
'| ============== |',
'| |',
'| HISTORY |',
'| ------- |',
'| |',
ml(' TOAST // ENG LEADER ', ' <a href="https://toasttab.com/">TOAST</a> // ENG LEADER '),
ml(' GHOSTWRITE // COFOUNDER ', ' <a href="https://ghostwrite.com/">GHOSTWRITE</a> // COFOUNDER '),
ml(' FANATICS // CPTO ', ' <a href="http://fanatics.com/">FANATICS</a> // CPTO '),
ml(' META // ENG LEADER ', ' <a href="http://meta.com/">META</a> // ENG LEADER '),
ml(' CONTENTLY // CTO ', ' <a href="http://contently.com/">CONTENTLY</a> // CTO '),
'| |',
'+--------------------------------+'
];
// Only run type-in animation on desktop; on mobile populate box statically
if (window.innerWidth > 600) {
typeLine();
} else {
const mobile = document.getElementById('mobile');
mobile.innerHTML = mobileLines.join('\n');
const inquiries = document.getElementById('inquiries');
inquiries.appendChild(cursorEl);
}
</script>
</body>
</html>