Files
web-at-transit-mock/ui/partials/busDetail.html
T

234 lines
12 KiB
HTML

<style>
/* ============================================================
busDetail (#/routes, #/routes/:id) — หน้ารายละเอียดสายรถ
รถประจำสาย + ติดต่อผู้ประกอบการ รวมอยู่ในการ์ดเดียว (ขึ้นก่อน)
============================================================ */
.mu-page { padding: 20px 0 48px; }
/* --- header --- */
.mu-breadcrumb { color: #6f7b95; font-size: .88rem; margin: 0 0 12px; }
.mu-breadcrumb a { color: #7a4cc0; text-decoration: none; font-weight: 600; }
.mu-page-title {
display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
margin: 0 0 16px; font-size: 1.6rem; color: #1f2a44; font-weight: 800; line-height: 1.25;
}
.mu-route-chip {
display: inline-flex; align-items: center; justify-content: center;
min-width: 54px; height: 54px; padding: 0 16px; border-radius: 14px;
background: linear-gradient(135deg, #7a4cc0, #b07ce0); color: #fff;
font-weight: 800; font-size: 1.35rem; flex: none;
box-shadow: 0 6px 14px rgba(122, 76, 192, .25);
}
.mu-toolbar {
display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
background: #fff; border: 1px solid #e7e2f6; border-radius: 14px;
padding: 12px; margin-bottom: 22px;
box-shadow: 0 8px 20px rgba(63, 43, 94, .06);
}
.mu-toolbar select {
flex: 1; min-width: 180px; min-height: 46px;
border: 1px solid #dfe6f1; background: linear-gradient(180deg, #fff, #f8fbff);
border-radius: 10px; padding: 0 12px; font-family: inherit; font-size: .95rem; color: #1f2a44;
}
/* --- รถประจำสาย + ติดต่อ (การ์ดเดียว ขึ้นก่อน) --- */
.mu-vehicle-card {
background: #fff;
border: 1px solid #e7e2f6;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 4px 14px rgba(20, 40, 90, .06);
display: grid;
grid-template-columns: 1.3fr 1fr;
margin-bottom: 26px;
}
.mu-vehicle-card > img {
grid-column: 1; width: 100%; height: 100%; min-height: 240px;
object-fit: cover; display: block;
}
.mu-vehicle-card > .meta {
grid-column: 2; padding: 24px;
display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.mu-vehicle-card .meta .label {
margin: 0; font-size: .78rem; font-weight: 700; color: #7a4cc0;
text-transform: uppercase; letter-spacing: .05em;
}
.mu-vehicle-card .meta h2 { margin: 0; font-size: 1.25rem; color: #1f2a44; }
.mu-vehicle-card .meta p { margin: 0; color: #6f7b95; font-size: .95rem; line-height: 1.6; }
/* ติดต่อผู้ประกอบการ — อยู่ใน footer ของการ์ด */
.mu-vehicle-contact {
grid-column: 1 / -1;
display: flex; flex-wrap: wrap; gap: 10px;
padding: 14px 18px;
border-top: 1px solid #f0ecf8;
background: #faf9ff;
}
.mu-contact-item {
flex: 1; min-width: 220px;
display: flex; align-items: center; gap: 12px;
padding: 12px 14px;
border-radius: 12px;
background: #fff; border: 1px solid #eee;
text-decoration: none; color: inherit;
transition: transform .15s ease, box-shadow .15s ease;
}
a.mu-contact-item:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20,40,90,.08); }
.mu-contact-item .ic-wrap {
width: 42px; height: 42px; flex: none;
display: flex; align-items: center; justify-content: center;
border-radius: 12px;
background: linear-gradient(135deg, #7a4cc0, #b07ce0); color: #fff;
}
.mu-contact-item .ic-wrap.tone-green { background: linear-gradient(135deg, #1f8765, #51c39c); }
.mu-contact-item .ic-wrap svg { width: 22px; height: 22px; }
.mu-contact-item .txt { flex: 1; min-width: 0; }
.mu-contact-item .txt strong { display: block; color: #1f2a44; font-size: .98rem; margin-bottom: 2px; }
.mu-contact-item .txt span { display: block; color: #6f7b95; font-size: .86rem; }
.mu-qr-img {
width: 72px; height: 72px; flex: none;
object-fit: contain; background: #fff;
border-radius: 10px; padding: 4px; border: 1px solid #eee;
}
/* --- แผนที่ --- */
.mu-map-card {
background: #fff;
border: 1px solid #e7e2f6;
border-radius: 16px;
padding: 16px;
box-shadow: 0 4px 14px rgba(20, 40, 90, .06);
}
.mu-map-card svg { width: 100%; height: auto; display: block; }
.mu-summary-grid { gap: 14px; }
@media (max-width: 640px) {
.mu-page-title { font-size: 1.4rem; }
.mu-summary-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mu-vehicle-card { grid-template-columns: 1fr; }
.mu-vehicle-card > img { grid-column: 1; min-height: 200px; }
.mu-vehicle-card > .meta { grid-column: 1; padding: 18px; }
.mu-vehicle-contact { grid-column: 1; flex-direction: column; }
.mu-contact-item { min-width: 0; }
}
</style>
<main class="mu-page">
<div class="mu-container">
<p class="mu-breadcrumb"><a href="#/">หน้าแรก</a>/ <span data-i18n="nav.routes">รายละเอียดสายรถ</span></p>
<h1 class="mu-page-title"><span class="mu-route-chip">101</span> อ่างทอง - ป่าโมก - อยุธยา</h1>
<form class="mu-toolbar" onsubmit="return false">
<select aria-label="เลือกสายรถ">
<option>สาย 101 - อ่างทอง-ป่าโมก-อยุธยา</option>
<option>สาย 902 - กรุงเทพ-อ่างทอง สายเอเซีย</option>
<option>สาย 15 - กรุงเทพ-อ่างทอง สายใน</option>
<option>สาย 951 - กรุงเทพ-วิเศษ-สุพรรณ</option>
<option>สาย 952 - กรุงเทพ-วิเศษชัยชาญ</option>
<option>สาย 954 - กรุงเทพ-ท่าช้าง</option>
<option>สาย 8 - กรุงเทพ-สรรคบุรี-ชัยนาท</option>
<option>สาย 464 - สุพรรณ-อ่างทอง-สระบุรี</option>
<option>สาย 641 - อ่างทอง-บ้านแพรก-ลพบุรี</option>
<option>สาย 2194 - หัวเวียง-อยุธยา</option>
<option>สาย 324 - อ่างทอง-วัดพิกุลทอง</option>
<option>สาย 1011 - อ่างทอง-สีบัวทอง</option>
<option>สาย 2231 - อ่างทอง-มหานาม</option>
<option>สาย 999 - บขส.อ่างทอง สายเอเชีย-เหนือ</option>
</select>
<select aria-label="เลือกสถานี">
<option>บขส.อ่างทอง</option>
<option>สถานีขนส่งป่าโมก</option>
<option>จุดขึ้นลงรถสองแถว 101 อยุธยา</option>
<option>ตลาดเจ้าพรหม</option>
</select>
</form>
<!-- ============ รถประจำสาย + ติดต่อผู้ประกอบการ (การ์ดเดียว) ============ -->
<section class="mu-vehicle-card" aria-label="รถประจำสายและติดต่อผู้ประกอบการ">
<img src="../.image/routes/101/car.jpeg" alt="รถของสาย 101" loading="lazy" decoding="async">
<div class="meta">
<p class="label" data-i18n="route.vehicle">รถบัสประจำสาย</p>
<h2>รถปรับอากาศ · ไม่สูบบุหรี่</h2>
<p>40 ที่นั่ง · ให้บริการตลอดเส้นทางอ่างทอง–ป่าโมก–อยุธยา พร้อมที่วางสัมภาระและแอร์เย็นฉ่ำ</p>
</div>
<div class="mu-vehicle-contact">
<div class="mu-contact-item">
<span class="ic-wrap tone-green"><svg class="ic" aria-hidden="true"><use href="#ic-message-circle"/></svg></span>
<div class="txt">
<strong>LINE Official</strong>
<span>ติดตามข่าวสาย 101 · เลื่อนเวลา · ไม่มีรถ</span>
</div>
<img class="mu-qr-img" src="../.image/qrcode/101.png" alt="LINE QR สาย 101" loading="lazy" decoding="async">
</div>
<a class="mu-contact-item" href="tel:+66649639025">
<span class="ic-wrap"><svg class="ic" aria-hidden="true"><use href="#ic-phone"/></svg></span>
<div class="txt">
<strong>โทรสอบถาม</strong>
<span>+66 64 963 9025</span>
</div>
</a>
</div>
</section>
<!-- ============ สรุปเส้นทาง ============ -->
<section class="mu-summary" aria-label="สรุปเส้นทาง">
<div class="mu-container">
<div class="mu-summary-grid">
<div class="mu-stat tag-purple"><h3>4</h3><p>จุดจอดหลัก</p></div>
<div class="mu-stat tag-sky"><h3>2</h3><p>จังหวัดที่ผ่าน</p></div>
<div class="mu-stat tag-mint"><h3>15</h3><p>รอบต่อวัน</p></div>
<div class="mu-stat tag-pink"><h3>09:10</h3><p>รอบถัดไป</p></div>
</div>
</div>
</section>
<!-- ============ แผนที่เส้นทาง ============ -->
<section class="mu-zone" aria-label="แผนที่เส้นทาง">
<div class="mu-zone-head">
<span class="mu-zone-tag tag-sky" data-i18n="route.mapTitle">เส้นทางเดินรถ</span>
<p class="mu-zone-desc">สาย 101 · บขส.อ่างทอง → ตลาดเจ้าพรหม</p>
</div>
<div class="mu-map-card">
<svg viewBox="0 0 400 190" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="แผนที่เส้นทางสาย 101">
<defs>
<linearGradient id="mapBg" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#f0ebff"/>
<stop offset="100%" stop-color="#eef6ff"/>
</linearGradient>
</defs>
<rect width="400" height="190" fill="url(#mapBg)" rx="12"/>
<path d="M 60 110 C 130 40 200 160 340 80" stroke="#d8c7f8" stroke-width="9" fill="none" stroke-linecap="round" opacity=".35"/>
<path d="M 60 110 C 130 40 200 160 340 80" stroke="#7a4cc0" stroke-width="4" fill="none" stroke-linecap="round"/>
<g>
<circle cx="60" cy="110" r="16" fill="#7a4cc0"/>
<circle cx="60" cy="110" r="10" fill="#fff"/>
<text x="60" y="145" text-anchor="middle" font-size="12" fill="#1f2a44" font-weight="700">บขส.อ่างทอง</text>
<text x="60" y="160" text-anchor="middle" font-size="10" fill="#6f7b95">ต้นทาง</text>
</g>
<g>
<circle cx="170" cy="70" r="16" fill="#3071b8"/>
<circle cx="170" cy="70" r="10" fill="#fff"/>
<text x="170" y="45" text-anchor="middle" font-size="12" fill="#1f2a44" font-weight="700">สถานีป่าโมก</text>
<text x="170" y="30" text-anchor="middle" font-size="10" fill="#6f7b95">จุดเปลี่ยน</text>
</g>
<g>
<circle cx="270" cy="130" r="16" fill="#1f8765"/>
<circle cx="270" cy="130" r="10" fill="#fff"/>
<text x="270" y="165" text-anchor="middle" font-size="12" fill="#1f2a44" font-weight="700">จุดขึ้นลงรถสองแถว</text>
<text x="270" y="180" text-anchor="middle" font-size="10" fill="#6f7b95">ผ่านทาง</text>
</g>
<g>
<circle cx="340" cy="80" r="16" fill="#bb3a78"/>
<circle cx="340" cy="80" r="10" fill="#fff"/>
<text x="340" y="55" text-anchor="middle" font-size="12" fill="#1f2a44" font-weight="700">ตลาดเจ้าพรหม</text>
<text x="340" y="40" text-anchor="middle" font-size="10" fill="#6f7b95">ปลายทาง</text>
</g>
</svg>
</div>
</section>
</div>
</main>