diff --git a/cfg/standalone/config.json b/cfg/standalone/config.json index 74572a2..060a077 100644 --- a/cfg/standalone/config.json +++ b/cfg/standalone/config.json @@ -1,4 +1,5 @@ { + "showcase_url": "https://sample.spr.mcrn.ar", "framework": { "name": "soleprint", "slug": "soleprint", diff --git a/soleprint/Dockerfile b/soleprint/Dockerfile index 9848d09..3a38b0f 100644 --- a/soleprint/Dockerfile +++ b/soleprint/Dockerfile @@ -17,4 +17,4 @@ COPY . . EXPOSE 8000 -CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] +CMD ["uvicorn", "run:app", "--host", "0.0.0.0", "--port", "8000"] diff --git a/soleprint/artery/index.html b/soleprint/artery/index.html index 0b1cf81..faf28ec 100644 --- a/soleprint/artery/index.html +++ b/soleprint/artery/index.html @@ -419,6 +419,21 @@

Depot

+
+

Shunt

+
+

Vein Interface

+

Mock Data

+
+
+
+

Plexus

+
+

Backend

+

Frontend

+

Infra

+
+
@@ -428,7 +443,14 @@

{{ vein.title }}

diff --git a/soleprint/index.html b/soleprint/index.html index 1fffd99..fba6b0a 100644 --- a/soleprint/index.html +++ b/soleprint/index.html @@ -214,6 +214,36 @@ font-size: 0.85rem; color: #666; } + + .showcase-container { + display: flex; + flex-direction: column; + align-items: center; + gap: 0.5rem; + margin-bottom: 2rem; + } + .showcase-link { + display: inline-block; + background: linear-gradient(135deg, #d4a574, #b8956a); + color: #0a0a0a; + padding: 0.75rem 1.5rem; + border-radius: 8px; + text-decoration: none; + font-weight: 600; + transition: transform 0.15s, box-shadow 0.15s; + } + .showcase-link:hover { + transform: translateY(-2px); + box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3); + } + .showcase-hint { + color: #666; + font-size: 0.8rem; + text-decoration: none; + } + .showcase-hint:hover { + color: #d4a574; + } {% if managed %} @@ -244,6 +274,14 @@

Cada paso deja huella

+ {% if showcase_url %} +
+ Managed Room Demo + what's a room? + see docs +
+ {% endif %} + diff --git a/soleprint/run.py b/soleprint/run.py index 27f2b91..da8aba0 100644 --- a/soleprint/run.py +++ b/soleprint/run.py @@ -351,6 +351,10 @@ def artery_index(request: Request): from jinja2 import Template + # Load rooms and depots + rooms = load_data("rooms.json") or [] + depots = load_data("depots.json") or [] + template = Template(html_path.read_text()) return HTMLResponse( template.render( @@ -361,6 +365,8 @@ def artery_index(request: Request): pulses=pulses, shunts=shunts, plexuses=plexuses, + rooms=rooms, + depots=depots, soleprint_url="/", ) ) @@ -601,6 +607,7 @@ def index(request: Request): config = load_config() managed = config.get("managed", {}) managed_url = get_managed_url(request, managed) + showcase_url = config.get("showcase_url") return templates.TemplateResponse( "index.html", @@ -611,6 +618,7 @@ def index(request: Request): "station": "/station", "managed": managed, "managed_url": managed_url, + "showcase_url": showcase_url, }, )