Files
phattaranun.a bc1edb39ef feat: add routes page with filtering and drawer details
- Implemented a new routes page with search and category filtering.
- Added a drawer component to display detailed information about selected routes.
- Created a CSS file for styling the routes page and its components.
- Introduced a Python script to upload seed images to SeaweedFS and generate SQL insert statements for the images table.
2026-07-18 16:51:23 +07:00

190 lines
17 KiB
HTML

<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AT Transit - Routes Preview</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<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 rel="stylesheet" href="assets/styles.css" />
</head>
<body>
<header class="topbar">
<div class="topbar__inner">
<a href="home.html" class="brand">
<img src="assets/logo.svg" alt="AT Transit" width="44" height="44" class="brand__logo" />
<div>
<p class="brand__title">AT Transit</p>
<p class="brand__subtitle">สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</p>
</div>
</a>
<nav class="nav" aria-label="เมนูหลัก"><a href="home.html">หน้าแรก</a><a href="stops.html">ป้ายหยุดรถ</a><a href="routes.html" class="active">รายละเอียดสายรถ</a></nav>
<a href="routes.html" class="cta-pill">เช็กเวลาเดินรถ</a>
</div>
</header>
<main class="page">
<section class="page-hero page-hero--alt">
<div class="page-hero__blob page-hero__blob--a"></div>
<div class="page-hero__blob page-hero__blob--b"></div>
<div class="page-hero__blob page-hero__blob--c"></div>
<div class="page-hero__inner">
<span class="page-hero__badge">🛣️ ROUTE NETWORK</span>
<h1 class="page-hero__title">เส้นทางเดินรถ<span class="page-hero__title-grad">แยกตามประเภท</span></h1>
<p class="page-hero__subtitle">Preview layout ใหม่ของ routes listing โดยแบ่งเส้นทางเป็น 4 หมวดหลักตามประเภทการวิ่ง</p>
<div class="page-hero__stats">
<span class="page-hero__stat"><b>12</b> เส้นทางทั้งหมด</span>
<span class="page-hero__stat"><b>4</b> หมวดที่มีข้อมูล</span>
<span class="page-hero__stat"><b>4</b> หมวดการแสดงผล</span>
</div>
</div>
</section>
<div class="toolbar toolbar--stacked">
<div class="toolbar__search"><span aria-hidden>🔍</span><input placeholder="ค้นหาเลขสาย หรือชื่อเส้นทาง…" disabled /></div>
<div class="toolbar__chips">
<span class="chip-soft chip-soft--mint">หมวดเส้นทางภายใน อบต เทศบาล · 3</span>
<span class="chip-soft chip-soft--sky">หมวดเส้นทางเข้ากรุงเทพฯ · 2</span>
<span class="chip-soft chip-soft--pink">หมวดเส้นทางระหว่างจังหวัด · 4</span>
<span class="chip-soft chip-soft--purple">หมวดเส้นทางภายในจังหวัด · 3</span>
</div>
</div>
<section class="route-category-summary">
<article class="route-category-summary__card route-category-summary__card--mint">
<div class="route-category-summary__eyebrow">LOCAL LOOP</div>
<h2>หมวดเส้นทางภายใน อบต เทศบาล</h2>
<p>รถวิ่งระยะใกล้ในชุมชน เน้นการเชื่อมตลาด หน่วยงานท้องถิ่น และย่านบริการหลัก</p>
<strong>3 เส้นทาง</strong>
</article>
<article class="route-category-summary__card route-category-summary__card--sky">
<div class="route-category-summary__eyebrow">BANGKOK CONNECT</div>
<h2>หมวดเส้นทางเข้ากรุงเทพฯ</h2>
<p>แสดงเฉพาะเส้นทางที่มุ่งหน้าเข้ากรุงเทพฯ เพื่อให้ผู้ใช้งานเลือกเส้นทางเข้าเมืองได้ง่าย</p>
<strong>2 เส้นทาง</strong>
</article>
<article class="route-category-summary__card route-category-summary__card--pink">
<div class="route-category-summary__eyebrow">INTERPROVINCIAL</div>
<h2>หมวดเส้นทางระหว่างจังหวัด</h2>
<p>รวมเส้นทางเชื่อมต่อจังหวัดข้างเคียงและ hub การเดินทางสำคัญ</p>
<strong>4 เส้นทาง</strong>
</article>
<article class="route-category-summary__card route-category-summary__card--purple">
<div class="route-category-summary__eyebrow">IN-PROVINCE</div>
<h2>หมวดเส้นทางภายในจังหวัด</h2>
<p>เหมาะสำหรับการค้นหาเส้นทางที่วิ่งระหว่างอำเภอ ตลาด และชุมชนในจังหวัดเดียวกัน</p>
<strong>3 เส้นทาง</strong>
</article>
</section>
<div class="route-category-list">
<section class="route-category route-category--mint">
<div class="route-category__head">
<div>
<span class="route-category__badge route-category__badge--mint">LOCAL LOOP</span>
<h2 class="route-category__title">หมวดเส้นทางภายใน อบต เทศบาล</h2>
<p class="route-category__desc">รถวิ่งในพื้นที่ชุมชน เน้นการเชื่อมจุดเศรษฐกิจ ตลาดเทศบาล และหน่วยงานท้องถิ่น</p>
</div>
<div class="route-category__stats"><span class="chip-soft chip-soft--mint">3 เส้นทาง</span></div>
</div>
<div class="tile-grid">
<a href="route-detail-101.html" class="tile tile--mint"><div class="tile__badge tile__badge--mint tile__badge--num"><span>A1</span></div><div class="tile__body"><p class="tile__title">ตลาดอ่างทอง → ศาลากลางจังหวัด</p><p class="tile__meta">LOCAL / เทศบาล</p><div class="tile__chips"><span class="chip-soft chip-soft--mint">ภายใน อบต / เทศบาล</span><span class="chip-soft chip-soft--mint">🚌 shuttle</span></div></div><span class="tile__arrow">→</span></a>
<a href="route-detail-101.html" class="tile tile--sky"><div class="tile__badge tile__badge--sky tile__badge--num"><span>A2</span></div><div class="tile__body"><p class="tile__title">ตลาดโพธิ์ทอง → สำนักงานเทศบาล</p><p class="tile__meta">LOCAL / ชุมชน</p><div class="tile__chips"><span class="chip-soft chip-soft--mint">ภายใน อบต / เทศบาล</span><span class="chip-soft chip-soft--mint">🚌 minibus</span></div></div><span class="tile__arrow">→</span></a>
<a href="route-detail-101.html" class="tile tile--purple"><div class="tile__badge tile__badge--purple tile__badge--num"><span>A3</span></div><div class="tile__body"><p class="tile__title">วิเศษชัยชาญ → ตลาดชุมชน</p><p class="tile__meta">LOCAL / เทศบาล</p><div class="tile__chips"><span class="chip-soft chip-soft--mint">ภายใน อบต / เทศบาล</span><span class="chip-soft chip-soft--mint">🚌 songthaew</span></div></div><span class="tile__arrow">→</span></a>
</div>
</section>
<section class="route-category route-category--sky">
<div class="route-category__head">
<div>
<span class="route-category__badge route-category__badge--sky">BANGKOK CONNECT</span>
<h2 class="route-category__title">หมวดเส้นทางเข้ากรุงเทพฯ</h2>
<p class="route-category__desc">แยกกลุ่มชัดเจนสำหรับผู้โดยสารที่ต้องการเดินทางเข้ากรุงเทพฯ หรือเชื่อมต่อสถานีหลัก</p>
</div>
<div class="route-category__stats"><span class="chip-soft chip-soft--sky">2 เส้นทาง</span></div>
</div>
<div class="tile-grid">
<a href="route-detail-101.html" class="tile tile--sky"><div class="tile__badge tile__badge--sky tile__badge--num"><span>902</span></div><div class="tile__body"><p class="tile__title">อ่างทอง → กรุงเทพฯ (ปิ่นเกล้า)</p><p class="tile__meta">BANGKOK</p><div class="tile__chips"><span class="chip-soft chip-soft--sky">เข้ากรุงเทพฯ</span><span class="chip-soft chip-soft--mint">🚌 coach</span></div></div><span class="tile__arrow">→</span></a>
<a href="route-detail-101.html" class="tile tile--pink"><div class="tile__badge tile__badge--pink tile__badge--num"><span>903</span></div><div class="tile__body"><p class="tile__title">อ่างทอง → หมอชิต</p><p class="tile__meta">BANGKOK EXPRESS</p><div class="tile__chips"><span class="chip-soft chip-soft--sky">เข้ากรุงเทพฯ</span><span class="chip-soft chip-soft--mint">🚌 van</span></div></div><span class="tile__arrow">→</span></a>
</div>
</section>
<section class="route-category route-category--pink">
<div class="route-category__head">
<div>
<span class="route-category__badge route-category__badge--pink">INTERPROVINCIAL</span>
<h2 class="route-category__title">หมวดเส้นทางระหว่างจังหวัด</h2>
<p class="route-category__desc">รวมเส้นทางที่เชื่อมหลายจังหวัดและเส้นทางระยะกลางถึงไกล เพื่อให้เทียบตัวเลือกได้ในกลุ่มเดียว</p>
</div>
<div class="route-category__stats"><span class="chip-soft chip-soft--pink">4 เส้นทาง</span></div>
</div>
<div class="tile-grid">
<a href="route-detail-101.html" class="tile tile--pink"><div class="tile__badge tile__badge--pink tile__badge--num"><span>464</span></div><div class="tile__body"><p class="tile__title">สุพรรณบุรี → สระบุรี</p><p class="tile__meta">INTERPROV</p><div class="tile__chips"><span class="chip-soft chip-soft--pink">ระหว่างจังหวัด</span><span class="chip-soft chip-soft--mint">🚌 coach</span></div></div><span class="tile__arrow">→</span></a>
<a href="route-detail-101.html" class="tile tile--amber"><div class="tile__badge tile__badge--amber tile__badge--num"><span>307</span></div><div class="tile__body"><p class="tile__title">อ่างทอง → สิงห์บุรี</p><p class="tile__meta">REGIONAL</p><div class="tile__chips"><span class="chip-soft chip-soft--pink">ระหว่างจังหวัด</span><span class="chip-soft chip-soft--mint">🚌 minibus</span></div></div><span class="tile__arrow">→</span></a>
<a href="route-detail-101.html" class="tile tile--sky"><div class="tile__badge tile__badge--sky tile__badge--num"><span>401</span></div><div class="tile__body"><p class="tile__title">อ่างทอง → ลพบุรี</p><p class="tile__meta">REGIONAL</p><div class="tile__chips"><span class="chip-soft chip-soft--pink">ระหว่างจังหวัด</span><span class="chip-soft chip-soft--mint">🚌 bus</span></div></div><span class="tile__arrow">→</span></a>
<a href="route-detail-101.html" class="tile tile--purple"><div class="tile__badge tile__badge--purple tile__badge--num"><span>511</span></div><div class="tile__body"><p class="tile__title">อ่างทอง → อยุธยา → ปทุมธานี</p><p class="tile__meta">INTERPROV</p><div class="tile__chips"><span class="chip-soft chip-soft--pink">ระหว่างจังหวัด</span><span class="chip-soft chip-soft--mint">🚌 van</span></div></div><span class="tile__arrow">→</span></a>
</div>
</section>
<section class="route-category route-category--purple">
<div class="route-category__head">
<div>
<span class="route-category__badge route-category__badge--purple">IN-PROVINCE</span>
<h2 class="route-category__title">หมวดเส้นทางภายในจังหวัด</h2>
<p class="route-category__desc">รวมเส้นทางที่เชื่อมอำเภอและชุมชนสำคัญภายในจังหวัดเดียวกัน เพื่อให้หาง่ายขึ้นกว่าการรวมทุกเส้นทางไว้ grid เดียว</p>
</div>
<div class="route-category__stats"><span class="chip-soft chip-soft--purple">3 เส้นทาง</span></div>
</div>
<div class="tile-grid">
<a href="route-detail-101.html" class="tile tile--purple"><div class="tile__badge tile__badge--purple tile__badge--num"><span>15</span></div><div class="tile__body"><p class="tile__title">สถานีอ่างทอง → ตลาดโพธิ์ทอง</p><p class="tile__meta">INTRA</p><div class="tile__chips"><span class="chip-soft chip-soft--purple">ภายในจังหวัด</span><span class="chip-soft chip-soft--mint">🚌 van</span></div></div><span class="tile__arrow">→</span></a>
<a href="route-detail-101.html" class="tile tile--mint"><div class="tile__badge tile__badge--mint tile__badge--num"><span>21</span></div><div class="tile__body"><p class="tile__title">แสวงหา → วิเศษชัยชาญ</p><p class="tile__meta">IN_PROVINCE</p><div class="tile__chips"><span class="chip-soft chip-soft--purple">ภายในจังหวัด</span><span class="chip-soft chip-soft--mint">🚌 minibus</span></div></div><span class="tile__arrow">→</span></a>
<a href="route-detail-101.html" class="tile tile--amber"><div class="tile__badge tile__badge--amber tile__badge--num"><span>33</span></div><div class="tile__body"><p class="tile__title">สามโก้ → เมืองอ่างทอง</p><p class="tile__meta">INTRA</p><div class="tile__chips"><span class="chip-soft chip-soft--purple">ภายในจังหวัด</span><span class="chip-soft chip-soft--mint">🚌 bus</span></div></div><span class="tile__arrow">→</span></a>
</div>
</section>
</div>
</main>
<footer class="footer">
<div class="container">
<div class="footer__grid">
<div class="footer__brand">
<div class="footer__brand-row">
<img src="assets/logo.svg" alt="AT Transit" width="48" height="48" />
<div>
<strong>AT Transit</strong>
<span>สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</span>
</div>
</div>
<p>ศูนย์รวมข้อมูลตารางเดินรถ จุดจอด และเส้นทางในจังหวัดอ่างทองและจังหวัดใกล้เคียง พร้อม mock data สำหรับ preview งานออกแบบหน้าเว็บแบบ static HTML</p>
</div>
<div class="footer__col">
<h4>เมนู</h4>
<ul>
<li><a href="home.html">หน้าแรก</a></li>
<li><a href="stops.html">ค้นหาป้ายหยุดรถ</a></li>
<li><a href="routes.html">รายละเอียดสายรถ</a></li>
</ul>
</div>
<div class="footer__col">
<h4>หน้าตัวอย่าง</h4>
<ul>
<li><a href="route-detail-101.html">Route detail /routes/[routeId]</a></li>
<li><a href="stop-detail-at001.html">Stop detail /stops/details</a></li>
<li><a href="route-expanded.html">Expanded route redirect</a></li>
</ul>
</div>
<div class="footer__col footer__contact">
<h4>หมายเหตุ</h4>
<div class="row"><span>🧪 ใช้ mock data เพื่อ preview layout</span></div>
<div class="row"><span>🗂️ แยกเป็นไฟล์ HTML เปิดได้ทันที</span></div>
<div class="row"><span>🎨 อิง class/style จาก frontend จริง</span></div>
<div class="row"><a href="index.html">📋 กลับหน้า showcase</a></div>
</div>
</div>
<div class="footer__bottom"><p>© 2026 AT Transit <span class="pill">static preview bundle</span></p></div>
</div>
</footer>
</body>
</html>