-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathterminal_emulation.html
92 lines (89 loc) · 2.34 KB
/
terminal_emulation.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style data-typed-js-cursor-css="true">
.typed-cursor {
opacity: 1;
}
.typed-cursor.typed-cursor--blink {
animation: typedjsBlink 0.7s infinite;
-webkit-animation: typedjsBlink 0.7s infinite;
animation: typedjsBlink 0.7s infinite;
}
@keyframes typedjsBlink {
50% {
opacity: 0;
}
}
@-webkit-keyframes typedjsBlink {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
</style>
<style>
@keyframes softBounce {
0%,
20%,
50%,
80%,
100% {
transform: translateY(0);
}
40% {
transform: translateY(-30px);
}
60% {
transform: translateY(-5px);
}
}
.terminal-window {
animation: softBounce 1s ease-in;
}
</style>
</head>
<body>
<div class="terminal-window">
<pre id="terminal-output"></pre>
<div
class="terminal-window mx-2 w-full xl:w-4/5 p-6 text-base sm:text-sm md:text-base rounded-md shadow-2xl bg-gray-800 max-h-80">
<div class="relative">
<div class="absolute -top-5 -right-5">
<!-- Close button -->
<button
title="Close"
class="text-gray-600 w-8 h-8 rounded-full flex items-center justify-center">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
class="w-4 h-4"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M6 18L18 6M6 6l12 12"
></path>
</svg>
</button>
</div>
</div>
<script src="terminal_input.js"></script>
<pre class="text-gray-300 whitespace-pre" id="terminal-output"></pre>
</div>
</div>
<script src="node_modules/tailwindcss"></script>
<script src="node_modules/typed.js"></script>
</body>
</html>