navbar: finish pixel parity with the Next header
- .mu-brand-title 1rem (was 1.05rem in index.html + responsive.css) - .mu-logo-img radius var(--radius) (8px) and brand gap 8px like Next - .mu-nav a colour var(--c-info) (Next uses --c-info, mock had --c-ink-2) - measured at 1600px: credits 1083-1132, CTA 1150-1279, tools 1297-1405 — identical to web-at-transit; nav/CTA/tools positions now match exactly - VERSION 2026.09.27.126
This commit is contained in:
1 parent
b6ccb66ce2
commit
14e7ec524f
4 files changed
+31
-31
No files matched your search
+27
-27
@@ -19,16 +19,16 @@
|
||||
</script>
|
||||
<title>หน้าแรก | Atroute (mockup)</title>
|
||||
<!-- ฟอนต์หลัก K2D: ไฟล์ในโปรเจกต์ (ui/vendor/fonts/) — ทำงานออฟไลน์ได้ -->
|
||||
<link href="./vendor/fonts/k2d.css?v=2026.09.27.124" rel="stylesheet">
|
||||
<link href="./vendor/fonts/k2d.css?v=2026.09.27.126" rel="stylesheet">
|
||||
<!-- ตัวสำรอง (โหลดจาก CDN เมื่อออนไลน์เท่านั้น · ออฟไลน์ถอยไปใช้ system-ui) -->
|
||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&family=Prompt:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<link href="../../frontend-web-transit/web-transit/css/main-theme.css" rel="stylesheet">
|
||||
<link href="./theme.css?v=2026.09.27.124" rel="stylesheet">
|
||||
<link href="./_shared.css?v=2026.09.27.124" rel="stylesheet">
|
||||
<link href="./vendor/leaflet/leaflet.css?v=2026.09.27.124" rel="stylesheet">
|
||||
<link href="./map.css?v=2026.09.27.124" rel="stylesheet">
|
||||
<meta name="app-version" content="2026.09.27.124">
|
||||
<link rel="icon" type="image/png" href="../.image/icons/minibus-512x512.png?v=2026.09.27.124">
|
||||
<link href="./theme.css?v=2026.09.27.126" rel="stylesheet">
|
||||
<link href="./_shared.css?v=2026.09.27.126" rel="stylesheet">
|
||||
<link href="./vendor/leaflet/leaflet.css?v=2026.09.27.126" rel="stylesheet">
|
||||
<link href="./map.css?v=2026.09.27.126" rel="stylesheet">
|
||||
<meta name="app-version" content="2026.09.27.126">
|
||||
<link rel="icon" type="image/png" href="../.image/icons/minibus-512x512.png?v=2026.09.27.126">
|
||||
<style>
|
||||
.mu-card.empty { width: 100%; padding: 16px; text-align: center; color: var(--c-ink-2); background: #fff7fb; border: 1px dashed #f4c7df; }
|
||||
a.mu-card { text-decoration: none; color: inherit; display: block; }
|
||||
@@ -90,13 +90,13 @@
|
||||
.mu-topbar { background: var(--c-surface); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 1100; box-shadow: 0 2px 8px rgba(20,40,90,.04); }
|
||||
.mu-topbar-inner { display: flex; align-items: center; gap: 18px; padding: 14px 28px; }
|
||||
.mu-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
|
||||
.mu-logo-img { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg,#8b5cf6,#ec4899); padding: 4px; transition: transform .15s ease; }
|
||||
.mu-logo-img { width: 44px; height: 44px; border-radius: var(--radius); background: linear-gradient(135deg,#8b5cf6,#ec4899); padding: 4px; transition: transform .15s ease; }
|
||||
.mu-brand:hover .mu-logo-img { transform: scale(1.06); }
|
||||
.mu-brand-title { display: block; margin: 0; font-weight: 800; font-size: 1.05rem; color: var(--c-ink); transition: color .15s ease; }
|
||||
.mu-brand-title { display: block; margin: 0; font-weight: 800; font-size: 1rem; color: var(--c-ink); transition: color .15s ease; }
|
||||
.mu-brand:hover .mu-brand-title { color: var(--c-brand-ink); }
|
||||
.mu-brand-subtitle { display: block; margin: 0; font-size: .72rem; color: var(--c-ink-2); }
|
||||
.mu-nav { margin-left: auto; display: flex; gap: 28px; }
|
||||
.mu-nav a { color: var(--c-ink-2); text-decoration: none; font-size: .95rem; font-weight: 600; padding: 6px 4px; border-bottom: 2px solid transparent; }
|
||||
.mu-nav a { color: var(--c-info); text-decoration: none; font-size: .95rem; font-weight: 600; padding: 6px 4px; border-bottom: 2px solid transparent; }
|
||||
.mu-nav a.active { color: var(--c-danger); border-bottom-color: var(--c-danger); }
|
||||
.mu-nav a:hover { color: var(--c-ink); }
|
||||
.mu-action-btn { background: linear-gradient(135deg,#a855f7,#7c3aed); color:#fff; padding: 10px 22px; border-radius: 999px; text-decoration:none; font-weight: 700; font-size:.85rem; box-shadow: 0 6px 14px rgba(124,58,237,.3); }
|
||||
@@ -320,21 +320,21 @@
|
||||
</script>
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||||
<link rel="apple-touch-icon" href="../.image/icons/minibus-192x192.png?v=2026.09.27.124">
|
||||
<script src="./imageurl.js?v=2026.09.27.124" defer></script>
|
||||
<script src="./pwa.js?v=2026.09.27.124" defer></script>
|
||||
<script src="./i18n.js?v=2026.09.27.124" defer></script>
|
||||
<script src="./theme.js?v=2026.09.27.124" defer></script>
|
||||
<script src="./share.js?v=2026.09.27.124" defer></script>
|
||||
<script src="./analytics.js?v=2026.09.27.124" defer></script>
|
||||
<script src="./popular.js?v=2026.09.27.124" defer></script>
|
||||
<script src="./vendor/leaflet/leaflet.js?v=2026.09.27.124" defer></script>
|
||||
<script src="./map.js?v=2026.09.27.124" defer></script>
|
||||
<script src="./partials/schedules.js?v=2026.09.27.124" defer></script>
|
||||
<script src="./partials/otherStop.js?v=2026.09.27.124" defer></script>
|
||||
<script src="./motion.js?v=2026.09.27.124" defer></script>
|
||||
<script src="./router.js?v=2026.09.27.124" defer></script>
|
||||
<link rel="stylesheet" href="./responsive.css?v=2026.09.27.124">
|
||||
<link rel="apple-touch-icon" href="../.image/icons/minibus-192x192.png?v=2026.09.27.126">
|
||||
<script src="./imageurl.js?v=2026.09.27.126" defer></script>
|
||||
<script src="./pwa.js?v=2026.09.27.126" defer></script>
|
||||
<script src="./i18n.js?v=2026.09.27.126" defer></script>
|
||||
<script src="./theme.js?v=2026.09.27.126" defer></script>
|
||||
<script src="./share.js?v=2026.09.27.126" defer></script>
|
||||
<script src="./analytics.js?v=2026.09.27.126" defer></script>
|
||||
<script src="./popular.js?v=2026.09.27.126" defer></script>
|
||||
<script src="./vendor/leaflet/leaflet.js?v=2026.09.27.126" defer></script>
|
||||
<script src="./map.js?v=2026.09.27.126" defer></script>
|
||||
<script src="./partials/schedules.js?v=2026.09.27.126" defer></script>
|
||||
<script src="./partials/otherStop.js?v=2026.09.27.126" defer></script>
|
||||
<script src="./motion.js?v=2026.09.27.126" defer></script>
|
||||
<script src="./router.js?v=2026.09.27.126" defer></script>
|
||||
<link rel="stylesheet" href="./responsive.css?v=2026.09.27.126">
|
||||
</head>
|
||||
<body class="main-theme-page">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display:none" aria-hidden="true">
|
||||
@@ -428,7 +428,7 @@
|
||||
<header class="mu-topbar">
|
||||
<div class="mu-container mu-topbar-inner">
|
||||
<a class="mu-brand" href="#/" aria-label="Atroute — หน้าแรก" data-i18n-attr="aria-label:aria.brandHome">
|
||||
<img class="mu-logo-img" src="../.image/icons/minibus-512x512.png?v=2026.09.27.124" alt="Atroute logo" width="44" height="44" decoding="async">
|
||||
<img class="mu-logo-img" src="../.image/icons/minibus-512x512.png?v=2026.09.27.126" alt="Atroute logo" width="44" height="44" decoding="async">
|
||||
<span>
|
||||
<span class="mu-brand-title">Atroute</span>
|
||||
<span class="mu-brand-subtitle" data-i18n="brand.subtitle">สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</span>
|
||||
@@ -504,7 +504,7 @@
|
||||
<div class="mu-footer-grid">
|
||||
<div class="mu-footer-brand">
|
||||
<div class="mu-footer-brand-row">
|
||||
<img src="../.image/icons/minibus-512x512.png?v=2026.09.27.124" alt="Atroute">
|
||||
<img src="../.image/icons/minibus-512x512.png?v=2026.09.27.126" alt="Atroute">
|
||||
<div>
|
||||
<strong>Atroute</strong>
|
||||
<span data-i18n="brand.subtitle">สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</span>
|
||||
|
||||
+2
-2
@@ -57,7 +57,7 @@ main.mu-container { padding-top: 24px; padding-bottom: 24px; }
|
||||
.mu-topbar-inner { gap: 8px; padding: 10px 14px; flex-wrap: wrap; }
|
||||
.mu-logo-img { width: 36px; height: 36px; }
|
||||
.mu-brand { gap: 8px; flex-shrink: 0; }
|
||||
.mu-brand-title { font-size: 1.05rem; white-space: nowrap; }
|
||||
.mu-brand-title { font-size: 1rem; white-space: nowrap; }
|
||||
.mu-brand-subtitle { display: none; } /* กันล้น — โผล่กลับ ≥768px */
|
||||
.mu-nav { display: none; } /* ซ่อน nav — ใช้ hamburger แทน */
|
||||
.mu-lang-switch { order: 3; margin-left: auto; padding: 2px; }
|
||||
@@ -197,7 +197,7 @@ main.mu-container { padding-top: 14px; padding-bottom: 14px; }
|
||||
@media (min-width: 640px) {
|
||||
body { font-size: 16px; }
|
||||
.mu-container { padding: 0 28px; }
|
||||
.mu-brand-title { font-size: 1.05rem; }
|
||||
.mu-brand-title { font-size: 1rem; }
|
||||
.mu-topbar-inner { gap: 18px; padding: 14px 28px; flex-wrap: nowrap; }
|
||||
.mu-logo-img { width: 44px; height: 44px; }
|
||||
.mu-nav { order: 0; width: auto; margin-left: auto; justify-content: flex-start; gap: 24px; display: flex; }
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
- ขั้นตอนอัปเดต: ดู AGENTS.md หัวข้อ PWA
|
||||
============================================================ */
|
||||
|
||||
const VERSION = "2026.09.27.124"; // ← bump ทุกครั้งที่แก้ SW เอง
|
||||
const VERSION = "2026.09.27.126"; // ← bump ทุกครั้งที่แก้ SW เอง
|
||||
const CACHE = `at-transit-${VERSION}`;
|
||||
|
||||
const PRECACHE = [
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version": "2026.09.27.124"}
|
||||
{"version": "2026.09.27.126"}
|
||||
Reference in new issue
Block a user