feat(andamiaje): fase 1, tokens, fuentes, layouts, Header/Footer e Inicio
- BRIEF.md y CLAUDE.md como fuente de verdad y reglas del repositorio - Astro 7 estático con Tailwind 4; tokens en src/styles/tokens.css (claro/oscuro) - Fuentes propias en public/fonts (Fraunces, Instrument Sans, JetBrains Mono) - Layout Base con SEO y Open Graph; Header con menú accesible; Footer - Componentes Stat (cifra con método) y Video (fondo/captura/externo) - Colección cifras con esquema zod; esquemas de proyectos y equipo - Página de inicio; referencia/ con el borrador y los chats originales Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
commit
aa0fcc5691
40 files changed
+12854
No files matched your search
@@ -0,0 +1,46 @@
|
||||
---
|
||||
import { SITIO } from '../lib/sitio';
|
||||
---
|
||||
|
||||
<footer class="pie">
|
||||
<div class="wrap">
|
||||
<div>
|
||||
<span>{SITIO.nombre} · {SITIO.anio}</span>
|
||||
<span class="sep" aria-hidden="true">·</span>
|
||||
<span>Nombre comercial de Collina LLC (Wyoming), con operación en Puebla, México</span>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="/curriculum">Currículum empresarial</a></li>
|
||||
<li><a href="/contacto">Contacto</a></li>
|
||||
<li><a href={`mailto:${SITIO.correo}`} class="mono">{SITIO.correo}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<style>
|
||||
.pie {
|
||||
border-top: 1px solid var(--line);
|
||||
padding-block: 2.5rem;
|
||||
padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
|
||||
font-size: 0.85rem;
|
||||
color: var(--fg-3);
|
||||
}
|
||||
.pie .wrap {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem 2rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.sep {
|
||||
margin-inline: 0.5rem;
|
||||
}
|
||||
ul {
|
||||
display: flex;
|
||||
gap: 1.4rem;
|
||||
flex-wrap: wrap;
|
||||
list-style: none;
|
||||
}
|
||||
.pie a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,127 @@
|
||||
---
|
||||
import { NAV, SITIO, esActual } from '../lib/sitio';
|
||||
const ruta = Astro.url.pathname;
|
||||
---
|
||||
|
||||
<header class="cabecera">
|
||||
<div class="wrap nav">
|
||||
<a class="marca" href="/" aria-label={`${SITIO.nombre}, inicio`}>Collina <small>Systems</small></a>
|
||||
<button class="burger" type="button" aria-expanded="false" aria-controls="menu" data-burger>Menú</button>
|
||||
<nav aria-label="Principal">
|
||||
<ul class="menu" id="menu" data-menu>
|
||||
{
|
||||
NAV.map((item) => (
|
||||
<li>
|
||||
<a href={item.href} aria-current={esActual(item.href, ruta) ? 'page' : undefined}>
|
||||
{item.texto}
|
||||
</a>
|
||||
</li>
|
||||
))
|
||||
}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<style>
|
||||
.cabecera {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 9;
|
||||
background: var(--bg);
|
||||
border-bottom: 1px solid var(--line);
|
||||
padding-top: env(safe-area-inset-top, 0px);
|
||||
}
|
||||
.nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding-block: 0.9rem;
|
||||
position: relative;
|
||||
}
|
||||
.marca {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 700;
|
||||
font-size: 1.3rem;
|
||||
letter-spacing: 0.02em;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 0.5rem;
|
||||
font-variation-settings: 'opsz' 48;
|
||||
}
|
||||
.marca small {
|
||||
font-family: var(--font-body);
|
||||
font-weight: 600;
|
||||
font-size: 0.62rem;
|
||||
letter-spacing: 0.2em;
|
||||
text-transform: uppercase;
|
||||
color: var(--fg-3);
|
||||
}
|
||||
.menu {
|
||||
display: flex;
|
||||
gap: 1.6rem;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.menu a[aria-current='page'] {
|
||||
color: var(--accent);
|
||||
box-shadow: inset 0 -2px 0 var(--accent);
|
||||
}
|
||||
.burger {
|
||||
display: none;
|
||||
background: none;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 4px;
|
||||
padding: 0.4rem 0.7rem;
|
||||
color: var(--fg);
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
@media (max-width: 759px) {
|
||||
.menu {
|
||||
display: none;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 100%;
|
||||
background: var(--bg);
|
||||
border-bottom: 1px solid var(--line);
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
padding: 0.5rem var(--gutter-r) 0.5rem var(--gutter-l);
|
||||
}
|
||||
.menu.abierto {
|
||||
display: flex;
|
||||
}
|
||||
.menu li a {
|
||||
display: block;
|
||||
padding: 0.75rem 0;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
.burger {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
const boton = document.querySelector<HTMLButtonElement>('[data-burger]');
|
||||
const menu = document.querySelector<HTMLElement>('[data-menu]');
|
||||
if (boton && menu) {
|
||||
const fijar = (abierto: boolean) => {
|
||||
menu.classList.toggle('abierto', abierto);
|
||||
boton.setAttribute('aria-expanded', String(abierto));
|
||||
};
|
||||
boton.addEventListener('click', () => fijar(!menu.classList.contains('abierto')));
|
||||
document.addEventListener('keydown', (e) => {
|
||||
if (e.key === 'Escape' && menu.classList.contains('abierto')) {
|
||||
fijar(false);
|
||||
boton.focus();
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,46 @@
|
||||
---
|
||||
/* Cifra con método. Nunca se muestra un valor sin su método; un valor null se
|
||||
presenta como "por medir". */
|
||||
interface Props {
|
||||
valor: string | null;
|
||||
texto: string;
|
||||
metodo: string;
|
||||
periodo?: string | null;
|
||||
}
|
||||
const { valor, texto, metodo, periodo = null } = Astro.props;
|
||||
---
|
||||
|
||||
<div class="stat">
|
||||
<strong class="mono">{valor ?? 'por medir'}</strong>
|
||||
<span>{texto}</span>
|
||||
<small>{metodo}{periodo && <> · {periodo}</>}</small>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.stat {
|
||||
border-top: 2px solid var(--fg);
|
||||
padding-top: 1rem;
|
||||
}
|
||||
.stat strong {
|
||||
display: block;
|
||||
font-family: var(--font-mono);
|
||||
font-size: clamp(2rem, 4vw, 3rem);
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
font-variant-numeric: tabular-nums;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.stat span {
|
||||
display: block;
|
||||
margin-top: 0.5rem;
|
||||
color: var(--fg-2);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
.stat small {
|
||||
display: block;
|
||||
margin-top: 0.35rem;
|
||||
color: var(--fg-3);
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,186 @@
|
||||
---
|
||||
/* Componente único de video. Reglas incorporadas (BRIEF §8):
|
||||
- fondo: silencioso, en bucle, con poster; solo poster en celular, con ahorro de
|
||||
datos o con prefers-reduced-motion; se reproduce solo mientras está en pantalla.
|
||||
- captura: MP4 corto en lugar de GIF; carga diferida al entrar en pantalla;
|
||||
controles visibles; sin autoplay con prefers-reduced-motion.
|
||||
- externo: demostración alojada fuera; solo se carga el iframe al pulsar.
|
||||
Nunca audio automático. Una sola instancia de `fondo` por página. */
|
||||
interface Props {
|
||||
modo: 'fondo' | 'captura' | 'externo';
|
||||
/** Imagen fija que se muestra antes del video o en su lugar. */
|
||||
poster: string;
|
||||
/** Descripción del contenido para lectores de pantalla (vacía si es decorativo). */
|
||||
descripcion: string;
|
||||
mp4?: string;
|
||||
webm?: string;
|
||||
/** URL del reproductor externo (modo externo). */
|
||||
src?: string;
|
||||
/** Relación de aspecto CSS, p. ej. "21 / 9". */
|
||||
aspecto?: string;
|
||||
/** Texto que acompaña al poster mientras no hay video real. */
|
||||
nota?: string;
|
||||
}
|
||||
const {
|
||||
modo,
|
||||
poster,
|
||||
descripcion,
|
||||
mp4,
|
||||
webm,
|
||||
src,
|
||||
aspecto = modo === 'captura' ? '9 / 16' : '16 / 9',
|
||||
nota,
|
||||
} = Astro.props;
|
||||
const decorativo = descripcion.trim() === '';
|
||||
const hayFuente = Boolean(mp4 || webm);
|
||||
---
|
||||
|
||||
<figure class:list={['video', `video--${modo}`]} style={`aspect-ratio:${aspecto}`}>
|
||||
{
|
||||
modo === 'externo' ? (
|
||||
<div class="externo" data-video="externo" data-src={src}>
|
||||
<img src={poster} alt={descripcion} loading="lazy" decoding="async" />
|
||||
<button type="button" class="reproducir" data-reproducir>
|
||||
Reproducir demostración
|
||||
</button>
|
||||
</div>
|
||||
) : (
|
||||
<video
|
||||
data-video={modo}
|
||||
data-mp4={mp4}
|
||||
data-webm={webm}
|
||||
poster={poster}
|
||||
muted
|
||||
playsinline
|
||||
loop
|
||||
preload="none"
|
||||
disablepictureinpicture
|
||||
aria-hidden={decorativo ? 'true' : undefined}
|
||||
aria-label={decorativo ? undefined : descripcion}
|
||||
controls={modo === 'captura' && hayFuente}
|
||||
tabindex={decorativo ? -1 : undefined}
|
||||
/>
|
||||
)
|
||||
}
|
||||
{nota && <figcaption class="nota mono">{nota}</figcaption>}
|
||||
</figure>
|
||||
|
||||
<style>
|
||||
.video {
|
||||
margin: 0;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
background: var(--bg-2);
|
||||
border: 1px solid var(--line);
|
||||
}
|
||||
.video--captura {
|
||||
max-width: 320px;
|
||||
}
|
||||
.video video,
|
||||
.video img,
|
||||
.video :global(iframe) {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
border: 0;
|
||||
background: var(--bg-2);
|
||||
}
|
||||
.externo {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
}
|
||||
.reproducir {
|
||||
position: absolute;
|
||||
inset: auto auto 1rem 1rem;
|
||||
background: var(--ink);
|
||||
color: var(--ink-fg);
|
||||
border: 0;
|
||||
padding: 0.6rem 1rem;
|
||||
font: inherit;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.nota {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 0.4rem 0.8rem;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 0.72rem;
|
||||
color: var(--fg-3);
|
||||
background: color-mix(in srgb, var(--bg) 85%, transparent);
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
type Conexion = { saveData?: boolean };
|
||||
const reduceMovimiento = matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||
const ahorroDatos = Boolean((navigator as Navigator & { connection?: Conexion }).connection?.saveData);
|
||||
const esCelular = matchMedia('(max-width: 759px)').matches;
|
||||
|
||||
function montarFuentes(video: HTMLVideoElement): boolean {
|
||||
if (video.dataset.montado === '1') return true;
|
||||
const { mp4, webm } = video.dataset;
|
||||
if (!mp4 && !webm) return false;
|
||||
for (const [src, type] of [
|
||||
[webm, 'video/webm'],
|
||||
[mp4, 'video/mp4'],
|
||||
] as const) {
|
||||
if (!src) continue;
|
||||
const s = document.createElement('source');
|
||||
s.src = src;
|
||||
s.type = type;
|
||||
video.append(s);
|
||||
}
|
||||
video.dataset.montado = '1';
|
||||
video.load();
|
||||
return true;
|
||||
}
|
||||
|
||||
const observador = new IntersectionObserver(
|
||||
(entradas) => {
|
||||
for (const e of entradas) {
|
||||
const video = e.target as HTMLVideoElement;
|
||||
if (e.isIntersecting) {
|
||||
if (!montarFuentes(video)) continue;
|
||||
if (!reduceMovimiento) video.play().catch(() => {});
|
||||
} else if (!video.paused) {
|
||||
video.pause();
|
||||
}
|
||||
}
|
||||
},
|
||||
{ threshold: 0.25 },
|
||||
);
|
||||
|
||||
for (const video of document.querySelectorAll<HTMLVideoElement>('video[data-video="fondo"]')) {
|
||||
// En celular, con ahorro de datos o sin movimiento: solo el poster.
|
||||
if (esCelular || ahorroDatos || reduceMovimiento) continue;
|
||||
observador.observe(video);
|
||||
}
|
||||
for (const video of document.querySelectorAll<HTMLVideoElement>('video[data-video="captura"]')) {
|
||||
if (ahorroDatos) continue;
|
||||
observador.observe(video);
|
||||
}
|
||||
|
||||
for (const caja of document.querySelectorAll<HTMLElement>('[data-video="externo"]')) {
|
||||
caja.querySelector('[data-reproducir]')?.addEventListener('click', () => {
|
||||
const src = caja.dataset.src;
|
||||
if (!src) return;
|
||||
const iframe = document.createElement('iframe');
|
||||
iframe.src = src;
|
||||
iframe.title = caja.querySelector('img')?.alt || 'Demostración en video';
|
||||
iframe.allow = 'fullscreen; picture-in-picture';
|
||||
iframe.setAttribute('allowfullscreen', '');
|
||||
iframe.loading = 'lazy';
|
||||
caja.replaceChildren(iframe);
|
||||
iframe.focus();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,70 @@
|
||||
import { defineCollection } from 'astro:content';
|
||||
import { glob } from 'astro/loaders';
|
||||
import { z } from 'astro/zod';
|
||||
|
||||
/* Métrica con método. `metodo` es obligatorio siempre: una cifra sin método no
|
||||
se publica. `resultado` null se muestra como "por medir". */
|
||||
const metrica = z
|
||||
.object({
|
||||
medicion: z.string().min(1),
|
||||
resultado: z.string().min(1).nullable(),
|
||||
metodo: z.string().min(1, 'Toda métrica necesita su método de medición'),
|
||||
periodo: z.string().min(1).nullable(),
|
||||
})
|
||||
.refine((m) => m.resultado === null || m.metodo.trim().length > 0, {
|
||||
message: 'Una métrica con resultado debe traer su método',
|
||||
});
|
||||
|
||||
const proyectos = defineCollection({
|
||||
loader: glob({ pattern: '**/*.md', base: './src/content/proyectos' }),
|
||||
schema: z.object({
|
||||
titulo: z.string().min(1),
|
||||
slug: z.string().regex(/^[a-z0-9-]+$/),
|
||||
orden: z.number().int().positive(),
|
||||
sector: z.string().min(1),
|
||||
estado: z.enum(['produccion', 'piloto']),
|
||||
desde: z.coerce.date(),
|
||||
resumen: z.string().min(1),
|
||||
operacion_antes: z.string().min(1),
|
||||
operacion_ahora: z.string().min(1),
|
||||
modulos: z
|
||||
.array(z.object({ nombre: z.string(), resuelve: z.string(), como: z.string() }))
|
||||
.min(1),
|
||||
arquitectura: z.object({
|
||||
diagrama: z.string().min(1),
|
||||
principios: z.array(z.object({ titulo: z.string(), texto: z.string() })).length(4),
|
||||
}),
|
||||
stack: z.array(z.object({ capa: z.string(), tecnologia: z.string(), decision: z.string() })).min(1),
|
||||
seguridad: z.array(z.string().min(1)).min(1),
|
||||
metricas: z.array(metrica).min(1),
|
||||
demo: z.object({
|
||||
tipo: z.enum(['chat', 'video', 'captura']),
|
||||
fuente: z.string().min(1),
|
||||
}),
|
||||
video_portada: z.string().optional(),
|
||||
}),
|
||||
});
|
||||
|
||||
const equipo = defineCollection({
|
||||
loader: glob({ pattern: '**/*.md', base: './src/content/equipo' }),
|
||||
schema: z.object({
|
||||
nombre: z.string().min(1),
|
||||
cargo: z.string().min(1),
|
||||
orden: z.number().int().positive(),
|
||||
profesion: z.string().min(1),
|
||||
}),
|
||||
});
|
||||
|
||||
/* Cifras de la página de inicio. Misma regla: método obligatorio. */
|
||||
const cifras = defineCollection({
|
||||
loader: glob({ pattern: '**/*.yaml', base: './src/content/cifras' }),
|
||||
schema: z.object({
|
||||
orden: z.number().int().positive(),
|
||||
valor: z.string().min(1).nullable(),
|
||||
texto: z.string().min(1),
|
||||
metodo: z.string().min(1),
|
||||
periodo: z.string().min(1).nullable(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = { proyectos, equipo, cifras };
|
||||
@@ -0,0 +1,7 @@
|
||||
# TODO: cuando exista la colección de proyectos, este valor se calcula en el build
|
||||
# (conteo de fichas con estado "produccion") en lugar de escribirse aquí.
|
||||
orden: 1
|
||||
valor: '6'
|
||||
texto: sistemas en producción en cuatro sectores distintos
|
||||
metodo: Conteo de fichas técnicas publicadas con estado "producción" (arrendamiento, gasolineras, comercio multisucursal, actuaría)
|
||||
periodo: corte de junio de 2026
|
||||
@@ -0,0 +1,6 @@
|
||||
# TODO: confirmar con el equipo el método exacto (registro del servidor) y el periodo medido.
|
||||
orden: 2
|
||||
valor: '< 30 s'
|
||||
texto: de un mensaje en lenguaje natural a una cotización en PDF con amortización
|
||||
metodo: Tiempo entre la recepción del mensaje y el envío del PDF, según el registro del servidor del cotizador
|
||||
periodo: en producción desde marzo de 2026
|
||||
@@ -0,0 +1,5 @@
|
||||
orden: 3
|
||||
valor: '4'
|
||||
texto: estaciones de servicio monitoreadas por bomba, turno y sucursal en tiempo real
|
||||
metodo: Estaciones con lectura activa en el monitor de ventas, en Puebla y Tlaxcala; el sistema solo monitorea, nunca mueve dinero
|
||||
periodo: desde mayo de 2026
|
||||
@@ -0,0 +1,6 @@
|
||||
# TODO: confirmar con el equipo el método exacto y el periodo medido.
|
||||
orden: 4
|
||||
valor: '< 10 min'
|
||||
texto: para un contrato de arrendamiento completo a partir de la cotización
|
||||
metodo: Tiempo entre la cotización aprobada y el contrato generado, según el registro del generador de contratos
|
||||
periodo: en producción desde abril de 2026
|
||||
@@ -0,0 +1,82 @@
|
||||
---
|
||||
import '../styles/global.css';
|
||||
import Header from '../components/Header.astro';
|
||||
import Footer from '../components/Footer.astro';
|
||||
import { SITIO } from '../lib/sitio';
|
||||
|
||||
interface Props {
|
||||
/** Título de la página, sin el nombre del sitio. */
|
||||
titulo: string;
|
||||
descripcion: string;
|
||||
/** Ruta absoluta o relativa de la imagen Open Graph. */
|
||||
imagen?: string;
|
||||
tipo?: 'website' | 'article';
|
||||
noindex?: boolean;
|
||||
}
|
||||
|
||||
const { titulo, descripcion, imagen = SITIO.ogImagen, tipo = 'website', noindex = false } = Astro.props;
|
||||
const esInicio = Astro.url.pathname === '/';
|
||||
const tituloCompleto = esInicio ? `${SITIO.nombre} · Sistemas para la operación` : `${titulo} · ${SITIO.nombre}`;
|
||||
const canonical = new URL(Astro.url.pathname, Astro.site ?? SITIO.dominio);
|
||||
const imagenAbs = new URL(imagen, Astro.site ?? SITIO.dominio);
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang="es">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
<title>{tituloCompleto}</title>
|
||||
<meta name="description" content={descripcion} />
|
||||
<link rel="canonical" href={canonical} />
|
||||
{noindex && <meta name="robots" content="noindex" />}
|
||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff" />
|
||||
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c1420" />
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||
|
||||
<meta property="og:site_name" content={SITIO.nombre} />
|
||||
<meta property="og:type" content={tipo} />
|
||||
<meta property="og:title" content={tituloCompleto} />
|
||||
<meta property="og:description" content={descripcion} />
|
||||
<meta property="og:url" content={canonical} />
|
||||
<meta property="og:image" content={imagenAbs} />
|
||||
<meta property="og:locale" content="es_MX" />
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content={tituloCompleto} />
|
||||
<meta name="twitter:description" content={descripcion} />
|
||||
<meta name="twitter:image" content={imagenAbs} />
|
||||
|
||||
<link rel="preload" href="/fonts/fraunces-latin-opsz-normal.woff2" as="font" type="font/woff2" crossorigin />
|
||||
<link rel="preload" href="/fonts/instrument-sans-latin-wght-normal.woff2" as="font" type="font/woff2" crossorigin />
|
||||
<slot name="head" />
|
||||
</head>
|
||||
<body>
|
||||
<a class="saltar" href="#contenido">Ir al contenido</a>
|
||||
<Header />
|
||||
<main id="contenido" tabindex="-1">
|
||||
<slot />
|
||||
</main>
|
||||
<Footer />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<style>
|
||||
.saltar {
|
||||
position: absolute;
|
||||
left: var(--gutter-l);
|
||||
top: -100px;
|
||||
z-index: 20;
|
||||
background: var(--ink);
|
||||
color: var(--ink-fg);
|
||||
padding: 0.6rem 1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
.saltar:focus-visible {
|
||||
top: 0.5rem;
|
||||
}
|
||||
main:focus {
|
||||
outline: none;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,25 @@
|
||||
/* Datos fijos del sitio. El contenido editorial vive en src/content. */
|
||||
export const SITIO = {
|
||||
nombre: 'Collina Systems',
|
||||
dominio: 'https://collinasystems.com.mx',
|
||||
descripcion:
|
||||
'Sistemas para la operación de una empresa: ventas, inventario, cobranza, flotillas, contratos, estaciones de servicio y personal. Construidos, medidos y documentados.',
|
||||
correo: 'contacto@collinasystems.com',
|
||||
ogImagen: '/img/og.png',
|
||||
anio: 2026,
|
||||
} as const;
|
||||
|
||||
export const NAV = [
|
||||
{ href: '/', texto: 'Inicio' },
|
||||
{ href: '/proyectos', texto: 'Proyectos' },
|
||||
{ href: '/ingenieria', texto: 'Ingeniería' },
|
||||
{ href: '/firma', texto: 'Firma' },
|
||||
{ href: '/contacto', texto: 'Contacto' },
|
||||
] as const;
|
||||
|
||||
/** Devuelve true si `href` corresponde a la ruta actual (o a una subruta). */
|
||||
export function esActual(href: string, pathname: string): boolean {
|
||||
const ruta = pathname.replace(/\/+$/, '') || '/';
|
||||
if (href === '/') return ruta === '/';
|
||||
return ruta === href || ruta.startsWith(href + '/');
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
---
|
||||
import { getCollection } from 'astro:content';
|
||||
import Base from '../layouts/Base.astro';
|
||||
import Stat from '../components/Stat.astro';
|
||||
import Video from '../components/Video.astro';
|
||||
import { SITIO } from '../lib/sitio';
|
||||
|
||||
const cifras = (await getCollection('cifras')).sort((a, b) => a.data.orden - b.data.orden);
|
||||
---
|
||||
|
||||
<Base titulo="Inicio" descripcion={SITIO.descripcion}>
|
||||
<section class="section hero">
|
||||
<div class="wrap">
|
||||
<p class="eyebrow">Sistemas para la operación</p>
|
||||
<h1>Toda operación repetitiva puede ser un sistema. Nosotros lo construimos y lo operamos.</h1>
|
||||
<p class="lead">
|
||||
Ventas, inventario, cobranza, flotillas, contratos, estaciones de servicio, personal. Mapeamos cómo trabaja
|
||||
su equipo, lo convertimos en un sistema que corre solo y dejamos cada paso medido y documentado para que
|
||||
cualquiera pueda verificarlo.
|
||||
</p>
|
||||
<div class="acciones">
|
||||
<a class="link" href="/proyectos">Ver los sistemas en operación</a>
|
||||
<a class="link" href="/ingenieria">Cómo construimos</a>
|
||||
</div>
|
||||
<div class="video-hero">
|
||||
<Video
|
||||
modo="fondo"
|
||||
poster="/img/poster-inicio.svg"
|
||||
descripcion=""
|
||||
aspecto="21 / 9"
|
||||
nota="Video de fondo, silencioso, 10–20 s en bucle: una operación real corriendo. MP4 + WebM ≤ 3 MB. Poster de muestra."
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section" aria-labelledby="cifras">
|
||||
<div class="wrap">
|
||||
<h2 id="cifras" class="eyebrow eyebrow-h2">Cifras medidas, no estimadas</h2>
|
||||
<div class="grid g4 cifras">
|
||||
{cifras.map((c) => <Stat valor={c.data.valor} texto={c.data.texto} metodo={c.data.metodo} periodo={c.data.periodo} />)}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
<div class="wrap grid g-5-7">
|
||||
<div>
|
||||
<p class="eyebrow">Proyectos</p>
|
||||
<h2 class="mt">Operaciones distintas, un mismo método.</h2>
|
||||
</div>
|
||||
<div>
|
||||
<p class="lead">
|
||||
Un cotizador que responde por chat, un punto de venta multisucursal, un monitor de gasolineras, un
|
||||
generador de contratos. Operaciones muy diferentes, documentadas con la misma ficha: qué hacía el equipo
|
||||
antes, qué hace el sistema ahora, cómo está construido y qué se midió.
|
||||
</p>
|
||||
<p class="mt-l"><a class="link" href="/proyectos">Ver los proyectos</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</Base>
|
||||
|
||||
<style>
|
||||
.hero {
|
||||
padding-block: clamp(3.5rem, 9vw, 7.5rem);
|
||||
}
|
||||
.hero h1 {
|
||||
max-width: 18ch;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
.hero .lead {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
.acciones {
|
||||
display: flex;
|
||||
gap: 1.6rem;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 2.2rem;
|
||||
}
|
||||
.video-hero {
|
||||
margin-top: 3rem;
|
||||
}
|
||||
.eyebrow-h2 {
|
||||
font-family: var(--font-body);
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.4;
|
||||
letter-spacing: 0.12em;
|
||||
font-variation-settings: normal;
|
||||
}
|
||||
.cifras {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
.mt {
|
||||
margin-top: 0.8rem;
|
||||
}
|
||||
.mt-l {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,241 @@
|
||||
@import 'tailwindcss';
|
||||
@import './tokens.css';
|
||||
|
||||
/* Tailwind lee los tokens del archivo tokens.css. Las utilidades (bg-bg, text-fg-2,
|
||||
font-display, max-w-site, sm:, md:, lg:) salen de aquí. */
|
||||
@theme {
|
||||
--breakpoint-*: initial;
|
||||
--breakpoint-sm: 560px;
|
||||
--breakpoint-md: 760px;
|
||||
--breakpoint-lg: 860px;
|
||||
--breakpoint-xl: 1180px;
|
||||
--container-site: 1180px;
|
||||
}
|
||||
@theme inline {
|
||||
--color-*: initial;
|
||||
--color-bg: var(--bg);
|
||||
--color-bg-2: var(--bg-2);
|
||||
--color-fg: var(--fg);
|
||||
--color-fg-2: var(--fg-2);
|
||||
--color-fg-3: var(--fg-3);
|
||||
--color-line: var(--line);
|
||||
--color-accent: var(--accent);
|
||||
--color-ink: var(--ink);
|
||||
--color-ink-fg: var(--ink-fg);
|
||||
--color-ok: var(--ok);
|
||||
--color-warn: var(--warn);
|
||||
--font-display: var(--font-display);
|
||||
--font-body: var(--font-body);
|
||||
--font-mono: var(--font-mono);
|
||||
}
|
||||
|
||||
@layer base {
|
||||
html {
|
||||
background: var(--bg);
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
font-family: var(--font-body);
|
||||
font-size: 17px;
|
||||
line-height: 1.55;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
overflow-x: clip;
|
||||
}
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.015em;
|
||||
line-height: 1.08;
|
||||
margin: 0;
|
||||
text-wrap: balance;
|
||||
}
|
||||
h1 {
|
||||
font-size: clamp(2.4rem, 6vw, 4.6rem);
|
||||
font-variation-settings: 'opsz' 144;
|
||||
}
|
||||
h2 {
|
||||
font-size: clamp(1.7rem, 3.4vw, 2.6rem);
|
||||
font-variation-settings: 'opsz' 96;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.35rem;
|
||||
font-variation-settings: 'opsz' 48;
|
||||
}
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
ul,
|
||||
ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
th,
|
||||
td {
|
||||
text-align: left;
|
||||
padding: 0.7rem 0.6rem 0.7rem 0;
|
||||
border-bottom: 1px solid var(--line);
|
||||
vertical-align: top;
|
||||
}
|
||||
th {
|
||||
font-weight: 600;
|
||||
font-size: 0.8rem;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
color: var(--fg-3);
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
transition: none !important;
|
||||
animation: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
.wrap {
|
||||
max-width: var(--maxw);
|
||||
margin-inline: auto;
|
||||
padding-left: var(--gutter-l);
|
||||
padding-right: var(--gutter-r);
|
||||
}
|
||||
.eyebrow {
|
||||
font-size: 0.78rem;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: var(--fg-3);
|
||||
font-weight: 600;
|
||||
}
|
||||
.lead {
|
||||
font-size: 1.25rem;
|
||||
color: var(--fg-2);
|
||||
max-width: 62ch;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.muted {
|
||||
color: var(--fg-2);
|
||||
}
|
||||
.mono {
|
||||
font-family: var(--font-mono);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.link {
|
||||
color: var(--accent);
|
||||
font-weight: 500;
|
||||
display: inline-flex;
|
||||
gap: 0.4em;
|
||||
align-items: center;
|
||||
}
|
||||
.link::after {
|
||||
content: '→';
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
.link:hover::after {
|
||||
transform: translateX(3px);
|
||||
}
|
||||
.h1-sec {
|
||||
font-size: clamp(2rem, 4.5vw, 3.4rem);
|
||||
}
|
||||
.section {
|
||||
padding-block: clamp(3rem, 7vw, 6rem);
|
||||
}
|
||||
.section + .section {
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: 2rem;
|
||||
}
|
||||
.grid > * {
|
||||
min-width: 0;
|
||||
}
|
||||
.g2 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
.g3 {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
.g4 {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
.g-5-7 {
|
||||
grid-template-columns: 5fr 7fr;
|
||||
}
|
||||
.g-4-8 {
|
||||
grid-template-columns: 4fr 8fr;
|
||||
}
|
||||
@media (max-width: 860px) {
|
||||
.g3,
|
||||
.g4 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
.g-5-7,
|
||||
.g-4-8 {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
@media (max-width: 560px) {
|
||||
.g2,
|
||||
.g3,
|
||||
.g4 {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
.scroll {
|
||||
overflow-x: auto;
|
||||
}
|
||||
.list {
|
||||
padding-left: 1.2rem;
|
||||
color: var(--fg-2);
|
||||
}
|
||||
.list li {
|
||||
margin: 0.35rem 0;
|
||||
}
|
||||
.fuente {
|
||||
font-size: 0.8rem;
|
||||
color: var(--fg-3);
|
||||
margin-top: 0.8rem;
|
||||
}
|
||||
.callout {
|
||||
border-left: 3px solid var(--accent);
|
||||
padding: 0.2rem 0 0.2rem 1.2rem;
|
||||
color: var(--fg-2);
|
||||
max-width: 66ch;
|
||||
}
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
/* Tokens de Collina Systems. Único lugar donde se definen colores, fuentes y
|
||||
medidas del sitio. Tema claro por defecto; tema oscuro por prefers-color-scheme
|
||||
o forzado con data-theme="dark" en <html>. */
|
||||
|
||||
:root {
|
||||
/* Color */
|
||||
--bg: #ffffff;
|
||||
--bg-2: #f4f5f7;
|
||||
--fg: #0b1a2b;
|
||||
--fg-2: #4a5565;
|
||||
--fg-3: #6b7484;
|
||||
--line: #dfe3e8;
|
||||
--accent: #1f4fff;
|
||||
--ink: #07172a;
|
||||
--ink-fg: #ffffff;
|
||||
--ok: #1b7f4e;
|
||||
--warn: #9a5c00;
|
||||
|
||||
/* Tipografía (cambiar aquí para sustituir una familia en todo el sitio) */
|
||||
--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
|
||||
--font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
|
||||
--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
|
||||
|
||||
/* Retícula */
|
||||
--maxw: 1180px;
|
||||
--gutter-l: max(16px, env(safe-area-inset-left, 0px));
|
||||
--gutter-r: max(16px, env(safe-area-inset-right, 0px));
|
||||
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme='light']) {
|
||||
--bg: #0c1420;
|
||||
--bg-2: #121c2a;
|
||||
--fg: #eef2f7;
|
||||
--fg-2: #b4bdca;
|
||||
--fg-3: #8a94a3;
|
||||
--line: #263244;
|
||||
--accent: #7f9cff;
|
||||
--ink: #eef2f7;
|
||||
--ink-fg: #0c1420;
|
||||
--ok: #4fc38a;
|
||||
--warn: #e3a84a;
|
||||
color-scheme: dark;
|
||||
}
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] {
|
||||
--bg: #0c1420;
|
||||
--bg-2: #121c2a;
|
||||
--fg: #eef2f7;
|
||||
--fg-2: #b4bdca;
|
||||
--fg-3: #8a94a3;
|
||||
--line: #263244;
|
||||
--accent: #7f9cff;
|
||||
--ink: #eef2f7;
|
||||
--ink-fg: #0c1420;
|
||||
--ok: #4fc38a;
|
||||
--warn: #e3a84a;
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
/* Fuentes propias (public/fonts). Archivos variables de @fontsource-variable 5.3.0. */
|
||||
@font-face {
|
||||
font-family: 'Fraunces';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 100 900;
|
||||
src: url('/fonts/fraunces-latin-opsz-normal.woff2') format('woff2-variations');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Fraunces';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 100 900;
|
||||
src: url('/fonts/fraunces-latin-ext-opsz-normal.woff2') format('woff2-variations');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Instrument Sans';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 400 700;
|
||||
src: url('/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2-variations');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Instrument Sans';
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
font-weight: 400 700;
|
||||
src: url('/fonts/instrument-sans-latin-wght-italic.woff2') format('woff2-variations');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Instrument Sans';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 400 700;
|
||||
src: url('/fonts/instrument-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'JetBrains Mono';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 100 800;
|
||||
src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
Reference in new issue
Block a user