From df6b8085cab070d40074c8dc948b56f195ab2f50 Mon Sep 17 00:00:00 2001 From: Claus Lohmar Date: Mon, 27 Jul 2026 07:48:14 +0000 Subject: [PATCH] feat: landing page with Download, SCP Pull, and Resume cards - Hero header at top describing the app - Two side-by-side cards: Download (URL) and SCP Pull - Resume sessions section appears above cards when sessions exist - Download card expands to inline form - Resume asks for VM Name/ID only, skips URL field - Clean separation of entry points --- frontend/static/proxmox.css | 47 ++++++++++++++ frontend/templates/index.html | 119 ++++++++++++++++++++++------------ 2 files changed, 125 insertions(+), 41 deletions(-) diff --git a/frontend/static/proxmox.css b/frontend/static/proxmox.css index 8c75ba4..2e28257 100644 --- a/frontend/static/proxmox.css +++ b/frontend/static/proxmox.css @@ -293,3 +293,50 @@ body { .pve-divider { border: none; border-top: 1px solid var(--pve-border); margin: 1rem 0; } .pve-code { background: #f5f5f5; padding: 0.1rem 0.4rem; border-radius: 2px; font-size: 0.78rem; } .pve-center { text-align: center; } + +/* ── Landing page ─────────────────────────────────────────────── */ +.pve-hero { + text-align: center; + padding: 1.8rem 1rem 1.2rem; +} +.pve-hero h1 { + font-size: 1.5rem; + font-weight: 700; + color: var(--pve-text); + margin-bottom: 0.3rem; +} +.pve-hero p { + font-size: 0.82rem; + color: var(--pve-muted); +} + +.landing-cards { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 1rem; + margin-bottom: 1.25rem; +} +@media (max-width: 520px) { .landing-cards { grid-template-columns: 1fr; } } + +.landing-card { + background: var(--pve-panel-bg); + border: 1px solid var(--pve-border); + border-radius: var(--pve-radius); + padding: 1.2rem 1rem; + text-align: center; + cursor: default; + box-shadow: 0 1px 2px rgba(0,0,0,0.04); +} +.landing-card:hover { border-color: var(--pve-accent); } +.landing-card-icon { font-size: 1.6rem; margin-bottom: 0.4rem; } +.landing-card h3 { + font-size: 0.9rem; + font-weight: 600; + margin-bottom: 0.3rem; +} +.landing-card p { + font-size: 0.75rem; + color: var(--pve-muted); + margin-bottom: 0.75rem; + line-height: 1.4; +} diff --git a/frontend/templates/index.html b/frontend/templates/index.html index c35623f..f964f7f 100644 --- a/frontend/templates/index.html +++ b/frontend/templates/index.html @@ -1,52 +1,62 @@ {% extends "base.html" %} {% block content %} +
+

VM Bench

+

Convert VMware images to Proxmox VMs — automatic OS detection, disk shrink, EFI probing.

+
+
- Resume Previous Session + Resume Previous Sessions
-
+
+
+ +
+
+
📥
+

Download

+

Pull a disk image or archive from a URL via high-speed download.

+ +
+
+
📡
+

SCP Pull

+

Transfer files directly from a remote server via SCP — no middle hop.

+ Start
-
+
- New Conversion Session + New Download Session
-
-
- - - Display name for the VM on the Proxmox host. +
+
+ + +
+
+ + + Range 21000–21100. Must be unique on host. +
- -
- - - Range 21000–21100. Must be unique on the Proxmox host. -
- -
- +
+ Direct URL to a disk image or archive (.vmdk, .7z, .zip, etc.)
- + -
-

- Files on a remote server? Pull directly via SCP: -

- SCP Pull - -
@@ -63,6 +73,24 @@ -{% endblock %} +{% endblock %} \ No newline at end of file