Add initial HTML structure for AT Transit homepage and hero section

- Created index_backup.html with complete layout and styling for the homepage.
- Added home.html partial for the hero section, including province and station selectors.
- Implemented responsive design elements and navigation for bus routes.
- Included sponsor section with partner logos in a marquee format.
This commit is contained in:
phattaranun.a committed 2026-08-22 19:27:45 +07:00
1 parent 7bf06e6f88
commit 413e280e9a
4 files changed
+947 -222

No files matched your search

+45 -18
View File
@@ -6,7 +6,7 @@
<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="./_shared.css" rel="stylesheet">
<link rel="icon" type="image/png" href="../images/icons/minibus-512x512.png">
<link rel="icon" type="image/png" href="../resource/images/icons/minibus-512x512.png">
<style>
:root {
--soft-purple: #7a4cc0;
@@ -126,7 +126,6 @@
}
/* === Modern image polish === */
.mu-logo-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.mu-route-hero {
position: relative;
border-radius: 22px;
@@ -173,13 +172,41 @@
.mu-qr-box .txt strong { display: block; color: #2b2f42; font-size: .95rem; }
.mu-qr-box .txt span { display: block; color: #6f7b95; font-size: .82rem; margin-top: 2px; }
.mu-qr-box .txt .line-tag { display: inline-block; margin-top: 6px; background: #06c755; color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
/* ===== Shared component styles (originally in main-theme.css) ===== */
.mu-page { padding: 28px 0 48px; }
.mu-breadcrumb { color: #6f7b95; font-size: .85rem; margin: 0 0 10px; }
.mu-breadcrumb a { color: #7a4cc0; text-decoration: none; font-weight: 600; }
.mu-breadcrumb a:hover { text-decoration: underline; }
.mu-page-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; font-size: 1.55rem; color: #1f2a44; font-weight: 800; line-height: 1.2; }
.mu-route-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 12px; background: linear-gradient(135deg, #7a4cc0, #8b5cf6); color: #fff; font-weight: 800; font-size: 1.15rem; 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; box-shadow: 0 8px 20px rgba(63, 43, 94, .06); margin: 12px 0 18px; }
.mu-toolbar select { border: 1px solid #dfe6f1; background: linear-gradient(180deg, #fff, #f8fbff); border-radius: 10px; min-height: 42px; padding: 0 12px; font-family: inherit; color: #1f2a44; }
.mu-back-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #7a4cc0; font-weight: 700; text-decoration: none; font-size: .9rem; }
.mu-back-btn:hover { text-decoration: underline; }
.mu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: .85rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.mu-btn.primary { background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff; box-shadow: 0 8px 18px rgba(124, 58, 237, .25); }
.mu-btn.ghost { background: #fff; border-color: #e7e2f6; color: #5b3b71; box-shadow: 0 2px 8px rgba(63, 43, 94, .05); }
.mu-btn.ghost:hover { border-color: #d8c9f2; }
.mu-list { list-style: none; margin: 0; padding: 0; }
.mu-route-type-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #ede9fe; color: #6d28d9; white-space: nowrap; }
.mu-stop-expander summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; }
.mu-stop-summary-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mu-stop-summary-main strong { color: #1f2a44; font-size: .95rem; }
.mu-stop-summary-meta { color: #6f7b95; font-size: .78rem; }
.mu-stop-summary-rail { margin-left: auto; flex: none; }
.mu-stop-chevron { color: #8b5cf6; font-size: 1rem; }
.mu-stop-expander-body { padding: 0 16px 16px; }
.mu-time-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.mu-time-chip { padding: 6px 12px; border-radius: 10px; background: #f1f4fb; color: #2b2f42; font-weight: 700; font-size: .85rem; border: 1px solid #e6eaf3; font-variant-numeric: tabular-nums; }
.mu-time-chip.next { background: linear-gradient(135deg, #7a4cc0, #8b5cf6); color: #fff; border-color: transparent; box-shadow: 0 4px 10px rgba(122, 76, 192, .25); }
</style>
</head>
<body class="main-theme-page">
<header class="mu-topbar">
<div class="mu-container mu-topbar-inner">
<div class="mu-brand">
<img class="mu-logo-img" src="../images/icons/minibus-512x512.png" alt="AT Transit logo" width="44" height="44" decoding="async">
<img class="mu-logo-img" src="../resource/images/icons/minibus-512x512.png" alt="AT Transit logo" width="44" height="44" decoding="async">
<div>
<p class="mu-brand-title">AT Transit</p>
<p class="mu-brand-subtitle">สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</p>
@@ -200,7 +227,7 @@
<h1 class="mu-page-title"><span class="mu-route-chip">101</span> อ่างทอง - ป่าโมก - อยุธยา</h1>
<section class="mu-route-hero" aria-label="ภาพรวมของสาย">
<img class="bg" src="../images/routes/101/hero.jpeg" alt="ภาพบรรยากาศริมทางของสาย 101" fetchpriority="high" decoding="async">
<img class="bg" src="../resource/images/routes/101/hero.jpeg" alt="ภาพบรรยากาศริมทางของสาย 101" fetchpriority="high" decoding="async">
<div class="overlay">
<span class="badge">🚌 สายระหว่างจังหวัด · 4 จุดจอดหลัก</span>
<h2>เส้นทางสาย 101</h2>
@@ -389,7 +416,7 @@
<span>🌐 ยังไม่ระบุเว็บไซต์</span>
</div>
<div class="mu-qr-box">
<img src="../images/qrcode/101.png" alt="LINE QR สาย 101" loading="lazy" decoding="async">
<img src="../resource/images/qrcode/101.png" alt="LINE QR สาย 101" loading="lazy" decoding="async">
<div class="txt">
<strong>ติดตามข่าวสาย 101</strong>
<span>สแกน QR เพื่อรับข่าวสารถัด · เลื่อนเวลา · ไม่มีรถ</span>
@@ -397,7 +424,7 @@
</div>
</div>
<div class="mu-vehicle-card">
<img src="../images/routes/101/car.jpeg" alt="รถของสาย 101" loading="lazy" decoding="async">
<img src="../resource/images/routes/101/car.jpeg" alt="รถของสาย 101" loading="lazy" decoding="async">
<div class="meta">
<h3>รถบัสประจำสาย</h3>
<p>รถปรับอากาศ · ไม่สูบบุหรี่ · 40 ที่นั่ง</p>
@@ -455,17 +482,17 @@
<h3>🚌 รูปรถประจำเส้นทางในเครือข่าย</h3>
<p class="sub">ภาพรถที่ให้บริการบนเส้นทางต่าง ๆ ของจังหวัดอ่างทอง</p>
<div class="mu-photo-strip">
<figure><img src="../images/routes/101/hero.jpeg" alt="สาย 101 อ่างทอง-อยุธยา" loading="lazy"><figcaption>101 · อ่างทอง-อยุธยา</figcaption></figure>
<figure><img src="../images/routes/902/hero.jpg" alt="สาย 902 กรุงเทพ-อ่างทอง สายเอเซีย" loading="lazy"><figcaption>902 · สายเอเซีย</figcaption></figure>
<figure><img src="../images/routes/15/hero.jpg" alt="สาย 15 สายใน" loading="lazy"><figcaption>15 · สายใน</figcaption></figure>
<figure><img src="../images/routes/951/car.jpg" alt="สาย 951 กรุงเทพ-วิเศษ-สุพรรณ" loading="lazy"><figcaption>951 · กรุงเทพ-วิเศษ</figcaption></figure>
<figure><img src="../images/routes/952/hero.webp" alt="สาย 952 กรุงเทพ-วิเศษชัยชาญ" loading="lazy"><figcaption>952 · วิเศษชัยชาญ</figcaption></figure>
<figure><img src="../images/routes/464/car.jpeg" alt="สาย 464 สุพรรณ-อ่างทอง-สระบุรี" loading="lazy"><figcaption>464 · สุพรรณ-สระบุรี</figcaption></figure>
<figure><img src="../images/routes/641/car.jpeg" alt="สาย 641 อ่างทอง-บ้านแพรก-ลพบุรี" loading="lazy"><figcaption>641 · ลพบุรี</figcaption></figure>
<figure><img src="../images/routes/2194/car.jpg" alt="สาย 2194 หัวเวียง-อยุธยา" loading="lazy"><figcaption>2194 · หัวเวียง</figcaption></figure>
<figure><img src="../images/routes/324/car.jpg" alt="สาย 324 อ่างทอง-วัดพิกุลทอง" loading="lazy"><figcaption>324 · วัดพิกุลทอง</figcaption></figure>
<figure><img src="../images/routes/1011/car.jpeg" alt="สาย 1011 อ่างทอง-สีบัวทอง" loading="lazy"><figcaption>1011 · สีบัวทอง</figcaption></figure>
<figure><img src="../images/routes/2231/car.jpg" alt="สาย 2231 อ่างทอง-มหานาม" loading="lazy"><figcaption>2231 · มหานาม</figcaption></figure>
<figure><img src="../resource/images/routes/101/hero.jpeg" alt="สาย 101 อ่างทอง-อยุธยา" loading="lazy"><figcaption>101 · อ่างทอง-อยุธยา</figcaption></figure>
<figure><img src="../resource/images/routes/902/hero.jpg" alt="สาย 902 กรุงเทพ-อ่างทอง สายเอเซีย" loading="lazy"><figcaption>902 · สายเอเซีย</figcaption></figure>
<figure><img src="../resource/images/routes/15/hero.jpg" alt="สาย 15 สายใน" loading="lazy"><figcaption>15 · สายใน</figcaption></figure>
<figure><img src="../resource/images/routes/951/car.jpg" alt="สาย 951 กรุงเทพ-วิเศษ-สุพรรณ" loading="lazy"><figcaption>951 · กรุงเทพ-วิเศษ</figcaption></figure>
<figure><img src="../resource/images/routes/952/hero.webp" alt="สาย 952 กรุงเทพ-วิเศษชัยชาญ" loading="lazy"><figcaption>952 · วิเศษชัยชาญ</figcaption></figure>
<figure><img src="../resource/images/routes/464/car.jpeg" alt="สาย 464 สุพรรณ-อ่างทอง-สระบุรี" loading="lazy"><figcaption>464 · สุพรรณ-สระบุรี</figcaption></figure>
<figure><img src="../resource/images/routes/641/car.jpeg" alt="สาย 641 อ่างทอง-บ้านแพรก-ลพบุรี" loading="lazy"><figcaption>641 · ลพบุรี</figcaption></figure>
<figure><img src="../resource/images/routes/2194/car.jpg" alt="สาย 2194 หัวเวียง-อยุธยา" loading="lazy"><figcaption>2194 · หัวเวียง</figcaption></figure>
<figure><img src="../resource/images/routes/324/car.jpg" alt="สาย 324 อ่างทอง-วัดพิกุลทอง" loading="lazy"><figcaption>324 · วัดพิกุลทอง</figcaption></figure>
<figure><img src="../resource/images/routes/1011/car.jpeg" alt="สาย 1011 อ่างทอง-สีบัวทอง" loading="lazy"><figcaption>1011 · สีบัวทอง</figcaption></figure>
<figure><img src="../resource/images/routes/2231/car.jpg" alt="สาย 2231 อ่างทอง-มหานาม" loading="lazy"><figcaption>2231 · มหานาม</figcaption></figure>
</div>
</div>
</div>
@@ -479,7 +506,7 @@
<div class="mu-footer-grid">
<div class="mu-footer-brand">
<div class="mu-footer-brand-row">
<img src="../images/icons/minibus-512x512.png" alt="AT Transit">
<img src="../resource/images/icons/minibus-512x512.png" alt="AT Transit">
<div><strong>AT Transit</strong><span>สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</span></div>
</div>
<p class="about">รวมตารางเดินรถ ผู้ประกอบการ และจุดจอดทุกสายรถที่เชื่อมต่อจังหวัดอ่างทอง</p>