Compare commits

..
4 Commits
Author SHA1 Message Date
Bkk1234 9b8f1597db sync with web-at-transit: type scale, radius, hint colour, i18n
Pulled the newer values from the Next port where it had already been aligned
with DESIGN.md:
- .mu-search-tab font-size .88 -> .85rem
- .mu-btn border-radius 12px -> 8px (DESIGN allows 4/8/999 only)
- .mu-btn.ghost colour #5b3b71 -> #7a4cc0 (brand)
- .mu-search-hint colour #6f7b95 -> #5f6b83 (AA contrast) and .82 -> .85rem
- locales: share.label now 'แชร์หน้านี้' / 'Share this page', stops.nearHint
  matches the longer English copy
2026-10-24 00:53:09 +07:00
Bkk1234 0132c791ae stops: white search panel, drop the search button, purple reset 2026-10-24 00:46:30 +07:00
Bkk1234 d80c59de07 stops: white hero panel with a dark border 2026-10-24 00:43:48 +07:00
Bkk1234 aeb51c2ebd stops: make [hidden] actually hide the stop list
.mu-stop-grid sets display:grid, which overrides the hidden attribute, so the
list stayed visible on the near-me tab even though the code set hidden.
Same class of bug as .mu-search-mode, which now has an explicit [hidden] rule
in both repos.
2026-10-24 00:42:02 +07:00
6 changed files with 19 additions and 18 deletions

No files matched your search

+2 -2
View File
@@ -448,7 +448,7 @@ body:has(.mu-site-footer) .mu-footer { display: none; }
gap: 6px;
min-height: 44px;
padding: 10px 18px;
border-radius: 12px;
border-radius: 8px;
font-family: inherit;
font-weight: 700;
font-size: .85rem;
@@ -468,7 +468,7 @@ body:has(.mu-site-footer) .mu-footer { display: none; }
.mu-btn.ghost {
background: #fff;
border-color: #e7e2f6;
color: #5b3b71;
color: #7a4cc0;
box-shadow: 0 2px 8px rgba(63, 43, 94, .05);
}
.mu-btn.ghost:hover { border-color: #d8c9f2; background: #faf7ff; }
+5 -5
View File
@@ -12,8 +12,8 @@
<link href="./_shared.css" rel="stylesheet">
<link href="./vendor/leaflet/leaflet.css" rel="stylesheet">
<link href="./map.css" rel="stylesheet">
<meta name="app-version" content="2026.09.27.98">
<link rel="icon" type="image/png" href="../.image/icons/minibus-512x512.png?v=2026.09.27.98">
<meta name="app-version" content="2026.09.27.103">
<link rel="icon" type="image/png" href="../.image/icons/minibus-512x512.png?v=2026.09.27.103">
<style>
.mu-card.empty { width: 100%; padding: 16px; text-align: center; color: #6f7b95; background: #fff7fb; border: 1px dashed #f4c7df; }
a.mu-card { text-decoration: none; color: inherit; display: block; }
@@ -339,7 +339,7 @@
<meta name="theme-color" content="#7a4cc0">
<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.98">
<link rel="apple-touch-icon" href="../.image/icons/minibus-192x192.png?v=2026.09.27.103">
<script src="./imageurl.js" defer></script>
<script src="./pwa.js" defer></script>
<script src="./i18n.js" defer></script>
@@ -444,7 +444,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.98" alt="Atroute logo" width="44" height="44" decoding="async">
<img class="mu-logo-img" src="../.image/icons/minibus-512x512.png?v=2026.09.27.103" 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>
@@ -487,7 +487,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.98" alt="Atroute">
<img src="../.image/icons/minibus-512x512.png?v=2026.09.27.103" alt="Atroute">
<div>
<strong>Atroute</strong>
<span data-i18n="brand.subtitle">สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</span>
+2 -2
View File
@@ -89,7 +89,7 @@
"home.lead": "Browse routes, find stops, and preview a route right from this page",
"home.chooseProvince": "Select Province",
"home.chooseStation": "Select Terminal",
"share.label": "Share short link",
"share.label": "Share this page",
"share.copied": "Link copied",
"share.short": "Short link",
"share.line": "Share on LINE",
@@ -133,7 +133,7 @@
"stops.modeCode": "Search by stop code",
"stops.modeNear": "Near me",
"stops.nearCta": "Use my location",
"stops.nearHint": "We ask your device for a location, then rank stops by real distance.",
"stops.nearHint": "We ask your device for a location, then rank stops by real distance from their coordinates.",
"stops.modePlace": "Search by place name",
"stops.codePh": "3+000",
"stops.codeHint": "Type 4 digits and the + sign is added automatically (e.g. 3000 → 3+000)",
+1 -1
View File
@@ -89,7 +89,7 @@
"home.lead": "ดูสายรถ, ค้นหาป้าย และเปิดตัวอย่างเส้นทางได้ทันทีจากหน้าแรก",
"home.chooseProvince": "เลือกจังหวัด",
"home.chooseStation": "เลือกสถานีขนส่งผู้โดยสาร",
"share.label": "แชร์ลิงก์สั้น",
"share.label": "แชร์หน้านี้",
"share.copied": "คัดลอกลิงก์แล้ว",
"share.short": "ลิงก์สั้น",
"share.line": "แชร์ผ่าน LINE",
+8 -7
View File
@@ -5,8 +5,8 @@
}
.mu-hero-panel {
background: linear-gradient(135deg, #ffffff 0%, #f7f2ff 60%, #efe6ff 100%);
border: 1px solid #e7e0f6;
background: #ffffff;
border: 1px solid #1f2a44;
border-radius: 8px;
padding: 18px;
margin-bottom: 16px;
@@ -53,7 +53,7 @@
/* ===== Search toolbar: 2 โหมด ===== */
.mu-toolbar {
background: linear-gradient(135deg, #f0e7fc, #e6d8f8);
background: #ffffff;
border: 1px solid #d9c9f2;
border-radius: 8px;
padding: 14px;
@@ -71,7 +71,7 @@
}
.mu-search-tab {
font-family: inherit;
font-size: .88rem;
font-size: .85rem;
font-weight: 700;
padding: 10px 18px;
border: none;
@@ -179,7 +179,7 @@
color: #6d28d9;
font-variant-numeric: tabular-nums;
}
.mu-search-hint { margin: 8px 0 0; font-size: .82rem; color: #6f7b95; }
.mu-search-hint { margin: 8px 0 0; font-size: .85rem; color: #5f6b83; }
/* numpad — โชว์เฉพาะจอเล็ก */
.mu-numpad { display: none; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; max-width: 320px; }
@@ -248,6 +248,7 @@
.mu-toolbar-count b { color: #7a4cc0; font-variant-numeric: tabular-nums; }
/* ===== การ์ดป้าย ===== */
.mu-stop-grid[hidden] { display: none; }
.mu-stop-grid {
display:grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
@@ -444,8 +445,8 @@
</div>
<div class="mu-toolbar-actions">
<button type="button" class="mu-btn primary" id="stops-search-btn"><span data-i18n="common.search">ค้นหา</span></button>
<button type="button" class="mu-btn ghost" id="stops-reset-btn"><span data-i18n="stops.reset">ล้างค่า</span></button>
<!-- การกรองทำงานทันทีขณะพิมพ์ — ไม่ต้องมีปุ่มค้นหา -->
<button type="button" class="mu-btn primary" id="stops-reset-btn"><span data-i18n="stops.reset">ล้างค่า</span></button>
<a class="mu-btn ghost" href="#/"><span data-i18n="common.back">ย้อนกลับ</span></a>
</div>
+1 -1
View File
@@ -13,7 +13,7 @@
- ขั้นตอนอัปเดต: ดู AGENTS.md หัวข้อ PWA
============================================================ */
const VERSION = "2026.09.27.98"; // ← bump ทุกครั้งที่แก้ SW เอง
const VERSION = "2026.09.27.103"; // ← bump ทุกครั้งที่แก้ SW เอง
const CACHE = `at-transit-${VERSION}`;
const PRECACHE = [