Skip to content

Commit cd4e92c

Browse files
committed
wip(web): split configurator into environments, cpu cores and licensing blocks with contract-wide badges
1 parent 8156780 commit cd4e92c

1 file changed

Lines changed: 32 additions & 15 deletions

File tree

web/content/en/enterprise-pricing-calculator.html

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@
116116
#epc .card.sgline::before{background:var(--grad)}
117117
#epc .card.okline::before{background:var(--grad-ok)}
118118
#epc .step{display:flex;align-items:baseline;gap:13px;margin-bottom:20px}
119-
#epc .step .n{font-family:var(--f-mono);font-size:12px;font-weight:600;color:var(--accent);border:1px solid rgba(4,223,253,.3);border-radius:8px;padding:3px 9px;background:rgba(4,223,253,.07);flex:none}
119+
#epc .step .n, #epc .phead .n{font-family:var(--f-mono);font-size:12px;font-weight:600;color:var(--accent);border:1px solid rgba(4,223,253,.3);border-radius:8px;padding:3px 9px;background:rgba(4,223,253,.07);flex:none}
120+
#epc .phead .n{margin-top:6px}
121+
#epc .chip.allenvs{color:var(--text-2);border-style:dashed;flex:none}
120122
#epc .step h2{font-family:var(--f-display);font-weight:700;font-size:18.5px;letter-spacing:-.01em}
121123
#epc .hint{color:var(--text-3);font-size:13px;margin-top:3px}
122124

@@ -429,7 +431,7 @@ <h2 class="sec-h reveal" data-i="conf.h"></h2>
429431
<main class="grid">
430432
<section class="steps">
431433

432-
<!-- 01 · Environment -->
434+
<!-- 01 · Environments -->
433435
<div class="card reveal">
434436
<div class="step"><span class="n">01</span>
435437
<div><h2 data-i="s1.h"></h2><div class="hint" data-i="s1.hint"></div></div>
@@ -439,6 +441,14 @@ <h2 class="sec-h reveal" data-i="conf.h"></h2>
439441
<label for="envName" data-i="env.nameL"></label>
440442
<input id="envName" type="text" maxlength="40" autocomplete="off">
441443
</div>
444+
</div>
445+
446+
<!-- 02 · CPU cores (per environment) -->
447+
<div class="card reveal">
448+
<div class="step"><span class="n">02</span>
449+
<div><h2 data-i="s2.h"></h2><div class="hint" data-i="s2.hint"></div></div>
450+
<span class="chip cy" id="coresEnvChip" style="margin-left:auto"></span>
451+
</div>
442452
<div class="cores-row">
443453
<input class="num" id="coreNum" type="number" min="1" max="32768" value="128" aria-label="Cores" />
444454
<input type="range" id="coreRange" min="1" max="2048" value="128" aria-label="Cores slider" />
@@ -451,9 +461,10 @@ <h2 class="sec-h reveal" data-i="conf.h"></h2>
451461
<div class="notice" id="minNotice"></div>
452462
</div>
453463

454-
<!-- Block · StackGres Enterprise (cyan) -->
464+
<!-- 03 · Commercial licensing · StackGres Enterprise (cyan) -->
455465
<div class="card sgline reveal" id="sgCard">
456466
<div class="phead">
467+
<span class="n">03</span>
457468
<span class="pico sg"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2l7.8 4.5v9L12 20l-7.8-4.5v-9L12 2z"/><circle cx="12" cy="11" r="3"/></svg></span>
458469
<div>
459470
<h2>StackGres Enterprise</h2>
@@ -479,24 +490,27 @@ <h2>StackGres Enterprise</h2>
479490
</details>
480491
</div>
481492

482-
<!-- Block · OnGres Consulting (green) -->
493+
<!-- 04 · OnGres Consulting (green) — contract-wide -->
483494
<div class="card okline reveal">
484495
<div class="phead">
496+
<span class="n">04</span>
485497
<span class="pico ok"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="8" r="3.2"/><path d="M3.5 19c.6-3 2.8-4.6 5.5-4.6s4.9 1.6 5.5 4.6"/><path d="M16 4.5c1.7.4 3 1.9 3 3.9 0 1.2-.5 2.3-1.3 3"/><path d="M17.5 14.6c2 .5 3.3 1.9 3.7 4.4"/></svg></span>
486498
<div>
487499
<h2 data-i="ok.h"></h2>
488500
<div class="by ok" data-i="ok.by"></div>
489501
</div>
502+
<span class="chip allenvs" data-i="allEnvs" style="margin-left:auto"></span>
490503
</div>
491504
<div class="hint" data-i="ok.hint" style="margin-bottom:18px"></div>
492505
<div class="pkgs" id="pkgs" role="radiogroup"></div>
493506
<p class="pkg-note" data-i="ok.note"></p>
494507
</div>
495508

496-
<!-- Commercial options -->
509+
<!-- 05 · Commercial options — contract-wide -->
497510
<div class="card reveal">
498-
<div class="step"><span class="n">02</span>
511+
<div class="step"><span class="n">05</span>
499512
<div><h2 data-i="s4.h"></h2><div class="hint" data-i="s4.hint"></div></div>
513+
<span class="chip allenvs" data-i="allEnvs" style="margin-left:auto"></span>
500514
</div>
501515
<div class="toggle-row">
502516
<div class="lbl"><span data-i="mkt.l"></span><small data-i="mkt.s"></small></div>
@@ -659,8 +673,11 @@ <h3 id="shareTitle" data-i="share.h"></h3>
659673
"clouds.label":"Tested and supported in the cloud and on-premise",
660674
"conf.h":"Configure your estimate",
661675
"conf.sub":"Add your environments, size each one and pick its edition, and watch the estimate priced in real time.",
662-
"s1.h":"Your environments",
663-
"s1.hint":"Model each environment separately: name it, set its CPU cores and choose its edition below. Each environment is priced on its own volume brackets, with a 32-core minimum per environment.",
676+
"s1.h":"Environments",
677+
"s1.hint":"Add as many environments as you need (production, staging, dev...) and name each one. Select an environment to configure its size and edition in the next steps.",
678+
"s2.h":"CPU cores",
679+
"s2.hint":"CPU cores of the selected environment. Each environment is priced on its own volume brackets, with a 32-core minimum.",
680+
allEnvs:"Applies to all environments",
664681
billed:"{n} billable cores",
665682
serverHint:"Fleets over 128 servers: estimate 8 cores per server.",
666683
"env.nameL":"Environment name",
@@ -670,8 +687,6 @@ <h3 id="shareTitle" data-i="share.h"></h3>
670687
"env.count":"{n} environments",
671688
lineEnv:"{env} &middot; {e} &middot; {n} cores",
672689
minNotice:"Below the 32-core minimum: the estimate is calculated on 32 cores.",
673-
"s2.h":"Service lines",
674-
"s2.hint":"Enable the lines you want in this estimate. Each one is priced separately and clearly identified.",
675690
"prod.pgD":"OnGres support service for open source PostgreSQL.",
676691
"prod.sgD":"Commercial StackGres licensing with included support.",
677692
"pg.by":"OnGres support service",
@@ -781,8 +796,11 @@ <h3 id="shareTitle" data-i="share.h"></h3>
781796
"clouds.label":"Probado y soportado en la nube y on-premise",
782797
"conf.h":"Configura tu estimación",
783798
"conf.sub":"Añade tus entornos, dimensiona cada uno y elige su edición, y ve la estimación cotizada en tiempo real.",
784-
"s1.h":"Tus entornos",
785-
"s1.hint":"Modela cada entorno por separado: ponle nombre, define sus cores de CPU y elige su edición más abajo. Cada entorno se cotiza con sus propios tramos de volumen, con un mínimo de 32 cores por entorno.",
799+
"s1.h":"Entornos",
800+
"s1.hint":"Añade tantos entornos como necesites (producción, staging, desarrollo...) y nombra cada uno. Selecciona un entorno para configurar su tamaño y edición en los siguientes pasos.",
801+
"s2.h":"Cores de CPU",
802+
"s2.hint":"Cores de CPU del entorno seleccionado. Cada entorno se cotiza con sus propios tramos de volumen, con un mínimo de 32 cores.",
803+
allEnvs:"Se aplica a todos los entornos",
786804
billed:"{n} cores facturables",
787805
serverHint:"Flotas de más de 128 servidores: estima 8 cores por servidor.",
788806
"env.nameL":"Nombre del entorno",
@@ -792,8 +810,6 @@ <h3 id="shareTitle" data-i="share.h"></h3>
792810
"env.count":"{n} entornos",
793811
lineEnv:"{env} &middot; {e} &middot; {n} cores",
794812
minNotice:"Por debajo del mínimo de 32 cores: la estimación se calcula sobre 32 cores.",
795-
"s2.h":"Líneas de servicio",
796-
"s2.hint":"Activa las líneas que quieras en esta estimación. Cada una se cotiza por separado y queda claramente identificada.",
797813
"prod.pgD":"Servicio de soporte de OnGres para PostgreSQL open source.",
798814
"prod.sgD":"Licencia comercial de StackGres con soporte incluido.",
799815
"pg.by":"Servicio de soporte OnGres",
@@ -1176,9 +1192,10 @@ <h3 id="shareTitle" data-i="share.h"></h3>
11761192
const r = compute();
11771193
const a = r.envs[state.active]; // the environment being edited
11781194

1179-
// Step 1 — controls bind to the active environment
1195+
// Steps 1-2 — controls bind to the active environment
11801196
renderEnvBar();
11811197
if(document.activeElement !== $("#envName")) $("#envName").value = env().name;
1198+
$("#coresEnvChip").textContent = tpl(t("env.configuring"), {n:envLabel(state.active)});
11821199
if(document.activeElement !== $("#coreNum")) $("#coreNum").value = env().cores;
11831200
$("#coreRange").value = Math.min(env().cores, 2048);
11841201
$("#billedChip").textContent = tpl(t("billed"), {n:a.billed});

0 commit comments

Comments
 (0)