Files
web-at-transit-mock/ui/index.html
T
Bkk1234 cdfd77ffff theme: dark mode + theme tokens (parity with web-at-transit)
- ui/theme.css: token set copied value-for-value from the Next app
  (--c-surface/-ink/-border/-brand/-tint/-glass + radius), light and dark blocks
- ui/theme.js: 3-mode switch (light / dark / auto=prefers-color-scheme) with a
  header dropdown, aria-haspopup/menu, Esc/outside close, live matchMedia listener
- index.html: pre-paint theme script (no flash), theme.css link before _shared.css
- remapped ~290 literal colours in _shared.css/index.html/partials to var(--c-*)
  so both projects render from the same tokens; dark patch block covers the
  remaining decorative gradients
- DESIGN.md: new section 3.2 (theme tokens + where to add colours)
- VERSION 2026.09.27.114
2026-11-04 01:29:37 +07:00

558 lines
35 KiB
HTML

<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<script>
/* ตั้งธีมก่อน paint — ต้องตรงกับ ui/theme.js (light | dark | auto=อุปกรณ์) */
(function () {
try {
var m = localStorage.getItem('at_theme') || 'auto';
var dark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
var r = m === 'auto' ? (dark ? 'dark' : 'light') : m;
var h = document.documentElement;
h.dataset.theme = r;
h.dataset.themeMode = m;
h.style.colorScheme = r;
} catch (e) {}
})();
</script>
<title>หน้าแรก | Atroute (mockup)</title>
<!-- ฟอนต์หลัก K2D: ไฟล์ในโปรเจกต์ (ui/vendor/fonts/) — ทำงานออฟไลน์ได้ -->
<link href="./vendor/fonts/k2d.css?v=2026.09.27.115" 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.115" rel="stylesheet">
<link href="./_shared.css?v=2026.09.27.115" rel="stylesheet">
<link href="./vendor/leaflet/leaflet.css?v=2026.09.27.115" rel="stylesheet">
<link href="./map.css?v=2026.09.27.115" rel="stylesheet">
<meta name="app-version" content="2026.09.27.115">
<link rel="icon" type="image/png" href="../.image/icons/minibus-512x512.png?v=2026.09.27.115">
<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; }
/* Page-specific: hero */
.mu-hero { position: relative; overflow: hidden; }
.mu-hero-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; filter: saturate(1.1); z-index: 0; pointer-events: none; }
.mu-hero-content { position: relative; z-index: 1; }
/* ===== maintheme-style cards: solid gradient block with big centered number ===== */
.mu-card-head {
aspect-ratio: auto;
height: 130px;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);
position: relative;
}
.mu-card-head::after { display: none; }
.mu-card-head .mu-route-number {
position: static;
color: #fff;
font-size: 56px;
font-weight: 900;
text-shadow: 0 4px 12px rgba(0,0,0,.25);
letter-spacing: .02em;
}
/* zone tint — พื้นหลังการ์ดตามหมวดเส้นทาง (ตัวการ์ด = เฉดอ่อน / หัวการ์ด = เฉดสด) */
.mu-zone:has(.tag-sky) { --zone-tint: var(--c-tint-cyan); }
.mu-zone:has(.tag-purple) { --zone-tint: var(--c-tint-purple); }
.mu-zone:has(.tag-pink) { --zone-tint: var(--c-tint-pink); }
.mu-zone:has(.tag-yellow) { --zone-tint: var(--c-tint-amber); }
.mu-zone .mu-card,
.mu-zone .mu-route-info { background: var(--zone-tint, #fff); }
.mu-zone:has(.tag-sky) .mu-card-head { background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); }
.mu-zone:has(.tag-purple) .mu-card-head { background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%); }
.mu-zone:has(.tag-pink) .mu-card-head { background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%); }
.mu-zone:has(.tag-yellow) .mu-card-head { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
/* การ์ดที่ยังไม่มีข้อมูล (is-empty): พื้นเทา + N/A แทนเลขสาย ไม่มีเงาตัวอักษร */
.mu-card.is-empty,
.mu-card.is-empty .mu-route-info { background: var(--c-surface-3); }
.mu-card.is-empty .mu-card-head { background: var(--c-surface-3); }
.mu-card.is-empty .mu-route-number { color: var(--c-ink-2) !important; text-shadow: none !important; font-size: 42px !important; }
.mu-card.is-empty { cursor: default; }
.mu-card.is-empty:hover { transform: none; box-shadow: 0 4px 14px rgba(20,40,90,.06); }
.mu-route-info { padding: 14px 16px 16px; background: var(--c-surface); }
.mu-route-name { margin: 0 0 10px; font-size: .95rem; color: var(--c-ink); font-weight: 700; }
/* ===== maintheme.png look: topbar, hero, zones, grid, summary, footer ===== */
body.main-theme-page { margin: 0; font-family: 'K2D','Noto Sans Thai','Prompt',system-ui,sans-serif; color: var(--c-ink); background: var(--c-bg); }
.mu-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
/* Topbar */
/* z-index 1100 — ต้องสูงกว่า Leaflet (pane 400 · control 800 · .leaflet-top 1000)
ไม่งั้นแผนที่จะบัง nav ตอนเลื่อน */
.mu-topbar { background: var(--c-surface); border-bottom: 1px solid #e9eef7; 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-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: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: .92rem; font-weight: 600; padding: 6px 4px; border-bottom: 2px solid transparent; }
.mu-nav a.active { color: #d6336c; border-bottom-color: #ec4899; }
.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:.88rem; box-shadow: 0 6px 14px rgba(124,58,237,.3); }
/* Hero */
.mu-hero { position: relative; overflow: hidden; padding: 56px 0 64px; background: linear-gradient(180deg, #f0ebff 0%, #ffe8ee 50%, #fff4d6 100%); text-align: center; }
.mu-hero-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; filter: saturate(1.1); z-index: 0; pointer-events: none; }
.mu-blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; z-index: 0; }
.mu-blob.one { width: 220px; height: 220px; background: var(--c-tint-purple); top: -50px; left: 8%; }
.mu-blob.two { width: 260px; height: 260px; background: var(--c-tint-pink); top: 40%; right: 8%; }
.mu-blob.three{ width: 180px; height: 180px; background: var(--c-tint-amber); bottom: -40px; left: 38%; }
.mu-hero-content { position: relative; z-index: 1; }
.mu-badge { display: inline-block; background: var(--c-glass-24); backdrop-filter: blur(6px); color: var(--c-brand-ink); padding: 6px 16px; border-radius: 999px; font-size: .82rem; font-weight: 700; margin-bottom: 18px; box-shadow: 0 4px 10px rgba(124,58,237,.12); }
.mu-hero h1 { margin: 0 0 26px; font-size: 2.2rem; font-weight: 800; line-height: 1.35; color: var(--c-ink); }
.mu-gradient-text { background: linear-gradient(120deg, #d946ef 10%, #a855f7 60%, #6366f1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
/* ===== Route selector: จังหวัด → สถานีขนส่งผู้โดยสาร (cascade) ===== */
.mu-route-selector {
display: flex;
align-items: flex-end;
justify-content: center;
gap: 14px;
flex-wrap: wrap;
max-width: 780px;
margin: 2px auto 0;
}
.mu-select-field { flex: 1 1 250px; min-width: 240px; text-align: left; }
.mu-route-selector.single { max-width: 440px; }
.mu-select-field > label {
display: flex;
align-items: center;
gap: 6px;
margin: 0 0 7px 8px;
font-size: .8rem;
font-weight: 700;
color: var(--c-ink-2);
letter-spacing: .01em;
}
.mu-select-field > label svg { width: 15px; height: 15px; color: #8b5cf6; flex: none; }
.mu-select-box {
position: relative;
display: flex;
align-items: center;
background: var(--c-surface);
border: 1px solid var(--c-border);
border-radius: 14px;
box-shadow: 0 8px 20px rgba(63, 43, 94, .08);
transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.mu-select-box:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(63,43,94,.12); }
.mu-select-box:focus-within { border-color: #c8b4ec; box-shadow: 0 0 0 4px rgba(122,76,192,.14), 0 10px 24px rgba(63,43,94,.10); }
.mu-select-box .mu-select-icon { width: 20px; height: 20px; margin-left: 14px; color: #8b5cf6; flex: none; }
.mu-select-box select {
flex: 1;
min-width: 0;
border: none;
outline: none;
background: transparent;
font-family: inherit;
font-size: .95rem;
font-weight: 600;
color: var(--c-ink);
padding: 14px 12px;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
}
.mu-select-box .mu-select-chevron { width: 18px; height: 18px; margin-right: 14px; color: #8b5cf6; flex: none; pointer-events: none; }
.mu-select-arrow { display: none; align-self: center; color: #c4b5e6; font-weight: 700; font-size: 1.15rem; padding-bottom: 18px; }
.mu-select-hint { margin: 12px 0 0; font-size: .84rem; color: var(--c-ink-2); min-height: 1.25em; }
.mu-select-hint b { color: var(--c-brand-ink); font-weight: 700; }
/* ===== Hero actions ===== */
.mu-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.mu-pill-link {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 11px 20px;
border-radius: 999px;
background: var(--c-surface);
border: 1px solid var(--c-border);
color: var(--c-ink-2);
text-decoration: none;
font-size: .88rem;
font-weight: 700;
box-shadow: 0 6px 16px rgba(63,43,94,.08);
transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mu-pill-link:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(63,43,94,.14); border-color: #d8c9f2; }
.mu-pill-link.primary { background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(124,58,237,.28); }
@media (min-width: 720px) { .mu-select-arrow { display: block; } }
@media (prefers-reduced-motion: reduce) {
.mu-select-box, .mu-pill-link { transition: none; }
}
/* Zones / grid */
main.mu-container { padding-top: 40px; padding-bottom: 40px; }
.mu-zone { margin-bottom: 32px; }
.mu-zone-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 14px; }
.mu-zone-tag { padding: 5px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.mu-zone-tag.tag-sky { background: var(--c-tint-cyan); color: var(--c-info); }
.mu-zone-tag.tag-pink { background: var(--c-tint-pink); color: var(--c-danger); }
.mu-zone-tag.tag-purple { background: var(--c-tint-purple); color: var(--c-brand-ink); }
.mu-zone-tag.tag-yellow { background: var(--c-tint-amber); color: var(--c-warn); }
/* คำอธิบายสีการ์ดตามหมวดเส้นทาง */
.mu-legend { background: var(--c-surface); border: 1px solid #e9eef7; border-radius: 14px; padding: 16px 18px; margin-bottom: 26px; box-shadow: 0 4px 14px rgba(20,40,90,.05); }
.mu-legend-title { margin: 0 0 12px; font-size: .95rem; font-weight: 800; color: var(--c-ink); }
.mu-legend-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 18px; }
.mu-legend-list li { display: flex; align-items: center; gap: 9px; font-size: .86rem; color: var(--c-ink-2); }
.mu-legend-list .sw { width: 26px; height: 16px; border-radius: 4px; flex: none; border: 1px solid rgba(20,40,90,.12); }
.sw-bangkok { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.sw-interprov { background: linear-gradient(135deg, #8b5cf6, #c084fc); }
.sw-inprov { background: linear-gradient(135deg, #ec4899, #f472b6); }
.sw-municipal { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.sw-empty { background: var(--c-surface-3); }
.mu-legend-note { margin: 12px 0 0; color: var(--c-ink-2); font-size: .82rem; }
.mu-zone-sub, .mu-zone-desc { color: var(--c-ink-2); font-size: .88rem; margin: 0; }
/* ทุกบรรทัดคำอธิบายกินเต็มความกว้างของตัวเอง — ไม่ถูกบีบไปรวมแถวเดียวกับป้ายหัวข้อ
(เดิม flex ไม่มี wrap → ทุกบรรทัดถูกย่อรวมกันหมด ข้อความไทยจึงตัดคำมั่ว) */
.mu-zone-head .mu-zone-desc { flex-basis: 100%; min-width: 0; line-height: 1.65; }
/* แถวข้อมูลแบบ "ชิ้น" (segment) — กฎจริงอยู่ใน responsive.css (#view …) เพราะต้องชนะ
<style> ของ partial ที่ถูก inject ทีหลัง · ที่นี่เก็บเฉพาะสีที่ใช้ร่วมทุกหน้า */
.mu-zone-updated { color: #8a7aa8; }
.mu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
/* Cards */
.mu-card { display: block; text-decoration: none; color: inherit; background: var(--c-surface); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(20,40,90,.06); transition: transform .15s, box-shadow .15s; }
.mu-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,40,90,.1); }
.mu-card-head { aspect-ratio: auto !important; height: 130px !important; display: flex !important; align-items: center; justify-content: center; position: relative; }
.mu-card-head::after { display: none !important; }
.mu-card-head .mu-route-number { position: static !important; color: #fff !important; font-size: 52px !important; font-weight: 900; text-shadow: 0 4px 12px rgba(0,0,0,.2) !important; letter-spacing: .02em; margin: 0; }
.mu-route-info { padding: 14px 14px 14px; }
.mu-route-name { margin: 0 0 10px; font-size: .9rem; color: var(--c-ink); font-weight: 700; }
.mu-card .mu-badge { background: var(--c-tint-green); color: var(--c-ok); padding: 4px 10px; font-size: .78rem; font-weight: 700; box-shadow: none; backdrop-filter: none; }
.mu-next-trip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--c-tint-green); color: var(--c-ok); }
.badge-purple { background: var(--c-tint-purple); color: var(--c-brand-ink); }
.badge-sky { background: var(--c-tint-cyan); color: var(--c-info); }
.badge-pink { background: var(--c-tint-pink); color: var(--c-danger); }
.badge-mint { background: var(--c-tint-green); color: var(--c-ok); }
.badge-gray { background: var(--c-surface-3); color: var(--c-ink-2); }
.mu-route-chip-wrap { display:flex; gap: 8px; }
/* Summary stats */
.mu-summary { padding: 20px 0 40px; }
.mu-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mu-stat { padding: 28px 18px; text-align: center; border-radius: 18px; font-weight: 700; margin: 0; }
.mu-stat h3 { margin: 0 0 4px; font-size: 2rem; color: var(--c-ink); font-weight: 800; }
.mu-stat p { margin: 0; font-size: .82rem; color: var(--c-ink-2); font-weight: 600; }
.mu-stat.tag-pink { background: var(--c-tint-pink); }
.mu-stat.tag-sky { background: var(--c-tint-cyan); }
.mu-stat.tag-purple { background: var(--c-tint-purple); }
.mu-stat.tag-mint { background: var(--c-tint-green); }
/* ===== Footer bottom bar ===== */
.mu-footer-bottom { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
/* ===== Sponsor marquee (between hero and main) ===== */
.mu-sponsor-marquee { padding: 26px 0 6px; background: var(--c-surface); border-bottom: 1px solid #f0f2f8; }
.mu-sponsor-head { text-align: center; margin-bottom: 18px; }
.mu-sponsor-head h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; color: var(--c-ink); letter-spacing: .01em; }
.mu-sponsor-head .lead { margin: 0; color: var(--c-ink-2); font-size: .84rem; }
.mu-marquee {
overflow: hidden;
position: relative;
}
.mu-marquee-track {
display: flex;
width: max-content;
padding: 4px 0 16px;
animation: mu-marquee-scroll 28s linear infinite;
}
.mu-marquee:hover .mu-marquee-track { animation-play-state: paused; }
@keyframes mu-marquee-scroll {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
.mu-marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 16px; }
.mu-marquee-tile { margin-right: 0; }
}
.mu-marquee-tile {
flex: 0 0 auto;
width: 170px;
height: 96px;
margin-right: 16px;
display: flex;
align-items: center;
justify-content: center;
background: var(--c-surface);
border: 1px solid #eef0f6;
border-radius: 14px;
box-shadow: 0 4px 12px rgba(63, 43, 94, .05);
transition: transform .2s ease, box-shadow .2s ease;
}
.mu-marquee-tile img {
max-width: 78%;
max-height: 64%;
object-fit: contain;
filter: grayscale(.2);
transition: filter .2s ease;
}
.mu-marquee-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(63, 43, 94, .12); }
.mu-marquee-tile:hover img { filter: grayscale(0); }
/* ===== SPA central view ===== */
#view { min-height: 60vh; }
</style>
<link rel="manifest" href="./manifest.json">
<meta name="theme-color" content="#7a4cc0">
<!-- ============================================================
สถิติ (Analytics) — ค่าเริ่มต้น: เก็บในเครื่องเท่านั้น (ไม่ส่งที่ไหน)
ต้องการส่งเข้า Umami ของตัวเอง/Umami Cloud → ใส่ค่า 2 ตัวนี้:
endpoint: "https://umami.example.com" (โดเมน Umami ไม่ต้องมี /api/send)
siteId: "xxxxxxxx-xxxx-... (Website ID ใน Umami)"
payload ตรงสเปก Umami /api/send (type=event) · ไม่มีคุกกี้/ไม่มี UA/IP
============================================================ -->
<script>
window.AT_ANALYTICS = { endpoint: '', siteId: '' };
</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.115">
<script src="./imageurl.js?v=2026.09.27.115" defer></script>
<script src="./pwa.js?v=2026.09.27.115" defer></script>
<script src="./i18n.js?v=2026.09.27.115" defer></script>
<script src="./analytics.js?v=2026.09.27.115" defer></script>
<script src="./popular.js?v=2026.09.27.115" defer></script>
<script src="./vendor/leaflet/leaflet.js?v=2026.09.27.115" defer></script>
<script src="./map.js?v=2026.09.27.115" defer></script>
<script src="./partials/schedules.js?v=2026.09.27.115" defer></script>
<script src="./partials/otherStop.js?v=2026.09.27.115" defer></script>
<script src="./motion.js?v=2026.09.27.115" defer></script>
<script src="./router.js?v=2026.09.27.115" defer></script>
<link rel="stylesheet" href="./responsive.css?v=2026.09.27.115">
</head>
<body class="main-theme-page">
<svg xmlns="http://www.w3.org/2000/svg" style="display:none" aria-hidden="true">
<symbol id="ic-alarm-clock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="13" r="8" />
<path d="M12 9v4l2 2" />
<path d="M5 3 2 6" />
<path d="m22 6-3-3" />
<path d="M6.38 18.7 4 21" />
<path d="M17.64 18.67 20 21" />
</symbol>
<symbol id="ic-x" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></symbol>
<symbol id="ic-arrow-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M5 12h14" />
<path d="m12 5 7 7-7 7" />
</symbol>
<symbol id="ic-bus" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M8 6v6" />
<path d="M15 6v6" />
<path d="M2 12h19.6" />
<path d="M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3" />
<circle cx="7" cy="18" r="2" />
<path d="M9 18h5" />
<circle cx="16" cy="18" r="2" />
</symbol>
<symbol id="ic-bus-front" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M4 6 2 7" />
<path d="M10 6h4" />
<path d="m22 7-2-1" />
<rect width="16" height="16" x="4" y="3" rx="2" />
<path d="M4 11h16" />
<path d="M8 15h.01" />
<path d="M16 15h.01" />
<path d="M6 19v2" />
<path d="M18 21v-2" />
</symbol>
<symbol id="ic-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M20 6 9 17l-5-5" />
</symbol>
<symbol id="ic-clock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10" />
<path d="M12 6v6l4 2" />
</symbol>
<symbol id="ic-globe" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10" />
<path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" />
<path d="M2 12h20" />
</symbol>
<symbol id="ic-hourglass" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M5 22h14" />
<path d="M5 2h14" />
<path d="M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22" />
<path d="M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2" />
</symbol>
<symbol id="ic-map" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z" />
<path d="M15 5.764v15" />
<path d="M9 3.236v15" />
</symbol>
<symbol id="ic-map-pin" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0" />
<circle cx="12" cy="10" r="3" />
</symbol>
<symbol id="ic-message-circle" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719" />
</symbol>
<symbol id="ic-phone" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384" />
</symbol>
<symbol id="ic-refresh-cw" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" />
<path d="M21 3v5h-5" />
<path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" />
<path d="M8 16H3v5" />
</symbol>
<symbol id="ic-search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="m21 21-4.34-4.34" />
<circle cx="11" cy="11" r="8" />
</symbol>
<symbol id="ic-triangle-alert" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" />
<path d="M12 9v4" />
<path d="M12 17h.01" />
</symbol>
<symbol id="ic-share-2" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"/><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"/></symbol>
<symbol id="ic-link" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></symbol>
<symbol id="ic-facebook" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"/></symbol>
<symbol id="ic-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></symbol>
</svg>
<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.115" 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>
</span>
</a>
<nav class="mu-nav" aria-label="เมนูหลัก" data-i18n-attr="aria-label:aria.mainMenu">
<a class="active" href="#/" data-i18n="nav.home">หน้าแรก</a>
<a href="#/stops" data-i18n="nav.stops">ป้ายหยุดรถ</a>
<a href="#/routes" data-i18n="nav.routes">รายละเอียดสายรถ</a>
<a href="#/about" data-i18n="nav.about">เกี่ยวกับเรา</a>
<a href="#/blog" data-i18n="nav.blog">บ่นไปเรื่อย</a>
<a href="#/credits" data-i18n="nav.credits">เครดิต</a>
</nav>
<details class="mu-menu" id="topnav">
<summary class="mu-menu-btn" aria-label="เมนูหลัก" data-i18n-attr="aria-label:aria.mainMenu" aria-haspopup="true">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="18" y2="18"/></svg>
</summary>
<div class="mu-menu-panel" role="menu">
<a href="#/" data-i18n="nav.home" role="menuitem">หน้าแรก</a>
<a href="#/stops" data-i18n="nav.stops" role="menuitem">ป้ายหยุดรถ</a>
<a href="#/routes" data-i18n="nav.routes" role="menuitem">รายละเอียดสายรถ</a>
<a href="#/check" data-i18n="cta.check" role="menuitem">เช็กเวลาเดินรถ</a>
<a href="#/about" data-i18n="nav.about" role="menuitem">เกี่ยวกับเรา</a>
<a href="#/blog" data-i18n="nav.blog" role="menuitem">บ่นไปเรื่อย</a>
<a href="#/credits" data-i18n="nav.credits" role="menuitem">เครดิต</a>
</div>
</details>
<div class="mu-lang-switch" id="lang-switch">
<button type="button" class="mu-lang-btn" id="lang-btn" aria-haspopup="menu" aria-expanded="false"
aria-label="ภาษา / Language" data-i18n-attr="aria-label:aria.langSwitch">
<svg class="ic" aria-hidden="true"><use href="#ic-globe"/></svg>
<span id="lang-label">ไทย</span>
<span class="mu-lang-caret" aria-hidden="true"></span>
</button>
<div class="mu-lang-menu" id="lang-menu" role="menu" hidden aria-label="ภาษา / Language">
<button type="button" role="menuitemradio" aria-checked="true" data-i18n-switch="th">
ภาษาไทย <span class="mu-lang-code">TH</span>
</button>
<button type="button" role="menuitemradio" aria-checked="false" data-i18n-switch="en">
English <span class="mu-lang-code">EN</span>
</button>
</div>
</div>
<div class="mu-lang-switch mu-theme-switch" id="theme-switch">
<button type="button" class="mu-lang-btn mu-theme-btn" id="theme-btn" aria-haspopup="menu"
aria-expanded="false" aria-label="ธีม / Theme">
<span id="theme-icon" class="mu-theme-icon" aria-hidden="true"></span>
</button>
<div class="mu-lang-menu" id="theme-menu" role="menu" hidden aria-label="ธีม / Theme">
<button type="button" role="menuitemradio" aria-checked="false" data-theme-mode="light">
<span class="mu-theme-label">สว่าง</span><span class="mu-lang-code">Light</span>
</button>
<button type="button" role="menuitemradio" aria-checked="false" data-theme-mode="dark">
<span class="mu-theme-label">มืด</span><span class="mu-lang-code">Dark</span>
</button>
<button type="button" role="menuitemradio" aria-checked="true" data-theme-mode="auto">
<span class="mu-theme-label">ตามอุปกรณ์</span><span class="mu-lang-code">Device</span>
</button>
</div>
</div>
<a class="mu-action-btn" href="#/check" data-i18n="cta.check">เช็กเวลาเดินรถ</a>
</div>
</header>
<div id="view"></div>
<footer class="mu-site-footer">
<div class="mu-container">
<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.115" alt="Atroute">
<div>
<strong>Atroute</strong>
<span data-i18n="brand.subtitle">สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</span>
</div>
</div>
<p class="about" data-i18n="footer.about">ศูนย์รวมข้อมูลตารางเดินรถ จุดจอด และเส้นทางในจังหวัดอ่างทองและจังหวัดใกล้เคียง อัปเดตข้อมูลล่าสุดจากผู้ประกอบการแต่ละสายโดยตรง</p>
</div>
<div class="mu-footer-col">
<h4 data-i18n="footer.menu">เมนู</h4>
<ul>
<li><a href="#/" data-i18n="nav.home">หน้าแรก</a></li>
<li><a href="#/stops" data-i18n="nav.stops">ค้นหาป้ายหยุดรถ</a></li>
<li><a href="#/routes" data-i18n="nav.routes">รายละเอียดสายรถ</a></li>
<li><a href="#/about" data-i18n="nav.about">เกี่ยวกับเรา</a></li>
<li><a href="#/blog" data-i18n="nav.blog">บ่นไปเรื่อย</a></li>
<li><a href="#/credits" data-i18n="nav.credits">เครดิต</a></li>
<li><a href="#/stats" data-i18n="nav.stats">สถิติ</a></li></ul>
</div>
<div class="mu-footer-col">
<h4 data-i18n="footer.popular">สายที่เปิดดูบ่อย</h4>
<!-- เติมด้วย Popular.mount() — li ข้างในเป็น fallback เมื่อ JS ปิด -->
<ul id="footer-popular-list" data-i18n-skip>
<li><a href="#/routes/101">สาย 101 · อ่างทอง-อยุธยา</a></li>
<li><a href="#/routes/902">สาย 902 · กรุงเทพ-อ่างทอง</a></li>
<li><a href="#/routes/15">สาย 15 · สายใน</a></li>
<li><a href="#/routes/464">สาย 464 · สุพรรณ-สระบุรี</a></li>
</ul>
</div>
<div class="mu-footer-col mu-footer-contact">
<h4 data-i18n="footer.contact">ติดต่อ</h4>
<div class="row"><a href="mailto:[email protected]"><svg class="ic" aria-hidden="true"><use href="#ic-mail"/></svg> [email protected]</a></div>
</div>
</div>
<div class="mu-footer-bottom">
<p>© 2026 Atroute</p>
</div>
</div>
</footer>
<script>
// ปิดเมนู hamburger เมื่อ hash เปลี่ยน หรือคลิกนอกเมนู
(function () {
var menu = document.getElementById('topnav');
function close() { if (menu) menu.removeAttribute('open'); }
window.addEventListener('hashchange', close);
document.addEventListener('click', function (e) {
if (!menu) return;
if (e.target.closest('.mu-menu-panel a')) { close(); return; }
if (!e.target.closest('.mu-menu')) close();
});
})();
</script>
</body>
</html>