arcast/pkg/server/templates/idle.html.gotmpl

174 lines
32 KiB
Go Template
Raw Normal View History

2023-12-13 20:07:22 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Arcast - Idle</title>
<style>
2024-04-23 16:08:31 +02:00
html {
box-sizing: border-box;
font-size: 16px;
width: 100%;
height: 100%;
}
2023-12-13 20:07:22 +01:00
2024-04-23 16:08:31 +02:00
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
width: 100%;
height: 100%;
background: rgb(76, 96, 188);
background: linear-gradient(
415deg,
rgba(4, 168, 243, 1),
rgb(76, 136, 188, 1),
rgba(76, 96, 188, 1),
rgb(115, 76, 188, 1),
rgb(87, 76, 188, 1)
);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
}
2023-12-13 20:07:22 +01:00
2024-04-23 16:08:31 +02:00
@keyframes gradient {
0% {
background-position: 0% 50%;
2023-12-13 20:07:22 +01:00
}
2024-04-23 16:08:31 +02:00
50% {
background-position: 100% 50%;
2023-12-13 20:07:22 +01:00
}
2024-04-23 16:08:31 +02:00
100% {
background-position: 0% 50%;
2023-12-13 20:07:22 +01:00
}
2024-04-23 16:08:31 +02:00
}
2023-12-13 20:07:22 +01:00
2024-04-23 16:08:31 +02:00
*,
*:before,
*:after {
box-sizing: inherit;
}
2023-12-13 20:07:22 +01:00
2024-04-23 16:08:31 +02:00
ol,
ul {
list-style: none;
}
2023-12-13 20:07:22 +01:00
2024-04-23 16:08:31 +02:00
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
margin: 0;
padding: 0;
font-weight: normal;
}
2023-12-13 20:07:22 +01:00
2024-04-23 16:08:31 +02:00
.container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
2023-12-13 20:07:22 +01:00
2024-04-23 16:08:31 +02:00
.panel {
display: block;
background-color: #fff;
border-radius: 15px;
box-shadow: 10px 10px 10px #33333361;
position: relative;
padding: 50px 30px 30px 30px;
min-width: 33%;
color: #333;
}
2023-12-13 20:07:22 +01:00
2024-04-23 16:08:31 +02:00
#title {
margin: 10px 0px 20px 0px;
}
2024-04-23 16:08:31 +02:00
#icon {
width: 100px;
aspect-ratio: 1/1;
background-size: contain;
background-position: center;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAYAAABS3GwHAAAgAElEQVR4nO19d7xkRZX/99Tt8NLMm8jMMMyQJYOIIAuKWVl31V0Ta06Lu6joqusad3/+XCO6KuoaV0X9mVEEhEWRDAqC5DAkGcIwTJ43L/br7lu/Pyqdqlu3+3a/fhNgaj49r6tP1am6dU/41qm6dYHdaXfanXan3Wl32p12p91pd9qdnkiJdnQHHodptsdUzjL/J1TarQDdp3ZjNxtj20r4dytGF2m3AhRLeeMU/k4taK34hCkU5k7z7X7fnXTarQDx1E7gw7/hb3mK0Ml4yw7/tvoey+9O2K0APLWy2DHhpjD/t2/6xl7zF+61X6nStw8lleUiSZYRkj1IiEWS5HxBpUNkwE1K3rL6ItP0rpTkljRNNxHSdc1Urk1rtTVp2li9dfMDD1z47bc9DF8BZCQP7FaItumJrgB5ECZPyAUAesYzTh/a57gXPqVSnfPkUql0RJIkx0CUDm40JKbrKepNiXozRSMFmk2pPlKiVpeQUirBBwByzUvWbLUiQIKQCIFSQiiVCEmJUColKJcI5ZKARPOuZiO9sdms3TZdm7j53qvOu/Gmq74yBl8hYsrB/4bfn3DpiaoAedDF/DUfAYBOftMXl+y55JCTSqXBE0vlyjMBOmiqlqLWSDE1naI23cTUdBNEAim36ERM4hTB9wCEVEoQEaSUIBI+HZouFB1CWH7VikBfJUGlLPR3ARK4u1mfvmK6NnnNyIY7r7zoG6etA5Ciey/xuE9PJAWIWftQ6IX5+6b3nXtitW/eC5Kk8twUydFTtSYma02MTzYw3ZC2lrXcmpNSAMrS9Z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: -50px;
margin-top: -100px;
}
.panel p,
.panel ul {
margin-top: 10px;
}
.text-centered {
text-align: center;
}
.text-italic {
font-style: italic;
}
.text-small {
font-size: 0.8em;
}
.mt {
margin-top: 1em;
display: block;
}
2023-12-13 20:07:22 +01:00
</style>
2024-04-23 16:08:31 +02:00
</head>
2023-12-13 20:07:22 +01:00
2024-04-23 16:08:31 +02:00
<body>
2023-12-13 20:07:22 +01:00
<div class="container">
2024-04-23 16:08:31 +02:00
<div class="panel">
<div id="icon"></div>
<h1 id="title" class="text-centered">Ready to cast !</h1>
<p><b>Instance ID</b></p>
<p class="text-small text-centered">
<code>{{ .ID }}</code>
</p>
<p><b>Addresses</b></p>
<ul class="text-italic text-small text-centered">
{{ $port := .Port }}
{{
range.IPs
}}
<li>
<code>{{ . }}:{{ $port }}</code>
</li>
{{
end
}}
</ul>
{{if .Apps }}
<p><b>Apps</b></p>
<ul class="text-italic text-small text-centered">
{{ $tlsPort := .TLSPort }}
{{
range.IPs
}}
<li>
<a href="https://{{ . }}:{{ $tlsPort }}/apps"
>https://{{ . }}:{{ $tlsPort }}/apps</a
>
</li>
{{
end
}}
</ul>
{{ end }}
</div>
2023-12-13 20:07:22 +01:00
</div>
2024-04-23 16:08:31 +02:00
</body>
</html>