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:
1 parent
65182eecd6
commit
7e2798d0b7
8 files changed
+63
-135
No files matched your search
@@ -0,0 +1,4 @@
|
|||||||
|
<?php
|
||||||
|
// Stub: o endpoint vive no platform-tools, partilhado por toda a frota.
|
||||||
|
// Ver shared/platform-tools/api/hub_health.php (e functions_hub.php).
|
||||||
|
require __DIR__ . '/../shared/platform-tools/api/hub_health.php';
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<?php
|
||||||
|
// Stub: o endpoint vive no platform-tools, partilhado por toda a frota.
|
||||||
|
// Ver shared/platform-tools/api/hub_ops.php (e functions_hub.php).
|
||||||
|
require __DIR__ . '/../shared/platform-tools/api/hub_ops.php';
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<?php
|
||||||
|
// Stub: o endpoint vive no platform-tools, partilhado por toda a frota.
|
||||||
|
// Ver shared/platform-tools/api/hub_pair.php (e functions_hub.php).
|
||||||
|
require __DIR__ . '/../shared/platform-tools/api/hub_pair.php';
|
||||||
+33
-83
@@ -658,74 +658,25 @@ section[id] {
|
|||||||
background: var(--fitme-dark-2);
|
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
|
/* 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,
|
own section) — plain text lines, centered, matching the "less graphics"
|
||||||
matching the text-center/text-md-left the surrounding blocks already use. */
|
direction the rest of that column took once the icons came out. */
|
||||||
.wh-grid-inline {
|
.wh-text p {
|
||||||
justify-content: center;
|
margin: 0 0 8px;
|
||||||
|
color: rgba(255, 255, 255, .7);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
.wh-text p:last-child {
|
||||||
.wh-grid-inline {
|
margin-bottom: 0;
|
||||||
justify-content: flex-start;
|
}
|
||||||
}
|
|
||||||
|
.wh-text strong {
|
||||||
|
color: var(--fitme-accent);
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wh-text .wh-closed {
|
||||||
|
color: rgba(255, 255, 255, .45);
|
||||||
}
|
}
|
||||||
|
|
||||||
.map-section {
|
.map-section {
|
||||||
@@ -1254,7 +1205,7 @@ h3.contact-title {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.contact-info-warp {
|
.contact-info-warp {
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 1.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.contact-info-warp h3,
|
.contact-info-warp h3,
|
||||||
@@ -1264,22 +1215,7 @@ h3.contact-title {
|
|||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.contact-info .fas,
|
.contact-info p {
|
||||||
.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 {
|
|
||||||
color: rgba(255, 255, 255, .7);
|
color: rgba(255, 255, 255, .7);
|
||||||
line-height: 1.8;
|
line-height: 1.8;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -3977,11 +3913,25 @@ h3.contact-title {
|
|||||||
.reviews-actions {
|
.reviews-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 12px;
|
gap: 18px;
|
||||||
margin-top: 2rem;
|
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 {
|
.reviews-attribution {
|
||||||
margin: 1.2rem 0 0;
|
margin: 1.2rem 0 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@@ -454,33 +454,6 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
if (start) showDay(start);
|
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 ─────────────────────────
|
/* ── Equipa: detail card that grows out of the tile ─────────────────────────
|
||||||
Desktop: hover (or keyboard focus) opens. The card is laid exactly over the
|
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 —
|
tile photo, tilted like it, and the CSS unclips/straightens it sideways —
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ $data = [
|
|||||||
'bg_img' => '',
|
'bg_img' => '',
|
||||||
'gallery_h2' => 'CrossFit',
|
'gallery_h2' => 'CrossFit',
|
||||||
'gallery_path' => 'uploads/gallery/2/',
|
'gallery_path' => 'uploads/gallery/2/',
|
||||||
'map_h2' => 'A nossa Localização',
|
|
||||||
'header_video_video' => 'site/assets/img/crossfit.mp4',
|
'header_video_video' => 'site/assets/img/crossfit.mp4',
|
||||||
'header_video_img' => 'site/assets/img/crossfit.jpg',
|
'header_video_img' => 'site/assets/img/crossfit.jpg',
|
||||||
'rel_footer_h2' => 'Precisas de um<span>Personal Trainer?</span><br> Entra em contacto connosco.',
|
'rel_footer_h2' => 'Precisas de um<span>Personal Trainer?</span><br> Entra em contacto connosco.',
|
||||||
@@ -65,6 +64,5 @@ echo view('contactos', [
|
|||||||
'show' => $on('contactos'),
|
'show' => $on('contactos'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
echo view('map', $data);
|
|
||||||
echo view('ad_footer', $data);
|
echo view('ad_footer', $data);
|
||||||
echo view('footer', $data);
|
echo view('footer', $data);
|
||||||
+17
-22
@@ -28,20 +28,15 @@ $session = session();
|
|||||||
<h2 id="contactos-title" class="contact-title text-center text-md-left">Informações</h2>
|
<h2 id="contactos-title" class="contact-title text-center text-md-left">Informações</h2>
|
||||||
<div class="contact-info-warp text-center text-md-left">
|
<div class="contact-info-warp text-center text-md-left">
|
||||||
<h3>Localização</h3>
|
<h3>Localização</h3>
|
||||||
<div class="contact-info text-center text-md-left">
|
<div class="contact-info">
|
||||||
<i class="fas fa-map-marker-alt"></i>
|
|
||||||
<div class="cf-text">
|
|
||||||
<a href="<?= htmlspecialchars($info['google_maps_link'] ?? '') ?>" target="_blank" rel="noopener">
|
<a href="<?= htmlspecialchars($info['google_maps_link'] ?? '') ?>" target="_blank" rel="noopener">
|
||||||
<p><?= htmlspecialchars($info['adress'] ?? '') ?></p>
|
<p><?= htmlspecialchars($info['adress'] ?? '') ?></p>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="contact-info-warp text-center text-md-left">
|
<div class="contact-info-warp text-center text-md-left">
|
||||||
<h3>Telefone</h3>
|
<h3>Telefone</h3>
|
||||||
<div class="contact-info text-center text-md-left">
|
<div class="contact-info">
|
||||||
<i class="fas fa-phone-volume"></i>
|
|
||||||
<div class="cf-text">
|
|
||||||
<a href="tel:<?= htmlspecialchars(site_tel($info['phone'] ?? '')) ?>">
|
<a href="tel:<?= htmlspecialchars(site_tel($info['phone'] ?? '')) ?>">
|
||||||
<p><?= htmlspecialchars($info['phone'] ?? '') ?></p>
|
<p><?= htmlspecialchars($info['phone'] ?? '') ?></p>
|
||||||
</a>
|
</a>
|
||||||
@@ -52,12 +47,9 @@ $session = session();
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="contact-info-warp text-center text-md-left">
|
<div class="contact-info-warp text-center text-md-left">
|
||||||
<h3>E-mail</h3>
|
<h3>E-mail</h3>
|
||||||
<div class="contact-info">
|
<div class="contact-info">
|
||||||
<i class="fas fa-envelope"></i>
|
|
||||||
<div class="cf-text">
|
|
||||||
<a href="mailto:<?= htmlspecialchars($info['email'] ?? '') ?>">
|
<a href="mailto:<?= htmlspecialchars($info['email'] ?? '') ?>">
|
||||||
<p><?= htmlspecialchars($info['email'] ?? '') ?></p>
|
<p><?= htmlspecialchars($info['email'] ?? '') ?></p>
|
||||||
</a>
|
</a>
|
||||||
@@ -66,21 +58,24 @@ $session = session();
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<?php if ($whours): ?>
|
<?php if ($whours): ?>
|
||||||
<div class="contact-info-warp text-center text-md-left">
|
<div class="contact-info-warp text-center">
|
||||||
<h3>Horário de Funcionamento</h3>
|
<h3>Horário de Funcionamento</h3>
|
||||||
<dl class="wh-grid wh-grid-inline">
|
<div class="contact-info wh-text text-center">
|
||||||
<?php foreach ($work_hours_days as $key => $value): ?>
|
<?php foreach ($work_hours_days as $key => $value):
|
||||||
<div class="wh-day">
|
$ranges = [];
|
||||||
<dt><?= htmlspecialchars($key) ?></dt>
|
foreach ($whours as $h) {
|
||||||
<?php $any = false; foreach ($whours as $h): if ($h['week_day'] == $value): $any = true; ?>
|
if ($h['week_day'] == $value) {
|
||||||
<dd><?= htmlspecialchars(substr($h['open'], 0, 5) . ' – ' . substr($h['close'], 0, 5)) ?></dd>
|
$ranges[] = substr($h['open'], 0, 5) . ' – ' . substr($h['close'], 0, 5);
|
||||||
<?php endif; endforeach; ?>
|
}
|
||||||
<?php if (!$any): ?><dd class="wh-closed">Encerrado</dd><?php endif; ?>
|
}
|
||||||
</div>
|
?>
|
||||||
|
<p><strong><?= htmlspecialchars($key) ?>:</strong>
|
||||||
|
<?php if ($ranges): ?><?= htmlspecialchars(implode(', ', $ranges)) ?>
|
||||||
|
<?php else: ?><span class="wh-closed">Encerrado</span><?php endif; ?>
|
||||||
|
</p>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</dl>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php // Mapa compacto, ao lado das informações ?>
|
<?php // Mapa compacto, ao lado das informações ?>
|
||||||
|
|||||||
+1
-1
@@ -552,7 +552,7 @@ if ($reviews):
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="reviews-actions">
|
<div class="reviews-actions">
|
||||||
<?php if ($reviews['maps_uri'] !== ''): ?><a class="site-btn sb-line" href="<?= htmlspecialchars($reviews['maps_uri']) ?>" target="_blank" rel="noopener">Ver todas no Google</a><?php endif; ?>
|
<?php if ($reviews['maps_uri'] !== ''): ?><a class="reviews-link" href="<?= htmlspecialchars($reviews['maps_uri']) ?>" target="_blank" rel="noopener">Ver todas no Google</a><?php endif; ?>
|
||||||
<a class="site-btn" href="<?= htmlspecialchars($reviews['write_uri']) ?>" target="_blank" rel="noopener">Deixa a tua review</a>
|
<a class="site-btn" href="<?= htmlspecialchars($reviews['write_uri']) ?>" target="_blank" rel="noopener">Deixa a tua review</a>
|
||||||
</div>
|
</div>
|
||||||
<p class="reviews-attribution">Reviews via Google Maps</p>
|
<p class="reviews-attribution">Reviews via Google Maps</p>
|
||||||
|
|||||||
Reference in new issue
Block a user