Skip to content

Commit 20115a8

Browse files
Welcome page
1 parent 7d6fa82 commit 20115a8

File tree

1 file changed

+80
-7
lines changed

1 file changed

+80
-7
lines changed

install.sh

Lines changed: 80 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,86 @@ EOF
213213

214214
cat > /var/www/html/index.html <<'EOF'
215215
<!DOCTYPE html>
216-
<html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1">
217-
<title>Cipi</title><style>
218-
*{margin:0;padding:0;box-sizing:border-box}
219-
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;display:flex;align-items:center;justify-content:center}
220-
.c{background:#fff;border-radius:24px;padding:60px 40px;max-width:500px;width:90%;box-shadow:0 20px 60px rgba(0,0,0,.15);text-align:center}
221-
h1{font-size:36px;margin-bottom:12px}p{color:#6b7280}
222-
</style></head><body><div class="c"><h1>It Works</h1><p>Powered by Cipi</p></div></body></html>
216+
<html lang="en">
217+
<head>
218+
<meta charset="UTF-8">
219+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
220+
<title>SERVER UP</title>
221+
<meta name="robots" content="noindex, nofollow">
222+
<link rel="icon" type="image/svg+xml"
223+
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='%2322c55e'/%3E%3C/svg%3E">
224+
<style>
225+
* { margin: 0; padding: 0; box-sizing: border-box; }
226+
body {
227+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
228+
background: #ffffff;
229+
min-height: 100vh;
230+
display: flex;
231+
justify-content: center;
232+
align-items: center;
233+
color: #1a1a1a;
234+
}
235+
.container { text-align: center; animation: fadeIn 1s ease-in; }
236+
.server-container { position: relative; margin-bottom: 0.3rem; }
237+
.server-svg { width: 250px; height: 100px; }
238+
.led {
239+
fill: #22c55e;
240+
filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.9));
241+
animation: pulseFixed 2s ease-in-out infinite;
242+
}
243+
circle.led:nth-of-type(1) { animation-delay: 0s; animation-duration: 2s; }
244+
circle.led:nth-of-type(2) { animation-delay: 0.6s; animation-duration: 2.3s; }
245+
@keyframes pulseFixed {
246+
0%, 100% { opacity: 0.3; filter: drop-shadow(0 0 2px rgba(34, 197, 94, 0.3)); }
247+
50% { opacity: 1; filter: drop-shadow(0 0 6px rgba(34, 197, 94, 1)); }
248+
}
249+
.status-text {
250+
font-size: 1.5rem;
251+
font-weight: 300;
252+
letter-spacing: 4px;
253+
text-transform: uppercase;
254+
color: #666;
255+
margin-top: -0.5rem;
256+
animation: fadeInUp 1s ease-out 0.3s both;
257+
}
258+
.host-text {
259+
font-size: 0.75rem;
260+
font-weight: 400;
261+
color: #999;
262+
margin-top: 0.5rem;
263+
animation: fadeInUp 1s ease-out 0.5s both;
264+
}
265+
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
266+
@keyframes fadeInUp {
267+
from { opacity: 0; transform: translateY(20px); }
268+
to { opacity: 1; transform: translateY(0); }
269+
}
270+
@media (max-width: 600px) {
271+
.server-svg { width: 200px; height: 80px; }
272+
.status-text { font-size: 1.2rem; letter-spacing: 3px; }
273+
}
274+
</style>
275+
</head>
276+
<body>
277+
<div class="container">
278+
<div class="server-container">
279+
<svg class="server-svg" viewBox="0 0 250 100" xmlns="http://www.w3.org/2000/svg">
280+
<rect x="25" y="27.5" width="200" height="45" rx="4" fill="none" stroke="#1a1a1a" stroke-width="2.5" />
281+
<rect x="35" y="35.5" width="180" height="29" rx="2" fill="none" stroke="#1a1a1a" stroke-width="1.5" />
282+
<circle cx="50" cy="50" r="6" fill="none" stroke="#999" stroke-width="1.5" />
283+
<path d="M 50 46 L 50 50" stroke="#999" stroke-width="1.5" stroke-linecap="round" />
284+
<circle class="led" cx="185" cy="50" r="3.5" />
285+
<circle class="led" cx="200" cy="50" r="3.5" />
286+
</svg>
287+
</div>
288+
<div class="status-text">Server Up</div>
289+
<div class="host-text" id="host-label"></div>
290+
</div>
291+
<script>
292+
document.getElementById('host-label').textContent = window.location.hostname + ' is not configured';
293+
</script>
294+
</body>
295+
</html>
223296
EOF
224297

225298
ln -sf /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default

0 commit comments

Comments
 (0)