-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
171 lines (171 loc) · 5.39 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>bashvm</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f9;
color: #333;
}
.container {
max-width: 800px;
margin: 80px auto 20px;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
color: #000000;
}
p {
text-align: center;
font-size: 1.1em;
}
.command {
background-color: #272822;
color: #f8f8f2;
border-radius: 5px;
padding: 15px;
margin-bottom: 20px;
font-family: 'Courier New', Courier, monospace;
position: relative;
overflow-x: auto;
}
.command code {
display: block;
white-space: pre-wrap;
}
.copy-button {
position: absolute;
top: 30px;
right: 10px;
background-color: transparent;
color: white;
border: none;
padding: 5px;
cursor: pointer;
font-size: 1.2em;
display: flex;
align-items: center;
}
.copy-button:hover {
color: #4CAF50;
}
.copy-message {
display: none;
margin-left: 10px;
font-size: 0.8em;
color: #4CAF50;
}
.show {
display: inline;
}
#menu {
background-color: #333;
overflow: hidden;
display: flex;
justify-content: center;
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#menu a {
display: flex;
align-items: center;
color: white;
text-align: center;
padding: 14px 20px;
text-decoration: none;
font-size: 17px;
transition: background-color 0.3s, color 0.3s;
}
#menu a:hover {
background-color: #575757;
color: white;
}
.menu-icon {
margin-right: 5px;
}
.menu-icon:hover {
color: #4CAF50;
}
@media (max-width: 768px) {
#menu {
flex-direction: column;
}
#menu a {
text-align: left;
padding: 10px 20px;
}
.container {
margin: 120px 20px 20px;
}
}
</style>
</head>
<body>
<div id="menu">
<a href="index.html">
<i class="fas fa-home menu-icon"></i>Home
</a>
<a href="download.html">
<i class="fas fa-download menu-icon"></i>Download
</a>
<a href="guide.html">
<i class="fas fa-book menu-icon"></i>Guide
</a>
<a href="screenshots.html">
<i class="fas fa-image menu-icon"></i>Screenshots
</a>
<a href="sponsors.html">
<i class="fas fa-handshake menu-icon"></i>Sponsors
</a>
<a href="donate.html">
<i class="fas fa-donate menu-icon"></i>Donate
</a>
</div>
<div class="container">
<h1><i class="fas fa-terminal"></i> bashvm</h1>
<p>bashvm is a console-based virtual machine manager</p>
<br>
<h2>One-liner Command</h2>
<div class="command">
<button class="copy-button" onclick="copyToClipboard('wget -qO- https://github.com/babywhale321/bashvm/releases/download/11-03-2024/bashvm.tar.gz | tar xz && cd bashvm && bash bashvm-installer.sh && bash bashvm.sh', this)">
<i class="fas fa-clipboard"></i>
</button>
<code>wget -qO- https://github.com/babywhale321/bashvm/releases/download/11-03-2024/bashvm.tar.gz | tar xz && cd bashvm && bash bashvm-installer.sh && bash bashvm.sh</code>
</div>
<br>
<h2>Getting Started</h2>
<div class="command">
<button class="copy-button" onclick="copyToClipboard('apt install git -y\ngit clone https://github.com/babywhale321/bashvm.git\ncd bashvm/\nbash bashvm-installer.sh\nbash bashvm.sh', this)">
<i class="fas fa-clipboard"></i>
</button>
<code>apt install git -y<br>git clone https://github.com/babywhale321/bashvm.git<br>cd bashvm/<br>bash bashvm-installer.sh<br>bash bashvm.sh</code>
</div>
</div>
<script>
function copyToClipboard(text, button) {
navigator.clipboard.writeText(text).then(function() {
const message = button.querySelector('.copy-message');
message.classList.add('show');
setTimeout(() => {
message.classList.remove('show');
}, 2000);
}, function(err) {
alert('Could not copy text: ', err);
});
}
</script>
</body>
</html>