-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
254 lines (244 loc) · 12.2 KB
/
index.html
File metadata and controls
254 lines (244 loc) · 12.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
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ayush Shukla - Portfolio</title>
<style>
body {
margin: 0;
padding: 0;
background-color: #0f0f0f;
color: #00ff00;
font-family: 'Consolas', monospace;
}
#terminal-container {
border: 2px solid #00ff00;
padding: 10px;
width: 80%;
margin: 20px auto; /* Centering the terminal */
}
#terminal {
min-height: 60vh;
padding: 20px;
box-sizing: border-box;
overflow: auto;
background-color: #1e1e1e;
line-height: 1.5;
white-space: pre-wrap;
word-wrap: break-word;
border: 1px solid #00ff00;
}
.input-line {
color: #0077ff; /* Input color */
}
.output-line {
color: #00ff00; /* Output color */
}
.command {
color: #ff6600; /* Command color */
}
.description {
color: #ffcc00; /* Description color */
}
.graphic {
font-family: monospace;
white-space: pre;
text-align: left;
font-size: 1.2em; /* Increased font size */
}
.graphics {
font-family: monospace;
white-space: pre;
text-align: left;
font-size: 1.0 em; /* Decreased font size */
position: absolute; /* Position the ASCII art drawing absolutely within the terminal */
top: 20px; /* Adjust the distance from the top */
right: 200px; /* Adjust the distance from the right */
}
/* Adjustments for responsiveness */
@media only screen and (max-width: 768px) {
/* Modify styles for smaller screens */
#terminal-container {
width: 90%; /* Adjust width for smaller screens */
max-width: 100%; /* Ensure content doesn't overflow on small screens */
}
#terminal {
padding: 15px; /* Increase padding for better spacing on smaller screens */
}
.graphic {
font-size: 1em; /* Reset font size for smaller screens */
text-align: center; /* Center align ASCII art on smaller screens */
}
.input-line {
font-size: 0.8em; /* Decrease font size for input line on smaller screens */
}
.output-line {
font-size: 0.9em; /* Decrease font size for output lines on smaller screens */
}
}
@media only screen and (max-width: 480px) {
/* Further adjustments for even smaller screens */
.input-line {
font-size: 0.7em; /* Further decrease font size for input line on very small screens */
}
.output-line {
font-size: 0.8em; /* Further decrease font size for output lines on very small screens */
}
}
</style>
</head>
<body>
<div id="terminal-container">
<div id="terminal" tabindex="0">
<pre class="graphic">
AAA YY YY UU UU SSSSSS HH HH
AA AA YY YY UU UU SS HH HH
AAAAAAA YY UU UU SSSSS HHHHHHHHH
AA AA YY UU UU SS HH HH
AA AA YY UUUU SSSSSS HH HH
Welcome to Termiport - Ayush's Portfolio
Type 'help' for a list of available commands.
</pre>
<pre class="graphics">
⠀⠀⠀⠀⠀⠀⢀⡠⠔⠒⠀⠉⠉⠉⠉⠉⠉⠐⠒⠢⠤⢀⡀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⢀⡤⠊⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠒⠤⡀⠀⠀⠀
⠀⠀⡠⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠓⢄⠀
⠀⡸⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⡆
⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹
⠀⡇⠀⠀⠀⠀⠰⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸
⠀⡇⠀⠀⢠⡀⠀⠙⢦⡀⠀⠈⢦⡀⠀⠀⠀⠀⡀⠀⠀⠀⢰⡀⠀⠀⠀⠀⠀⢸
⠀⢃⠀⠀⡌⠙⠦⣀⠀⠙⢦⣀⠈⢎⠒⠤⢀⡀⠈⠳⣤⢀⡈⢏⠢⡀⠀⠀⠀⡆
⠀⢸⡀⠀⡇⠀⠀⠀⠉⠑⠒⠓⠉⠒⠳⠄⠀⠈⠁⠐⠚⠷⠬⠉⠀⢸⠀⠀⢀⠃
⠀⠈⡇⢀⠁⢀⣠⢔⣂⣈⣉⡱⠀⠀⠀⠀⠀⢼⣉⣉⣉⣐⡢⣄⠀⠘⡆⠀⢸⠀
⢠⠢⣥⢸⠀⠈⠉⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠁⠀⡇⢀⠖⢦
⢆⢖⣾⢾⠀⠀⢀⣠⣴⣶⣤⡀⢣⠀⠀⠀⠀⣠⣴⣶⣶⣤⡀⠀⠀⠀⣷⢣⡖⣼
⢸⠸⡈⢾⡄⠀⠉⠁⠀⠈⠉⠙⢺⠀⠀⠀⠈⠉⠁⠀⠀⠀⠀⠀⠀⠀⢹⠃⡇⡿
⠘⡆⠁⢘⡇⠀⠀⠀⠀⠀⠀⠀⡸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡄⠈⢀⠇
⠀⠘⠦⠤⡇⠀⠀⠀⠀⠀⠀⢰⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡧⠤⠊⠀
⠀⠀⠀⠀⢱⠀⠀⠀⠀⠀⠀⠀⠑⠢⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⠀⠀⠀⠀
⠀⠀⠀⠀⢸⡀⠀⠀⠀⢰⡖⠂⠀⠀⠀⠀⠀⠐⠒⣶⠀⠀⠀⠀⠀⡸⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢇⠀⠀⠀⠈⢧⡀⠀⠀⠀⠀⠀⠀⣨⠏⠀⠀⠀⠀⢠⠇⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠈⢆⠀⠀⠀⠀⠈⠑⠒⠒⠒⠒⠉⠀⠀⠀⠀⠀⢀⠎⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠈⠣⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡴⠃⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠈⠓⠄⣀⠀⠀⠀⠀⠀⠀⢀⡠⠔⠉⠀⠀⠀⠀⠀⠀⠀⠀
⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣭⣶⣶⣶⣶⣮⣥⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤
</pre>
<br>
<div v-for="(line, index) in lines" :key="index" class="output-line" v-html="line"></div> <!-- Use v-html to render HTML -->
<br>
<p class="input-line"><span class="command">></span> <span id="command-line" contenteditable="true" @keydown.enter="executeCommand" @keydown.arrowup="previousCommand" @keydown.arrowdown="nextCommand" @keydown.tab.prevent="autocompleteCommand" @keydown.ctrl.i.prevent="clearTerminal" autofocus></span></p>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<script>
new Vue({
el: '#terminal',
data: {
command: '',
lines: [],
commandHistory: [],
historyIndex: -1,
commands: [
{ name: 'about', description: 'About Ayush Shukla', action: 'aboutCommand' },
{ name: 'clear', description: 'Clear the terminal', action: 'clearCommand' },
{ name: 'echo', description: 'Print out anything', action: 'echoCommand' },
{ name: 'education', description: 'My education background', action: 'educationCommand' },
{ name: 'email', description: 'Send email to me', action: 'emailCommand' },
{ name: 'help', description: 'Check available commands', action: 'helpCommand' },
{ name: 'history', description: 'View command history', action: 'historyCommand' },
{ name: 'projects', description: 'View projects I\'ve coded', action: 'projectsCommand' },
{ name: 'socials', description: 'Check out my social accounts', action: 'socialsCommand' },
{ name: 'welcome', description: 'Display banner', action: 'welcomeCommand' },
{ name: 'whoami', description: 'About current user', action: 'whoamiCommand' }
],
currentTheme: 'default' // Default theme
},
methods: {
writeToTerminal(output) {
this.lines.push(output);
},
clearTerminal() {
this.lines = [];
},
aboutCommand() {
this.writeToTerminal('About Ayush Shukla: I am a Jr Cloud Engineer at Noventiq, a leading provider of cloud-based solutions for enterprises. I work with a team of experts to design, develop, and deploy secure and scalable cloud applications, using Azure, Docker, Jenkins, and other cutting-edge technologies. I am passionate about DevOps and strive to optimize processes, streamline workflows, and foster a culture of collaboration within organizations.');
},
clearCommand() {
this.clearTerminal();
},
educationCommand() {
this.writeToTerminal('Raj Kumar Goel Institute of Technology Ghaziabad
Bachelor of Technology Computer Science and Engineering GPA: 8.00 2020 - 2024
Kendriya Vidyalaya Raebareli
Class X: 90.8% | Class XII: 77.8% 2018 - 2020');
},
emailCommand() {
this.writeToTerminal('<a href="mailto:ayushpvas9291@gmail.com">Email Ayush</a>');
}
helpCommand() {
this.commands.forEach(cmd => {
this.writeToTerminal(`<span class="command">${cmd.name}</span>: <span class="description">${cmd.description}</span>`);
});
}
historyCommand() {
this.writeToTerminal('History command logic');
},
projectsCommand() {
this.writeToTerminal('Projects: I have worked on various projects related to web development, machine learning, and data analysis.');
},
socialsCommand() {
this.writeToTerminal('Socials: You can find me on LinkedIn, Twitter, and GitHub.');
},
welcomeCommand() {
this.writeToTerminal('Welcome to Ayush Shukla\'s portfolio!');
},
whoamiCommand() {
this.writeToTerminal('You are currently Ayush Shukla.');
},
executeCommand() {
const command = document.getElementById('command-line').innerText.trim();
if (command !== '') {
this.writeToTerminal(> <span class="command">${command}</span>);
const foundCommand = this.commands.find(cmd => cmd.name === command);
if (foundCommand) {
this[foundCommand.action]();
} else {
this.writeToTerminal('Unrecognized command.');
}
document.getElementById('command-line').innerText = '';
}
},
previousCommand() {
if (this.historyIndex < this.commandHistory.length - 1) {
this.historyIndex++;
document.getElementById('command-line').innerText = this.commandHistory[this.historyIndex];
}
},
nextCommand() {
if (this.historyIndex > 0) {
this.historyIndex--;
document.getElementById('command-line').innerText = this.commandHistory[this.historyIndex];
} else if (this.historyIndex === 0) {
this.historyIndex = -1;
document.getElementById('command-line').innerText = '';
}
},
autocompleteCommand(event) {
const input = document.getElementById('command-line');
const value = input.innerText.toLowerCase();
if (event.key === 'Tab') {
for (let i = 0; i < this.commands.length; i++) {
if (this.commands[i].name.startsWith(value)) {
input.innerText = this.commands[i].name;
break;
}
}
event.preventDefault();
}
}
}
});
</script>
</body>
</html>