feat(site): informações e contactos sem ícones, horário em texto; entra na frota

- Informações e contactos: os ícones fas ao lado do texto saem (desalinhavam
  em layout centrado — fa-envelope é mais largo que os outros e o texto ficava
  a começar em posições diferentes). Horário de Funcionamento deixa de ser
  cartões (dt/dd com barra escura) e passa a texto simples centrado, uma
  linha por dia, a condizer com o resto da coluna.
- Textarea "Mensagem" deixa de esticar até à base do mapa (chegava a 763px
  de altura, vazio) — volta ao min-height:150px + resize:vertical do CSS.
- CrossFit: removida a secção "A nossa Localização" duplicada, agora que a
  página tem a sua própria secção de Contactos com mapa incluído.
- Reviews: "Ver todas no Google" passa a link de texto simples (sublinhado);
  "Deixa a tua review" mantém-se o botão em destaque.
- api/health.php, api/hub_ops.php, api/hub_pair.php: stubs de uma linha para
  o platform-tools (mesmo padrão da fotografia/design/dance) — preparam a
  entrada do fitme3070 na Frota do hub.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
andreandClaude Sonnet 5 committed 2026-09-26 08:46:49 +01:00
1 parent 65182eecd6
commit 7e2798d0b7
8 files changed
+80 -152

No files matched your search

+33 -83
View File
@@ -658,74 +658,25 @@ section[id] {
background: var(--fitme-dark-2);
}
.workhours-section {
background: var(--fitme-white);
padding: 48px 0 44px;
}
.workhours-section .section-title {
margin-bottom: 1.4rem;
}
/* Compact opening-hours cards: dark day label on top, hours underneath,
side by side and close together (wraps to a column on phones). */
.wh-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
margin: 0;
}
.wh-day {
flex: 0 1 210px;
border-radius: 6px;
overflow: hidden;
background: var(--fitme-surface);
border: 1px solid var(--fitme-surface-2);
text-align: center;
}
.wh-day dt {
background: var(--fitme-dark-3);
color: #fff;
font-size: .9rem;
font-weight: 700;
padding: 8px 10px;
}
.wh-day dd {
margin: 0;
padding: 7px 10px;
font-weight: 700;
font-size: 1rem;
color: var(--fitme-text);
}
.wh-day dd + dd {
border-top: 1px solid var(--fitme-surface-2);
}
.wh-day dd.wh-closed {
font-weight: 600;
color: var(--fitme-text-muted);
}
@media (max-width: 575px) {
.wh-day { flex-basis: 100%; }
}
/* Horário de Funcionamento, nested inside Informações e contactos (not its
own section) — left-aligned with the rest of the info column from md up,
matching the text-center/text-md-left the surrounding blocks already use. */
.wh-grid-inline {
justify-content: center;
own section) — plain text lines, centered, matching the "less graphics"
direction the rest of that column took once the icons came out. */
.wh-text p {
margin: 0 0 8px;
color: rgba(255, 255, 255, .7);
}
@media (min-width: 768px) {
.wh-grid-inline {
justify-content: flex-start;
}
.wh-text p:last-child {
margin-bottom: 0;
}
.wh-text strong {
color: var(--fitme-accent);
font-weight: 700;
}
.wh-text .wh-closed {
color: rgba(255, 255, 255, .45);
}
.map-section {
@@ -1254,7 +1205,7 @@ h3.contact-title {
}
.contact-info-warp {
margin-bottom: 2rem;
margin-bottom: 1.4rem;
}
.contact-info-warp h3,
@@ -1264,22 +1215,7 @@ h3.contact-title {
font-size: 1rem;
}
.contact-info .fas,
.contact-info .fab {
float: left;
width: 20px;
margin-right: 12px;
padding-top: 4px;
font-size: 1.2rem;
text-align: center;
color: var(--fitme-accent);
}
.contact-info .cf-text {
overflow: hidden;
}
.contact-info .cf-text p {
.contact-info p {
color: rgba(255, 255, 255, .7);
line-height: 1.8;
margin: 0;
@@ -3977,11 +3913,25 @@ h3.contact-title {
.reviews-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 12px;
gap: 18px;
margin-top: 2rem;
}
/* Plain text link — "Deixa a tua review" stays the one highlighted action
(.site-btn), this is secondary. */
.reviews-link {
font-weight: 700;
color: var(--fitme-text-soft);
text-decoration: underline;
text-underline-offset: 3px;
}
.reviews-link:hover {
color: var(--fitme-text);
}
.reviews-attribution {
margin: 1.2rem 0 0;
text-align: center;
-27
View File
@@ -454,33 +454,6 @@ document.addEventListener('DOMContentLoaded', function () {
if (start) showDay(start);
});
/* ── Contact form: stretch the message box to meet the map ───────────────────
On desktop (≥992px, where the info+map column sits beside the form) the
Mensagem textarea grows so its bottom lines up with the bottom of the compact
map; the consent checkbox and submit button then follow just below it. Off on
mobile, where everything is stacked. */
document.addEventListener('DOMContentLoaded', function () {
var ta = document.querySelector('#contactos .contact-form textarea');
var map = document.querySelector('#contactos .map-side');
if (!ta || !map) return;
var mq = window.matchMedia('(min-width: 992px)');
function sync() {
if (!mq.matches) { ta.style.height = ''; return; }
ta.style.height = 'auto'; // reset before measuring
var taTop = ta.getBoundingClientRect().top;
var mapBottom = map.getBoundingClientRect().bottom;
ta.style.height = Math.max(150, Math.round(mapBottom - taTop)) + 'px';
}
sync();
window.addEventListener('load', sync); // re-measure once fonts/layout settle
if (mq.addEventListener) mq.addEventListener('change', sync);
var t;
window.addEventListener('resize', function () { clearTimeout(t); t = setTimeout(sync, 150); }, { passive: true });
});
/* ── Equipa: detail card that grows out of the tile ─────────────────────────
Desktop: hover (or keyboard focus) opens. The card is laid exactly over the
tile photo, tilted like it, and the CSS unclips/straightens it sideways —