-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
197 lines (195 loc) · 7.57 KB
/
index.html
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Uchenna Ofoma's Terminal Style Portfolio"
/>
<!-- Facebook Meta Tags -->
<meta
property="og:url"
content="http://portfolio.adophilus.xyz/terminal/"
/>
<meta property="og:type" content="website" />
<meta property="og:title" content="My Portfolio | Uchenna Ofoma" />
<meta
property="og:description"
content="Uchenna Ofoma's Terminal Style Portfolio"
/>
<meta
property="og:image"
content="http://portfolio.adophilus.xyz/terminal/imgs/social-image.jpg"
/>
<meta property="og:image:width" content="1366" />
<meta property="og:image:height" content="695" />
<meta property="og:image:type" content="image/jpeg" />
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta property="twitter:domain" content="portfolio.adophilus.xyz" />
<meta
property="twitter:url"
content="http://portfolio.adophilus.xyz/terminal/"
/>
<meta name="twitter:title" content="My Portfolio | Uchenna Ofoma" />
<meta
name="twitter:description"
content="Uchenna Ofoma's Terminal Style Portfolio"
/>
<meta
name="twitter:image"
content="http://portfolio.adophilus.xyz/terminal/imgs/social-image.jpg"
/>
<meta property="twitter:image:width" content="1366" />
<meta property="twitter:image:height" content="695" />
<meta property="twitter:image:type" content="image/jpeg" />
<title>My Portfolio | Uchenna Ofoma</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<span
class="flex justify-center fixed w-full font-ubuntu-bold font-700 top-1/2 left-1/2 -translate-1/2 text-light-grey text-large uppercase show-later"
>
Please ensure that javascript is enabled
</span>
<div
id="app"
x-data="state"
class="w-full h-100 flex justify-center align-center"
>
<template x-if="$store.loaded.state">
<section class="h-full w-full fixed md:static md:container md:h-auto">
<div
id="terminal"
@click="document.querySelector('#commandEntry').focus()"
x-init="$watch('$store.terminal.stdin', $store.terminal.formatPrompt)"
class="md:rounded-1 flex-col bg-secondary h-100 md:h-50"
>
<div
class="title-bar hidden md:flex justify-space-between select-none bg-dark-grey py-1/2 px-1"
>
<div class="flex justify-center align-center">
<img
src="imgs/profile.jpg"
style="width: 1.1em; height: 1.1em"
/>
</div>
<div>
<a
href="./"
class="app-title text-grey font-500 decoration-none cursor-pointer font-ubuntu-bold"
x-text="$store.terminal.title"
></a>
</div>
<div class="flex gap-x-1">
<span
class="terminal-btn align-center justify-center bg-green"
></span>
<span
class="terminal-btn align-center justify-center bg-yellow"
></span>
<span
class="terminal-btn align-center justify-center bg-red"
@click="$store.terminal.executeCommand('exit')"
></span>
</div>
</div>
<div
id="scrollbar"
class="text-light-grey font-500 font-ubuntu-mono overflow-auto"
>
<div class="mx-1/2 relative" id="commandSpace">
<div>
<!-- command output -->
<div id="commandOutput"></div>
<!-- command prompt -->
<div class="flex flex-col mt-1">
<span
class="path text-purple"
x-text="$store.terminal.pwd"
></span>
<span class="flex" style="height: 1em">
<i
class="fa-solid fa-chevron-right mr-1/2 text-green"
></i>
<span
x-html="$store.terminal._prompt"
x-init="$nextTick(() => { $store.terminal.writeCommand('help', () => {
const commandEntry = document.querySelector('#commandEntry')
commandEntry.disabled = false
commandEntry.focus()
}) })"
></span>
<span id="commandCaret"></span>
</span>
</div>
</div>
</div>
</div>
<div
class="w-full flex justify-center bottom-0 absolute md:hidden justify-center pb-1 text-normal font-500 font-ubuntu-bold"
>
<span id="credits" class="flex animate">
<span>Made with <i class="fa-solid fa-heart"></i> by</span
>
<a
:href="$store.db.socials.GitHub.link"
target="_blank"
rel="noopener noreferrer"
class="flex flex-col decoration-none text-default"
><span id="author">Uchenna</span
><span class="flex" id="underlineContainer"
><span
class="bg-primary w-full h-2"
id="underline"
></span></span></a
></span>
</div>
</div>
<div
class="hidden md:flex justify-center mt-3 text-normal font-500 font-ubuntu-bold"
>
<span id="credits" class="flex text-light-grey">
<span>Made with <i class="fa-solid fa-heart"></i> by</span>
<a
:href="$store.db.socials.GitHub.link"
target="_blank"
rel="noopener noreferrer"
class="flex flex-col decoration-none text-light-grey"
><span id="author">Uchenna</span
><span class="flex" id="underlineContainer"
><span
class="bg-light-grey w-full h-2"
id="underline"
></span></span></a
></span>
</div>
<div class="opacity-0 absolute">
<input
class="select-none cursor-default"
id="commandEntry"
disabled
type="text"
@focus="document.querySelector('#commandCaret').classList.add('animate-caret')"
@focusOut="document.querySelector('#commandCaret').classList.remove('animate-caret')"
@keypress="$store.terminal.onKeyPress($event)"
@keyup="$store.terminal.moveCaret($event)"
x-model="$store.terminal.stdin"
onselectstart="return false"
/>
</div>
</section>
</template>
</div>
<script type="module" src="js/main.js"></script>
</body>
</html>