This commit is contained in:
dvirlabs 2025-11-26 03:40:18 +02:00
parent 2ee2f136bd
commit fff3b5ba76
2 changed files with 463 additions and 6 deletions

View File

@ -1,13 +1,12 @@
# Dockerfile
FROM nginx:1.27-alpine FROM nginx:1.27-alpine
# Remove default nginx index
RUN rm -rf /usr/share/nginx/html/* RUN rm -rf /usr/share/nginx/html/*
# Copy your static landing page # index.html כמו שהוא היום
COPY index.html /usr/share/nginx/html/index.html COPY index.html /usr/share/nginx/html/index.html
# Optional: basic security / best practice # סקריפט שמחליף placeholders לפי ENV
EXPOSE 80 COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
CMD ["nginx", "-g", "daemon off;"] CMD ["/docker-entrypoint.sh"]

View File

@ -373,6 +373,413 @@
</div> </div>
</header> </header>
<section class="content">
<!-- Left: Hero / Intro -->
<section class="hero">
<div class="hero-inner">
<div class="hero-eyebrow">Self-Hosted Lab</div>
<h1 class="hero-title">Kubernetes, GitOps & Observability — all at home.</h1>
<p class="hero-subtitle">
DvirLabs is a personal infrastructure lab used for experimenting with
Kubernetes, CI/CD, monitoring, security, and cloud-native tooling — running
fully on self-hosted hardware.
</p>
<div class="badge-row">
<div class="badge badge--accent">K3s · Argo CD · GitOps</div>
<div class="badge">Grafana &amp; Prometheus</div>
<div class="badge">Keycloak SSO</div>
<div class="badge">Cloudflare · Tunnels</div>
</div>
<div class="hero-footer">
<div class="hero-meta">
<div><strong>Primary use:</strong> <span>learning, demos &amp; side projects</span></div>
<div><strong>Status:</strong> <span>internal lab — not a production service provider</span></div>
</div>
</div>
</div>
</section>
<!-- Right: Links / Entry Points -->
<aside class="links-card">
<div class="links-title">
ENTRY POINTS
<span>Internal &amp; public portals</span><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>DvirLabs — Home Lab & DevOps Playground</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="DvirLabs — A self-hosted home lab focused on Kubernetes, GitOps, observability and automation." />
<!-- Optional: Google Font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap" rel="stylesheet">
<style>
:root {
--bg: #050816;
--bg-card: rgba(15, 23, 42, 0.9);
--accent: #38bdf8;
--accent-soft: rgba(56, 189, 248, 0.18);
--text-main: #f9fafb;
--text-muted: #9ca3af;
--border-subtle: rgba(148, 163, 184, 0.35);
--shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.85);
--radius-xl: 18px;
--transition-fast: 180ms ease-out;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
min-height: 100vh;
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background:
radial-gradient(circle at top left, #1d2538 0, transparent 55%),
radial-gradient(circle at bottom right, #020617 0, transparent 50%),
var(--bg);
color: var(--text-main);
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
}
.shell {
width: 100%;
max-width: 960px;
border-radius: 26px;
background: radial-gradient(circle at top, rgba(148, 163, 184, 0.08) 0, transparent 60%),
linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
border: 1px solid rgba(148, 163, 184, 0.3);
box-shadow: var(--shadow-soft);
padding: 26px 26px 22px;
backdrop-filter: blur(22px);
}
.shell-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 22px;
}
.brand {
display: flex;
align-items: center;
gap: 14px;
}
.logo-circle {
width: 44px;
height: 44px;
border-radius: 999px;
background: radial-gradient(circle at 30% 10%, #e5f9ff 0, #0ea5e9 40%, #0369a1 100%);
display: inline-flex;
align-items: center;
justify-content: center;
color: #0b1120;
font-weight: 800;
letter-spacing: 0.05em;
font-size: 16px;
box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6), 0 16px 30px rgba(8, 47, 73, 0.9);
}
.brand-text-main {
font-size: 20px;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.brand-text-sub {
font-size: 12px;
text-transform: uppercase;
color: var(--text-muted);
letter-spacing: 0.16em;
margin-top: 2px;
}
.status-pill {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.12em;
padding: 4px 12px 4px 10px;
border-radius: 999px;
border: 1px solid rgba(56, 189, 248, 0.4);
color: var(--accent);
background: radial-gradient(circle at left, rgba(56, 189, 248, 0.32), rgba(15, 23, 42, 0.95));
display: inline-flex;
align-items: center;
gap: 6px;
box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8);
}
.status-dot {
width: 7px;
height: 7px;
border-radius: 999px;
background: #22c55e;
box-shadow: 0 0 8px rgba(34, 197, 94, 0.95);
}
.content {
display: grid;
grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
gap: 22px;
}
@media (max-width: 780px) {
.content {
grid-template-columns: minmax(0, 1fr);
}
.shell {
padding: 20px 18px;
}
.shell-header {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
}
.hero {
background: var(--bg-card);
border-radius: var(--radius-xl);
border: 1px solid var(--border-subtle);
padding: 18px 18px 16px;
box-shadow: 0 20px 36px rgba(15, 23, 42, 0.7);
position: relative;
overflow: hidden;
}
.hero::before {
content: "";
position: absolute;
inset: -20%;
background:
radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.1) 0, transparent 55%),
radial-gradient(circle at 100% 110%, rgba(56, 189, 248, 0.05) 0, transparent 55%);
opacity: 0.9;
pointer-events: none;
}
.hero-inner {
position: relative;
z-index: 1;
}
.hero-eyebrow {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.22em;
color: var(--accent);
margin-bottom: 10px;
}
.hero-title {
font-size: 26px;
font-weight: 700;
line-height: 1.2;
margin-bottom: 10px;
}
.hero-subtitle {
font-size: 14px;
color: var(--text-muted);
line-height: 1.6;
margin-bottom: 16px;
max-width: 32rem;
}
.badge-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 16px;
}
.badge {
font-size: 11px;
padding: 5px 10px;
border-radius: 999px;
border: 1px solid rgba(148, 163, 184, 0.55);
background: rgba(15, 23, 42, 0.8);
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.12em;
}
.badge--accent {
border-color: rgba(56, 189, 248, 0.55);
background: var(--accent-soft);
color: #e0f2fe;
}
.hero-footer {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
justify-content: space-between;
}
.hero-meta {
font-size: 11px;
color: var(--text-muted);
}
.hero-meta span {
opacity: 0.9;
}
.hero-meta strong {
font-weight: 600;
color: #e5e7eb;
}
.links-card {
background: var(--bg-card);
border-radius: var(--radius-xl);
border: 1px solid var(--border-subtle);
padding: 16px 16px 14px;
box-shadow: 0 16px 32px rgba(15, 23, 42, 0.7);
display: flex;
flex-direction: column;
gap: 12px;
}
.links-title {
font-size: 13px;
font-weight: 600;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--text-muted);
display: flex;
justify-content: space-between;
align-items: center;
}
.links-title span {
font-size: 11px;
color: #6b7280;
}
.links-list {
list-style: none;
display: grid;
grid-template-columns: 1fr;
gap: 7px;
}
@media (min-width: 960px) {
.links-list {
grid-template-columns: 1fr;
}
}
.link-item a {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 9px 9px;
border-radius: 12px;
text-decoration: none;
color: var(--text-main);
border: 1px solid rgba(30, 64, 175, 0.2);
background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.97));
transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.link-main {
display: flex;
flex-direction: column;
gap: 1px;
}
.link-label {
font-size: 13px;
font-weight: 500;
}
.link-desc {
font-size: 11px;
color: var(--text-muted);
}
.link-chip {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.14em;
padding: 3px 7px;
border-radius: 999px;
border: 1px solid rgba(56, 189, 248, 0.6);
color: #e0f2fe;
background: rgba(8, 47, 73, 0.9);
white-space: nowrap;
}
.link-item a:hover {
transform: translateY(-1px);
box-shadow: 0 14px 28px rgba(8, 47, 73, 0.9);
border-color: rgba(56, 189, 248, 0.7);
background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
}
.link-arrow {
font-size: 14px;
opacity: 0.7;
}
.footer {
margin-top: 14px;
padding-top: 12px;
border-top: 1px solid rgba(51, 65, 85, 0.9);
display: flex;
justify-content: space-between;
align-items: center;
font-size: 11px;
color: var(--text-muted);
gap: 10px;
flex-wrap: wrap;
}
.footer a {
color: var(--accent);
text-decoration: none;
font-weight: 500;
}
.footer a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<main class="shell">
<header class="shell-header">
<div class="brand">
<div class="logo-circle">DL</div>
<div>
<div class="brand-text-main">DvirLabs</div>
<div class="brand-text-sub">HOME LAB · DEVOPS · AUTOMATION</div>
</div>
</div>
<div class="status-pill">
<span class="status-dot"></span>
<span>LAB ONLINE</span>
</div>
</header>
<section class="content"> <section class="content">
<!-- Left: Hero / Intro --> <!-- Left: Hero / Intro -->
<section class="hero"> <section class="hero">
@ -407,6 +814,57 @@
ENTRY POINTS ENTRY POINTS
<span>Internal &amp; public portals</span> <span>Internal &amp; public portals</span>
</div> </div>
<!-- links injected dynamically -->
<ul class="links-list" id="links-list"></ul>
</aside>
</section>
<footer class="footer">
<div>© <span id="year"></span> DvirLabs. Personal home lab environment.</div>
<div>
Contact: <a href="mailto:lab@dvirlabs.com">lab@dvirlabs.com</a>
</div>
</footer>
</main>
<script>
// year
document.getElementById("year").textContent = new Date().getFullYear();
// LAB_LINKS will be replaced by entrypoint from ENV → JSON
const rawLinks = '__LAB_LINKS__';
let links = [];
try {
links = JSON.parse(rawLinks);
} catch (e) {
console.error('Failed to parse LAB_LINKS JSON', e);
}
const listEl = document.getElementById('links-list');
if (listEl && Array.isArray(links)) {
links.forEach(link => {
const li = document.createElement('li');
li.className = 'link-item';
li.innerHTML = `
<a href="${link.url}" target="_blank" rel="noreferrer">
<div class="link-main">
<span class="link-label">${link.label}</span>
<span class="link-desc">${link.desc}</span>
</div>
<span class="link-chip">${link.chip || ''}</span>
<span class="link-arrow"></span>
</a>
`;
listEl.appendChild(li);
});
}
</script>
</body>
</html>
</div>
<ul class="links-list"> <ul class="links-list">
<!-- Update hrefs to your real URLs --> <!-- Update hrefs to your real URLs -->
<li class="link-item"> <li class="link-item">