Files
soleprint/atlas/book/gherkin-samples/index.html
2025-12-31 09:07:27 -03:00

249 lines
12 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gherkin Samples - Album</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: system-ui, -apple-system, sans-serif;
background: #f8fafc;
color: #1e293b;
line-height: 1.6;
}
.container { max-width: 1000px; margin: 0 auto; padding: 2rem 1rem; }
header { margin-bottom: 2rem; }
.breadcrumb { font-size: 0.9rem; color: #64748b; margin-bottom: 0.5rem; }
.breadcrumb a { color: #6366f1; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
h1 { font-size: 2rem; color: #6366f1; }
.subtitle { color: #64748b; margin-top: 0.5rem; }
.sample-badge {
display: inline-block;
background: #fef3c7;
color: #92400e;
padding: 0.25rem 0.75rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
margin-top: 0.5rem;
}
.lang-tabs {
display: flex;
gap: 0.5rem;
margin-bottom: 2rem;
}
.lang-tab {
padding: 0.5rem 1rem;
border: 2px solid #e2e8f0;
border-radius: 8px;
cursor: pointer;
background: white;
font-weight: 500;
color: #64748b;
}
.lang-tab.active {
border-color: #6366f1;
color: #6366f1;
background: #eef2ff;
}
.lang-section { display: none; }
.lang-section.active { display: block; }
.user-type {
background: white;
border-radius: 12px;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.user-type h2 {
font-size: 1.25rem;
color: #6366f1;
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.user-type h2::before {
content: '';
width: 8px;
height: 8px;
background: #818cf8;
border-radius: 50%;
}
.features-list { list-style: none; }
.features-list li {
border-bottom: 1px solid #e2e8f0;
}
.features-list li:last-child { border-bottom: none; }
.features-list a {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 0;
text-decoration: none;
color: #1e293b;
}
.features-list a:hover { color: #6366f1; }
.features-list .name { font-weight: 500; }
.features-list .ext { color: #94a3b8; font-size: 0.85rem; }
.features-list .arrow { color: #94a3b8; }
.info-box {
background: #eef2ff;
border: 1px solid #c7d2fe;
border-radius: 8px;
padding: 1rem;
margin-top: 2rem;
font-size: 0.9rem;
}
.info-box h3 { font-size: 0.9rem; color: #6366f1; margin-bottom: 0.5rem; }
.keywords {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.5rem;
}
.keyword {
background: white;
border: 1px solid #c7d2fe;
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-family: monospace;
font-size: 0.8rem;
}
footer {
margin-top: 3rem;
padding-top: 1rem;
border-top: 1px solid #e2e8f0;
font-size: 0.85rem;
}
footer a { color: #6366f1; text-decoration: none; }
footer a:hover { text-decoration: underline; }
</style>
</head>
<body>
<div class="container">
<header>
<div class="breadcrumb"><a href="/">Album</a> / Gherkin Samples</div>
<h1>Gherkin Samples</h1>
<p class="subtitle">BDD feature files - Given/When/Then specifications derived from ops templates</p>
<span class="sample-badge">Sample Data</span>
</header>
<div class="lang-tabs">
<button class="lang-tab active" onclick="showLang('es')">Espanol (Dado/Cuando/Entonces)</button>
<button class="lang-tab" onclick="showLang('en')">English (Given/When/Then)</button>
</div>
<!-- Spanish -->
<div id="lang-es" class="lang-section active">
<div class="user-type">
<h2>Pet Owner</h2>
<ul class="features-list">
<li><a href="/book/gherkin/es/pet-owner/01-registro.feature"><span class="name">01. Registro de Usuario</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/es/pet-owner/02-reservar-turno.feature"><span class="name">02. Reservar Turno</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/es/pet-owner/03-gestion-mascotas.feature"><span class="name">03. Gestion de Mascotas</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/es/pet-owner/04-pago-turno.feature"><span class="name">04. Pago de Turno</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/es/pet-owner/05-historial-medico.feature"><span class="name">05. Historial Medico</span><span class="ext">.feature</span></a></li>
</ul>
</div>
<div class="user-type">
<h2>Veterinarian</h2>
<ul class="features-list">
<li><a href="/book/gherkin/es/veterinarian/01-aceptar-solicitud.feature"><span class="name">01. Aceptar/Rechazar Solicitud</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/es/veterinarian/02-gestion-agenda.feature"><span class="name">02. Gestion de Agenda</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/es/veterinarian/03-realizar-visita.feature"><span class="name">03. Realizar Visita</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/es/veterinarian/04-zonas-cobertura.feature"><span class="name">04. Zonas de Cobertura</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/es/veterinarian/05-historial-pacientes.feature"><span class="name">05. Historial de Pacientes</span><span class="ext">.feature</span></a></li>
</ul>
</div>
<div class="user-type">
<h2>Backoffice</h2>
<ul class="features-list">
<li><a href="/book/gherkin/es/backoffice/01-gestion-solicitudes.feature"><span class="name">01. Gestion de Solicitudes</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/es/backoffice/02-gestion-usuarios.feature"><span class="name">02. Gestion de Usuarios</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/es/backoffice/03-gestion-servicios.feature"><span class="name">03. Gestion de Servicios</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/es/backoffice/04-reembolsos.feature"><span class="name">04. Reembolsos</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/es/backoffice/05-reportes.feature"><span class="name">05. Reportes</span><span class="ext">.feature</span></a></li>
</ul>
</div>
<div class="info-box">
<h3>Spanish Keywords</h3>
<div class="keywords">
<span class="keyword">Caracteristica</span>
<span class="keyword">Escenario</span>
<span class="keyword">Dado</span>
<span class="keyword">Cuando</span>
<span class="keyword">Entonces</span>
<span class="keyword">Y</span>
<span class="keyword">Pero</span>
</div>
</div>
</div>
<!-- English -->
<div id="lang-en" class="lang-section">
<div class="user-type">
<h2>Pet Owner</h2>
<ul class="features-list">
<li><a href="/book/gherkin/en/pet-owner/01-registro.feature"><span class="name">01. User Registration</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/en/pet-owner/02-reservar-turno.feature"><span class="name">02. Book Appointment</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/en/pet-owner/03-gestion-mascotas.feature"><span class="name">03. Pet Management</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/en/pet-owner/04-pago-turno.feature"><span class="name">04. Payment</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/en/pet-owner/05-historial-medico.feature"><span class="name">05. Medical History</span><span class="ext">.feature</span></a></li>
</ul>
</div>
<div class="user-type">
<h2>Veterinarian</h2>
<ul class="features-list">
<li><a href="/book/gherkin/en/veterinarian/01-aceptar-solicitud.feature"><span class="name">01. Accept/Reject Request</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/en/veterinarian/02-gestion-agenda.feature"><span class="name">02. Schedule Management</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/en/veterinarian/03-realizar-visita.feature"><span class="name">03. Conduct Visit</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/en/veterinarian/04-zonas-cobertura.feature"><span class="name">04. Coverage Zones</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/en/veterinarian/05-historial-pacientes.feature"><span class="name">05. Patient History</span><span class="ext">.feature</span></a></li>
</ul>
</div>
<div class="user-type">
<h2>Backoffice</h2>
<ul class="features-list">
<li><a href="/book/gherkin/en/backoffice/01-gestion-solicitudes.feature"><span class="name">01. Request Management</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/en/backoffice/02-gestion-usuarios.feature"><span class="name">02. User Management</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/en/backoffice/03-gestion-servicios.feature"><span class="name">03. Service Management</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/en/backoffice/04-reembolsos.feature"><span class="name">04. Refunds</span><span class="ext">.feature</span></a></li>
<li><a href="/book/gherkin/en/backoffice/05-reportes.feature"><span class="name">05. Reports</span><span class="ext">.feature</span></a></li>
</ul>
</div>
<div class="info-box">
<h3>English Keywords</h3>
<div class="keywords">
<span class="keyword">Feature</span>
<span class="keyword">Scenario</span>
<span class="keyword">Given</span>
<span class="keyword">When</span>
<span class="keyword">Then</span>
<span class="keyword">And</span>
<span class="keyword">But</span>
</div>
</div>
</div>
<footer>
<a href="/">&larr; Album</a> |
<a href="/book/ops-templates/">Source Templates</a> |
<a href="/book/feature-flow/">Feature Flow Pipeline</a>
</footer>
</div>
<script>
function showLang(lang) {
document.querySelectorAll('.lang-section').forEach(s => s.classList.remove('active'));
document.querySelectorAll('.lang-tab').forEach(t => t.classList.remove('active'));
document.getElementById('lang-' + lang).classList.add('active');
event.target.classList.add('active');
}
</script>
</body>
</html>