162 lines
3.8 KiB
Django/Jinja
162 lines
3.8 KiB
Django/Jinja
<!DOCTYPE html>
|
|
<html lang="it">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>SemaphoreUI Docker Demo</title>
|
|
<style>
|
|
:root {
|
|
--accent: {{ accent_color }};
|
|
--secondary: {{ secondary_color }};
|
|
--ink: #1f2937;
|
|
--paper: #fefcf8;
|
|
--card: #ffffff;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: "Trebuchet MS", "Segoe UI", sans-serif;
|
|
color: var(--ink);
|
|
min-height: 100vh;
|
|
background:
|
|
radial-gradient(circle at 15% 20%, color-mix(in oklab, var(--accent), white 65%) 0%, transparent 40%),
|
|
radial-gradient(circle at 85% 80%, color-mix(in oklab, var(--secondary), white 70%) 0%, transparent 35%),
|
|
linear-gradient(160deg, #fff7ed 0%, var(--paper) 50%, #ecfeff 100%);
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 24px;
|
|
}
|
|
|
|
.card {
|
|
width: min(860px, 100%);
|
|
background: var(--card);
|
|
border-radius: 24px;
|
|
border: 1px solid #e5e7eb;
|
|
box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
|
|
overflow: hidden;
|
|
animation: lift 550ms ease-out;
|
|
}
|
|
|
|
.hero {
|
|
padding: 34px 30px;
|
|
background: linear-gradient(135deg, color-mix(in oklab, var(--accent), black 6%), color-mix(in oklab, var(--secondary), black 10%));
|
|
color: #fff;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: clamp(1.7rem, 3.5vw, 2.5rem);
|
|
letter-spacing: 0.2px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.hero p {
|
|
opacity: 0.95;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.body {
|
|
padding: 26px 30px 30px;
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 7px 12px;
|
|
border-radius: 999px;
|
|
background: #f3f4f6;
|
|
font-size: 0.85rem;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.item {
|
|
padding: 14px;
|
|
border-radius: 14px;
|
|
background: #f9fafb;
|
|
border: 1px solid #edf2f7;
|
|
}
|
|
|
|
.item .k {
|
|
font-size: 0.8rem;
|
|
color: #6b7280;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.item .v {
|
|
font-family: "Courier New", monospace;
|
|
font-size: 0.95rem;
|
|
color: #111827;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.footer {
|
|
padding: 14px 30px 26px;
|
|
font-size: 0.85rem;
|
|
color: #6b7280;
|
|
}
|
|
|
|
@keyframes lift {
|
|
from { transform: translateY(10px); opacity: 0; }
|
|
to { transform: translateY(0); opacity: 1; }
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<section class="card">
|
|
<header class="hero">
|
|
<h1>{{ greeting_message }}</h1>
|
|
<p>Demo Docker deployata con Ansible e orchestrata tramite SemaphoreUI.</p>
|
|
</header>
|
|
|
|
<div class="body">
|
|
<div>
|
|
<span class="pill">Environment: {{ app_environment | upper }}</span>
|
|
<span class="pill">Release: {{ release_id }}</span>
|
|
</div>
|
|
|
|
<div class="grid">
|
|
<div class="item">
|
|
<div class="k">Container</div>
|
|
<div class="v">{{ container_name }}</div>
|
|
</div>
|
|
<div class="item">
|
|
<div class="k">Image</div>
|
|
<div class="v">{{ nginx_image }}:{{ nginx_version }}</div>
|
|
</div>
|
|
<div class="item">
|
|
<div class="k">Porta esposta</div>
|
|
<div class="v">{{ app_port }}</div>
|
|
</div>
|
|
<div class="item">
|
|
<div class="k">Secret hash hint</div>
|
|
<div class="v">{{ app_secret | hash('sha1') }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<footer class="footer">
|
|
Gestito da SemaphoreUI + Ansible Collections community.docker
|
|
</footer>
|
|
</section>
|
|
</body>
|
|
</html>
|