Add UI flow diagram image to project

This commit is contained in:
phattaranun.a committed 2026-08-22 17:15:30 +07:00
1 parent 8dc0702969
commit f518c0bbaf
88 files changed
+4889

No files matched your search

Vendored
BIN
View File
Binary file not shown.
View File
Whitespace-only changes.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 286 KiB

BIN
View File
Binary file not shown.
+873
View File
@@ -0,0 +1,873 @@
#!/usr/bin/env python3
"""Horizontal click-flow diagram with row-aware centering and orthogonal arrows."""
import asyncio
import random
from pathlib import Path
from playwright.async_api import async_playwright
from PIL import Image, ImageDraw, ImageFont
from math import atan2, cos, sin
Image.MAX_IMAGE_PIXELS = None
ROOT = Path(__file__).resolve().parent.parent
UI_DIR = ROOT / "flow_ui" / "ui"
SHOTS_DIR = ROOT / "flow_ui" / "screenshots"
OUT_PNG = ROOT / "flow_ui" / "frontend-web-transit-flow.png"
VIEWPORT = {"width": 1600, "height": 1000}
OUTPUT_SCALE = 2
# id, page, selector_or_None, col, row, marker_label, panel_title, span_rows, align_mode
# row: integer row index (0=top). span_rows: if >1, node is centered across N rows.
# align_mode: "top" or "center-row" (centered vertically within its row band when span_rows == 1)
NODES = [
# Row 0 (top) — stop discovery flow
("N1", "index.html", None,
0, 0, "", "index.html", 1, "top"),
("N2a", "index.html", '.mu-nav a[href="./busStop.html"]',
1, 0, "คลิก 'ป้ายหยุดรถ'", "index.html · ป้ายหยุดรถ", 1, "top"),
("N3a", "busStop.html", ".mu-stop-grid li:nth-of-type(1) a.mu-row-link",
2, 0, "คลิกจุดจอด 'บขส.อ่างทอง'", "busStop.html", 1, "center-row"),
("N4a", "stopDetail.html", None,
4, 0, "ถึงรายละเอียดป้าย ?stop=at_main_terminal", "stopDetail.html", 1, "center-row"),
("N4b", "stopDetailExpanded.html", ".mu-stop-expander[open] .mu-route-chip",
5, 0, "ขยายข้อมูลเวลารถในป้าย", "stopDetail.html (expanded)", 1, "center-row"),
# Row 1 (bottom) — route detail flow
("N2b", "index.html", ".mu-zone:nth-of-type(3) .mu-card:nth-of-type(1)",
1, 1, "คลิกหมายเลขสาย 101", "index.html · สาย 101", 1, "top"),
("N3b", "busDetail.html", ".mu-stop-expander:nth-of-type(1) summary",
2, 1, "ขยายจุดจอด 'บขส.อ่างทอง'", "busDetail.html", 1, "center-row"),
("N4c", "busDetailExpanded.html", ".mu-stop-expander[open] .mu-inline-actions .mu-btn.ghost",
3, 1, "คลิก 'ไปหน้ารายละเอียดจุดจอด'", "busDetail.html (expanded)", 1, "center-row"),
]
EDGES = [
("N1", "N2a"), ("N1", "N2b"),
("N2a", "N3a"), ("N2b", "N3b"),
("N3a", "N4a"), ("N3b", "N4c"),
("N4c", "N4a"), ("N4a", "N4b"),
]
PAGES = sorted({n[1] for n in NODES})
STOP_DETAIL_ACTIONS = [
("A1", "stopDetail.html", "N4", "ดูตารางเวลาสายรถ", "busDetail.html", "N3", "?stop=at_main_terminal"),
("A2", "stopDetail.html", "N4", "เปิดรายละเอียดสาย 101", "busDetail.html", "N3", "?route=101&origin=at_main_terminal"),
("A3", "stopDetail.html", "N4", "กลับไปรายการป้าย", "busStop.html", "N2", "กลับหน้า list"),
("A4", "stopDetail.html", "N4", "กลับหน้าแรก (breadcrumb)", "index.html", "N1", "ผ่าน breadcrumb"),
("A5", "stopDetail.html", "N4", "ขยายเวลารถของสาย", "stopDetailExpanded", "N4e", "state transition"),
]
async def capture_all():
SHOTS_DIR.mkdir(parents=True, exist_ok=True)
boxes, sizes = {}, {}
state_page_map = {
"stopDetailExpanded.html": "stopDetail.html",
"busDetailExpanded.html": "busDetail.html",
}
async with async_playwright() as p:
browser = await p.chromium.launch()
ctx = await browser.new_context(viewport=VIEWPORT, device_scale_factor=1)
page = await ctx.new_page()
for name in PAGES:
# Expanded screenshots are captured from their base page with UI state toggled before snapshot.
source_name = state_page_map.get(name, name)
url = (UI_DIR / source_name).resolve().as_uri()
await page.goto(url, wait_until="networkidle")
await page.wait_for_timeout(400)
if name in state_page_map:
await page.evaluate(
"""
() => {
const first = document.querySelector('.mu-stop-expander');
if (first) first.open = true;
}
"""
)
await page.wait_for_timeout(120)
doc = await page.evaluate(
"({w: document.documentElement.scrollWidth, h: document.documentElement.scrollHeight})")
sizes[name] = (doc["w"], doc["h"])
await page.screenshot(path=str(SHOTS_DIR / name.replace(".html", ".png")), full_page=True)
for nid, p_name, sel, *_ in NODES:
if p_name != name or not sel:
continue
el = await page.query_selector(sel)
if not el:
print(f"WARN missing {sel} on {name}")
continue
boxes[nid] = await el.bounding_box()
print(f"captured {name} {sizes[name]}")
await browser.close()
return boxes, sizes
def get_font(size):
for path in [
"/System/Library/Fonts/Supplemental/Arial Unicode.ttf",
"/System/Library/Fonts/Supplemental/Tahoma.ttf",
]:
try:
return ImageFont.truetype(path, size)
except Exception:
pass
return ImageFont.load_default()
def hex_to_rgb(value):
value = value.lstrip("#")
return tuple(int(value[i:i+2], 16) for i in (0, 2, 4))
def draw_cursor_icon(base_img, tip_x, tip_y, color_hex, scale=1.0):
# Render only the split two-prong motif (no main arrow-head triangle).
ss = 6
icon_w = int(30 * scale)
icon_h = int(30 * scale)
local = Image.new("RGBA", (icon_w * ss, icon_h * ss), (0, 0, 0, 0))
d = ImageDraw.Draw(local)
core = (int(9 * scale * ss), int(9 * scale * ss))
# Two-prong symbol balanced to avoid obscuring the center core.
prong_right = [
core,
(int(32 * scale * ss), int(18 * scale * ss)),
(int(19 * scale * ss), int(19 * scale * ss)),
]
prong_down = [
core,
(int(18 * scale * ss), int(32 * scale * ss)),
(int(19 * scale * ss), int(19 * scale * ss)),
]
connector = [
core,
(int(19 * scale * ss), int(19 * scale * ss)),
(int(16 * scale * ss), int(22 * scale * ss)),
(int(22 * scale * ss), int(16 * scale * ss)),
]
r, g, b = hex_to_rgb(color_hex)
d.polygon(prong_right, fill=(r, g, b, 248))
d.polygon(prong_down, fill=(r, g, b, 248))
d.polygon(connector, fill=(r, g, b, 248))
d.ellipse(
[
core[0] - int(1.6 * ss),
core[1] - int(1.6 * ss),
core[0] + int(1.6 * ss),
core[1] + int(1.6 * ss),
],
fill=(r, g, b, 255),
)
local = local.resize((icon_w, icon_h), Image.Resampling.LANCZOS)
px = int(tip_x - 8 * scale)
py = int(tip_y - 8 * scale)
base_img.paste(local, (px, py), local)
def compose(boxes, sizes):
s = OUTPUT_SCALE
cell_w = int(900 * s)
margin_h, margin_v = int(40 * s), int(30 * s)
# Keep enough horizontal/vertical whitespace so connectors stay visible.
gutter_h = int(440 * s)
row_gap = int(240 * s)
label_block_h = int(48 * s)
px_per_col = cell_w + gutter_h
grid = {}
for nid, page, sel, col, row, marker_lbl, title, span_rows, align_mode in NODES:
grid[nid] = {
"col": col, "row": row, "span_rows": span_rows,
"marker_label": marker_lbl, "title": title,
"align_mode": align_mode,
"page": page, "selector": sel
}
# Precompute scaled sizes for each node and dynamic row heights.
scaled_sizes = {}
for nid, page, *_ in NODES:
page_w, page_h = sizes.get(page, (cell_w, 800))
scale = cell_w / page_w if page_w else 1
scaled_w = int(page_w * scale)
scaled_h = int(page_h * scale)
scaled_sizes[nid] = (scaled_w, scaled_h)
unique_rows = sorted(set(n[4] for n in NODES))
row_heights = {}
for row in unique_rows:
row_nodes = [n[0] for n in NODES if n[4] == row]
row_heights[row] = max((scaled_sizes[nid][1] for nid in row_nodes), default=800)
row_tops = {}
cursor_y = margin_v
for row in unique_rows:
row_tops[row] = cursor_y
cursor_y += row_heights[row] + label_block_h + row_gap
# Compute bounds
cols = [n[3] for n in NODES]
rows = [n[4] for n in NODES]
max_col = max(cols) if cols else 0
max_row = max(rows) if rows else 0
canvas_w = (max_col + 1) * px_per_col + 2 * margin_h
canvas_h = cursor_y + margin_v
img = Image.new("RGB", (int(canvas_w), int(canvas_h)), "white")
draw = ImageDraw.Draw(img)
font_label = get_font(int(12 * s))
font_title = get_font(int(13 * s))
font_arrow = get_font(int(12 * s))
font_marker = get_font(int(11 * s))
# Per-node action color: deterministic random so output is stable across runs.
color_rng = random.Random(20260512)
color_palette = [
"#2563eb", "#7c3aed", "#db2777", "#ea580c",
"#0f766e", "#0891b2", "#4338ca", "#be123c",
]
action_colors = {nid: color_rng.choice(color_palette) for nid, *_ in NODES}
# Draw node panels: each is a screenshot at target grid cell with rounded corners
node_boxes = {}
click_points = {}
for nid, page, sel, col, row, marker_lbl, title, span_rows, align_mode in NODES:
# Load screenshot
png_path = SHOTS_DIR / page.replace(".html", ".png")
if not png_path.exists():
print(f"WARN no screenshot {png_path}")
continue
ss = Image.open(png_path)
page_w, page_h = ss.size
# Compute panel position
px = margin_h + col * px_per_col
py = row_tops[row] + label_block_h
# Scale screenshot
scale = cell_w / page_w
scaled_w = int(page_w * scale)
scaled_h = int(page_h * scale)
# Vertical centering within row band(s) for all nodes.
span_rows_list = [row + i for i in range(span_rows)]
band_h = sum(row_heights.get(r, row_heights[row]) for r in span_rows_list) + row_gap * (span_rows - 1)
if scaled_h < band_h:
py += (band_h - scaled_h) // 2
# Horizontal centering within column cell
if scaled_w < px_per_col:
px += (px_per_col - scaled_w) // 2
ss_scaled = ss.resize((scaled_w, scaled_h), Image.Resampling.LANCZOS)
# Paste onto main canvas
img.paste(ss_scaled, (int(px), int(py)))
# Record bounds for arrow drawing
node_boxes[nid] = (px, py, px + scaled_w, py + scaled_h)
# Record click marker position from selector bounding box on original page.
if nid in boxes and boxes[nid]:
b = boxes[nid]
cx = px + (b["x"] + b["width"] / 2) * scale
cy = py + (b["y"] + b["height"] / 2) * scale
click_points[nid] = (cx, cy)
# Add colored bar with filename/title and action description above screenshot.
action_color = action_colors.get(nid, "#1f4f7a")
bar_h = int(42 * s)
bar_y1 = py - label_block_h
bar_y2 = bar_y1 + bar_h
# Draw full-width colored bar
draw.rectangle([px, bar_y1, px + scaled_w, bar_y2], fill=action_color)
# Draw title and marker label inside bar
title_y = bar_y1 + int(12 * s)
draw.text((px + int(8 * s), title_y), title, fill="#ffffff", font=font_title, anchor="lm")
desc_y = bar_y1 + int(28 * s)
draw.text((px + int(8 * s), desc_y), marker_lbl, fill="#ffffff", font=font_label, anchor="lm")
def draw_edge_label(text, x, y, label_color="#1f4f7a"):
pad_x = int(12 * s)
pad_y = int(6 * s)
font_bold = get_font(int(14 * s))
text_w = draw.textlength(text, font=font_bold)
text_h = int(16 * s)
x1 = x - text_w / 2 - pad_x
y1 = y - text_h / 2 - pad_y
x2 = x + text_w / 2 + pad_x
y2 = y + text_h / 2 + pad_y
draw.rounded_rectangle([x1, y1, x2, y2], radius=int(8 * s), fill=label_color, outline="#ffffff", width=int(2 * s))
draw.text((x, y), text, fill="#ffffff", font=font_bold, anchor="mm")
def draw_soft_gradient_circle(base_img, cx, cy, rgb):
# Render gradient on a local RGBA surface, then composite to keep soft edges.
circle_scale = 1.3 * 1.2 * s
outer = int(round(20 * circle_scale))
inner = int(round(9 * circle_scale))
pad = int(4 * s)
size = outer * 2 + pad * 2
local = Image.new("RGBA", (size, size), (0, 0, 0, 0))
ld = ImageDraw.Draw(local)
center = outer + pad
r, g, b = rgb
# Outer soft halo.
for rr in range(outer, inner, -1):
t = (rr - inner) / max(1, (outer - inner))
alpha = int(12 + (1 - t) * 56)
ld.ellipse(
[center - rr, center - rr, center + rr, center + rr],
fill=(r, g, b, alpha),
)
# Inner light core for the "soft gradient" look.
for rr in range(inner, 2, -1):
t = rr / max(1, inner)
alpha = int(110 + (1 - t) * 80)
ld.ellipse(
[center - rr, center - rr, center + rr, center + rr],
fill=(255, 255, 255, alpha),
)
# Crisp center dot to preserve click focal point.
dot = max(2, int(2 * s))
ld.ellipse([center - dot, center - dot, center + dot, center + dot], fill=(r, g, b, 230))
base_img.paste(local, (cx - center, cy - center), local)
def draw_click_marker(nid, x, y):
# Normal cursor orientation with tip at click center.
cx = int(x)
cy = int(y)
action_color = action_colors.get(nid, "#334155")
r, g, b = hex_to_rgb(action_color)
# Soft gradient circle that shares the same hue as action label text.
draw_soft_gradient_circle(img, cx, cy, (r, g, b))
# Upright cursor with anti-aliased edges; tip lands exactly on click center.
draw_cursor_icon(img, cx, cy, action_color, scale=1.38 * s)
# Arrow routing: orthogonal with elbow
src_gap = int(15 * s)
dst_gap = int(10 * s)
def route_arrow(p1, p2, src_y_offset=0, dst_y_offset=0):
"""Return [(x_start, y0), (x_elbow, y0), (x_elbow, y1), (x_end, y1)]."""
x0, y0, x1_r, y1_r = p1
x2, y2, x3_r, y3_r = p2
src_y = (y0 + y1_r) / 2 + src_y_offset
dst_y = (y2 + y3_r) / 2 + dst_y_offset
mid_x = x1_r + (x2 - x1_r) * 0.25
return [(x1_r + src_gap, src_y), (mid_x, src_y), (mid_x, dst_y), (x2 - dst_gap, dst_y)]
arrow_width = int(5 * s)
# Count outgoing and incoming edges per node to compute per-edge y-offsets.
src_edge_counter = {}
dst_edge_counter = {}
for src, dst in EDGES:
src_edge_counter[src] = src_edge_counter.get(src, 0)
dst_edge_counter[dst] = dst_edge_counter.get(dst, 0)
src_seen = {k: 0 for k in src_edge_counter}
dst_seen = {k: 0 for k in dst_edge_counter}
src_labeled = set()
for src, dst in EDGES:
if src not in node_boxes or dst not in node_boxes:
continue
src_y_offset = src_seen[src] * int(4 * s)
dst_y_offset = 0
src_seen[src] += 1
dst_seen[dst] += 1
points = route_arrow(node_boxes[src], node_boxes[dst], src_y_offset=src_y_offset, dst_y_offset=dst_y_offset)
arrow_color = action_colors.get(src, "#0066cc")
# Compute arrowhead geometry first so line ends exactly at arrowhead base.
x_dst, y_dst = points[-1]
x_prev, y_prev = points[-2]
angle = atan2(y_dst - y_prev, x_dst - x_prev)
arr_len = arrow_width * 6
arr_w = arrow_width * 3
xa = x_dst - arr_len * cos(angle)
ya = y_dst - arr_len * sin(angle)
perp_angle = angle + 3.14159 / 2 # perpendicular (90 degrees) to arrow direction
xbl = xa + arr_w * cos(perp_angle)
ybl = ya + arr_w * sin(perp_angle)
xbr = xa - arr_w * cos(perp_angle)
ybr = ya - arr_w * sin(perp_angle)
# Draw line segments; last segment stops at arrowhead base (xa, ya).
for i in range(len(points) - 1):
x0, y0 = points[i]
x1, y1 = points[i + 1]
if i == len(points) - 2:
x1, y1 = xa, ya
draw.line([(x0, y0), (x1, y1)], fill=arrow_color, width=arrow_width)
# Draw arrowhead on top to create clean connection.
draw.polygon([(x_dst, y_dst), (xbl, ybl), (xbr, ybr)], fill=arrow_color)
# Add edge label above the final horizontal segment — only once per source.
lbl = grid.get(src, {}).get("marker_label", "")
if lbl and src not in src_labeled:
lx = (points[2][0] + points[3][0]) / 2
ly = points[2][1] - int(20 * s)
lbl_color = action_colors.get(src, "#1f4f7a")
draw_edge_label(lbl, lx, ly, lbl_color)
src_labeled.add(src)
# Draw click markers last so they stay above screenshots and arrows.
for nid, (cx, cy) in click_points.items():
draw_click_marker(nid, cx, cy)
# ── Stacked action-flow frames ──────────────────────────────────────────
# Layout constants
outer_pad = int(34 * s)
section_gap = int(30 * s)
header_h = int(70 * s)
footer_h = int(18 * s)
inner_pad = int(34 * s) # inside each frame
frame_tag_h = int(56 * s) # frame title-bar height
cell_pad = int(20 * s) # gutter between grid-line and cell box
cell_tag_h = int(34 * s) # per-cell label bar height
img_pad = int(12 * s) # space between cell-box edge and screenshot
arrow_gap = int(40 * s) # horizontal gutter between columns for arrows
# ONE global standard image width — every screenshot is scaled to exactly
# this many pixels wide; height follows the natural aspect ratio (no crop).
STANDARD_IMG_W = int(480 * s)
# Pre-read native screenshot dimensions from disk
def _shot_orig(name):
p = SHOTS_DIR / name.replace(".html", ".png")
if not p.exists():
return (1600, 900)
with Image.open(p) as im:
return im.size
_orig = {pg: _shot_orig(pg) for pg in [
"index.html", "busStop.html", "busDetail.html", "stopDetail.html",
"busDetailExpanded.html", "stopDetailExpanded.html",
]}
def _natural_h(page):
ow, oh = _orig.get(page, (1600, 900))
return int(oh * STANDARD_IMG_W / ow)
# ── Frame table definitions ─────────────────────────────────────────────
frame1_table = {
'cols': [
{'col': 0, 'rows': [
{'id': 'I', 'page': 'index.html', 'label': 'index.html', 'show_marker': False, 'emphasis_start': True},
]},
{'col': 1, 'rows': [
{'id': 'IA', 'page': 'index.html', 'label': 'index.html (คลิก "ป้ายหยุดรถ")', 'show_marker': True},
{'id': 'IB', 'page': 'index.html', 'label': 'index.html (คลิก "คลิกหมายเลขสาย 101")', 'show_marker': True},
]},
{'col': 2, 'rows': [
{'id': 'S', 'page': 'busStop.html', 'label': 'busStop.html', 'show_marker': False, 'emphasis_end': True},
{'id': 'B', 'page': 'busDetail.html', 'label': 'busDetail.html', 'show_marker': False, 'emphasis_end': True},
]},
],
'edges': [
{'src': 'I', 'dst': 'IA', 'label': 'คลิก "ป้ายหยุดรถ"', 'color': '#2563eb'},
{'src': 'I', 'dst': 'IB', 'label': 'คลิกหมายเลขสาย 101', 'color': '#2563eb'},
{'src': 'IA', 'dst': 'S', 'label': 'ไป busStop', 'color': '#2563eb'},
{'src': 'IB', 'dst': 'B', 'label': 'ไป busDetail', 'color': '#2563eb'},
],
}
frame2_table = {
'cols': [
{'col': 0, 'rows': [{'id': 'S', 'page': 'busStop.html', 'label': 'busStop.html', 'show_marker': False, 'emphasis_start': True}]},
{'col': 1, 'rows': [{'id': 'SC', 'page': 'busStop.html', 'label': 'busStop.html (คลิก "บขส.อ่างทอง")', 'show_marker': True, 'marker_box_id': 'N3a'}]},
{'col': 2, 'rows': [{'id': 'D', 'page': 'stopDetail.html', 'label': 'stopDetail.html', 'show_marker': False}]},
{'col': 3, 'rows': [{'id': 'BE', 'page': 'busDetailExpanded.html','label': 'busDetail (expanded)', 'show_marker': True}]},
{'col': 4, 'rows': [{'id': 'DE', 'page': 'stopDetailExpanded.html','label':'stopDetail (expanded)', 'show_marker': True}]},
{'col': 5, 'rows': [{'id': 'B', 'page': 'busDetail.html', 'label': 'busDetail.html', 'show_marker': False, 'emphasis_end': True}]},
],
'edges': [
{'src': 'S', 'dst': 'SC', 'label': 'คลิก "บขส.อ่างทอง"', 'color': '#7c3aed'},
{'src': 'SC', 'dst': 'D', 'label': 'ไป stopDetail', 'color': '#7c3aed'},
{'src': 'D', 'dst': 'BE', 'label': 'ไป busDetail(exp)', 'color': '#7c3aed'},
{'src': 'BE', 'dst': 'DE', 'label': 'ไป stopDetail(exp)', 'color': '#7c3aed'},
{'src': 'DE', 'dst': 'B', 'label': 'สิ้นสุด busDetail', 'color': '#7c3aed'},
],
}
frame3_table = {
'cols': [
{'col': 0, 'rows': [{'id': 'B', 'page': 'busDetail.html', 'label': 'busDetail.html', 'show_marker': False, 'emphasis_start': True}]},
{'col': 1, 'rows': [{'id': 'BE', 'page': 'busDetailExpanded.html', 'label': 'busDetail (expanded)', 'show_marker': True}]},
{'col': 2, 'rows': [{'id': 'DE', 'page': 'stopDetailExpanded.html','label': 'stopDetail (expanded)', 'show_marker': True}]},
{'col': 3, 'rows': [{'id': 'D', 'page': 'stopDetail.html', 'label': 'stopDetail.html', 'show_marker': False, 'emphasis_end': True}]},
],
'edges': [
{'src': 'B', 'dst': 'BE', 'label': 'ไป busDetail(exp)', 'color': '#0f766e'},
{'src': 'BE', 'dst': 'DE', 'label': 'ไป stopDetail(exp)', 'color': '#0f766e'},
{'src': 'DE', 'dst': 'D', 'label': 'สิ้นสุด stopDetail','color': '#0f766e'},
],
}
FRAMES = [
(frame1_table, "#2563eb",
"index.html action flow",
"start at index.html → busStop.html / busDetail.html"),
(frame2_table, "#7c3aed",
"busStop action flow",
"busStop → stopDetail → busDetail(exp) → stopDetail(exp) → busDetail"),
(frame3_table, "#0f766e",
"busDetail action flow",
"busDetail → busDetail(exp) → stopDetail(exp) → stopDetail"),
]
# Pages that are used as a flow start. Reuse the same "start signature"
# frame style whenever these pages appear in other flows.
START_SIGNATURE_PAGES = {
node['page']
for table, *_ in FRAMES
for col in table['cols']
for node in col['rows']
if node.get('emphasis_start')
}
START_SIGNATURE_PAGE_TINT = {
node['page']: tint
for table, tint, *_ in FRAMES
for col in table['cols']
for node in col['rows']
if node.get('emphasis_start')
}
# ── Dynamic layout computation ──────────────────────────────────────────
# cell content width: STANDARD_IMG_W + padding on both sides
cell_content_w = STANDARD_IMG_W + 2 * img_pad
# full column width (cell box + gutter)
col_slot_w = cell_content_w + 2 * cell_pad + arrow_gap
def _row_img_heights(table):
"""Per-row max natural image height at STANDARD_IMG_W."""
cols = table['cols']
max_rows = max(len(c['rows']) for c in cols)
heights = []
for ri in range(max_rows):
mh = 0
for c in cols:
if ri < len(c['rows']):
mh = max(mh, _natural_h(c['rows'][ri]['page']))
heights.append(mh)
return heights
def _frame_h(row_img_heights):
rows_total = sum(
cell_tag_h + 2 * img_pad + h + 2 * cell_pad
for h in row_img_heights
)
return frame_tag_h + 2 * inner_pad + rows_total
def _frame_content_w(table):
return len(table['cols']) * col_slot_w
all_row_heights = [_row_img_heights(t) for t, *_ in FRAMES]
all_frame_h = [_frame_h(rh) for rh in all_row_heights]
frame_w = max(_frame_content_w(t) for t, *_ in FRAMES) + 2 * inner_pad
frame_w = max(frame_w, int(2000 * s))
total_h = (outer_pad + header_h
+ sum(all_frame_h)
+ section_gap * (len(FRAMES) - 1)
+ footer_h + outer_pad)
final_img = Image.new("RGBA", (outer_pad * 2 + frame_w, total_h), "#f4f7ff")
final_draw = ImageDraw.Draw(final_img)
# ── Helper functions ────────────────────────────────────────────────────
def mix_rgb(c1, c2, t):
return (
int(c1[0] + (c2[0] - c1[0]) * t),
int(c1[1] + (c2[1] - c1[1]) * t),
int(c1[2] + (c2[2] - c1[2]) * t),
)
def tint_towards_white(hex_color, strength):
base = hex_to_rgb(hex_color)
return mix_rgb(base, (255, 255, 255), strength)
def draw_linear_gradient(rect, c1, c2, vertical=True):
x1, y1, x2, y2 = [int(v) for v in rect]
if vertical:
h = max(1, y2 - y1)
for i in range(h):
t = i / max(1, h - 1)
final_draw.line([(x1, y1 + i), (x2, y1 + i)], fill=mix_rgb(c1, c2, t))
else:
w = max(1, x2 - x1)
for i in range(w):
t = i / max(1, w - 1)
final_draw.line([(x1 + i, y1), (x1 + i, y2)], fill=mix_rgb(c1, c2, t))
def draw_soft_rounded_gradient(rect, radius, c1, c2, outline=None, outline_w=1, vertical=True):
x1, y1, x2, y2 = [int(v) for v in rect]
w = max(1, x2 - x1)
h = max(1, y2 - y1)
grad = Image.new("RGBA", (w, h), (0, 0, 0, 0))
gd = ImageDraw.Draw(grad)
if vertical:
for i in range(h):
t = i / max(1, h - 1)
gd.line([(0, i), (w, i)], fill=(*mix_rgb(c1, c2, t), 255))
else:
for i in range(w):
t = i / max(1, w - 1)
gd.line([(i, 0), (i, h)], fill=(*mix_rgb(c1, c2, t), 255))
mask = Image.new("L", (w, h), 0)
md = ImageDraw.Draw(mask)
md.rounded_rectangle([0, 0, w - 1, h - 1], radius=radius, fill=255)
final_img.paste(grad, (x1, y1), mask)
if outline:
final_draw.rounded_rectangle([x1, y1, x2, y2], radius=radius, outline=outline, width=outline_w)
bg_c1 = (246, 248, 255)
bg_c2 = (237, 245, 255)
draw_linear_gradient([0, 0, final_img.width, final_img.height], bg_c1, bg_c2, vertical=True)
def fit_shot_std(name):
"""Scale screenshot to exactly STANDARD_IMG_W; height is natural (no crop)."""
p = SHOTS_DIR / name.replace(".html", ".png")
if not p.exists():
return None
shot = Image.open(p).convert("RGB")
new_h = int(shot.height * STANDARD_IMG_W / shot.width)
return shot.resize((STANDARD_IMG_W, new_h), Image.Resampling.LANCZOS)
def place_cell(col_x1, row_y1, page_name, label, tint, row_img_h, node_def=None, shared_start_pages=None, shared_start_tints=None):
"""
Draw one table cell: label bar + screenshot at STANDARD_IMG_W.
Cell is vertically centered inside a row band driven by row_img_h.
Returns both frame and screenshot bounds for downstream routing.
"""
cx1 = col_x1 + cell_pad
cx2 = cx1 + cell_content_w
# Fit each frame to the actual image height so the border hugs the image.
shot = fit_shot_std(page_name)
content_h = shot.height if shot is not None else row_img_h
cell_h = cell_tag_h + 2 * img_pad + content_h + 2 * cell_pad
row_h = cell_tag_h + 2 * img_pad + row_img_h + 2 * cell_pad
cy1 = row_y1 + max(0, (row_h - cell_h) // 2)
cy2 = cy1 + cell_h
# Determine emphasis state for highlight
is_emphasis_start = node_def and node_def.get('emphasis_start')
is_emphasis_end = node_def and node_def.get('emphasis_end')
has_click_marker = bool(node_def and node_def.get('show_marker'))
is_clean_node = not has_click_marker
is_shared_start_page = bool(shared_start_pages and page_name in shared_start_pages)
is_start_signature = bool((is_emphasis_start or is_shared_start_page) and is_clean_node)
signature_tint = tint
if is_start_signature and shared_start_tints and page_name in shared_start_tints:
signature_tint = shared_start_tints[page_name]
tint_rgb = hex_to_rgb(tint)
signature_tint_rgb = hex_to_rgb(signature_tint)
cell_top = tint_towards_white(tint, 0.94)
cell_bottom = tint_towards_white(tint, 0.88)
# Start-signature redesign: stronger visual presence with an outer ring.
if is_start_signature:
ring_pad = int(10 * s)
ring_top = tint_towards_white(signature_tint, 0.84)
ring_bottom = tint_towards_white(signature_tint, 0.68)
draw_soft_rounded_gradient(
[cx1 - ring_pad, cy1 - ring_pad, cx2 + ring_pad, cy2 + ring_pad],
radius=int(18 * s),
c1=ring_top,
c2=ring_bottom,
outline=signature_tint,
outline_w=int(2 * s),
vertical=True,
)
cell_top = tint_towards_white(signature_tint, 0.90)
cell_bottom = tint_towards_white(signature_tint, 0.78)
# Cell box with enhanced border for emphasized nodes
border_width = int(8 * s) if is_start_signature else (int(6 * s) if is_emphasis_end else int(3 * s))
draw_soft_rounded_gradient(
[cx1, cy1, cx2, cy2],
radius=int(14 * s),
c1=cell_top,
c2=cell_bottom,
outline=signature_tint if is_start_signature else tint,
outline_w=border_width,
vertical=True,
)
if is_start_signature:
# Double-edge look for start frames to make them stand out from others.
inner_pad = int(8 * s)
final_draw.rounded_rectangle(
[cx1 + inner_pad, cy1 + inner_pad, cx2 - inner_pad, cy2 - inner_pad],
radius=int(10 * s), outline=signature_tint, width=int(2 * s)
)
# Label bar
bar_color_rgb = signature_tint_rgb if is_start_signature else tint_rgb
bar_top = mix_rgb(bar_color_rgb, (255, 255, 255), 0.12) if is_start_signature else mix_rgb(bar_color_rgb, (255, 255, 255), 0.22)
bar_bottom = mix_rgb(bar_color_rgb, (255, 255, 255), 0.02) if is_start_signature else mix_rgb(bar_color_rgb, (255, 255, 255), 0.08)
draw_soft_rounded_gradient(
[cx1, cy1, cx2, cy1 + cell_tag_h],
radius=int(12 * s),
c1=bar_top,
c2=bar_bottom,
outline=None,
vertical=True,
)
final_draw.rectangle([cx1, cy1 + cell_tag_h - int(6 * s), cx2, cy1 + cell_tag_h],
fill=bar_bottom)
final_draw.text((cx1 + int(10 * s), cy1 + int(18 * s)),
label, fill="#ffffff", font=get_font(int(11 * s)), anchor="lm")
# Screenshot — always STANDARD_IMG_W wide
ix = cx1 + img_pad
iy = cy1 + cell_tag_h + img_pad
if shot is not None:
final_img.paste(shot, (int(ix), int(iy)))
return {
"frame": (int(cx1), int(cy1), int(cx2), int(cy2)),
"image": (int(ix), int(iy), int(ix) + shot.width, int(iy) + shot.height),
}
else:
mx = (cx1 + cx2) // 2
my = (cy1 + cy2) // 2
final_draw.text((mx, my), page_name, fill="#64748b",
font=get_font(int(10 * s)), anchor="mm")
return {
"frame": (int(cx1), int(cy1), int(cx2), int(cy2)),
"image": (int(cx1), int(cy1), int(cx2), int(cy2)),
}
def draw_frame_box(rect, title, subtitle, tint):
x1, y1, x2, y2 = rect
frame_top = tint_towards_white(tint, 0.96)
frame_bottom = tint_towards_white(tint, 0.90)
draw_soft_rounded_gradient(
[x1, y1, x2, y2],
radius=int(18 * s),
c1=frame_top,
c2=frame_bottom,
outline=tint,
outline_w=int(3 * s),
vertical=True,
)
bar_h = int(48 * s)
tint_rgb = hex_to_rgb(tint)
bar_top = mix_rgb(tint_rgb, (255, 255, 255), 0.20)
bar_bottom = mix_rgb(tint_rgb, (255, 255, 255), 0.04)
draw_soft_rounded_gradient(
[x1, y1, x2, y1 + bar_h],
radius=int(16 * s),
c1=bar_top,
c2=bar_bottom,
outline=None,
vertical=True,
)
final_draw.rectangle([x1, y1 + bar_h - int(8 * s), x2, y1 + bar_h], fill=bar_bottom)
final_draw.text((x1 + int(12 * s), y1 + int(16 * s)),
title, fill="#ffffff", font=get_font(int(14 * s)), anchor="lm")
final_draw.text((x1 + int(12 * s), y1 + int(36 * s)),
subtitle, fill="#edf2ff", font=get_font(int(11 * s)), anchor="lm")
def draw_arrow_with_label(sx, sy, dx, dy, label, color):
mid_x = sx + (dx - sx) * 0.45
path = [(sx, sy), (mid_x, sy), (mid_x, dy), (dx, dy)]
for i in range(len(path) - 1):
final_draw.line([path[i], path[i + 1]], fill=color, width=int(4 * s))
angle = atan2(dy - path[-2][1], dx - path[-2][0])
aln, alw = int(16 * s), int(9 * s)
xa = dx - aln * cos(angle); ya = dy - aln * sin(angle)
perp = angle + 3.14159 / 2
final_draw.polygon([(dx, dy),
(xa + alw * cos(perp), ya + alw * sin(perp)),
(xa - alw * cos(perp), ya - alw * sin(perp))], fill=color)
lx = (path[1][0] + path[2][0]) / 2
ly = min(path[1][1], path[2][1]) - int(16 * s)
tw = final_draw.textlength(label, font=get_font(int(11 * s)))
final_draw.rounded_rectangle(
[lx - tw / 2 - int(10 * s), ly - int(17 * s),
lx + tw / 2 + int(10 * s), ly + int(6 * s)],
radius=int(8 * s), fill=color)
final_draw.text((lx, ly - int(4 * s)), label,
fill="#ffffff", font=get_font(int(11 * s)), anchor="mm")
def render_frame(frame_rect, table, tint, row_img_heights):
fx1, fy1, fx2, fy2 = frame_rect
# Content area starts below frame title bar
cx1 = fx1 + inner_pad
cy1 = fy1 + frame_tag_h + inner_pad
cols = table['cols']
max_rows = max(len(c['rows']) for c in cols)
# Build cumulative row y-positions
row_tops = []
cy = cy1
for rh in row_img_heights:
row_tops.append(cy)
cy += cell_tag_h + 2 * img_pad + rh + 2 * cell_pad
node_boxes = {}
for col_idx, col in enumerate(cols):
col_x1 = cx1 + col_idx * col_slot_w
for row_idx, node in enumerate(col['rows']):
rh = row_img_heights[row_idx]
bbox = place_cell(col_x1, row_tops[row_idx],
node['page'], node['label'], tint, rh, node_def=node,
shared_start_pages=START_SIGNATURE_PAGES,
shared_start_tints=START_SIGNATURE_PAGE_TINT)
node_boxes[node['id']] = bbox
if col_idx < len(cols) - 1:
sep_x = col_x1 + col_slot_w - arrow_gap // 2
final_draw.line([sep_x, int(cy1), sep_x, int(cy)],
fill="#d1d5db", width=int(2 * s))
# Draw horizontal row separator before each row > 0 in this column
if row_idx > 0:
sep_y = row_tops[row_idx]
final_draw.line([col_x1, sep_y, col_x1 + col_slot_w, sep_y],
fill="#d1d5db", width=int(2 * s))
# Click markers
for node_id, bounds in node_boxes.items():
node_def = next(
n for c in cols for n in c['rows'] if n['id'] == node_id)
if node_def.get('show_marker'):
bbox = bounds['image']
cmx = int((bbox[0] + bbox[2]) / 2)
cmy = int((bbox[1] + bbox[3]) / 2)
marker_box_id = node_def.get('marker_box_id')
if marker_box_id and marker_box_id in boxes:
mb = boxes[marker_box_id]
page_w = _orig.get(node_def['page'], (1600, 900))[0]
scale = (bbox[2] - bbox[0]) / page_w if page_w else 1
cmx = int(bbox[0] + (mb['x'] + mb['width'] / 2) * scale)
cmy = int(bbox[1] + (mb['y'] + mb['height'] / 2) * scale)
r, g, b = hex_to_rgb(tint)
draw_soft_gradient_circle(final_img, cmx, cmy, (r, g, b))
draw_cursor_icon(final_img, cmx, cmy, tint, scale=1.38 * s)
# Arrows
for edge in table['edges']:
src_bounds = node_boxes.get(edge['src'])
dst_bounds = node_boxes.get(edge['dst'])
if src_bounds is None or dst_bounds is None:
continue
src_frame = src_bounds['frame']
dst_frame = dst_bounds['frame']
dst_x = dst_frame[0] - int(6 * s)
draw_arrow_with_label(
src_frame[2], (src_frame[1] + src_frame[3]) / 2,
dst_x, (dst_frame[1] + dst_frame[3]) / 2,
edge['label'], edge['color'])
# ── Compose canvas ──────────────────────────────────────────────────────
final_draw.text((outer_pad, outer_pad + int(18 * s)),
"AT Transit Action Flow (Stacked Frames)",
fill="#1f2a44", font=get_font(int(18 * s)), anchor="lm")
cursor_y = outer_pad + header_h
for (table, tint, title, subtitle), rh_list, fh in zip(FRAMES, all_row_heights, all_frame_h):
frame_rect = (outer_pad, cursor_y, outer_pad + frame_w, cursor_y + fh)
draw_frame_box(frame_rect, title, subtitle, tint)
render_frame(frame_rect, table, tint, rh_list)
cursor_y += fh + section_gap
final_img.convert("RGB").save(OUT_PNG)
print(f"saved {OUT_PNG}")
if __name__ == "__main__":
print("Capturing screenshots...")
boxes, sizes = asyncio.run(capture_all())
print(f"Composing diagram with {len(NODES)} nodes...")
compose(boxes, sizes)
+258
View File
@@ -0,0 +1,258 @@
#!/usr/bin/env python3
"""Capture the live web app and compose a flow UI diagram.
Reads pages from http://localhost:13000 (override via FRONTEND_BASE env),
captures full-page screenshots, then composes a 2-row click-flow diagram:
Row A (top, stop discovery): / → /stops → /stops/details?code=<code>
Row B (bottom, route detail): / → /routes → /routes/<id>
Includes the cross-flow action from the stop timetable back to route detail.
The index node spans both rows.
Outputs:
- flow_ui/frontend-web-transit-flow-live.png
- flow_ui/frontend-web-transit-flow-live.jpg
"""
import asyncio
import os
from pathlib import Path
from math import atan2, cos, sin, pi
from PIL import Image, ImageDraw, ImageFont
from playwright.async_api import async_playwright
Image.MAX_IMAGE_PIXELS = None
ROOT = Path(__file__).resolve().parent
SHOTS_DIR = ROOT / "screenshots_live"
OUT_PNG = ROOT / "frontend-web-transit-flow-live.png"
OUT_JPG = ROOT / "frontend-web-transit-flow-live.jpg"
BASE = os.environ.get("FRONTEND_BASE", "http://localhost:13000")
STOP_CODE = os.environ.get("STOP_CODE", "at_main_terminal")
ROUTE_ID = os.environ.get("ROUTE_ID", "101")
VIEWPORT = {"width": 1440, "height": 900}
OUTPUT_SCALE = 2 # super-sample for crisp text
# id, url_path, file_stem, col, row, span_rows, header_title, edge_label_in
NODES = [
("HOME", "/", "home", 0, 0, 2, "หน้าแรก · /", ""),
("STOPS", "/stops", "stops", 1, 0, 1, "/stops · ค้นหาป้ายหยุดรถ", 'คลิก "ค้นหาป้ายหยุดรถ"'),
("STOP", f"/stops/details?code={STOP_CODE}", "stop", 2, 0, 1, f"/stops/details?code={STOP_CODE} · รายละเอียดป้าย", "คลิกการ์ดป้ายแรก"),
("ROUTES","/routes", "routes", 1, 1, 1, "/routes · รายการสายรถ", 'คลิก "รายละเอียดสายรถ"'),
("ROUTE", f"/routes/{ROUTE_ID}", "route", 2, 1, 1, f"/routes/{ROUTE_ID} · รายละเอียดสาย", "คลิกการ์ดสายรถ"),
]
EDGES = [
("HOME", "STOPS"),
("STOPS", "STOP"),
("HOME", "ROUTES"),
("ROUTES", "ROUTE"),
("STOP", "ROUTE"),
]
COLORS = {
"HOME": "#0f766e",
"STOPS": "#2563eb",
"STOP": "#7c3aed",
"ROUTES": "#ea580c",
"ROUTE": "#db2777",
}
async def capture_all():
SHOTS_DIR.mkdir(parents=True, exist_ok=True)
sizes = {}
async with async_playwright() as p:
browser = await p.chromium.launch()
ctx = await browser.new_context(viewport=VIEWPORT, device_scale_factor=1)
page = await ctx.new_page()
for nid, path, stem, *_ in NODES:
url = f"{BASE}{path}"
try:
await page.goto(url, wait_until="networkidle", timeout=20000)
except Exception as e:
print(f"WARN load {url}: {e}")
await page.goto(url, wait_until="domcontentloaded", timeout=20000)
await page.wait_for_timeout(600)
doc = await page.evaluate(
"({w: document.documentElement.scrollWidth, h: document.documentElement.scrollHeight})"
)
sizes[nid] = (doc["w"], doc["h"])
out = SHOTS_DIR / f"{stem}.png"
await page.screenshot(path=str(out), full_page=True)
print(f"captured {nid:6s} {url} {sizes[nid]}")
await browser.close()
return sizes
def get_font(size):
for path in [
"/System/Library/Fonts/Supplemental/Arial Unicode.ttf",
"/System/Library/Fonts/Supplemental/Tahoma.ttf",
]:
try:
return ImageFont.truetype(path, size)
except Exception:
continue
return ImageFont.load_default()
def compose(sizes):
s = OUTPUT_SCALE
cell_w = int(720 * s)
gutter_h = int(320 * s)
row_gap = int(180 * s)
margin_h = int(60 * s)
margin_v = int(70 * s)
header_h = int(54 * s)
title_h = int(70 * s)
px_per_col = cell_w + gutter_h
# Scaled per-node size (cell_w wide, proportional height)
scaled = {}
for nid, *_ in NODES:
ow, oh = sizes.get(nid, (1440, 900))
sw = cell_w
sh = int(oh * (cell_w / ow))
scaled[nid] = (sw, sh)
rows = sorted({n[4] for n in NODES})
# Per-row band height = tallest non-spanning node in that row
row_band = {}
for r in rows:
candidates = [scaled[n[0]][1] for n in NODES if n[4] == r and n[5] == 1]
row_band[r] = max(candidates) if candidates else 800
row_tops = {}
y = margin_v + title_h
for r in rows:
row_tops[r] = y
y += header_h + row_band[r] + row_gap
canvas_h = y + margin_v
max_col = max(n[3] for n in NODES)
canvas_w = margin_h * 2 + (max_col + 1) * cell_w + max_col * gutter_h
img = Image.new("RGB", (canvas_w, canvas_h), "#f7f8fb")
draw = ImageDraw.Draw(img)
font_title = get_font(int(28 * s))
font_header = get_font(int(15 * s))
font_label = get_font(int(15 * s))
# Diagram title
draw.text((margin_h, int(margin_v * 0.45)),
"AT Transit · Web UI Flow (live)",
fill="#0f172a", font=font_title)
sub = f"Captured from {BASE} · stop={STOP_CODE} · route={ROUTE_ID}"
draw.text((margin_h, int(margin_v * 0.45) + int(36 * s)),
sub, fill="#475569", font=font_header)
boxes = {}
for nid, path, stem, col, row, span, header, edge_label in NODES:
png_path = SHOTS_DIR / f"{stem}.png"
if not png_path.exists():
print(f"WARN no screenshot {png_path}")
continue
sw, sh = scaled[nid]
px = margin_h + col * (cell_w + gutter_h)
if span > 1:
# Span across the listed rows: vertical center the panel across the bands
spanned = rows[:span] if rows[0] == row else rows[row:row+span]
band_top = row_tops[spanned[0]]
band_bot = row_tops[spanned[-1]] + header_h + row_band[spanned[-1]]
avail = band_bot - band_top - header_h
py = band_top + header_h + max(0, (avail - sh) // 2)
else:
py = row_tops[row] + header_h + max(0, (row_band[row] - sh) // 2)
# Header bar
color = COLORS.get(nid, "#1f4f7a")
draw.rectangle([px, py - header_h, px + sw, py], fill=color)
draw.text((px + int(14 * s), py - header_h + int(14 * s)),
header, fill="#ffffff", font=font_header)
draw.text((px + int(14 * s), py - header_h + int(34 * s)),
path, fill="#e2e8f0", font=font_label)
# Screenshot with subtle border
ss = Image.open(png_path).convert("RGB").resize((sw, sh), Image.Resampling.LANCZOS)
img.paste(ss, (px, py))
draw.rectangle([px, py, px + sw - 1, py + sh - 1], outline="#cbd5e1", width=max(1, int(1.5 * s)))
boxes[nid] = (px, py - header_h, px + sw, py + sh)
# Edges (orthogonal with arrowhead + pill label)
arrow_w = max(3, int(4 * s))
def pill(x, y, text, color):
f = get_font(int(15 * s))
tw = draw.textlength(text, font=f)
th = int(20 * s)
pad_x, pad_y = int(14 * s), int(7 * s)
x1, y1 = x - tw / 2 - pad_x, y - th / 2 - pad_y
x2, y2 = x + tw / 2 + pad_x, y + th / 2 + pad_y
draw.rounded_rectangle([x1, y1, x2, y2], radius=int(10 * s),
fill=color, outline="#ffffff", width=max(1, int(2 * s)))
draw.text((x, y), text, fill="#ffffff", font=f, anchor="mm")
src_offset = {n[0]: 0 for n in NODES}
label_for = {n[0]: n[7] for n in NODES}
for src, dst in EDGES:
if src not in boxes or dst not in boxes:
continue
sx1, sy1, sx2, sy2 = boxes[src]
dx1, dy1, dx2, dy2 = boxes[dst]
# vertical anchor: row center of node body (excluding header)
s_cy = (sy1 + header_h + sy2) / 2 + src_offset[src] * int(28 * s)
d_cy = (dy1 + header_h + dy2) / 2
src_offset[src] += 1
x_start = sx2
x_end = dx1
x_mid = x_start + (x_end - x_start) * 0.5
pts = [(x_start, s_cy), (x_mid, s_cy), (x_mid, d_cy), (x_end, d_cy)]
# arrowhead
ax, ay = pts[-1]
bx, by = pts[-2]
ang = atan2(ay - by, ax - bx)
head_len = arrow_w * 5
head_w = arrow_w * 3
hx = ax - head_len * cos(ang)
hy = ay - head_len * sin(ang)
perp = ang + pi / 2
lx, ly = hx + head_w * cos(perp), hy + head_w * sin(perp)
rx, ry = hx - head_w * cos(perp), hy - head_w * sin(perp)
color = COLORS.get(dst, "#0066cc")
# draw line segments, last one stops at head base
for i in range(len(pts) - 1):
x0, y0 = pts[i]
x1, y1 = pts[i + 1]
if i == len(pts) - 2:
x1, y1 = hx, hy
draw.line([(x0, y0), (x1, y1)], fill=color, width=arrow_w)
draw.polygon([(ax, ay), (lx, ly), (rx, ry)], fill=color)
lbl = label_for.get(dst, "")
if lbl:
mid_x = (pts[1][0] + pts[2][0]) / 2
mid_y = (pts[1][1] + pts[2][1]) / 2
pill(mid_x, mid_y, lbl, color)
img.save(OUT_PNG, "PNG", optimize=True)
img.save(OUT_JPG, "JPEG", quality=88, optimize=True, progressive=True)
print(f"\nwrote {OUT_PNG} ({img.size[0]}x{img.size[1]}px)")
print(f"wrote {OUT_JPG} ({img.size[0]}x{img.size[1]}px)")
async def main():
sizes = await capture_all()
compose(sizes)
if __name__ == "__main__":
asyncio.run(main())
+13
View File
@@ -0,0 +1,13 @@
{
"provinces": [
{ "province_id": 1, "province_name_th": "อ่างทอง" },
{ "province_id": 2, "province_name_th": "อยุธยา" },
{ "province_id": 3, "province_name_th": "ปทุมธานี" },
{ "province_id": 4, "province_name_th": "กรุงเทพมหานคร" },
{ "province_id": 5, "province_name_th": "สุพรรณบุรี" },
{ "province_id": 6, "province_name_th": "สระบุรี" },
{ "province_id": 7, "province_name_th": "ลพบุรี" },
{ "province_id": 8, "province_name_th": "สิงห์บุรี" },
{ "province_id": 9, "province_name_th": "ชัยนาท" }
]
}
+32
View File
@@ -0,0 +1,32 @@
{
"route_groups": [
{
"route_group": "municipal",
"route_group_id": 1,
"route_group_label": "หมวดเส้นทางภายในเทศบาล",
"display_order": 1,
"is_active": true
},
{
"route_group": "bangkok",
"route_group_id": 2,
"route_group_label": "หมวดเส้นทางเข้ากรุงเทพฯ",
"display_order": 2,
"is_active": true
},
{
"route_group": "interprovincial",
"route_group_id": 3,
"route_group_label": "หมวดเส้นทางระหว่างจังหวัด",
"display_order": 3,
"is_active": true
},
{
"route_group": "in_province",
"route_group_id": 4,
"route_group_label": "หมวดเส้นทางภายในจังหวัด",
"display_order": 4,
"is_active": true
}
]
}
+158
View File
@@ -0,0 +1,158 @@
{
"routes": [
{
"route_id": "902",
"route_name_th": "กรุงเทพ-อ่างทอง สายเอเซีย",
"vehicle_type": "bus",
"route_group": "bangkok",
"route_group_id": 2,
"province_ids": [1, 2, 3, 4],
"phone": ["+6684 337 7376", "+6662 381 5828"],
"web_url": "https://www.facebook.com/profile.php?id=100063523693753",
"station_ids": [1, 5, 6]
},
{
"route_id": "15",
"route_name_th": "กรุงเทพ-อ่างทอง สายใน",
"vehicle_type": "bus",
"route_group": "bangkok",
"route_group_id": 2,
"province_ids": [1, 2, 3, 4],
"phone": ["+6693 249 5788"],
"web_url": "https://www.facebook.com/groups/1355821444815052",
"station_ids": [1, 2, 4, 5, 6]
},
{
"route_id": "951",
"route_name_th": "กรุงเทพ-วิเศษ-สุพรรณ",
"vehicle_type": "van",
"route_group": "bangkok",
"route_group_id": 2,
"province_ids": [1, 5, 4],
"phone": ["+6686 099 4250"],
"web_url": "https://www.facebook.com/groups/1323166441639529",
"station_ids": [9, 5, 6, 8]
},
{
"route_id": "952",
"route_name_th": "กรุงเทพ-วิเศษชัยชาญ",
"vehicle_type": "van",
"route_group": "bangkok",
"route_group_id": 2,
"province_ids": [1, 4],
"phone": ["+6664 238 8698"],
"web_url": null,
"station_ids": [11, 12, 8]
},
{
"route_id": "954",
"route_name_th": "กรุงเทพ-ท่าช้าง",
"vehicle_type": "van",
"route_group": "bangkok",
"route_group_id": 2,
"province_ids": [1, 2, 3, 4, 5],
"phone": ["+6690 140 3636"],
"web_url": "https://shorturl.asia/Qe0s3",
"station_ids": [5, 6, 8]
},
{
"route_id": "8",
"route_name_th": "กรุงเทพ-สรรคบุรี-ชัยนาท",
"vehicle_type": "van",
"route_group": "bangkok",
"route_group_id": 2,
"province_ids": [1, 2, 3, 4, 8, 9],
"phone": ["+6656-412264", "+6686-4491276", "+6688-2716613"],
"web_url": "https://linevoom.line.me/user/_ddH8YAybarByo7eVApp-6f0teYGaM0bXI4CLBhE",
"station_ids": [5, 6, 8, 13]
},
{
"route_id": "101",
"route_name_th": "อ่างทอง-ป่าโมก-อยุธยา",
"vehicle_type": "bus",
"route_group": "interprovincial",
"route_group_id": 3,
"province_ids": [1, 2],
"phone": ["+6664 963 9025"],
"web_url": null,
"station_ids": [1, 2, 3, 4]
},
{
"route_id": "464",
"route_name_th": "สุพรรณ-อ่างทอง-สระบุรี",
"vehicle_type": "bus",
"route_group": "interprovincial",
"route_group_id": 3,
"province_ids": [1, 2, 5, 6],
"phone": ["+6699 039 3343", "+6692 482 4781"],
"web_url": "https://line.me/ti/g2/tXBwCvja_Ign9PlboFugqx_NJWbxVb31J1TSMQ",
"station_ids": [1, 9, 10]
},
{
"route_id": "641",
"route_name_th": "อ่างทอง-บ้านแพรก-ลพบุรี",
"vehicle_type": "bus",
"route_group": "interprovincial",
"route_group_id": 3,
"province_ids": [1, 2, 7],
"phone": ["+6689 084 2136"],
"web_url": null,
"station_ids": [1, 7, 8]
},
{
"route_id": "2194",
"route_name_th": "หัวเวียง-อยุธยา",
"vehicle_type": "van",
"route_group": "interprovincial",
"route_group_id": 3,
"province_ids": [2],
"phone": [],
"web_url": null,
"station_ids": [4, 8]
},
{
"route_id": "324",
"route_name_th": "อ่างทอง-วัดพิกุลทอง",
"vehicle_type": "bus",
"route_group": "in_province",
"route_group_id": 4,
"province_ids": [1],
"phone": [],
"web_url": null,
"station_ids": [1, 8]
},
{
"route_id": "1011",
"route_name_th": "อ่างทอง-สีบัวทอง",
"vehicle_type": "bus",
"route_group": "in_province",
"route_group_id": 4,
"province_ids": [1],
"phone": ["+6695 962 3008", "+6661 431 2399"],
"web_url": null,
"station_ids": [1, 8]
},
{
"route_id": "2231",
"route_name_th": "อ่างทอง-มหานาม",
"vehicle_type": "van",
"route_group": "in_province",
"route_group_id": 4,
"province_ids": [1],
"phone": [],
"web_url": null,
"station_ids": [1]
},
{
"route_id": "999",
"route_name_th": "บริษัท ขนส่ง จำกัด (บขส.อ่างทอง)",
"vehicle_type": "bus",
"route_group": "in_province",
"route_group_id": 4,
"province_ids": [1],
"phone": ["0-3561-1344"],
"web_url": "999.html",
"station_ids": [14]
}
]
}
+244
View File
@@ -0,0 +1,244 @@
{
"schedules": [
{
"schedule_id": 1,
"route_id": "101",
"station_id": 4,
"direction_note": null,
"departure_times": ["06:30", "07:20", "08:10", "09:00", "09:50", "10:40", "11:30", "12:20", "13:10", "14:00", "14:50", "15:40", "16:30", "17:30"],
"schedule_note": null
},
{
"schedule_id": 2,
"route_id": "101",
"station_id": 1,
"direction_note": null,
"departure_times": ["07:30", "08:20", "09:10", "10:00", "10:50", "11:50", "13:00", "14:00", "15:00"],
"schedule_note": null
},
{
"schedule_id": 3,
"route_id": "101",
"station_id": 2,
"direction_note": "ไปอ่างทอง",
"departure_times": ["07:30", "08:20", "09:10", "10:00", "10:50", "11:40", "12:30", "13:20", "14:10", "15:00", "15:50", "16:40", "17:30", "18:30"],
"schedule_note": null
},
{
"schedule_id": 4,
"route_id": "101",
"station_id": 2,
"direction_note": "ไปอยุธยา",
"departure_times": ["08:00", "08:50", "09:40", "10:30", "11:20", "12:20", "13:30", "14:30", "15:30"],
"schedule_note": "เวลารถเปลี่ยนทุกวัน โดยเฉพาะวันหยุด"
},
{
"schedule_id": 5,
"route_id": "15",
"station_id": 1,
"direction_note": null,
"departure_times": ["05:00", "05:45", "06:30", "07:30"],
"schedule_note": null
},
{
"schedule_id": 6,
"route_id": "15",
"station_id": 2,
"direction_note": null,
"departure_times": ["05:30", "06:20", "07:05", "07:55", "08:40", "09:30", "11:20", "12:10", "13:00", "15:00"],
"schedule_note": null
},
{
"schedule_id": 7,
"route_id": "15",
"station_id": 6,
"direction_note": null,
"departure_times": ["06:00", "08:30", "09:15", "10:00", "12:30", "14:00", "15:00", "16:00"],
"schedule_note": "เวลารถเปลี่ยนทุกวัน"
},
{
"schedule_id": 8,
"route_id": "902",
"station_id": 1,
"direction_note": null,
"departure_times": ["04:00", "04:30", "05:00", "05:30", "06:00", "06:30", "07:00", "07:30", "08:00", "08:30", "09:00", "09:30", "10:00", "10:30", "11:00", "11:30", "12:00", "12:30", "13:00", "13:30", "14:00", "14:30", "15:00", "15:30", "16:00", "16:30", "17:00", "17:30"],
"schedule_note": null
},
{
"schedule_id": 9,
"route_id": "902",
"station_id": 6,
"direction_note": null,
"departure_times": ["06:00", "06:30", "07:00", "07:30", "08:00", "08:30", "09:00", "09:30", "10:00", "10:30", "11:00", "11:30", "12:00", "12:30", "13:00", "13:30", "14:00", "14:30", "15:00", "15:30", "16:00", "16:30", "17:00", "17:30", "18:00"],
"schedule_note": null
},
{
"schedule_id": 10,
"route_id": "951",
"station_id": 9,
"direction_note": null,
"departure_times": ["04:00", "04:20", "04:40", "05:00", "05:20", "05:40", "06:00", "06:20", "06:40", "07:00", "07:20", "07:40", "08:00", "08:20", "08:40", "09:00", "09:20", "09:40", "10:00", "10:20", "10:40", "11:00", "11:20", "11:40", "12:00", "12:20", "12:40", "13:00", "13:20", "13:40", "14:00", "14:20", "14:40", "15:00", "15:20", "15:40", "16:00", "16:20", "16:40", "17:00", "17:20", "17:40", "18:00"],
"schedule_note": null
},
{
"schedule_id": 11,
"route_id": "952",
"station_id": 8,
"direction_note": "จากตลาดวิเศษ",
"departure_times": ["04:30", "10:00", "15:00"],
"schedule_note": null
},
{
"schedule_id": 12,
"route_id": "952",
"station_id": 12,
"direction_note": null,
"departure_times": ["07:00", "10:30", "15:00"],
"schedule_note": "10:30 และ 7:00 มีเฉพาะวันหยุด"
},
{
"schedule_id": 13,
"route_id": "954",
"station_id": 8,
"direction_note": "จากท่าช้าง",
"departure_times": ["08:00"],
"schedule_note": "เวลาเปลี่ยนทุกวัน"
},
{
"schedule_id": 14,
"route_id": "8",
"station_id": 13,
"direction_note": null,
"departure_times": ["03:30", "04:00", "04:30", "05:00", "05:30", "06:00", "06:30", "07:00", "07:30", "08:00", "08:30", "09:00", "09:30", "11:00", "12:00", "13:00", "14:00", "15:00", "17:00"],
"schedule_note": null
},
{
"schedule_id": 15,
"route_id": "8",
"station_id": 8,
"direction_note": "จากโพธิ์ทอง",
"departure_times": ["05:00", "05:30", "06:00", "06:30", "07:00", "07:30", "08:00", "08:30", "09:00", "09:30", "10:00", "10:30", "12:30", "13:30", "14:30", "15:30", "16:30", "18:30"],
"schedule_note": "เวลาเปลี่ยนทุกวัน"
},
{
"schedule_id": 16,
"route_id": "464",
"station_id": 9,
"direction_note": null,
"departure_times": ["04:40", "05:10", "05:40", "06:10", "06:40", "07:10", "07:40", "08:15", "08:50", "09:25", "10:00", "10:35", "11:10", "11:45", "12:20", "12:55", "13:30", "14:05", "14:40", "15:15", "15:50", "16:25", "17:00", "17:40"],
"schedule_note": null
},
{
"schedule_id": 17,
"route_id": "464",
"station_id": 10,
"direction_note": null,
"departure_times": ["05:00", "05:40", "06:20", "07:10", "08:00", "08:40", "09:20", "10:00", "10:40", "11:20", "12:00", "12:40", "13:20", "14:00", "14:40", "15:20", "16:00", "16:40", "17:20", "18:00"],
"schedule_note": null
},
{
"schedule_id": 18,
"route_id": "464",
"station_id": 1,
"direction_note": "ไปสุพรรณบุรี",
"departure_times": ["06:30", "07:10", "07:50", "08:40", "09:30", "10:10", "10:50", "11:30", "12:10", "12:50", "13:30", "14:10", "14:50", "15:30", "16:10", "16:50", "17:30", "18:10", "18:50", "19:30"],
"schedule_note": null
},
{
"schedule_id": 19,
"route_id": "464",
"station_id": 1,
"direction_note": "ไปสระบุรี",
"departure_times": ["05:40", "06:10", "06:40", "07:10", "07:40", "08:10", "08:40", "09:15", "09:50", "10:25", "11:00", "11:35", "12:10", "12:45", "13:20", "13:55", "14:30", "15:05", "15:40", "16:15", "16:50", "17:25", "18:00", "18:40"],
"schedule_note": "เวลารถเปลี่ยนทุกวัน"
},
{
"schedule_id": 20,
"route_id": "641",
"station_id": 1,
"direction_note": null,
"departure_times": ["07:00", "08:00", "09:00", "10:00", "11:00", "12:00", "13:30", "14:30", "16:30"],
"schedule_note": null
},
{
"schedule_id": 21,
"route_id": "641",
"station_id": 7,
"direction_note": null,
"departure_times": ["07:00", "08:00", "09:00", "10:00", "11:00", "12:00", "13:30", "14:30", "16:30"],
"schedule_note": "10:00 และ 13:30 ไม่ได้มีทุกวัน"
},
{
"schedule_id": 22,
"route_id": "2194",
"station_id": 8,
"direction_note": "จากวัดหัวเวียง",
"departure_times": ["05:00", "06:00", "07:00"],
"schedule_note": null
},
{
"schedule_id": 23,
"route_id": "2194",
"station_id": 4,
"direction_note": null,
"departure_times": ["16:00", "17:00", "18:00"],
"schedule_note": null
},
{
"schedule_id": 24,
"route_id": "324",
"station_id": 1,
"direction_note": null,
"departure_times": ["10:00"],
"schedule_note": null
},
{
"schedule_id": 25,
"route_id": "324",
"station_id": 8,
"direction_note": "จากวัดไชโยวรวิหาร",
"departure_times": ["08:00"],
"schedule_note": null
},
{
"schedule_id": 26,
"route_id": "1011",
"station_id": 1,
"direction_note": null,
"departure_times": ["12:00", "16:00", "17:00"],
"schedule_note": null
},
{
"schedule_id": 27,
"route_id": "1011",
"station_id": 8,
"direction_note": "จากวัดสีบัวทอง",
"departure_times": ["06:00", "06:30", "14:30"],
"schedule_note": null
},
{
"schedule_id": 28,
"route_id": "2231",
"station_id": 1,
"direction_note": null,
"departure_times": ["16:00"],
"schedule_note": null
},
{
"schedule_id": 29,
"route_id": "2231",
"station_id": 8,
"direction_note": "จากวัดมหานาม",
"departure_times": ["08:00"],
"schedule_note": null
},
{
"schedule_id": 30,
"route_id": "999",
"station_id": 14,
"direction_note": null,
"departure_times": [],
"schedule_note": "ยังไม่มีข้อมูลตารางเวลา"
}
]
}
+156
View File
@@ -0,0 +1,156 @@
{
"stations": [
{
"station_id": 1,
"station_code": "at_main_terminal",
"station_name_th": "บขส.อ่างทอง",
"city_th": "เมืองอ่างทอง",
"province_th": "อ่างทอง",
"station_type": "main_terminal"
},
{
"station_id": 2,
"station_code": "pa_mok_terminal",
"station_name_th": "สถานีขนส่งป่าโมก",
"city_th": "ป่าโมก",
"province_th": "อ่างทอง",
"station_type": "main_terminal"
},
{
"station_id": 3,
"station_code": "route_101_stop_ayutthaya",
"station_name_th": "จุดขึ้นลงรถสองแถว 101 อยุธยา-ป่าโมก-อ่างทอง",
"city_th": "พระนครศรีอยุธยา",
"province_th": "อยุธยา",
"station_type": "local_stop"
},
{
"station_id": 4,
"station_code": "jaoprom_market",
"station_name_th": "ตลาดเจ้าพรหม",
"city_th": "พระนครศรีอยุธยา",
"province_th": "อยุธยา",
"station_type": "market"
},
{
"station_id": 5,
"station_code": "rangsit_van_terminal",
"station_name_th": "ท่ารถตู้ต่างจังหวัด รังสิต",
"city_th": "รังสิต",
"province_th": "ปทุมธานี",
"station_type": "van_terminal"
},
{
"station_id": 6,
"station_code": "chatuchak_minibus_terminal",
"station_name_th": "สถานีเดินรถโดยสารขนาดเล็ก (จตุจักร) รถตู้/มินิบัส",
"city_th": "จตุจักร",
"province_th": "กรุงเทพมหานคร",
"station_type": "van_terminal"
},
{
"station_id": 7,
"station_code": "lopburi_main_terminal",
"station_name_th": "บขส.ลพบุรี",
"city_th": "เมืองลพบุรี",
"province_th": "ลพบุรี",
"station_type": "main_terminal"
},
{
"station_id": 8,
"station_code": "other_stop",
"station_name_th": "จุดขึ้นรถประจำทางอื่นๆ",
"city_th": null,
"province_th": null,
"station_type": "local_stop"
},
{
"station_id": 9,
"station_code": "suphan_main_terminal",
"station_name_th": "บขส.สุพรรณบุรี",
"city_th": "เมืองสุพรรณบุรี",
"province_th": "สุพรรณบุรี",
"station_type": "main_terminal"
},
{
"station_id": 10,
"station_code": "saraburi_main_terminal",
"station_name_th": "บขส.สระบุรี",
"city_th": "เมืองสระบุรี",
"province_th": "สระบุรี",
"station_type": "main_terminal"
},
{
"station_id": 11,
"station_code": "namo_supermarket",
"station_name_th": "นะโมซุปเปอร์มาร์ท",
"city_th": "วิเศษชัยชาญ",
"province_th": "อ่างทอง",
"station_type": "private_stop"
},
{
"station_id": 12,
"station_code": "pinklao_van_stop",
"station_name_th": "สายใต้เก่า ปิ่นเกล้า จุดจอดรถตู้",
"city_th": "บางกอกน้อย",
"province_th": "กรุงเทพมหานคร",
"station_type": "van_terminal"
},
{
"station_id": 13,
"station_code": "chainat_main_terminal",
"station_name_th": "บขส.ชัยนาท",
"city_th": "เมืองชัยนาท",
"province_th": "ชัยนาท",
"station_type": "main_terminal"
},
{
"station_id": 14,
"station_code": "at_999_terminal",
"station_name_th": "บขส.999 อ่างทอง สายเอเชีย-เหนือ (ไม่เข้าเมือง)",
"city_th": "เมืองอ่างทอง",
"province_th": "อ่างทอง",
"station_type": "main_terminal"
},
{
"station_id": 15,
"station_code": "chaiyo_terminal",
"station_name_th": "สถานีขนส่งไชโย",
"city_th": "ไชโย",
"province_th": "อ่างทอง",
"station_type": "main_terminal"
},
{
"station_id": 16,
"station_code": "pho_thong_terminal",
"station_name_th": "สถานีขนส่งโพธิ์ทอง",
"city_th": "โพธิ์ทอง",
"province_th": "อ่างทอง",
"station_type": "main_terminal"
},
{
"station_id": 17,
"station_code": "sawaeng_ha_terminal",
"station_name_th": "สถานีขนส่งแสวงหา",
"city_th": "แสวงหา",
"province_th": "อ่างทอง",
"station_type": "main_terminal"
},
{
"station_id": 18,
"station_code": "wiset_chai_chan_terminal",
"station_name_th": "สถานีขนส่งวิเศษชัยชาญ",
"city_th": "วิเศษชัยชาญ",
"province_th": "อ่างทอง",
"station_type": "main_terminal"
},
{
"station_id": 19,
"station_code": "samko_terminal",
"station_name_th": "สถานีขนส่งสามโก้",
"city_th": "สามโก้",
"province_th": "อ่างทอง",
"station_type": "main_terminal"
}
]
}
+36
View File
@@ -0,0 +1,36 @@
# Frontend Web Transit Flow Summary
## Diagram
- File: flow_ui/frontend-web-transit-flow-live.png
- Alternate export: flow_ui/frontend-web-transit-flow-live.jpg
- Generated by: flow_ui/build_live_flow.py
## Coverage
- Total pages covered: 5
- Total key actions mapped: 5
- Total visual states captured: 5
## Pages Included
- /
- /stops
- /stops/details?code=at_main_terminal
- /routes
- /routes/101
## Key Actions Mapped
- HOME -> STOPS: click "ค้นหาป้ายหยุดรถ"
- STOPS -> STOP: click a stop card from the stop directory
- HOME -> ROUTES: click "รายละเอียดสายรถ"
- ROUTES -> ROUTE: click a route card from the route directory
- STOP -> ROUTE: click route number inside the stop timetable card
## Layout Notes
- The home page spans both rows so stop discovery and route discovery remain visually connected.
- The top row captures stop discovery ending at the new query-based details page.
- The bottom row captures route discovery ending at the merged route detail page.
- The cross-link from stop timetable to route detail documents the updated user journey after route cards were removed from stop details.
## Assumptions
- The sample stop code remains `at_main_terminal` and sample route remains `101` unless overridden by environment variables.
- The legacy pages `/stops/<code>` and `/routes/<id>/expanded` are now compatibility paths and are intentionally excluded from the primary flow diagram.
- The live capture uses the running frontend at `FRONTEND_BASE` and reflects current backend data.
+253
View File
@@ -0,0 +1,253 @@
<!doctype html>
<html lang="th">
<head>
<meta charset="utf-8" />
<title>AT Transit Action Flow (Stacked Frames)</title>
<style>
:root{
--blue:#4f6dff;
--purple:#8b5cf6;
--green:#10b981;
--ink:#0f172a;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
font-family: "Sarabun", -apple-system, "Segoe UI", sans-serif;
background: #dde7f7;
color: var(--ink);
padding: 28px 36px 44px;
}
.doc-title{
font-size: 14px; color:#475569; margin: 0 0 18px;
letter-spacing:.2px;
}
.lane{
border-radius: 14px;
overflow: hidden;
margin-bottom: 28px;
box-shadow: 0 1px 0 rgba(15,23,42,.04);
}
.lane.blue { background: #eaf0fd; }
.lane.purple { background: #f1ebfb; }
.lane.green { background: #e7f6f0; }
.lane-head{
color:#fff; padding: 10px 20px;
}
.lane.blue .lane-head { background: linear-gradient(90deg,#4f6dff,#7891ff); }
.lane.purple .lane-head { background: linear-gradient(90deg,#7c3aed,#a78bfa); }
.lane.green .lane-head { background: linear-gradient(90deg,#0ea371,#34d399); }
.lane-head h2{ font-size:13px; margin:0; font-weight:700; letter-spacing:.3px;}
.lane-head p { font-size:11px; margin:2px 0 0; opacity:.9; }
.row{
display:flex; align-items:flex-start; gap: 14px;
padding: 22px 24px;
}
.row + .row { padding-top: 4px; }
.frame{
flex: 0 0 290px;
border-radius: 14px;
padding: 8px;
position: relative;
background: #fff;
box-shadow: 0 8px 18px rgba(15,23,42,.07);
}
.lane.blue .frame { border: 4px solid var(--blue); }
.lane.purple .frame { border: 4px solid var(--purple); }
.lane.green .frame { border: 4px solid var(--green); }
.frame .cap{
font-size: 11px; color:#475569;
background:#f1f5fb; border-radius:8px;
padding: 4px 8px; margin-bottom: 6px;
display:inline-block;
}
.lane.purple .frame .cap{ background:#efe7fb; color:#5b21b6;}
.lane.green .frame .cap{ background:#dff2ea; color:#065f46;}
.lane.blue .frame .cap{ background:#e5ecfd; color:#1e3a8a;}
.frame .shot{
width:100%; display:block; border-radius:8px;
max-height: 1100px; object-fit: cover; object-position: top center;
}
.cursor{
position:absolute;
width: 42px; height: 42px;
border-radius: 50%;
border: 3px solid #fff;
}
.lane.blue .cursor{ background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,0) 65%), rgba(79,109,255,.55); box-shadow: 0 0 0 3px rgba(79,109,255,.5), 0 6px 14px rgba(0,0,0,.25);}
.lane.purple .cursor{ background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,0) 65%), rgba(139,92,246,.55); box-shadow: 0 0 0 3px rgba(139,92,246,.5), 0 6px 14px rgba(0,0,0,.25);}
.lane.green .cursor{ background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,0) 65%), rgba(16,185,129,.55); box-shadow: 0 0 0 3px rgba(16,185,129,.5), 0 6px 14px rgba(0,0,0,.25);}
.arrow{
flex: 0 0 110px;
align-self: center;
text-align:center;
padding-top: 18px;
}
.arrow .lbl{
display:inline-block;
font-size: 11px; font-weight:600;
background:#fff;
border:1.5px solid #cbd5e1;
padding: 4px 10px; border-radius: 999px;
margin-bottom: 6px;
white-space: nowrap;
}
.lane.blue .arrow .lbl{ border-color:#4f6dff; color:#1e3a8a;}
.lane.purple .arrow .lbl{ border-color:#8b5cf6; color:#5b21b6;}
.lane.green .arrow .lbl{ border-color:#10b981; color:#065f46;}
.arrow svg{ display:block; margin: 0 auto;}
</style>
</head>
<body>
<div class="doc-title"><b>AT Transit Action Flow</b> (Stacked Frames) — สไตล์ example-ui</div>
<section class="lane blue">
<div class="lane-head">
<h2>index.html action flow</h2>
<p>start at index.html → busStop.html / busDetail.html</p>
</div>
<div class="row">
<div class="frame">
<div class="cap">index.html</div>
<img class="shot" src="screenshots/index.jpg" />
</div>
<div class="arrow">
<div class="lbl">คลิก "ป้ายหยุดรถ"</div>
<svg width="100" height="22"><defs><marker id="ab" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="9" markerHeight="9" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#4f6dff"/></marker></defs><line x1="2" y1="11" x2="92" y2="11" stroke="#4f6dff" stroke-width="3" marker-end="url(#ab)"/></svg>
</div>
<div class="frame">
<div class="cap">index.html (คลิก "ป้ายหยุดรถ")</div>
<img class="shot" src="screenshots/index.jpg" />
<div class="cursor" style="top: 60px; right: 22px;"></div>
</div>
<div class="arrow">
<div class="lbl">ไป busStop</div>
<svg width="100" height="22"><line x1="2" y1="11" x2="92" y2="11" stroke="#4f6dff" stroke-width="3" marker-end="url(#ab)"/></svg>
</div>
<div class="frame">
<div class="cap">busStop.html</div>
<img class="shot" src="screenshots/busStop.jpg" />
</div>
</div>
<div class="row">
<div class="frame">
<div class="cap">index.html (คลิก "หมายเลข 101")</div>
<img class="shot" src="screenshots/index.jpg" />
<div class="cursor" style="top: 360px; left: 110px;"></div>
</div>
<div class="arrow">
<div class="lbl">ไป busDetail</div>
<svg width="100" height="22"><line x1="2" y1="11" x2="92" y2="11" stroke="#4f6dff" stroke-width="3" marker-end="url(#ab)"/></svg>
</div>
<div class="frame">
<div class="cap">busDetail.html</div>
<img class="shot" src="screenshots/busDetail.jpg" />
</div>
</div>
</section>
<section class="lane purple">
<div class="lane-head">
<h2>busStop action flow</h2>
<p>busStop.html → stopDetail.html → busDetail (expanded) → stopDetail (expanded) → busDetail.html</p>
</div>
<div class="row">
<div class="frame">
<div class="cap">busStop.html</div>
<img class="shot" src="screenshots/busStop.jpg" />
</div>
<div class="arrow">
<div class="lbl">คลิก "ป้ายมหาดไทย"</div>
<svg width="100" height="22"><defs><marker id="ap" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="9" markerHeight="9" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#8b5cf6"/></marker></defs><line x1="2" y1="11" x2="92" y2="11" stroke="#8b5cf6" stroke-width="3" marker-end="url(#ap)"/></svg>
</div>
<div class="frame">
<div class="cap">busStop.html (คลิก "ป้าย")</div>
<img class="shot" src="screenshots/busStop.jpg" />
<div class="cursor" style="top: 280px; left: 60px;"></div>
</div>
<div class="arrow">
<div class="lbl">ไป stopDetail</div>
<svg width="100" height="22"><line x1="2" y1="11" x2="92" y2="11" stroke="#8b5cf6" stroke-width="3" marker-end="url(#ap)"/></svg>
</div>
<div class="frame">
<div class="cap">stopDetail.html</div>
<img class="shot" src="screenshots/stopDetail.jpg" />
</div>
<div class="arrow">
<div class="lbl">ไป busDetail (exp)</div>
<svg width="100" height="22"><line x1="2" y1="11" x2="92" y2="11" stroke="#8b5cf6" stroke-width="3" marker-end="url(#ap)"/></svg>
</div>
<div class="frame">
<div class="cap">busDetail (expanded)</div>
<img class="shot" src="screenshots/busDetailExpanded.jpg" />
<div class="cursor" style="top: 260px; left: 100px;"></div>
</div>
<div class="arrow">
<div class="lbl">ไป stopDetail (exp)</div>
<svg width="100" height="22"><line x1="2" y1="11" x2="92" y2="11" stroke="#8b5cf6" stroke-width="3" marker-end="url(#ap)"/></svg>
</div>
<div class="frame">
<div class="cap">stopDetail (expanded)</div>
<img class="shot" src="screenshots/stopDetail.jpg" />
<div class="cursor" style="top: 320px; left: 80px;"></div>
</div>
<div class="arrow">
<div class="lbl">ย้อนสู่ busDetail</div>
<svg width="100" height="22"><line x1="2" y1="11" x2="92" y2="11" stroke="#8b5cf6" stroke-width="3" marker-end="url(#ap)"/></svg>
</div>
<div class="frame">
<div class="cap">busDetail.html</div>
<img class="shot" src="screenshots/busDetail.jpg" />
</div>
</div>
</section>
<section class="lane green">
<div class="lane-head">
<h2>busDetail action flow</h2>
<p>busDetail.html → busDetail (exp) → stopDetail (exp) → stopDetail.html</p>
</div>
<div class="row">
<div class="frame">
<div class="cap">busDetail.html</div>
<img class="shot" src="screenshots/busDetail.jpg" />
</div>
<div class="arrow">
<div class="lbl">ไป busDetail (exp)</div>
<svg width="100" height="22"><defs><marker id="ag" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="9" markerHeight="9" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#10b981"/></marker></defs><line x1="2" y1="11" x2="92" y2="11" stroke="#10b981" stroke-width="3" marker-end="url(#ag)"/></svg>
</div>
<div class="frame">
<div class="cap">busDetail (expanded)</div>
<img class="shot" src="screenshots/busDetailExpanded.jpg" />
</div>
<div class="arrow">
<div class="lbl">ไป stopDetail (exp)</div>
<svg width="100" height="22"><line x1="2" y1="11" x2="92" y2="11" stroke="#10b981" stroke-width="3" marker-end="url(#ag)"/></svg>
</div>
<div class="frame">
<div class="cap">stopDetail (expanded)</div>
<img class="shot" src="screenshots/stopDetail.jpg" />
<div class="cursor" style="top: 340px; left: 90px;"></div>
</div>
<div class="arrow">
<div class="lbl">ย้อนสู่ stopDetail</div>
<svg width="100" height="22"><line x1="2" y1="11" x2="92" y2="11" stroke="#10b981" stroke-width="3" marker-end="url(#ag)"/></svg>
</div>
<div class="frame">
<div class="cap">stopDetail.html</div>
<img class="shot" src="screenshots/stopDetail.jpg" />
</div>
</div>
</section>
</body>
</html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 983 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

+368
View File
@@ -0,0 +1,368 @@
/* =========================================================
AT Transit shared polish — applied to all mockup pages
Loaded AFTER main-theme.css, BEFORE per-page <style>.
========================================================= */
/* ---------- Brand logo ---------- */
.mu-logo-img {
width: 44px;
height: 44px;
border-radius: 12px;
object-fit: cover;
box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
/* ---------- Universal "cover" card pattern ---------- */
/* A card whose top region is a 16:10 image hero with a soft
gradient overlay and a label sitting on top. Used by route
cards (index) and stop cards (busStop) so duplicate stock
photos no longer look bolted on. */
.mu-cover {
position: relative;
aspect-ratio: 16 / 10;
background: linear-gradient(135deg, #eef1ff 0%, #f7f0ff 100%);
overflow: hidden;
}
.mu-cover > img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform .45s ease;
}
.mu-card:hover .mu-cover > img,
.mu-cover-card:hover .mu-cover > img {
transform: scale(1.06);
}
.mu-cover::after {
content: "";
position: absolute;
inset: 0;
background:
linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, .72) 100%);
pointer-events: none;
}
.mu-cover-tag {
position: absolute;
top: 12px;
left: 12px;
z-index: 1;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 10px;
border-radius: 999px;
font-size: .72rem;
font-weight: 800;
letter-spacing: .02em;
background: rgba(255, 255, 255, .92);
color: #1f2a44;
backdrop-filter: blur(8px);
box-shadow: 0 4px 10px rgba(15, 23, 42, .15);
}
.mu-cover-title {
position: absolute;
left: 14px;
right: 14px;
bottom: 12px;
z-index: 1;
margin: 0;
color: #fff;
font-size: 1.05rem;
font-weight: 800;
line-height: 1.25;
text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}
.mu-cover-title small {
display: block;
font-weight: 500;
font-size: .78rem;
opacity: .92;
margin-top: 2px;
}
.mu-cover.no-photo {
background:
radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .35), transparent 55%),
linear-gradient(135deg, #7a4cc0 0%, #3071b8 100%);
}
.mu-cover.no-photo::after {
background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, .35) 100%);
}
.mu-cover.tone-purple { background: linear-gradient(135deg, #7a4cc0, #c084fc); }
.mu-cover.tone-sky { background: linear-gradient(135deg, #3071b8, #60a5fa); }
.mu-cover.tone-pink { background: linear-gradient(135deg, #bb3a78, #f472b6); }
.mu-cover.tone-mint { background: linear-gradient(135deg, #1f8765, #34d399); }
.mu-cover.tone-amber { background: linear-gradient(135deg, #c47b1d, #fbbf24); }
/* ---------- Index route cards (rebuilt) ---------- */
.mu-card {
overflow: hidden;
transition: transform .18s ease, box-shadow .18s ease;
}
.mu-card:hover {
transform: translateY(-3px);
box-shadow: 0 18px 36px rgba(15, 23, 42, .14);
}
.mu-card-head {
position: relative;
height: auto;
aspect-ratio: 16 / 10;
overflow: hidden;
}
.mu-card-head .mu-card-photo {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform .45s ease;
}
.mu-card:hover .mu-card-photo { transform: scale(1.06); }
.mu-card-head::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, .72) 100%);
}
.mu-card-head .mu-route-number {
position: absolute;
left: 14px;
bottom: 12px;
margin: 0;
color: #fff;
font-weight: 900;
font-size: 32px;
letter-spacing: .02em;
text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
z-index: 1;
}
.mu-card-head .mu-route-kind {
position: absolute;
top: 12px;
left: 12px;
z-index: 1;
padding: 4px 10px;
border-radius: 999px;
font-size: .7rem;
font-weight: 700;
background: rgba(255, 255, 255, .92);
color: #1f2a44;
backdrop-filter: blur(6px);
box-shadow: 0 4px 10px rgba(15, 23, 42, .14);
}
.mu-card-head.no-photo {
background:
radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .25), transparent 55%),
linear-gradient(135deg, #7a4cc0 0%, #3071b8 100%);
}
.mu-card-head.no-photo.bg-purple { background: linear-gradient(135deg, #7a4cc0, #c084fc); }
.mu-card-head.no-photo.bg-sky { background: linear-gradient(135deg, #3071b8, #60a5fa); }
.mu-card-head.no-photo.bg-pink { background: linear-gradient(135deg, #bb3a78, #f472b6); }
.mu-card-head.no-photo.bg-mint { background: linear-gradient(135deg, #1f8765, #34d399); }
/* ---------- BusStop: integrated stop cards (no more
disjoint thumbnails) ---------- */
.mu-stop-grid li.mu-stop-cell {
list-style: none;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 10px 24px rgba(63, 43, 94, .08);
border: 1px solid rgba(231, 224, 246, .95);
background: #fff;
display: flex;
flex-direction: column;
transition: transform .18s ease, box-shadow .18s ease;
}
.mu-stop-grid li.mu-stop-cell:hover {
transform: translateY(-3px);
box-shadow: 0 18px 36px rgba(63, 43, 94, .14);
}
.mu-stop-cell .mu-stop-card {
padding: 16px 18px 18px;
flex: 1;
display: flex;
flex-direction: column;
gap: 12px;
background: transparent;
}
/* ---------- Rich shared footer ---------- */
.mu-site-footer {
margin-top: 48px;
background:
radial-gradient(circle at 0% 0%, rgba(122, 76, 192, .35), transparent 35%),
radial-gradient(circle at 100% 10%, rgba(48, 113, 184, .35), transparent 35%),
linear-gradient(180deg, #1a1830 0%, #0f1126 100%);
color: #cfd5ec;
padding: 48px 0 0;
}
.mu-site-footer .mu-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 24px;
}
.mu-footer-grid {
display: grid;
grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
gap: 28px;
}
.mu-footer-brand {
display: flex;
flex-direction: column;
gap: 12px;
}
.mu-footer-brand-row {
display: flex;
align-items: center;
gap: 12px;
}
.mu-footer-brand-row img {
width: 48px;
height: 48px;
border-radius: 12px;
background: #fff;
padding: 4px;
object-fit: contain;
}
.mu-footer-brand-row strong {
display: block;
color: #fff;
font-size: 1.05rem;
font-weight: 800;
letter-spacing: .01em;
}
.mu-footer-brand-row span {
display: block;
color: #9aa3c3;
font-size: .82rem;
margin-top: 2px;
}
.mu-footer-brand p.about {
margin: 0;
color: #b6bdda;
font-size: .88rem;
line-height: 1.6;
}
.mu-footer-col h4 {
margin: 0 0 14px;
color: #fff;
font-size: .9rem;
font-weight: 800;
letter-spacing: .03em;
text-transform: uppercase;
}
.mu-footer-col ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.mu-footer-col ul a {
color: #cfd5ec;
text-decoration: none;
font-size: .9rem;
transition: color .15s ease;
display: inline-flex;
align-items: center;
gap: 8px;
}
.mu-footer-col ul a:hover { color: #fff; }
.mu-footer-col ul a::before {
content: "›";
color: #7a4cc0;
font-weight: 800;
}
.mu-footer-contact a,
.mu-footer-contact span {
display: inline-flex;
align-items: center;
gap: 8px;
color: #cfd5ec;
text-decoration: none;
font-size: .88rem;
}
.mu-footer-contact .row { margin-bottom: 8px; }
/* ---------- Sponsor strip inside footer ---------- */
.mu-footer-sponsors {
margin-top: 36px;
padding-top: 28px;
border-top: 1px solid rgba(255, 255, 255, .08);
}
.mu-footer-sponsors h4 {
margin: 0 0 6px;
color: #fff;
font-size: .95rem;
font-weight: 800;
}
.mu-footer-sponsors p.lead {
margin: 0 0 18px;
color: #9aa3c3;
font-size: .85rem;
}
.mu-sponsor-strip {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 12px;
}
.mu-sponsor-tile {
background: #fff;
border-radius: 12px;
padding: 14px;
display: flex;
align-items: center;
justify-content: center;
aspect-ratio: 5 / 3;
transition: transform .15s ease, box-shadow .15s ease;
border: 1px solid rgba(255, 255, 255, .04);
}
.mu-sponsor-tile:hover {
transform: translateY(-3px);
box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
}
.mu-sponsor-tile img {
max-width: 84%;
max-height: 70%;
object-fit: contain;
filter: grayscale(.1);
transition: filter .2s ease;
}
.mu-sponsor-tile:hover img { filter: grayscale(0); }
/* ---------- Footer bottom bar ---------- */
.mu-footer-bottom {
margin-top: 36px;
padding: 18px 0 22px;
border-top: 1px solid rgba(255, 255, 255, .08);
text-align: center;
}
.mu-footer-bottom p {
margin: 0;
color: #8d96b8;
font-size: .82rem;
letter-spacing: .02em;
}
.mu-footer-bottom .pill {
display: inline-block;
margin-left: 10px;
padding: 2px 10px;
border-radius: 999px;
background: rgba(122, 76, 192, .25);
color: #d8c7ff;
font-size: .72rem;
font-weight: 700;
}
/* Hide legacy thin footer when shared rich footer is present */
body:has(.mu-site-footer) .mu-footer { display: none; }
@media (max-width: 980px) {
.mu-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
.mu-footer-grid { grid-template-columns: 1fr; }
.mu-site-footer { padding: 36px 0 0; }
}
+519
View File
@@ -0,0 +1,519 @@
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<title>รายละเอียดสายรถ | AT Transit (mockup)</title>
<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">
<style>
:root {
--soft-purple: #7a4cc0;
--soft-purple-bg: #f5eeff;
--soft-sky: #3071b8;
--soft-sky-bg: #ebf5ff;
--soft-mint: #1f8765;
--soft-mint-bg: #eafaf4;
--soft-pink: #bb3a78;
--soft-pink-bg: #fff0f6;
--panel-shadow: 0 8px 24px rgba(67, 56, 202, 0.08);
}
.mu-page {
background:
radial-gradient(circle at 10% 10%, rgba(122, 76, 192, 0.08), transparent 38%),
radial-gradient(circle at 90% 4%, rgba(48, 113, 184, 0.09), transparent 36%),
linear-gradient(180deg, #fcfbff 0%, #f6f9ff 100%);
}
.mu-meta-row { display:flex; flex-wrap:wrap; gap:10px; margin: 14px 0 20px; }
.mu-meta-pill { background:#fff; border:1px solid #f0d6e6; color:#5b3b71; padding:8px 16px; border-radius:999px; font-size:.87rem; font-weight:600; box-shadow:0 2px 8px rgba(122, 76, 192, 0.06); }
.mu-meta-pill.purple { background:var(--soft-purple-bg); color:var(--soft-purple); border-color:#e3d2f6; }
.mu-meta-pill.sky { background:var(--soft-sky-bg); color:var(--soft-sky); border-color:#cfe5fb; }
.mu-meta-pill.mint { background:var(--soft-mint-bg); color:var(--soft-mint); border-color:#c8efdf; }
.mu-meta-pill.pink { background:var(--soft-pink-bg); color:var(--soft-pink); border-color:#f8c5db; }
.mu-info-grid {
display: grid;
grid-template-columns: repeat(4, minmax(140px, 1fr));
gap: 10px;
margin: 16px 0 18px;
}
.mu-info-card {
border-radius: 14px;
padding: 12px 14px;
border: 1px solid #e9e2fb;
box-shadow: var(--panel-shadow);
}
.mu-info-card .label { font-size: .78rem; color:#66728f; margin:0; }
.mu-info-card .value { margin:4px 0 0; font-size:1rem; font-weight:700; color:#2b2f42; }
.mu-layout-grid {
display: grid;
grid-template-columns: 1.35fr .9fr;
gap: 16px;
align-items: start;
}
.mu-card-panel {
background: #fff;
border: 1px solid #ebe8f4;
border-radius: 16px;
padding: 18px;
box-shadow: var(--panel-shadow);
}
.mu-card-panel h2,
.mu-card-panel h3 { margin-top:0; }
.mu-contact-row { display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.mu-contact-row a, .mu-contact-row span { background:linear-gradient(135deg, #fafbff, #f5f9ff); border:1px solid #e8ebf5; padding:10px 16px; border-radius:10px; color:#5b3b71; font-weight:500; text-decoration:none; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.mu-direction-tag { background:#7a4cc0; color:#fff; border-radius:999px; padding:3px 10px; font-size:.75rem; margin-left:8px; }
.mu-schedule-note { color:#9a3b6e; font-size:.8rem; margin-top:8px; padding:8px 12px; background:#fff5f9; border-left:3px solid #bb3a78; border-radius:4px; }
.mu-inline-context { margin: 8px 0 0; color:#6f7b95; font-size:.84rem; }
.mu-inline-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.mu-inline-actions a { text-decoration:none; }
.mu-route-map {
background: linear-gradient(145deg, #f4f8ff 0%, #effaf5 100%);
border: 1px solid #d7e5f2;
border-radius: 14px;
padding: 16px;
margin-top: 12px;
}
.mu-route-map h3 { margin:0 0 12px 0; color:#2c3e50; font-size:1.02rem; }
.mu-route-map svg { width:100%; height:auto; max-width:600px; }
/* Bus photo gallery inside the map area */
.mu-route-photos { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #c9d6e8; }
.mu-route-photos h3 { margin: 0 0 4px; color:#2c3e50; font-size:.98rem; }
.mu-route-photos .sub { margin: 0 0 12px; color:#6f7b95; font-size:.82rem; }
.mu-photo-strip {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 10px;
}
.mu-photo-strip figure {
margin: 0;
border-radius: 12px;
overflow: hidden;
background: #fff;
box-shadow: 0 4px 10px rgba(15,23,42,.08);
border: 1px solid #e3ebf5;
}
.mu-photo-strip img {
display: block; width: 100%; height: 110px;
object-fit: cover;
}
.mu-photo-strip figcaption {
padding: 6px 8px; font-size: 11px; color:#475569; font-weight:600;
background: #f6f8fc; border-top: 1px solid #e3ebf5;
}
.mu-stop-list li { margin-bottom: 10px; }
.mu-stop-expander { border-radius: 14px; overflow: hidden; border: 1px solid #e8e7f5; background: #fff; }
.mu-stop-expander summary { list-style: none; }
.mu-stop-expander summary::-webkit-details-marker { display: none; }
.mu-stop-expander.origin { border-color: #d7c7f8; background: linear-gradient(135deg, #fbf8ff, #f6f0ff); }
.mu-stop-expander.transfer { border-color: #cbe2fb; background: linear-gradient(135deg, #f6fbff, #edf6ff); }
.mu-stop-expander.passing { border-color: #cceede; background: linear-gradient(135deg, #f4fff8, #edfcf4); }
.mu-stop-expander.destination { border-color: #f6cfe0; background: linear-gradient(135deg, #fff8fb, #fff0f7); }
@media (max-width: 980px) {
.mu-info-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
.mu-layout-grid { grid-template-columns: 1fr; }
}
/* === 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;
overflow: hidden;
margin: 14px 0 20px;
box-shadow: 0 18px 38px rgba(122,76,192,.18);
isolation: isolate;
}
.mu-route-hero img.bg {
width: 100%; height: 280px; object-fit: cover; display: block;
transform: scale(1.02);
}
.mu-route-hero::after {
content: ""; position: absolute; inset: 0;
background: linear-gradient(110deg, rgba(31,42,68,.78) 0%, rgba(31,42,68,.45) 45%, rgba(31,42,68,.05) 100%);
}
.mu-route-hero .overlay {
position: absolute; inset: 0; padding: 24px 28px;
display: flex; flex-direction: column; justify-content: flex-end;
color: #fff; z-index: 1;
}
.mu-route-hero .badge {
display: inline-flex; align-items: center; gap: 8px;
background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
border: 1px solid rgba(255,255,255,.32);
padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600;
width: fit-content; margin-bottom: 10px;
}
.mu-route-hero h2 { margin: 0; font-size: 1.85rem; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.mu-route-hero p.tag { margin: 8px 0 0; opacity: .92; font-size: .95rem; max-width: 60%; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.mu-vehicle-card { margin-top: 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--soft-purple-bg); background: linear-gradient(135deg, #fff, #faf6ff); }
.mu-vehicle-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.mu-vehicle-card .meta { padding: 12px 14px; }
.mu-vehicle-card h3 { margin: 0 0 4px; font-size: 1rem; color: #2b2f42; }
.mu-vehicle-card p { margin: 0; color: #6f7b95; font-size: .85rem; }
.mu-qr-box {
margin-top: 14px; padding: 14px;
border: 1px dashed #d7c7f8; border-radius: 16px;
background: linear-gradient(135deg, #f8f4ff, #eef6ff);
display: flex; gap: 14px; align-items: center;
}
.mu-qr-box img { width: 110px; height: 110px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.06); }
.mu-qr-box .txt { flex: 1; }
.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; }
</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">
<div>
<p class="mu-brand-title">AT Transit</p>
<p class="mu-brand-subtitle">สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</p>
</div>
</div>
<nav class="mu-nav">
<a href="./index.html">หน้าแรก</a>
<a href="./busStop.html">ป้ายหยุดรถ</a>
<a class="active" href="./busDetail.html">รายละเอียดสายรถ</a>
</nav>
<a class="mu-action-btn" href="./busDetail.html">ดูตารางเดินรถ</a>
</div>
</header>
<main class="mu-page">
<div class="mu-container">
<p class="mu-breadcrumb"><a href="./index.html">หน้าแรก</a>/ รายละเอียดสายรถ</p>
<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">
<div class="overlay">
<span class="badge">🚌 สายระหว่างจังหวัด · 4 จุดจอดหลัก</span>
<h2>เส้นทางสาย 101</h2>
<p class="tag">เชื่อมต่ออ่างทอง → ป่าโมก → อยุธยา ผ่านเมืองเก่าและตลาดชุมชนที่ริมแม่น้ำเจ้าพระยา</p>
</div>
</section>
<div class="mu-meta-row">
<span class="mu-meta-pill purple">หมวดเส้นทางระหว่างจังหวัด</span>
<span class="mu-meta-pill sky">🚌 รถบัส</span>
<span class="mu-meta-pill mint">2 จังหวัด · อ่างทอง · อยุธยา</span>
<span class="mu-meta-pill pink">4 จุดจอด</span>
</div>
<p class="mu-inline-context">mock state: <strong>?route=101&amp;origin=at_main_terminal</strong></p>
<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>
<a class="mu-back-btn" href="./index.html">← กลับหน้าแรก</a>
</form>
<section class="mu-info-grid" aria-label="route highlights">
<article class="mu-info-card" style="background:linear-gradient(135deg, #f7f1ff, #f2e8ff);">
<p class="label">ประเภทรถ</p>
<p class="value">รถบัสระหว่างจังหวัด</p>
</article>
<article class="mu-info-card" style="background:linear-gradient(135deg, #edf6ff, #e8f3ff); border-color:#d7e7fb;">
<p class="label">จังหวัดที่ผ่าน</p>
<p class="value">อ่างทอง → อยุธยา</p>
</article>
<article class="mu-info-card" style="background:linear-gradient(135deg, #eefdf6, #e7f9f1); border-color:#d1efdf;">
<p class="label">จำนวนจุดจอด</p>
<p class="value">4 จุดหลัก</p>
</article>
<article class="mu-info-card" style="background:linear-gradient(135deg, #fff5fa, #ffeef6); border-color:#f7d6e5;">
<p class="label">รอบรถถัดไป</p>
<p class="value">09:10 น.</p>
</article>
</section>
<section class="mu-layout-grid">
<div class="mu-card-panel">
<h2>จุดจอดสำคัญบนเส้นทาง</h2>
<ul class="mu-list mu-stop-list">
<li>
<details class="mu-stop-expander origin">
<summary>
<span class="mu-route-type-badge">📍 ต้นทาง</span>
<span class="mu-stop-summary-main">
<strong>บขส.อ่างทอง</strong>
<span class="mu-stop-summary-meta">อ่างทอง</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<p style="font-weight: 600; margin-bottom: 8px;">ตารางเดินรถ ณ บขส.อ่างทอง</p>
<div class="mu-time-grid">
<div class="mu-time-chip">07:30</div><div class="mu-time-chip">08:20</div>
<div class="mu-time-chip next">09:10</div><div class="mu-time-chip">10:00</div>
<div class="mu-time-chip">10:50</div><div class="mu-time-chip">11:50</div>
<div class="mu-time-chip">13:00</div><div class="mu-time-chip">14:00</div>
<div class="mu-time-chip">15:00</div>
</div>
<div class="mu-inline-actions">
<a class="mu-btn ghost" href="./stopDetail.html?stop=at_main_terminal&amp;route=101">ไปหน้ารายละเอียดจุดจอด</a>
</div>
</div>
</details>
</li>
<li>
<details class="mu-stop-expander transfer">
<summary>
<span class="mu-route-type-badge">🔄 จุดเปลี่ยน</span>
<span class="mu-stop-summary-main">
<strong>สถานีขนส่งป่าโมก</strong>
<span class="mu-stop-summary-meta">อ่างทอง</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<p style="font-weight: 600; margin: 0 0 8px 0;">ไปอ่างทอง <span class="mu-direction-tag">ทิศทาง</span></p>
<div class="mu-time-grid">
<div class="mu-time-chip">07:30</div><div class="mu-time-chip">08:20</div>
<div class="mu-time-chip">09:10</div><div class="mu-time-chip">10:00</div>
<div class="mu-time-chip">10:50</div><div class="mu-time-chip">11:40</div>
<div class="mu-time-chip">12:30</div><div class="mu-time-chip">13:20</div>
<div class="mu-time-chip">14:10</div><div class="mu-time-chip">15:00</div>
<div class="mu-time-chip">15:50</div><div class="mu-time-chip">16:40</div>
<div class="mu-time-chip">17:30</div><div class="mu-time-chip">18:30</div>
</div>
<p style="font-weight: 600; margin: 12px 0 8px 0;">ไปอยุธยา <span class="mu-direction-tag">ทิศทาง</span></p>
<div class="mu-time-grid">
<div class="mu-time-chip">08:00</div><div class="mu-time-chip">08:50</div>
<div class="mu-time-chip">09:40</div><div class="mu-time-chip">10:30</div>
<div class="mu-time-chip">11:20</div><div class="mu-time-chip">12:20</div>
<div class="mu-time-chip">13:30</div><div class="mu-time-chip">14:30</div>
<div class="mu-time-chip">15:30</div>
</div>
<p class="mu-schedule-note">⚠️ เวลารถเปลี่ยนทุกวัน โดยเฉพาะวันหยุด</p>
<div class="mu-inline-actions">
<a class="mu-btn ghost" href="./stopDetail.html?stop=pa_mok_terminal&amp;route=101">ไปหน้ารายละเอียดจุดจอด</a>
</div>
</div>
</details>
</li>
<li>
<details class="mu-stop-expander passing">
<summary>
<span class="mu-route-type-badge">📍 ผ่านทาง</span>
<span class="mu-stop-summary-main">
<strong>จุดขึ้นลงรถสองแถว 101 อยุธยา-ป่าโมก-อ่างทอง</strong>
<span class="mu-stop-summary-meta">อยุธยา</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<p style="font-weight: 600; margin-bottom: 8px;">ยังไม่มีข้อมูลตารางอัปเดต</p>
<div class="mu-inline-actions">
<a class="mu-btn ghost" href="./stopDetail.html?stop=route_101_stop_ayutthaya&amp;route=101">ไปหน้ารายละเอียดจุดจอด</a>
</div>
</div>
</details>
</li>
<li>
<details class="mu-stop-expander destination">
<summary>
<span class="mu-route-type-badge">📍 ปลายทาง</span>
<span class="mu-stop-summary-main">
<strong>ตลาดเจ้าพรหม</strong>
<span class="mu-stop-summary-meta">อยุธยา</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<p style="font-weight: 600; margin-bottom: 8px;">ตารางเดินรถ ณ ตลาดเจ้าพรหม (อยุธยา)</p>
<div class="mu-time-grid">
<div class="mu-time-chip">06:30</div><div class="mu-time-chip">07:20</div>
<div class="mu-time-chip">08:10</div><div class="mu-time-chip next">09:00</div>
<div class="mu-time-chip">09:50</div><div class="mu-time-chip">10:40</div>
<div class="mu-time-chip">11:30</div><div class="mu-time-chip">12:20</div>
<div class="mu-time-chip">13:10</div><div class="mu-time-chip">14:00</div>
<div class="mu-time-chip">14:50</div><div class="mu-time-chip">15:40</div>
<div class="mu-time-chip">16:30</div><div class="mu-time-chip">17:30</div>
</div>
<div class="mu-inline-actions">
<a class="mu-btn ghost" href="./stopDetail.html?stop=jaoprom_market&amp;route=101">ไปหน้ารายละเอียดจุดจอด</a>
</div>
</div>
</details>
</li>
</ul>
</div>
<aside class="mu-card-panel">
<h2>ติดต่อผู้ประกอบการ</h2>
<div class="mu-contact-row">
<a href="tel:+66649639025">📞 +66 64 963 9025</a>
<span>🌐 ยังไม่ระบุเว็บไซต์</span>
</div>
<div class="mu-qr-box">
<img src="../images/qrcode/101.png" alt="LINE QR สาย 101" loading="lazy" decoding="async">
<div class="txt">
<strong>ติดตามข่าวสาย 101</strong>
<span>สแกน QR เพื่อรับข่าวสารถัด · เลื่อนเวลา · ไม่มีรถ</span>
<span class="line-tag">LINE Official</span>
</div>
</div>
<div class="mu-vehicle-card">
<img src="../images/routes/101/car.jpeg" alt="รถของสาย 101" loading="lazy" decoding="async">
<div class="meta">
<h3>รถบัสประจำสาย</h3>
<p>รถปรับอากาศ · ไม่สูบบุหรี่ · 40 ที่นั่ง</p>
</div>
</div>
<div class="mu-route-map">
<h3>🗺️ เส้นทางเดินรถสาย 101</h3>
<svg viewBox="0 0 400 300" xmlns="http://www.w3.org/2000/svg">
<!-- Background gradient -->
<defs>
<linearGradient id="routeGrad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#e8f4ff;stop-opacity:0.3" />
<stop offset="100%" style="stop-color:#e6faf3;stop-opacity:0.3" />
</linearGradient>
</defs>
<rect width="400" height="300" fill="url(#routeGrad)" rx="8"/>
<!-- Route line -->
<path d="M 80 50 Q 150 80 200 120 Q 250 150 320 180"
stroke="#7a4cc0" stroke-width="3" fill="none" stroke-linecap="round"/>
<!-- Stop markers -->
<g>
<!-- Start: บขส.อ่างทอง -->
<circle cx="80" cy="50" r="14" fill="#7a4cc0"/>
<circle cx="80" cy="50" r="10" fill="#fff"/>
<text x="80" y="55" text-anchor="middle" font-size="16">📍</text>
<text x="80" y="75" text-anchor="middle" font-size="11" fill="#2c3e50" font-weight="600">บขส.อ่างทอง</text>
</g>
<g>
<!-- Transfer: ป่าโมก -->
<circle cx="200" cy="120" r="14" fill="#3071b8"/>
<circle cx="200" cy="120" r="10" fill="#fff"/>
<text x="200" y="125" text-anchor="middle" font-size="16">🔄</text>
<text x="200" y="145" text-anchor="middle" font-size="11" fill="#2c3e50" font-weight="600">สถานีป่าโมก</text>
</g>
<g>
<!-- Pass through: ตลาดเจ้าพรหม -->
<circle cx="320" cy="180" r="14" fill="#1f8765"/>
<circle cx="320" cy="180" r="10" fill="#fff"/>
<text x="320" y="185" text-anchor="middle" font-size="16">🔹</text>
<text x="320" y="205" text-anchor="middle" font-size="11" fill="#2c3e50" font-weight="600">ตลาดเจ้าพรหม</text>
</g>
<!-- Province labels -->
<text x="40" y="25" font-size="10" fill="#6f7b95" font-weight="500">📌 อ่างทอง</text>
<text x="300" y="25" font-size="10" fill="#6f7b95" font-weight="500">📌 อยุธยา</text>
</svg>
<!-- Bus photo gallery (moved here from index.html cards) -->
<div class="mu-route-photos">
<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>
</div>
</div>
</div>
</aside>
</section>
</div>
</main>
<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="../images/icons/minibus-512x512.png" alt="AT Transit">
<div><strong>AT Transit</strong><span>สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</span></div>
</div>
<p class="about">รวมตารางเดินรถ ผู้ประกอบการ และจุดจอดทุกสายรถที่เชื่อมต่อจังหวัดอ่างทอง</p>
</div>
<div class="mu-footer-col">
<h4>เมนู</h4>
<ul>
<li><a href="./index.html">หน้าแรก</a></li>
<li><a href="./busStop.html">ค้นหาป้ายหยุดรถ</a></li>
<li><a href="./busDetail.html">รายละเอียดสายรถ</a></li>
<li><a href="./busDetailExpanded.html">ตารางขยาย</a></li>
</ul>
</div>
<div class="mu-footer-col">
<h4>สายยอดนิยม</h4>
<ul>
<li><a href="./busDetail.html?route=101">สาย 101 · อ่างทอง-อยุธยา</a></li>
<li><a href="./busDetail.html?route=902">สาย 902 · กรุงเทพ-อ่างทอง</a></li>
<li><a href="./busDetail.html?route=15">สาย 15 · สายใน</a></li>
<li><a href="./busDetail.html?route=464">สาย 464 · สุพรรณ-สระบุรี</a></li>
</ul>
</div>
<div class="mu-footer-col mu-footer-contact">
<h4>ติดต่อ</h4>
<div class="row"><a href="tel:+66649639025">📞 +66 64 963 9025</a></div>
<div class="row"><span>📍 ถนนเทศบาล 1 อ.เมือง อ่างทอง</span></div>
<div class="row"><span>🕒 บริการ 04:30 - 21:00 น.</span></div>
<div class="row"><a href="#">💬 LINE Official: @attransit</a></div>
</div>
</div>
<div class="mu-footer-bottom">
<p>© 2026 AT Transit <span class="pill">mockup template</span></p>
</div>
</div>
</footer>
</body>
</html>
+322
View File
@@ -0,0 +1,322 @@
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<title>รายละเอียดสายรถ (ขยายข้อมูล) | AT Transit (mockup)</title>
<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">
<style>
.mu-meta-row { display:flex; flex-wrap:wrap; gap:8px; margin: 8px 0 18px; }
.mu-meta-pill { background:#fff; border:1px solid #f0d6e6; color:#5b3b71; padding:6px 14px; border-radius:999px; font-size:.85rem; font-weight:500; }
.mu-meta-pill.purple { background:#f3eafe; color:#7a4cc0; border-color:#e3d2f6; }
.mu-meta-pill.sky { background:#e8f4ff; color:#3071b8; border-color:#cfe5fb; }
.mu-meta-pill.mint { background:#e6faf3; color:#1f8765; border-color:#c8efdf; }
.mu-meta-pill.pink { background:#ffeaf2; color:#bb3a78; border-color:#f8c5db; }
.mu-contact-row { display:flex; flex-wrap:wrap; gap:10px; }
.mu-contact-row a, .mu-contact-row span { background:#fff; border:1px solid #ecd2e2; padding:8px 14px; border-radius:12px; color:#5b3b71; font-weight:500; text-decoration:none; }
.mu-direction-tag { background:#7a4cc0; color:#fff; border-radius:999px; padding:2px 10px; font-size:.78rem; margin-left:8px; }
.mu-schedule-note { color:#9a3b6e; font-size:.8rem; margin-top:6px; }
.mu-quickpick { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.mu-quickpick a { background:#fff; border:1px solid #f0d6e6; border-radius:999px; padding:6px 12px; color:#5b3b71; text-decoration:none; font-weight:600; font-size:.85rem; }
.mu-route-type-badge { display: inline-block; background: #f3eafe; color: #7a4cc0; padding: 4px 8px; border-radius: 6px; font-size: .8rem; font-weight: 500; margin-left: 6px; margin-right: 4px; }
.mu-inline-context { margin: 6px 0 0; color:#6f7b95; font-size:.84rem; }
.mu-inline-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.mu-inline-actions a { text-decoration:none; }
/* === 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; overflow: hidden; margin: 10px 0 18px; box-shadow: 0 18px 38px rgba(122,76,192,.18); isolation: isolate; }
.mu-route-hero img.bg { width: 100%; height: 260px; object-fit: cover; display: block; }
.mu-route-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(31,42,68,.78) 0%, rgba(31,42,68,.4) 45%, rgba(31,42,68,.05) 100%); }
.mu-route-hero .overlay { position: absolute; inset: 0; padding: 22px 26px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; z-index: 1; }
.mu-route-hero .badge { display: inline-flex; gap: 8px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.32); padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; width: fit-content; margin-bottom: 10px; }
.mu-route-hero h2 { margin: 0; font-size: 1.7rem; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.mu-route-hero p.tag { margin: 6px 0 0; opacity: .92; font-size: .92rem; max-width: 65%; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.mu-contact-grid { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; margin-top: 10px; }
.mu-qr-box { padding: 12px; border: 1px dashed #d7c7f8; border-radius: 14px; background: linear-gradient(135deg, #f8f4ff, #eef6ff); display: flex; gap: 12px; align-items: center; }
.mu-qr-box img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 10px; padding: 5px; box-shadow: 0 4px 10px rgba(0,0,0,.06); }
.mu-qr-box .txt strong { display: block; color: #2b2f42; font-size: .92rem; }
.mu-qr-box .txt span { display: block; color: #6f7b95; font-size: .78rem; margin-top: 2px; }
.mu-qr-box .line-tag { display: inline-block; margin-top: 6px; background: #06c755; color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .03em; }
.mu-vehicle-strip { display: flex; gap: 12px; margin-top: 12px; align-items: stretch; }
.mu-vehicle-strip img { width: 200px; height: 130px; object-fit: cover; border-radius: 14px; flex-shrink: 0; box-shadow: 0 6px 14px rgba(63,43,94,.10); }
.mu-vehicle-strip .meta { display: flex; flex-direction: column; justify-content: center; }
.mu-vehicle-strip .meta h3 { margin: 0 0 4px; font-size: 1rem; color: #2b2f42; }
.mu-vehicle-strip .meta p { margin: 0; color: #6f7b95; font-size: .85rem; }
.mu-stop-thumb { width: 100%; height: 130px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; display: block; box-shadow: 0 6px 14px rgba(63,43,94,.10); }
</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">
<div>
<p class="mu-brand-title">AT Transit</p>
<p class="mu-brand-subtitle">สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</p>
</div>
</div>
<nav class="mu-nav">
<a href="./index.html">หน้าแรก</a>
<a href="./busStop.html">ป้ายหยุดรถ</a>
<a class="active" href="./busDetail.html">รายละเอียดสายรถ</a>
</nav>
<a class="mu-action-btn" href="./busDetail.html">ดูตารางเดินรถ</a>
</div>
</header>
<main class="mu-page">
<div class="mu-container">
<p class="mu-breadcrumb"><a href="./index.html">หน้าแรก</a>/ รายละเอียดสายรถ</p>
<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">
<div class="overlay">
<span class="badge">🚌 ขยายข้อมูล · 4 จุดจอดหลัก</span>
<h2>ตารางเวลาแบบขยายทุกจุดจอด</h2>
<p class="tag">เชื่อมต่ออ่างทอง → ป่าโมก → อยุธยา · ดูตารางรถของทุกป้ายอย่างละเอียด</p>
</div>
</section>
<div class="mu-meta-row">
<span class="mu-meta-pill purple">หมวดเส้นทางระหว่างจังหวัด</span>
<span class="mu-meta-pill sky">🚌 รถบัส</span>
<span class="mu-meta-pill mint">2 จังหวัด · อ่างทอง · อยุธยา</span>
<span class="mu-meta-pill pink">4 จุดจอด</span>
</div>
<p class="mu-inline-context">mock state: <strong>?route=101&amp;origin=at_main_terminal&amp;view=expanded</strong></p>
<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>
<a class="mu-back-btn" href="./index.html">← กลับหน้าแรก</a>
</form>
<div class="mu-panel">
<h2>ติดต่อผู้ประกอบการ</h2>
<div class="mu-contact-row">
<a href="tel:+66649639025">📞 +66 64 963 9025</a>
<span>🌐 ยังไม่ระบุเว็บไซต์</span>
</div>
<div class="mu-qr-box" style="margin-top:12px;">
<img src="../images/qrcode/101.png" alt="LINE QR สาย 101" loading="lazy" decoding="async">
<div class="txt">
<strong>ติดตามข่าวสาย 101</strong>
<span>สแกน QR รับข่าวสาร · เลื่อนเวลา · ไม่มีรถ</span>
<span class="line-tag">LINE Official</span>
</div>
</div>
<div class="mu-vehicle-strip">
<img src="../images/routes/101/car.jpeg" alt="รถของสาย 101" loading="lazy" decoding="async">
<div class="meta">
<h3>รถบัสประจำสาย</h3>
<p>รถปรับอากาศ · ไม่สูบบุหรี่ · 40 ที่นั่ง<br>ออกรอบละ 24 เที่ยว · ช่วง 04:30-21:00</p>
</div>
</div>
</div>
<div class="mu-panel">
<h2>จุดจอดสำคัญบนเส้นทาง</h2>
<ul class="mu-list mu-stop-list">
<li>
<details class="mu-stop-expander" open>
<summary>
<span class="mu-route-type-badge">📍 ต้นทาง</span>
<span class="mu-stop-summary-main">
<strong>บขส.อ่างทอง</strong>
<span class="mu-stop-summary-meta">อ่างทอง</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<img class="mu-stop-thumb" src="../images/stops/54950.jpg" alt="บขส.อ่างทอง" loading="lazy" decoding="async">
<p style="font-weight: 600; margin-bottom: 8px;">ตารางเดินรถ ณ บขส.อ่างทอง</p>
<div class="mu-time-grid">
<div class="mu-time-chip">07:30</div><div class="mu-time-chip">08:20</div>
<div class="mu-time-chip next">09:10</div><div class="mu-time-chip">10:00</div>
<div class="mu-time-chip">10:50</div><div class="mu-time-chip">11:50</div>
<div class="mu-time-chip">13:00</div><div class="mu-time-chip">14:00</div>
<div class="mu-time-chip">15:00</div>
</div>
<div class="mu-inline-actions">
<a class="mu-btn ghost" href="./stopDetail.html?stop=at_main_terminal&amp;route=101">ไปหน้ารายละเอียดจุดจอด</a>
</div>
</div>
</details>
</li>
<li>
<details class="mu-stop-expander">
<summary>
<span class="mu-route-type-badge">🔄 จุดเปลี่ยน</span>
<span class="mu-stop-summary-main">
<strong>สถานีขนส่งป่าโมก</strong>
<span class="mu-stop-summary-meta">อ่างทอง</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<img class="mu-stop-thumb" src="../images/stops/36020.jpg" alt="สถานีขนส่งป่าโมก" loading="lazy" decoding="async">
<p style="font-weight: 600; margin: 0 0 8px 0;">ไปอ่างทอง <span class="mu-direction-tag">ทิศทาง</span></p>
<div class="mu-time-grid">
<div class="mu-time-chip">07:30</div><div class="mu-time-chip">08:20</div>
<div class="mu-time-chip">09:10</div><div class="mu-time-chip">10:00</div>
<div class="mu-time-chip">10:50</div><div class="mu-time-chip">11:40</div>
<div class="mu-time-chip">12:30</div><div class="mu-time-chip">13:20</div>
<div class="mu-time-chip">14:10</div><div class="mu-time-chip">15:00</div>
<div class="mu-time-chip">15:50</div><div class="mu-time-chip">16:40</div>
<div class="mu-time-chip">17:30</div><div class="mu-time-chip">18:30</div>
</div>
<p style="font-weight: 600; margin: 12px 0 8px 0;">ไปอยุธยา <span class="mu-direction-tag">ทิศทาง</span></p>
<div class="mu-time-grid">
<div class="mu-time-chip">08:00</div><div class="mu-time-chip">08:50</div>
<div class="mu-time-chip">09:40</div><div class="mu-time-chip">10:30</div>
<div class="mu-time-chip">11:20</div><div class="mu-time-chip">12:20</div>
<div class="mu-time-chip">13:30</div><div class="mu-time-chip">14:30</div>
<div class="mu-time-chip">15:30</div>
</div>
<p class="mu-schedule-note">⚠️ เวลารถเปลี่ยนทุกวัน โดยเฉพาะวันหยุด</p>
<div class="mu-inline-actions">
<a class="mu-btn ghost" href="./stopDetail.html?stop=pa_mok_terminal&amp;route=101">ไปหน้ารายละเอียดจุดจอด</a>
</div>
</div>
</details>
</li>
<li>
<details class="mu-stop-expander">
<summary>
<span class="mu-route-type-badge">📍 ผ่านทาง</span>
<span class="mu-stop-summary-main">
<strong>จุดขึ้นลงรถสองแถว 101 อยุธยา-ป่าโมก-อ่างทอง</strong>
<span class="mu-stop-summary-meta">อยุธยา</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<img class="mu-stop-thumb" src="../images/stops/39321.jpg" alt="จุดขึ้นลงรถสองแถว" loading="lazy" decoding="async">
<p style="font-weight: 600; margin-bottom: 8px;">ยังไม่มีข้อมูลตารางอัปเดต</p>
<div class="mu-inline-actions">
<a class="mu-btn ghost" href="./stopDetail.html?stop=route_101_stop_ayutthaya&amp;route=101">ไปหน้ารายละเอียดจุดจอด</a>
</div>
</div>
</details>
</li>
<li>
<details class="mu-stop-expander">
<summary>
<span class="mu-route-type-badge">📍 ปลายทาง</span>
<span class="mu-stop-summary-main">
<strong>ตลาดเจ้าพรหม</strong>
<span class="mu-stop-summary-meta">อยุธยา</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<img class="mu-stop-thumb" src="../images/stops/42110.jpg" alt="ตลาดเจ้าพรหม อยุธยา" loading="lazy" decoding="async">
<p style="font-weight: 600; margin-bottom: 8px;">ตารางเดินรถ ณ ตลาดเจ้าพรหม (อยุธยา)</p>
<div class="mu-time-grid">
<div class="mu-time-chip">06:30</div><div class="mu-time-chip">07:20</div>
<div class="mu-time-chip">08:10</div><div class="mu-time-chip next">09:00</div>
<div class="mu-time-chip">09:50</div><div class="mu-time-chip">10:40</div>
<div class="mu-time-chip">11:30</div><div class="mu-time-chip">12:20</div>
<div class="mu-time-chip">13:10</div><div class="mu-time-chip">14:00</div>
<div class="mu-time-chip">14:50</div><div class="mu-time-chip">15:40</div>
<div class="mu-time-chip">16:30</div><div class="mu-time-chip">17:30</div>
</div>
<div class="mu-inline-actions">
<a class="mu-btn ghost" href="./stopDetail.html?stop=jaoprom_market&amp;route=101">ไปหน้ารายละเอียดจุดจอด</a>
</div>
</div>
</details>
</li>
</ul>
</div>
<div class="mu-panel">
<h2>เลือกสายรถอื่น</h2>
<div class="mu-quickpick">
<a href="./busDetail.html?route=902">902</a><a href="./busDetail.html?route=15">15</a>
<a href="./busDetail.html?route=951">951</a><a href="./busDetail.html?route=952">952</a>
<a href="./busDetail.html?route=954">954</a><a href="./busDetail.html?route=8">8</a>
<a href="./busDetail.html?route=464">464</a><a href="./busDetail.html?route=641">641</a>
<a href="./busDetail.html?route=2194">2194</a><a href="./busDetail.html?route=324">324</a>
<a href="./busDetail.html?route=1011">1011</a><a href="./busDetail.html?route=2231">2231</a>
<a href="./busDetail.html?route=999">999</a>
</div>
</div>
</div>
</main>
<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="../images/icons/minibus-512x512.png" alt="AT Transit">
<div><strong>AT Transit</strong><span>สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</span></div>
</div>
<p class="about">มุมมองตารางแบบขยายทุกจุดจอด เหมาะสำหรับผู้โดยสารที่ต้องการตารางละเอียดของทุกสถานีจอด</p>
</div>
<div class="mu-footer-col">
<h4>เมนู</h4>
<ul>
<li><a href="./index.html">หน้าแรก</a></li>
<li><a href="./busStop.html">ค้นหาป้ายหยุดรถ</a></li>
<li><a href="./busDetail.html">รายละเอียดสายรถ</a></li>
<li><a href="./busDetailExpanded.html">ตารางขยาย</a></li>
</ul>
</div>
<div class="mu-footer-col">
<h4>สายยอดนิยม</h4>
<ul>
<li><a href="./busDetail.html?route=101">สาย 101</a></li>
<li><a href="./busDetail.html?route=902">สาย 902</a></li>
<li><a href="./busDetail.html?route=15">สาย 15</a></li>
<li><a href="./busDetail.html?route=464">สาย 464</a></li>
</ul>
</div>
<div class="mu-footer-col mu-footer-contact">
<h4>ติดต่อ</h4>
<div class="row"><a href="tel:+66649639025">📞 +66 64 963 9025</a></div>
<div class="row"><span>📍 ถนนเทศบาล 1 อ.เมือง อ่างทอง</span></div>
<div class="row"><span>🕒 บริการ 04:30 - 21:00 น.</span></div>
<div class="row"><a href="#">💬 LINE Official: @attransit</a></div>
</div>
</div>
<div class="mu-footer-bottom">
<p>© 2026 AT Transit <span class="pill">mockup template</span></p>
</div>
</div>
</footer>
</body>
</html>
+407
View File
@@ -0,0 +1,407 @@
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<title>ป้ายหยุดรถ | AT Transit (mockup)</title>
<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">
<style>
:root {
--bus-purple: #7a4cc0;
--bus-purple-soft: #f5eeff;
--bus-sky: #3071b8;
--bus-sky-soft: #ebf5ff;
--bus-mint: #1f8765;
--bus-mint-soft: #eafaf4;
--bus-pink: #bb3a78;
--bus-pink-soft: #fff0f6;
--bus-amber: #c47b1d;
--bus-amber-soft: #fff6e8;
--panel-shadow: 0 10px 30px rgba(63, 43, 94, 0.08);
}
.mu-page {
background:
radial-gradient(circle at 10% 10%, rgba(122, 76, 192, 0.10), transparent 30%),
radial-gradient(circle at 90% 0%, rgba(48, 113, 184, 0.10), transparent 28%),
linear-gradient(180deg, #fcfbff 0%, #f5f9ff 100%);
}
.mu-hero-panel {
background: linear-gradient(135deg, #f8f4ff 0%, #eef6ff 55%, #f0fdf8 100%);
border: 1px solid #e7e0f6;
border-radius: 20px;
box-shadow: var(--panel-shadow);
padding: 18px;
margin-bottom: 16px;
display: grid;
grid-template-columns: 1.1fr .9fr;
gap: 16px;
align-items: stretch;
}
.mu-hero-title { margin: 0; font-size: 1.8rem; line-height: 1.15; color: #1f2a44; }
.mu-hero-subtitle { margin: 8px 0 0; color: #66728f; font-size: .95rem; max-width: 48rem; }
.mu-kpi-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.mu-kpi {
border: 1px solid rgba(122, 76, 192, 0.12);
border-radius: 14px;
padding: 12px;
background: rgba(255,255,255,.82);
box-shadow: 0 8px 18px rgba(63, 43, 94, 0.06);
}
.mu-kpi .label { margin: 0; color:#6f7b95; font-size:.76rem; font-weight:700; letter-spacing:.03em; text-transform: uppercase; }
.mu-kpi .value { margin:4px 0 0; color:#1f2a44; font-size:1.03rem; font-weight:800; }
.mu-hero-map {
border-radius: 18px;
background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
border: 1px solid #e6edf7;
box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 20px rgba(63,43,94,.06);
padding: 14px;
display:flex;
flex-direction:column;
gap: 10px;
justify-content:space-between;
}
.mu-hero-map-title { margin:0; font-size:1rem; font-weight:800; color:#2c3e50; }
.mu-hero-map-box {
flex:1;
min-height: 160px;
border-radius: 14px;
background:
radial-gradient(circle at 20% 30%, rgba(122, 76, 192, 0.13), transparent 22%),
radial-gradient(circle at 80% 20%, rgba(48, 113, 184, 0.13), transparent 24%),
linear-gradient(135deg, #f7fbff, #eefaf5);
border: 1px dashed #d7e3f4;
display:flex;
align-items:center;
justify-content:center;
color:#66728f;
font-weight:700;
text-align:center;
padding: 18px;
}
.mu-toolbar {
background: rgba(255,255,255,.82);
backdrop-filter: blur(10px);
border: 1px solid rgba(231, 224, 246, 0.9);
border-radius: 16px;
padding: 12px;
box-shadow: var(--panel-shadow);
margin-bottom: 12px;
}
.mu-toolbar input,
.mu-toolbar select {
border-radius: 12px;
border: 1px solid #dfe6f1;
background: linear-gradient(180deg, #fff, #f8fbff);
min-height: 44px;
}
.mu-toolbar input:focus,
.mu-toolbar select:focus {
box-shadow: 0 0 0 3px rgba(122, 76, 192, 0.14);
border-color: #c8b4ec;
}
.mu-province-strip {
display:flex;
flex-wrap:wrap;
gap:8px;
margin: 14px 0 18px;
}
.mu-province-strip a {
background: linear-gradient(135deg, #ffffff, #f6f8ff);
border: 1px solid #e7e3f7;
padding: 8px 14px;
border-radius: 999px;
color: #5b3b71;
text-decoration:none;
font-size:.84rem;
font-weight:700;
box-shadow: 0 6px 14px rgba(63,43,94,.05);
}
.mu-province-strip a.active { background: linear-gradient(135deg, #7a4cc0, #8b5cf6); color:#fff; border-color: transparent; }
.mu-stop-grid {
display:grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
padding-left: 0;
list-style: none;
}
.mu-stop-grid li {
margin: 0;
border-radius: 18px;
overflow: hidden;
box-shadow: var(--panel-shadow);
border: 1px solid rgba(231, 224, 246, 0.95);
background: #fff;
}
.mu-stop-card {
height: 100%;
padding: 16px;
background: linear-gradient(135deg, #fff 0%, #fffafc 100%);
display:flex;
flex-direction:column;
gap: 12px;
}
.mu-stop-card.main { background: linear-gradient(135deg, #f7f1ff 0%, #fbf8ff 100%); }
.mu-stop-card.local { background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%); }
.mu-stop-card.market { background: linear-gradient(135deg, #fff2f7 0%, #fff9fc 100%); }
.mu-stop-card.van { background: linear-gradient(135deg, #fff6eb 0%, #fffdf8 100%); }
.mu-stop-card.private { background: linear-gradient(135deg, #eefaf4 0%, #fbfefc 100%); }
.mu-stop-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.mu-type-pill {
display:inline-flex;
align-items:center;
gap:6px;
border-radius:999px;
padding: 5px 10px;
font-size:.74rem;
font-weight:800;
letter-spacing:.01em;
white-space:nowrap;
}
.mu-type-pill.market { background: var(--bus-pink-soft); color: var(--bus-pink); }
.mu-type-pill.local { background: var(--bus-sky-soft); color: var(--bus-sky); }
.mu-type-pill.private{ background: var(--bus-mint-soft); color: var(--bus-mint); }
.mu-type-pill.van { background: var(--bus-amber-soft); color: var(--bus-amber); }
.mu-type-pill.main { background: var(--bus-purple-soft); color: var(--bus-purple); }
.mu-stop-title { margin:0; font-size:1.05rem; line-height:1.25; color:#1f2a44; }
.mu-loc { color:#6f7b95; font-size:.85rem; margin-top:4px; }
.mu-chip-row { display:flex; flex-wrap:wrap; gap:8px; }
.mu-chip {
display:inline-flex;
align-items:center;
gap:6px;
padding:6px 10px;
border-radius:999px;
background: rgba(255,255,255,.9);
border: 1px solid rgba(231, 224, 246, 0.95);
color:#5b3b71;
font-size:.8rem;
font-weight:700;
}
.mu-chip.count { background: rgba(122, 76, 192, 0.08); color:#7a4cc0; border-color: rgba(122,76,192,.15); }
.mu-chip.route { background: rgba(48, 113, 184, 0.08); color:#3071b8; border-color: rgba(48,113,184,.15); }
.mu-chip.new { background: rgba(31, 135, 101, 0.08); color:#1f8765; border-color: rgba(31,135,101,.15); }
.mu-stop-action { margin-top:auto; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.mu-row-link {
display:inline-flex;
align-items:center;
justify-content:center;
padding:10px 14px;
border-radius:12px;
background: linear-gradient(135deg, #7a4cc0, #3071b8);
color:#fff;
text-decoration:none;
font-weight:700;
box-shadow: 0 8px 18px rgba(122,76,192,.18);
white-space:nowrap;
}
.mu-row-link:hover { filter: brightness(1.02); }
.mu-stop-note { color:#6f7b95; font-size:.8rem; margin:0; }
@media (max-width: 980px) {
.mu-hero-panel { grid-template-columns: 1fr; }
.mu-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mu-stop-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
.mu-kpi-grid { grid-template-columns: 1fr; }
.mu-stop-action { flex-direction: column; align-items:flex-start; }
.mu-row-link { width: 100%; }
}
/* === Modern image polish (page-specific) === */
.mu-hero-map-photo { width: 100%; height: 100%; min-height: 160px; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 8px 18px rgba(63,43,94,.08); }
/* Integrated stop thumbnail: tall hero with bottom gradient fade
so the photo flows into the card body instead of looking pasted on. */
.mu-stop-grid li { position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.mu-stop-grid li:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(63,43,94,.16); }
.mu-stop-thumb {
display: block;
width: 100%;
height: 180px;
object-fit: cover;
background: #eef2f9;
transition: transform .45s ease;
}
.mu-stop-grid li:hover .mu-stop-thumb { transform: scale(1.05); }
.mu-stop-grid li:has(.mu-stop-thumb)::before {
content: "";
position: absolute;
left: 0; right: 0; top: 130px; height: 70px;
background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 95%);
pointer-events: none;
z-index: 1;
}
.mu-stop-grid li:has(.mu-stop-thumb) .mu-stop-card { padding-top: 8px; position: relative; z-index: 2; }
.mu-stop-grid li:has(.mu-stop-thumb) .mu-type-pill {
position: relative;
z-index: 3;
margin-top: -18px;
box-shadow: 0 4px 10px rgba(15,23,42,.12);
}
/* Cards without a photo get a colored gradient hero banner
so they look intentional, not empty. */
.mu-stop-grid li:not(:has(.mu-stop-thumb))::before {
content: "";
display: block;
height: 110px;
background:
radial-gradient(circle at 20% 20%, rgba(255,255,255,.4), transparent 55%),
linear-gradient(135deg, #7a4cc0, #3071b8);
}
.mu-stop-grid li:not(:has(.mu-stop-thumb)) .mu-stop-card.main::before { background: linear-gradient(135deg, #7a4cc0, #c084fc); }
.mu-stop-grid li:not(:has(.mu-stop-thumb)) .mu-stop-card { margin-top: -28px; position: relative; z-index: 2; border-radius: 18px 18px 0 0; background: #fff !important; box-shadow: 0 -8px 18px rgba(0,0,0,.08); }
</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">
<div>
<p class="mu-brand-title">AT Transit</p>
<p class="mu-brand-subtitle">สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</p>
</div>
</div>
<nav class="mu-nav">
<a href="./index.html">หน้าแรก</a>
<a class="active" href="./busStop.html">ป้ายหยุดรถ</a>
<a href="./busDetail.html">รายละเอียดสายรถ</a>
</nav>
<a class="mu-action-btn" href="./busDetail.html">ดูตารางเวลา</a>
</div>
</header>
<main class="mu-page">
<div class="mu-container">
<p class="mu-breadcrumb"><a href="./index.html">หน้าแรก</a>/ ป้ายหยุดรถ</p>
<section class="mu-hero-panel">
<div>
<h1 class="mu-hero-title">ค้นหาป้ายหยุดรถแบบรวดเร็วและอ่านง่าย</h1>
<p class="mu-hero-subtitle">รวมสถานีขนส่งหลัก จุดจอดท้องถิ่น สถานีรถตู้ และจุดเอกชนในโทน soft gradient ที่ดูสะอาดตา ใช้งานได้ทั้งบนมือถือและเดสก์ท็อป</p>
<div class="mu-kpi-grid" aria-label="summary metrics">
<div class="mu-kpi">
<p class="label">จำนวนจุดทั้งหมด</p>
<p class="value">19 จุด</p>
</div>
<div class="mu-kpi">
<p class="label">ครอบคลุม</p>
<p class="value">9 จังหวัด</p>
</div>
<div class="mu-kpi">
<p class="label">ประเภทหลัก</p>
<p class="value">4 กลุ่มป้าย</p>
</div>
<div class="mu-kpi">
<p class="label">เที่ยวใช้งานบ่อย</p>
<p class="value">สาย 101</p>
</div>
</div>
</div>
<div class="mu-hero-map">
<p class="mu-hero-map-title">แผนที่ย่อของเครือข่ายป้าย</p>
<img class="mu-hero-map-photo" src="../images/network/overview-map.png" alt="แผนที่เครือข่ายป้าย AT Transit" loading="lazy" decoding="async">
</div>
</section>
<form class="mu-toolbar" onsubmit="return false">
<input type="search" placeholder="ค้นหาชื่อสถานที่ เช่น บขส.อ่างทอง">
<select aria-label="ประเภทสถานี">
<option>ทุกประเภท</option>
<option>สถานีขนส่งหลัก</option>
<option>สถานีรถตู้</option>
<option>จุดจอดท้องถิ่น</option>
<option>ตลาด/จุดเอกชน</option>
</select>
<button type="button" class="mu-btn primary">ค้นหา</button>
<a class="mu-btn ghost" href="./index.html">ย้อนกลับ</a>
</form>
<div class="mu-province-strip" aria-label="กรองตามจังหวัด">
<a class="active" href="#">ทุกจังหวัด</a>
<a href="#">อ่างทอง</a>
<a href="#">อยุธยา</a>
<a href="#">ปทุมธานี</a>
<a href="#">กรุงเทพมหานคร</a>
<a href="#">สุพรรณบุรี</a>
<a href="#">สระบุรี</a>
<a href="#">ลพบุรี</a>
<a href="#">สิงห์บุรี</a>
<a href="#">ชัยนาท</a>
</div>
<ul class="mu-stop-grid">
<li><img class="mu-stop-thumb" src="../images/stops/54950.jpg" alt="" loading="lazy" decoding="async"><div class="mu-stop-card main"><div class="mu-stop-top"><div><span class="mu-type-pill main">สถานีขนส่งหลัก</span><h2 class="mu-stop-title">บขส.อ่างทอง</h2><p class="mu-loc">เมืองอ่างทอง · อ่างทอง</p></div><span class="mu-chip count">8 สาย</span></div><div class="mu-chip-row"><span class="mu-chip route">สายหลัก</span><span class="mu-chip">เปิดบริการ</span></div><div class="mu-stop-action"><p class="mu-stop-note">ศูนย์กลางเส้นทางหลักของจังหวัด</p><a class="mu-row-link" href="./stopDetail.html?stop=at_main_terminal&amp;route=101">ดูรายละเอียด</a></div></div></li>
<li><img class="mu-stop-thumb" src="../images/stops/36020.jpg" alt="" loading="lazy" decoding="async"><div class="mu-stop-card main"><div class="mu-stop-top"><div><span class="mu-type-pill main">สถานีขนส่งหลัก</span><h2 class="mu-stop-title">สถานีขนส่งป่าโมก</h2><p class="mu-loc">ป่าโมก · อ่างทอง</p></div><span class="mu-chip count">2 สาย</span></div><div class="mu-chip-row"><span class="mu-chip route">จุดต่อรถ</span><span class="mu-chip">Hub ย่อย</span></div><div class="mu-stop-action"><p class="mu-stop-note">เหมาะสำหรับต่อรถไปอยุธยา</p><a class="mu-row-link" href="./stopDetail.html?stop=pa_mok_terminal&amp;route=101">ดูรายละเอียด</a></div></div></li>
<li><img class="mu-stop-thumb" src="../images/stops/39321.jpg" alt="" loading="lazy" decoding="async"><div class="mu-stop-card local"><div class="mu-stop-top"><div><span class="mu-type-pill local">จุดจอดท้องถิ่น</span><h2 class="mu-stop-title">จุดขึ้นลงรถสองแถว 101 อยุธยา-ป่าโมก-อ่างทอง</h2><p class="mu-loc">พระนครศรีอยุธยา · อยุธยา</p></div><span class="mu-chip count">1 สาย</span></div><div class="mu-chip-row"><span class="mu-chip route">สาย 101</span><span class="mu-chip new">ผ่านทาง</span></div><div class="mu-stop-action"><p class="mu-stop-note">จุดขึ้นลงในเส้นทางที่ใช้งานบ่อย</p><a class="mu-row-link" href="./stopDetail.html">ดูรายละเอียด</a></div></div></li>
<li><img class="mu-stop-thumb" src="../images/stops/42110.jpg" alt="" loading="lazy" decoding="async"><div class="mu-stop-card market"><div class="mu-stop-top"><div><span class="mu-type-pill market">ตลาด</span><h2 class="mu-stop-title">ตลาดเจ้าพรหม</h2><p class="mu-loc">พระนครศรีอยุธยา · อยุธยา</p></div><span class="mu-chip count">3 สาย</span></div><div class="mu-chip-row"><span class="mu-chip route">คึกคัก</span><span class="mu-chip">ชุมชน</span></div><div class="mu-stop-action"><p class="mu-stop-note">มีรถผ่านหลายช่วงเวลา</p><a class="mu-row-link" href="./stopDetail.html">ดูรายละเอียด</a></div></div></li>
<li><img class="mu-stop-thumb" src="../images/stops/42250.jpg" alt="" loading="lazy" decoding="async"><div class="mu-stop-card van"><div class="mu-stop-top"><div><span class="mu-type-pill van">สถานีรถตู้</span><h2 class="mu-stop-title">ท่ารถตู้ต่างจังหวัด รังสิต</h2><p class="mu-loc">รังสิต · ปทุมธานี</p></div><span class="mu-chip count">5 สาย</span></div><div class="mu-chip-row"><span class="mu-chip route">รถตู้</span><span class="mu-chip">ศูนย์ต่อรถ</span></div><div class="mu-stop-action"><p class="mu-stop-note">เชื่อมกรุงเทพกับจังหวัดรอบนอก</p><a class="mu-row-link" href="./stopDetail.html">ดูรายละเอียด</a></div></div></li>
<li><img class="mu-stop-thumb" src="../images/stops/36020.jpg" alt="" loading="lazy" decoding="async"><div class="mu-stop-card van"><div class="mu-stop-top"><div><span class="mu-type-pill van">สถานีรถตู้</span><h2 class="mu-stop-title">สถานีเดินรถโดยสารขนาดเล็ก (จตุจักร) รถตู้/มินิบัส</h2><p class="mu-loc">จตุจักร · กรุงเทพมหานคร</p></div><span class="mu-chip count">5 สาย</span></div><div class="mu-chip-row"><span class="mu-chip route">มินิบัส</span><span class="mu-chip">เมืองใหญ่</span></div><div class="mu-stop-action"><p class="mu-stop-note">ศูนย์รวมรถตู้ในโซนกรุงเทพฯ</p><a class="mu-row-link" href="./stopDetail.html">ดูรายละเอียด</a></div></div></li>
<li><img class="mu-stop-thumb" src="../images/stops/39321.jpg" alt="" loading="lazy" decoding="async"><div class="mu-stop-card main"><div class="mu-stop-top"><div><span class="mu-type-pill main">สถานีขนส่งหลัก</span><h2 class="mu-stop-title">บขส.ลพบุรี</h2><p class="mu-loc">เมืองลพบุรี · ลพบุรี</p></div><span class="mu-chip count">1 สาย</span></div><div class="mu-chip-row"><span class="mu-chip route">ทางผ่าน</span><span class="mu-chip">ภูมิภาค</span></div><div class="mu-stop-action"><p class="mu-stop-note">จุดเชื่อมเส้นทางภาคกลางตอนบน</p><a class="mu-row-link" href="./stopDetail.html">ดูรายละเอียด</a></div></div></li>
<li><img class="mu-stop-thumb" src="../images/stops/42110.jpg" alt="" loading="lazy" decoding="async"><div class="mu-stop-card local"><div class="mu-stop-top"><div><span class="mu-type-pill local">จุดจอดท้องถิ่น</span><h2 class="mu-stop-title">จุดขึ้นรถประจำทางอื่นๆ</h2><p class="mu-loc">— · —</p></div><span class="mu-chip count">7 สาย</span></div><div class="mu-chip-row"><span class="mu-chip route">พื้นที่ยืดหยุ่น</span><span class="mu-chip">กระจายตัว</span></div><div class="mu-stop-action"><p class="mu-stop-note">จุดรองรับการเดินทางภายในท้องถิ่น</p><a class="mu-row-link" href="./stopDetail.html">ดูรายละเอียด</a></div></div></li>
<li><img class="mu-stop-thumb" src="../images/stops/42250.jpg" alt="" loading="lazy" decoding="async"><div class="mu-stop-card main"><div class="mu-stop-top"><div><span class="mu-type-pill main">สถานีขนส่งหลัก</span><h2 class="mu-stop-title">บขส.สุพรรณบุรี</h2><p class="mu-loc">เมืองสุพรรณบุรี · สุพรรณบุรี</p></div><span class="mu-chip count">2 สาย</span></div><div class="mu-chip-row"><span class="mu-chip route">สายเชื่อม</span><span class="mu-chip">เมืองรอง</span></div><div class="mu-stop-action"><p class="mu-stop-note">โทนแสงนุ่ม เหมาะกับการต่อรถ</p><a class="mu-row-link" href="./stopDetail.html">ดูรายละเอียด</a></div></div></li>
<li><img class="mu-stop-thumb" src="../images/stops/54950.jpg" alt="" loading="lazy" decoding="async"><div class="mu-stop-card main"><div class="mu-stop-top"><div><span class="mu-type-pill main">สถานีขนส่งหลัก</span><h2 class="mu-stop-title">บขส.สระบุรี</h2><p class="mu-loc">เมืองสระบุรี · สระบุรี</p></div><span class="mu-chip count">1 สาย</span></div><div class="mu-chip-row"><span class="mu-chip route">จุดหลัก</span><span class="mu-chip">ทางผ่าน</span></div><div class="mu-stop-action"><p class="mu-stop-note">เหมาะสำหรับเส้นทางเชื่อมจังหวัดถัดไป</p><a class="mu-row-link" href="./stopDetail.html">ดูรายละเอียด</a></div></div></li>
<li><img class="mu-stop-thumb" src="../images/stops/36020.jpg" alt="" loading="lazy" decoding="async"><div class="mu-stop-card private"><div class="mu-stop-top"><div><span class="mu-type-pill private">จุดเอกชน</span><h2 class="mu-stop-title">นะโมซุปเปอร์มาร์ท</h2><p class="mu-loc">วิเศษชัยชาญ · อ่างทอง</p></div><span class="mu-chip count">1 สาย</span></div><div class="mu-chip-row"><span class="mu-chip route">เอกชน</span><span class="mu-chip">จุดขาย</span></div><div class="mu-stop-action"><p class="mu-stop-note">เป็นจุดจอดย่อยของพื้นที่ชุมชน</p><a class="mu-row-link" href="./stopDetail.html">ดูรายละเอียด</a></div></div></li>
<li><img class="mu-stop-thumb" src="../images/stops/39321.jpg" alt="" loading="lazy" decoding="async"><div class="mu-stop-card van"><div class="mu-stop-top"><div><span class="mu-type-pill van">สถานีรถตู้</span><h2 class="mu-stop-title">สายใต้เก่า ปิ่นเกล้า จุดจอดรถตู้</h2><p class="mu-loc">บางกอกน้อย · กรุงเทพมหานคร</p></div><span class="mu-chip count">1 สาย</span></div><div class="mu-chip-row"><span class="mu-chip route">รถตู้</span><span class="mu-chip">กทม.</span></div><div class="mu-stop-action"><p class="mu-stop-note">โทนสีอุ่นสำหรับรถตู้และมินิบัส</p><a class="mu-row-link" href="./stopDetail.html">ดูรายละเอียด</a></div></div></li>
<li><img class="mu-stop-thumb" src="../images/stops/42110.jpg" alt="" loading="lazy" decoding="async"><div class="mu-stop-card main"><div class="mu-stop-top"><div><span class="mu-type-pill main">สถานีขนส่งหลัก</span><h2 class="mu-stop-title">บขส.ชัยนาท</h2><p class="mu-loc">เมืองชัยนาท · ชัยนาท</p></div><span class="mu-chip count">1 สาย</span></div><div class="mu-chip-row"><span class="mu-chip route">ภาคกลาง</span><span class="mu-chip">ต้นทาง-ปลายทาง</span></div><div class="mu-stop-action"><p class="mu-stop-note">เชื่อมเส้นทางหลักของจังหวัด</p><a class="mu-row-link" href="./stop-detail.html">ดูรายละเอียด</a></div></div></li>
<li><img class="mu-stop-thumb" src="../images/stops/42250.jpg" alt="" loading="lazy" decoding="async"><div class="mu-stop-card main"><div class="mu-stop-top"><div><span class="mu-type-pill main">สถานีขนส่งหลัก</span><h2 class="mu-stop-title">บขส.999 อ่างทอง สายเอเชีย-เหนือ (ไม่เข้าเมือง)</h2><p class="mu-loc">เมืองอ่างทอง · อ่างทอง</p></div><span class="mu-chip count">1 สาย</span></div><div class="mu-chip-row"><span class="mu-chip route">ทางด่วน</span><span class="mu-chip">นอกเมือง</span></div><div class="mu-stop-action"><p class="mu-stop-note">จุดสำหรับสายวิ่งนอกตัวเมือง</p><a class="mu-row-link" href="./stop-detail.html">ดูรายละเอียด</a></div></div></li>
<li><div class="mu-stop-card main"><div class="mu-stop-top"><div><span class="mu-type-pill main">สถานีขนส่งหลัก</span><h2 class="mu-stop-title">สถานีขนส่งไชโย</h2><p class="mu-loc">ไชโย · อ่างทอง</p></div><span class="mu-chip count">เร็วๆ นี้</span></div><div class="mu-chip-row"><span class="mu-chip route">coming soon</span><span class="mu-chip">placeholder</span></div><div class="mu-stop-action"><p class="mu-stop-note">กำลังเตรียมข้อมูลสำหรับแสดงผล</p><a class="mu-row-link" href="./stopDetail.html">ดูรายละเอียด</a></div></div></li>
<li><div class="mu-stop-card main"><div class="mu-stop-top"><div><span class="mu-type-pill main">สถานีขนส่งหลัก</span><h2 class="mu-stop-title">สถานีขนส่งโพธิ์ทอง</h2><p class="mu-loc">โพธิ์ทอง · อ่างทอง</p></div><span class="mu-chip count">เร็วๆ นี้</span></div><div class="mu-chip-row"><span class="mu-chip route">coming soon</span><span class="mu-chip">placeholder</span></div><div class="mu-stop-action"><p class="mu-stop-note">ข้อมูลพร้อมต่อยอดในรอบถัดไป</p><a class="mu-row-link" href="./stopDetail.html">ดูรายละเอียด</a></div></div></li>
<li><div class="mu-stop-card main"><div class="mu-stop-top"><div><span class="mu-type-pill main">สถานีขนส่งหลัก</span><h2 class="mu-stop-title">สถานีขนส่งแสวงหา</h2><p class="mu-loc">แสวงหา · อ่างทอง</p></div><span class="mu-chip count">เร็วๆ นี้</span></div><div class="mu-chip-row"><span class="mu-chip route">coming soon</span><span class="mu-chip">placeholder</span></div><div class="mu-stop-action"><p class="mu-stop-note">เตรียมโครงสำหรับรองรับจังหวัดย่อย</p><a class="mu-row-link" href="./stopDetail.html">ดูรายละเอียด</a></div></div></li>
<li><div class="mu-stop-card main"><div class="mu-stop-top"><div><span class="mu-type-pill main">สถานีขนส่งหลัก</span><h2 class="mu-stop-title">สถานีขนส่งวิเศษชัยชาญ</h2><p class="mu-loc">วิเศษชัยชาญ · อ่างทอง</p></div><span class="mu-chip count">เร็วๆ นี้</span></div><div class="mu-chip-row"><span class="mu-chip route">coming soon</span><span class="mu-chip">placeholder</span></div><div class="mu-stop-action"><p class="mu-stop-note">คิวแผนที่และเวลารถกำลังรอข้อมูล</p><a class="mu-row-link" href="./stopDetail.html">ดูรายละเอียด</a></div></div></li>
<li><div class="mu-stop-card main"><div class="mu-stop-top"><div><span class="mu-type-pill main">สถานีขนส่งหลัก</span><h2 class="mu-stop-title">สถานีขนส่งสามโก้</h2><p class="mu-loc">สามโก้ · อ่างทอง</p></div><span class="mu-chip count">เร็วๆ นี้</span></div><div class="mu-chip-row"><span class="mu-chip route">coming soon</span><span class="mu-chip">placeholder</span></div><div class="mu-stop-action"><p class="mu-stop-note">โครงหน้าเตรียมรองรับข้อมูลในอนาคต</p><a class="mu-row-link" href="./stopDetail.html">ดูรายละเอียด</a></div></div></li>
</ul>
</div>
</main>
<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="../images/icons/minibus-512x512.png" alt="AT Transit">
<div><strong>AT Transit</strong><span>สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</span></div>
</div>
<p class="about">รวมป้ายขึ้น-ลงรถทุกจุดในจังหวัดอ่างทองและจังหวัดใกล้เคียง พร้อมตำแหน่งและสายรถที่ผ่าน</p>
</div>
<div class="mu-footer-col">
<h4>เมนู</h4>
<ul>
<li><a href="./index.html">หน้าแรก</a></li>
<li><a href="./busStop.html">ค้นหาป้ายหยุดรถ</a></li>
<li><a href="./busDetail.html">รายละเอียดสายรถ</a></li>
</ul>
</div>
<div class="mu-footer-col">
<h4>ป้ายยอดนิยม</h4>
<ul>
<li><a href="./stopDetail.html?stop=at_main_terminal&amp;route=101">บขส.อ่างทอง</a></li>
<li><a href="./stopDetail.html?stop=pa_mok_terminal&amp;route=101">สถานีขนส่งป่าโมก</a></li>
<li><a href="./stopDetail.html">ตลาดเจ้าพรหม</a></li>
<li><a href="./stopDetail.html">บขส.ลพบุรี</a></li>
</ul>
</div>
<div class="mu-footer-col mu-footer-contact">
<h4>ติดต่อ</h4>
<div class="row"><a href="tel:+66649639025">📞 +66 64 963 9025</a></div>
<div class="row"><span>📍 ถนนเทศบาล 1 อ.เมือง อ่างทอง</span></div>
<div class="row"><span>🕒 บริการ 04:30 - 21:00 น.</span></div>
<div class="row"><a href="#">💬 LINE Official: @attransit</a></div>
</div>
</div>
<div class="mu-footer-bottom">
<p>© 2026 AT Transit <span class="pill">mockup template</span></p>
</div>
</div>
</footer>
</body>
</html>
+387
View File
@@ -0,0 +1,387 @@
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<title>หน้าแรก | AT Transit (mockup)</title>
<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">
<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; }
/* Page-specific: hero */
.mu-hero { position: relative; overflow: hidden; }
.mu-hero-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .14; 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, #7a4cc0 0%, #b07ce0 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 overrides */
.tag-sky ~ .mu-grid .mu-card-head,
.mu-zone:has(.tag-sky) .mu-card-head { background: linear-gradient(135deg, #3071b8 0%, #6ea7e8 100%); }
.mu-zone:has(.tag-purple) .mu-card-head { background: linear-gradient(135deg, #7a4cc0 0%, #b07ce0 100%); }
.mu-zone:has(.tag-pink) .mu-card-head { background: linear-gradient(135deg, #bb3a78 0%, #f08bb9 100%); }
.mu-zone:has(.tag-mint) .mu-card-head { background: linear-gradient(135deg, #1f8765 0%, #51c39c 100%); }
.mu-route-info { padding: 14px 16px 16px; background: #fff; }
.mu-route-name { margin: 0 0 10px; font-size: .95rem; color: #1f2a44; font-weight: 700; }
/* ===== maintheme.png look: topbar, hero, zones, grid, summary, footer ===== */
body.main-theme-page { margin: 0; font-family: 'Noto Sans Thai','Prompt',system-ui,sans-serif; color: #1f2a44; background: #f7f9fd; }
.mu-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
/* Topbar */
.mu-topbar { background: #ffffff; border-bottom: 1px solid #e9eef7; position: sticky; top: 0; z-index: 50; 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; }
.mu-logo-img { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg,#8b5cf6,#ec4899); padding: 4px; }
.mu-brand-title { margin: 0; font-weight: 800; font-size: 1.05rem; color: #1f2a44; }
.mu-brand-subtitle { margin: 0; font-size: .72rem; color: #6f7b95; }
.mu-nav { margin-left: auto; display: flex; gap: 28px; }
.mu-nav a { color: #4a5876; 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: #1f2a44; }
.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: .14; 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: #b794f4; top: -50px; left: 8%; }
.mu-blob.two { width: 260px; height: 260px; background: #f9a8d4; top: 40%; right: 8%; }
.mu-blob.three{ width: 180px; height: 180px; background: #fde68a; bottom: -40px; left: 38%; }
.mu-hero-content { position: relative; z-index: 1; }
.mu-badge { display: inline-block; background: rgba(255,255,255,.7); backdrop-filter: blur(6px); color: #6d28d9; 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: #1f2a44; }
.mu-gradient-text { background: linear-gradient(120deg, #d946ef 10%, #a855f7 60%, #6366f1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.mu-station { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e2e8f5; border-radius: 14px; padding: 6px 14px; box-shadow: 0 6px 16px rgba(40,60,120,.08); min-width: 340px; }
.mu-station select { border: none; outline: none; background: transparent; font-family: inherit; font-size: .95rem; padding: 8px 4px; flex: 1; color: #1f2a44; }
/* Zones / grid */
main.mu-container { padding-top: 40px; padding-bottom: 40px; }
.mu-zone { margin-bottom: 32px; }
.mu-zone-head { display: flex; align-items: center; gap: 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: #dbeafe; color: #1d4ed8; }
.mu-zone-tag.tag-pink { background: #fce7f3; color: #be185d; }
.mu-zone-tag.tag-purple { background: #ede9fe; color: #6d28d9; }
.mu-zone-tag.tag-mint { background: #d1fae5; color: #047857; }
.mu-zone-sub, .mu-zone-desc { color: #6f7b95; font-size: .88rem; margin: 0; }
.mu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
/* Cards */
a.mu-card { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(20,40,90,.06); transition: transform .15s, box-shadow .15s; }
a.mu-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,40,90,.1); }
/* Zone tints — apply via nth pattern using zone tag presence */
.mu-zone:nth-of-type(1) .mu-card-head { background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%) !important; }
.mu-zone:nth-of-type(2) .mu-card-head { background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%) !important; }
.mu-zone:nth-of-type(3) .mu-card-head { background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%) !important; }
.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: #1f2a44; font-weight: 700; }
.mu-card .mu-badge { background: #dcfce7; color: #15803d; 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: #dcfce7; color: #15803d; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-sky { background: #dbeafe; color: #1d4ed8; }
.badge-pink { background: #fce7f3; color: #be185d; }
.badge-mint { background: #d1fae5; color: #047857; }
.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: #1f2a44; font-weight: 800; }
.mu-stat p { margin: 0; font-size: .82rem; color: #4a5876; font-weight: 600; }
.mu-stat.tag-pink { background: #fce7f3; }
.mu-stat.tag-sky { background: #dbeafe; }
.mu-stat.tag-purple { background: #ede9fe; }
.mu-stat.tag-mint { background: #d1fae5; }
</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">
<div>
<p class="mu-brand-title">AT Transit</p>
<p class="mu-brand-subtitle">สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</p>
</div>
</div>
<nav class="mu-nav" aria-label="เมนูหลัก">
<a class="active" href="./index.html">หน้าแรก</a>
<a href="./busStop.html">ป้ายหยุดรถ</a>
<a href="./busDetail.html">รายละเอียดสายรถ</a>
</nav>
<a class="mu-action-btn" href="./busDetail.html">เช็กเวลาเดินรถ</a>
</div>
</header>
<section class="mu-hero">
<img class="mu-hero-map" src="../images/network/overview-map.png" alt="" aria-hidden="true" fetchpriority="high" decoding="async">
<div class="mu-blob one"></div>
<div class="mu-blob two"></div>
<div class="mu-blob three"></div>
<div class="mu-container mu-hero-content">
<span class="mu-badge">✨ ยินดีต้อนรับ</span>
<h1>สถานีขนส่งผู้โดยสารภายใน<br><span class="mu-gradient-text">จังหวัดอ่างทอง</span></h1>
<div class="mu-station">
<span>📍</span>
<select aria-label="เลือกสถานี">
<option>บขส.อ่างทอง</option>
<option>สถานีขนส่งป่าโมก</option>
<option>จุดขึ้นลงรถสองแถว 101 อยุธยา-ป่าโมก-อ่างทอง</option>
<option>ตลาดเจ้าพรหม</option>
<option>ท่ารถตู้ต่างจังหวัด รังสิต</option>
<option>สถานีเดินรถโดยสารขนาดเล็ก (จตุจักร) รถตู้/มินิบัส</option>
<option>บขส.ลพบุรี</option>
<option>จุดขึ้นรถประจำทางอื่นๆ</option>
<option>บขส.สุพรรณบุรี</option>
<option>บขส.สระบุรี</option>
<option>นะโมซุปเปอร์มาร์ท</option>
<option>สายใต้เก่า ปิ่นเกล้า จุดจอดรถตู้</option>
<option>บขส.ชัยนาท</option>
<option>บขส.999 อ่างทอง สายเอเชีย-เหนือ (ไม่เข้าเมือง)</option>
<option>สถานีขนส่งไชโย</option>
<option>สถานีขนส่งโพธิ์ทอง</option>
<option>สถานีขนส่งแสวงหา</option>
<option>สถานีขนส่งวิเศษชัยชาญ</option>
<option>สถานีขนส่งสามโก้</option>
</select>
<span>▾</span>
</div>
<div class="mu-hero-actions">
<a class="mu-pill-link" href="./busDetail.html?route=101">ดูรายละเอียดสายรถ</a>
<a class="mu-pill-link" href="./busStop.html">ค้นหาป้ายหยุดรถ</a>
<a class="mu-pill-link" href="./stopDetail.html?stop=at_main_terminal&amp;route=101">ดูตัวอย่างป้ายหยุด</a>
</div>
</div>
</section>
<main class="mu-main">
<div class="mu-container">
<!-- หมวด 1: เข้ากรุงเทพฯ -->
<section class="mu-zone">
<div class="mu-zone-head">
<span class="mu-zone-tag tag-sky">หมวดเส้นทางเข้ากรุงเทพฯ</span>
<p class="mu-zone-desc">เส้นทางเชื่อมต่อกรุงเทพมหานคร · 6 เส้นทาง</p>
</div>
<div class="mu-grid">
<a class="mu-card" href="./busDetail.html?route=902">
<div class="mu-card-head"><p class="mu-route-number">902</p></div>
<div class="mu-route-info">
<p class="mu-route-name">กรุงเทพ-อ่างทอง สายเอเซีย</p>
<div class="mu-route-chip-wrap"><span class="mu-next-trip badge-purple">✅ ดูตาราง</span></div>
</div>
</a>
<a class="mu-card" href="./busDetail.html?route=15">
<div class="mu-card-head"><p class="mu-route-number">15</p></div>
<div class="mu-route-info">
<p class="mu-route-name">กรุงเทพ-อ่างทอง สายใน</p>
<div class="mu-route-chip-wrap"><span class="mu-next-trip badge-sky">✅ ดูตาราง</span></div>
</div>
</a>
<a class="mu-card" href="./busDetail.html?route=951">
<div class="mu-card-head"><p class="mu-route-number">951</p></div>
<div class="mu-route-info">
<p class="mu-route-name">กรุงเทพ-วิเศษ-สุพรรณ</p>
<div class="mu-route-chip-wrap"><span class="mu-next-trip badge-pink">✅ ดูตาราง</span></div>
</div>
</a>
<a class="mu-card" href="./busDetail.html?route=952">
<div class="mu-card-head"><p class="mu-route-number">952</p></div>
<div class="mu-route-info">
<p class="mu-route-name">กรุงเทพ-วิเศษชัยชาญ</p>
<div class="mu-route-chip-wrap"><span class="mu-next-trip badge-mint">✅ ดูตาราง</span></div>
</div>
</a>
<a class="mu-card" href="./busDetail.html?route=954">
<div class="mu-card-head"><p class="mu-route-number">954</p></div>
<div class="mu-route-info">
<p class="mu-route-name">กรุงเทพ-ท่าช้าง</p>
<div class="mu-route-chip-wrap"><span class="mu-next-trip badge-purple">✅ ดูตาราง</span></div>
</div>
</a>
<a class="mu-card" href="./busDetail.html?route=8">
<div class="mu-card-head"><p class="mu-route-number">8</p></div>
<div class="mu-route-info">
<p class="mu-route-name">กรุงเทพ-สรรคบุรี-ชัยนาท</p>
<div class="mu-route-chip-wrap"><span class="mu-next-trip badge-sky">✅ ดูตาราง</span></div>
</div>
</a>
</div>
</section>
<!-- หมวด 3: ระหว่างจังหวัด -->
<section class="mu-zone">
<div class="mu-zone-head">
<span class="mu-zone-tag tag-purple">หมวดเส้นทางระหว่างจังหวัด</span>
<p class="mu-zone-desc">เส้นทางเชื่อมต่อจังหวัดใกล้เคียง · 4 เส้นทาง</p>
</div>
<div class="mu-grid">
<a class="mu-card" href="./busDetail.html?route=101">
<div class="mu-card-head"><p class="mu-route-number">101</p></div>
<div class="mu-route-info">
<p class="mu-route-name">อ่างทอง-ป่าโมก-อยุธยา</p>
<div class="mu-route-chip-wrap"><span class="mu-next-trip badge-purple">⏰ เที่ยวถัดไป 09:30</span></div>
</div>
</a>
<a class="mu-card" href="./busDetail.html?route=464">
<div class="mu-card-head"><p class="mu-route-number">464</p></div>
<div class="mu-route-info">
<p class="mu-route-name">สุพรรณ-อ่างทอง-สระบุรี</p>
<div class="mu-route-chip-wrap"><span class="mu-next-trip badge-sky">⏰ เที่ยวถัดไป 18:00</span></div>
</div>
</a>
<a class="mu-card" href="./busDetail.html?route=641">
<div class="mu-card-head"><p class="mu-route-number">641</p></div>
<div class="mu-route-info">
<p class="mu-route-name">อ่างทอง-บ้านแพรก-ลพบุรี</p>
<div class="mu-route-chip-wrap"><span class="mu-next-trip badge-pink">✅ ดูตาราง</span></div>
</div>
</a>
<a class="mu-card" href="./busDetail.html?route=2194">
<div class="mu-card-head"><p class="mu-route-number">2194</p></div>
<div class="mu-route-info">
<p class="mu-route-name">หัวเวียง-อยุธยา</p>
<div class="mu-route-chip-wrap"><span class="mu-next-trip badge-mint">✅ ดูตาราง</span></div>
</div>
</a>
</div>
</section>
<!-- หมวด 4: ภายในจังหวัด -->
<section class="mu-zone">
<div class="mu-zone-head">
<span class="mu-zone-tag tag-pink">หมวดเส้นทางภายในจังหวัด</span>
<p class="mu-zone-desc">เส้นทางภายในจังหวัดอ่างทอง · 4 เส้นทาง</p>
</div>
<div class="mu-grid">
<a class="mu-card" href="./busDetail.html?route=324">
<div class="mu-card-head"><p class="mu-route-number">324</p></div>
<div class="mu-route-info">
<p class="mu-route-name">อ่างทอง-วัดพิกุลทอง</p>
<div class="mu-route-chip-wrap"><span class="mu-next-trip badge-pink">✅ ดูตาราง</span></div>
</div>
</a>
<a class="mu-card" href="./busDetail.html?route=1011">
<div class="mu-card-head"><p class="mu-route-number">1011</p></div>
<div class="mu-route-info">
<p class="mu-route-name">อ่างทอง-สีบัวทอง</p>
<div class="mu-route-chip-wrap"><span class="mu-next-trip badge-mint">✅ ดูตาราง</span></div>
</div>
</a>
<a class="mu-card" href="./busDetail.html?route=2231">
<div class="mu-card-head"><p class="mu-route-number">2231</p></div>
<div class="mu-route-info">
<p class="mu-route-name">อ่างทอง-มหานาม</p>
<div class="mu-route-chip-wrap"><span class="mu-next-trip badge-purple">✅ ดูตาราง</span></div>
</div>
</a>
<a class="mu-card" href="./busDetail.html?route=999">
<div class="mu-card-head"><p class="mu-route-number">999</p></div>
<div class="mu-route-info">
<p class="mu-route-name">บขส.อ่างทอง สายเอเชีย-เหนือ</p>
<div class="mu-route-chip-wrap"><span class="mu-next-trip badge-sky">⌛ ยังไม่มีตาราง</span></div>
</div>
</a>
</div>
</section>
</div>
</main>
<section class="mu-summary">
<div class="mu-container mu-summary-grid">
<article class="mu-stat tag-pink"><h3>14</h3><p>เส้นทางทั้งหมด</p></article>
<article class="mu-stat tag-sky"><h3>4</h3><p>หมวดเส้นทาง</p></article>
<article class="mu-stat tag-purple"><h3>19</h3><p>สถานี/ป้ายหยุด</p></article>
<article class="mu-stat tag-mint"><h3>9</h3><p>จังหวัดที่ครอบคลุม</p></article>
</div>
</section>
<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="../images/icons/minibus-512x512.png" alt="AT Transit">
<div>
<strong>AT Transit</strong>
<span>สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</span>
</div>
</div>
<p class="about">ศูนย์รวมข้อมูลตารางเดินรถ จุดจอด และเส้นทางในจังหวัดอ่างทองและจังหวัดใกล้เคียง อัปเดตข้อมูลล่าสุดจากผู้ประกอบการแต่ละสายโดยตรง</p>
</div>
<div class="mu-footer-col">
<h4>เมนู</h4>
<ul>
<li><a href="./index.html">หน้าแรก</a></li>
<li><a href="./busStop.html">ค้นหาป้ายหยุดรถ</a></li>
<li><a href="./busDetail.html">รายละเอียดสายรถ</a></li>
<li><a href="./busDetailExpanded.html">ตารางขยาย</a></li>
</ul>
</div>
<div class="mu-footer-col">
<h4>สายยอดนิยม</h4>
<ul>
<li><a href="./busDetail.html?route=101">สาย 101 · อ่างทอง-อยุธยา</a></li>
<li><a href="./busDetail.html?route=902">สาย 902 · กรุงเทพ-อ่างทอง</a></li>
<li><a href="./busDetail.html?route=15">สาย 15 · สายใน</a></li>
<li><a href="./busDetail.html?route=464">สาย 464 · สุพรรณ-สระบุรี</a></li>
</ul>
</div>
<div class="mu-footer-col mu-footer-contact">
<h4>ติดต่อ</h4>
<div class="row"><a href="tel:+66649639025">📞 +66 64 963 9025</a></div>
<div class="row"><span>📍 ถนนเทศบาล 1 อ.เมือง อ่างทอง</span></div>
<div class="row"><span>🕒 บริการ 04:30 - 21:00 น.</span></div>
<div class="row"><a href="#">💬 LINE Official: @attransit</a></div>
</div>
</div>
<section class="mu-footer-sponsors" aria-label="sponsors and partners">
<h4>ผู้สนับสนุน &amp; พาร์ทเนอร์</h4>
<p class="lead">จองตั๋ว · สั่งของ · เช็กของฝาก ที่ร้านค้าและบริการพันธมิตรของเรา</p>
<div class="mu-sponsor-strip">
<a class="mu-sponsor-tile" href="#" aria-label="7-Eleven"><img src="../images/partners/7-11.png" alt="7-Eleven" loading="lazy" decoding="async"></a>
<a class="mu-sponsor-tile" href="#" aria-label="Shopee"><img src="../images/partners/shopee.png" alt="Shopee" loading="lazy" decoding="async"></a>
<a class="mu-sponsor-tile" href="#" aria-label="Lazada"><img src="../images/partners/lazada.png" alt="Lazada" loading="lazy" decoding="async"></a>
<a class="mu-sponsor-tile" href="#" aria-label="airasia MOVE"><img src="../images/partners/airasia-move.png" alt="airasia MOVE" loading="lazy" decoding="async"></a>
<a class="mu-sponsor-tile" href="#" aria-label="busonlineticket"><img src="../images/partners/busonlineticket.png" alt="busonlineticket" loading="lazy" decoding="async"></a>
<a class="mu-sponsor-tile" href="#" aria-label="Trip.com"><img src="../images/partners/trip.jpg" alt="Trip.com" loading="lazy" decoding="async"></a>
<a class="mu-sponsor-tile" href="#" aria-label="truck2hand"><img src="../images/partners/truck2hand.png" alt="truck2hand" loading="lazy" decoding="async"></a>
<a class="mu-sponsor-tile" href="#" aria-label="ทีซีแอล 999 อ่างทอง"><img src="../images/partners/tcl999-angthong.jpg" alt="ทีซีแอล 999 อ่างทอง" loading="lazy" decoding="async"></a>
</div>
</section>
<div class="mu-footer-bottom">
<p>© 2026 AT Transit <span class="pill">mockup template</span></p>
</div>
</div>
</footer>
</body>
</html>
+863
View File
@@ -0,0 +1,863 @@
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<title>รายละเอียดป้าย | AT Transit (mockup)</title>
<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">
<style>
:root {
--mu-accent: #7a4cc0;
--mu-accent-soft: #f3eafe;
--mu-ink: #1f2a44;
--mu-muted: #6f7b95;
--mu-border: #ecd7e6;
--mu-surface: #ffffff;
--mu-rose: #ec4899;
--mu-sky: #3071b8;
--mu-mint: #1f8765;
}
.mu-page {
background:
radial-gradient(circle at 8% 10%, rgba(122, 76, 192, 0.09), transparent 30%),
radial-gradient(circle at 100% 0%, rgba(48, 113, 184, 0.10), transparent 28%),
linear-gradient(180deg, #fcfbff 0%, #f8f9ff 100%);
}
.mu-stop-hero {
position: relative;
overflow: hidden;
border: 1px solid rgba(231, 224, 246, 0.95);
border-radius: 22px;
background: linear-gradient(135deg, #f8f4ff 0%, #f2f6ff 45%, #eefaf5 100%);
box-shadow: 0 16px 34px rgba(122, 76, 192, 0.12);
padding: 18px;
margin-bottom: 14px;
display: grid;
grid-template-columns: 1.2fr .8fr;
gap: 16px;
align-items: stretch;
}
.mu-stop-hero::before,
.mu-stop-hero::after {
content: "";
position: absolute;
border-radius: 999px;
pointer-events: none;
opacity: .48;
}
.mu-stop-hero::before {
width: 220px;
height: 220px;
top: -120px;
right: -70px;
background: radial-gradient(circle, #f472b6 0%, rgba(244, 114, 182, 0) 72%);
}
.mu-stop-hero::after {
width: 200px;
height: 200px;
left: -70px;
bottom: -115px;
background: radial-gradient(circle, #60a5fa 0%, rgba(96, 165, 250, 0) 72%);
}
.mu-stop-hero > * {
position: relative;
z-index: 1;
}
.mu-stop-hero-title {
margin: 0;
font-size: 1.72rem;
color: var(--mu-ink);
line-height: 1.2;
}
.mu-stop-hero-sub {
margin: 8px 0 0;
color: var(--mu-muted);
font-size: .9rem;
}
.mu-meta-row { display:flex; flex-wrap:wrap; gap:8px; margin: 12px 0 0; }
.mu-meta-pill { background:linear-gradient(135deg, #ffffff, #f7f9ff); border:1px solid rgba(231, 224, 246, 0.9); color:#5b3b71; padding:6px 14px; border-radius:999px; font-size:.85rem; font-weight:600; box-shadow: 0 4px 10px rgba(122, 76, 192, 0.08); }
.mu-meta-pill.purple { background:linear-gradient(135deg, #f5eeff, #fce7f3); color:#7a4cc0; border-color:#e8d9f0; }
.mu-meta-pill.sky { background:linear-gradient(135deg, #ebf5ff, #eff6ff); color:#3071b8; border-color:#d7e7fb; }
.mu-meta-pill.mint { background:linear-gradient(135deg, #eafaf4, #ecfeff); color:#1f8765; border-color:#d1efdf; }
.mu-direction-tag { background:#7a4cc0; color:#fff; border-radius:999px; padding:2px 10px; font-size:.78rem; margin-left:8px; }
.mu-schedule-note { color:#9a3b6e; font-size:.8rem; margin-top:8px; padding:8px 12px; background:#fff5f9; border-left:3px solid #bb3a78; border-radius:4px; }
.mu-hero-metric-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
margin-top: 12px;
}
.mu-hero-metric {
border: 1px solid rgba(231, 224, 246, 0.9);
border-radius: 12px;
padding: 10px;
background: #fff;
box-shadow: 0 6px 14px rgba(122, 76, 192, 0.08);
}
.mu-hero-metric:nth-child(1) { background: linear-gradient(135deg, #f5efff, #fdf2f8); }
.mu-hero-metric:nth-child(2) { background: linear-gradient(135deg, #ecfeff, #eef6ff); }
.mu-hero-metric:nth-child(3) { background: linear-gradient(135deg, #fff1f2, #fff7ed); }
.mu-hero-metric:nth-child(4) { background: linear-gradient(135deg, #ecfdf5, #f0fdfa); }
.mu-hero-metric-label {
margin: 0;
color: var(--mu-muted);
font-size: .76rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .03em;
}
.mu-hero-metric-value {
margin: 4px 0 0;
color: var(--mu-ink);
font-size: 1.06rem;
font-weight: 800;
line-height: 1.2;
}
.mu-stop-summary-main { order: 2; }
.mu-route-type-badge { display: inline-block; order: 3; background: linear-gradient(135deg, #f5eeff, #fce7f3); color: #7a4cc0; padding: 4px 8px; border-radius: 8px; font-size: .8rem; font-weight: 700; margin-left: auto; margin-right: 0; border: 1px solid #e8d9f0; }
.mu-stop-summary-rail { order: 4; margin-left: 10px; }
.mu-live-clock-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
margin: 6px 0 14px;
padding: 12px 14px;
border: 1px solid rgba(240, 191, 224, 0.9);
border-radius: 14px;
background: linear-gradient(135deg, #ffe8f4 0%, #f5f0ff 50%, #e8f7ff 100%);
box-shadow: 0 8px 20px rgba(122, 76, 192, 0.10);
}
.mu-live-clock-title {
margin: 0;
color: #6f7b95;
font-size: .78rem;
font-weight: 700;
letter-spacing: .04em;
text-transform: uppercase;
}
.mu-live-clock-time {
margin: 2px 0 0;
font-size: 1.65rem;
line-height: 1;
color: #1f2a44;
font-weight: 800;
font-family: "Prompt", "Noto Sans Thai", sans-serif;
}
.mu-live-clock-note {
margin: 0;
padding: 6px 10px;
border-radius: 999px;
background: linear-gradient(135deg, #ffffff, #fff7fb);
border: 1px solid #eec7df;
color: #9333ea;
font-size: .78rem;
font-weight: 600;
white-space: nowrap;
}
.mu-live-dot {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 999px;
background: #ec4899;
margin-right: 6px;
animation: muPulse 1.6s infinite;
vertical-align: middle;
}
.mu-next-arrival {
display: inline-flex;
align-items: center;
gap: 6px;
background: #fff;
border: 1px solid #f0d6e6;
color: #9a3b6e;
border-radius: 999px;
padding: 3px 10px;
font-size: .76rem;
font-weight: 700;
line-height: 1;
}
.mu-next-arrival::before {
content: "⏱";
font-size: .85rem;
line-height: 1;
}
.mu-time-chip.next-live {
background: linear-gradient(135deg, #ec4899, #8b5cf6);
border-color: transparent;
color: #fff;
box-shadow: 0 6px 14px rgba(139, 92, 246, 0.28);
transform: translateY(-1px);
}
.mu-panel {
border: 1px solid rgba(231, 224, 246, 0.95);
border-radius: 18px;
background: linear-gradient(180deg, #ffffff, #fffbfe);
box-shadow: 0 10px 24px rgba(122, 76, 192, 0.09);
}
.mu-info-grid {
display: grid;
grid-template-columns: repeat(4, minmax(140px, 1fr));
gap: 10px;
margin: 16px 0 18px;
}
.mu-info-card {
border-radius: 14px;
padding: 12px 14px;
border: 1px solid #e9e2fb;
box-shadow: 0 8px 24px rgba(67, 56, 202, 0.08);
}
.mu-info-card .label { font-size: .78rem; color:#66728f; margin:0; font-weight:700; }
.mu-info-card .value { margin:4px 0 0; font-size:1rem; font-weight:700; color:#2b2f42; }
.mu-layout-grid {
display: grid;
grid-template-columns: 1.35fr .9fr;
gap: 16px;
align-items: start;
}
.mu-card-panel {
background: #fff;
border: 1px solid #ebe8f4;
border-radius: 16px;
padding: 18px;
box-shadow: 0 8px 24px rgba(67, 56, 202, 0.08);
}
.mu-card-panel h2,
.mu-card-panel h3 { margin-top:0; }
.mu-chip {
display:inline-flex;
align-items:center;
gap:6px;
padding:6px 10px;
border-radius:999px;
font-size:.8rem;
font-weight:700;
}
@media (max-width: 980px) {
.mu-info-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
.mu-layout-grid { grid-template-columns: 1fr; }
}
.mu-panel h2 {
position: relative;
padding-left: 14px;
margin-bottom: 14px;
}
.mu-panel h2::before {
content: "";
position: absolute;
left: 0;
top: 4px;
width: 6px;
height: 24px;
border-radius: 999px;
background: linear-gradient(180deg, #ec4899, #8b5cf6);
}
.mu-route-tools {
display: flex;
align-items: center;
gap: 8px;
margin: 0 0 12px;
flex-wrap: wrap;
}
.mu-route-filter {
flex: 1;
min-width: 240px;
border: 1px solid rgba(214, 199, 226, 0.9);
border-radius: 12px;
padding: 10px 12px;
font-size: .9rem;
color: var(--mu-ink);
background: linear-gradient(180deg, #ffffff, #f8fbff);
outline: none;
box-shadow: 0 2px 4px rgba(0,0,0,.02);
}
.mu-route-filter:focus {
border-color: #c9a9eb;
box-shadow: 0 0 0 3px rgba(122, 76, 192, 0.12);
}
.mu-route-count {
border: 1px solid rgba(233, 200, 251, 0.9);
background: linear-gradient(135deg, #faf5ff, #fdf2f8);
color: #6b21a8;
border-radius: 999px;
padding: 8px 12px;
font-size: .8rem;
font-weight: 700;
}
.mu-stop-expander {
border: 1px solid rgba(243, 228, 238, 0.95);
border-radius: 14px;
margin-bottom: 8px;
overflow: hidden;
background: linear-gradient(180deg, #fff, #fffafe);
}
.mu-stop-expander[open] {
border-color: rgba(226, 201, 245, 0.95);
box-shadow: 0 8px 18px rgba(122, 76, 192, 0.10);
}
.mu-stop-expander > summary {
background: linear-gradient(180deg, #fff, #fff6fb);
padding: 14px;
}
.mu-stop-list > li:nth-child(4n + 1) .mu-stop-expander > summary { border-left: 4px solid #8b5cf6; }
.mu-stop-list > li:nth-child(4n + 2) .mu-stop-expander > summary { border-left: 4px solid #38bdf8; }
.mu-stop-list > li:nth-child(4n + 3) .mu-stop-expander > summary { border-left: 4px solid #f472b6; }
.mu-stop-list > li:nth-child(4n + 4) .mu-stop-expander > summary { border-left: 4px solid #34d399; }
.mu-stop-expander-body {
background: linear-gradient(180deg, #fffcff, #fffcfd);
padding-left: 58px;
border-top: 1px solid #f6eaf2;
}
.mu-toolbar {
margin-top: 10px;
margin-bottom: 12px;
background: rgba(255,255,255,.8);
backdrop-filter: blur(8px);
border: 1px solid rgba(231, 224, 246, 0.9);
border-radius: 14px;
padding: 10px;
}
@media (max-width: 980px) {
.mu-stop-hero {
grid-template-columns: 1fr;
}
.mu-hero-metric-grid {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 640px) {
.mu-stop-summary-rail {
gap: 6px;
}
.mu-next-arrival {
font-size: .72rem;
}
.mu-stop-expander-body {
padding-left: 14px;
}
.mu-route-filter {
min-width: 100%;
}
}
@keyframes muPulse {
0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.38); }
70% { box-shadow: 0 0 0 8px rgba(236, 72, 153, 0); }
100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}
/* === 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-stop-hero-photo { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; display: block; margin-bottom: 12px; box-shadow: 0 10px 24px rgba(63,43,94,.16); }
.mu-nearby {
background: #fff; border: 1px solid var(--mu-border); border-radius: 20px;
padding: 18px; margin: 14px 0; box-shadow: 0 10px 24px rgba(63,43,94,.06);
}
.mu-nearby h2 { margin: 0 0 4px; font-size: 1.15rem; color: var(--mu-ink); }
.mu-nearby p.sub { margin: 0 0 14px; color: var(--mu-muted); font-size: .85rem; }
.mu-nearby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mu-nearby-card { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 6px 14px rgba(63,43,94,.10); cursor: pointer; transition: transform .2s ease; }
.mu-nearby-card:hover { transform: translateY(-3px); }
.mu-nearby-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.mu-nearby-card:hover img { transform: scale(1.06); }
.mu-nearby-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,0) 50%, rgba(15,23,42,.65) 100%); }
.mu-nearby-card .cap { position: absolute; left: 12px; right: 12px; bottom: 10px; color: #fff; z-index: 1; font-weight: 700; font-size: .92rem; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.mu-nearby-card .cap small { display: block; font-weight: 500; opacity: .85; font-size: .76rem; }
</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">
<div>
<p class="mu-brand-title">AT Transit</p>
<p class="mu-brand-subtitle">สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</p>
</div>
</div>
<nav class="mu-nav">
<a href="./index.html">หน้าแรก</a>
<a href="./busStop.html">ป้ายหยุดรถ</a>
<a href="./busDetail.html">รายละเอียดสายรถ</a>
</nav>
<a class="mu-action-btn" href="./busDetail.html">ดูตารางเวลา</a>
</div>
</header>
<main class="mu-page">
<div class="mu-container">
<p class="mu-breadcrumb"><a href="./index.html">หน้าแรก</a>/ <a href="./busstop.html">ป้ายหยุดรถ</a>/ บขส.อ่างทอง</p>
<section class="mu-stop-hero">
<div>
<h1 class="mu-stop-hero-title">📍 บขส.อ่างทอง</h1>
<p class="mu-stop-hero-sub">ศูนย์รวมรถโดยสารหลักของจังหวัดอ่างทอง พร้อมข้อมูลเวลารถแบบอ่านง่ายและหาเที่ยวถัดไปได้ทันที</p>
<div class="mu-meta-row">
<span class="mu-meta-pill purple">สถานีขนส่งหลัก</span>
<span class="mu-meta-pill sky">รหัส: at_main_terminal</span>
<span class="mu-meta-pill mint">เมืองอ่างทอง · จังหวัดอ่างทอง</span>
</div>
<div class="mu-hero-metric-grid">
<div class="mu-hero-metric">
<p class="mu-hero-metric-label">จำนวนสายรถ</p>
<p class="mu-hero-metric-value">8 สายหลัก</p>
</div>
<div class="mu-hero-metric">
<p class="mu-hero-metric-label">เวลาบริการ</p>
<p class="mu-hero-metric-value">04:30 - 21:00</p>
</div>
<div class="mu-hero-metric">
<p class="mu-hero-metric-label">เที่ยวเร็วสุดถัดไป</p>
<p class="mu-hero-metric-value">คำนวณอัตโนมัติ</p>
</div>
<div class="mu-hero-metric">
<p class="mu-hero-metric-label">สิ่งอำนวยความสะดวก</p>
<p class="mu-hero-metric-value">ห้องน้ำ · ที่พักคอย · ร้านอาหาร</p>
</div>
</div>
</div>
<div>
<img class="mu-stop-hero-photo" src="../images/stops/54950.jpg" alt="ผังป้าย บขส.อ่างทอง" fetchpriority="high" decoding="async">
<div class="mu-live-clock-card" id="mu-live-clock-card">
<div>
<p class="mu-live-clock-title">เวลาปัจจุบัน ณ ป้ายนี้</p>
<p class="mu-live-clock-time" id="mu-current-time">--:--</p>
</div>
<p class="mu-live-clock-note"><span class="mu-live-dot"></span>กำลังคำนวณเที่ยวถัดไปอัตโนมัติ</p>
</div>
</div>
</section>
<section class="mu-nearby" aria-label="สถานที่ใกล้เคียง">
<h2>ใกล้เคียงป้าย</h2>
<p class="sub">สถานที่น่าสนใจและจุดแวะระหว่างรอรถได้สะดวก · เดินถึงได้ภายใน 5–10 นาที</p>
<div class="mu-nearby-grid">
<div class="mu-nearby-card"><img src="../images/landmarks/riverbank.jpg" alt="ริมแม่น้ำเจ้าพระยา" loading="lazy" decoding="async"><p class="cap">ริมแม่น้ำเจ้าพระยา<small>จุดพักผ่อน · เดิน 6 นาที</small></p></div>
<div class="mu-nearby-card"><img src="../images/landmarks/waterpark.png" alt="สวนน้ำอ่างทอง" loading="lazy" decoding="async"><p class="cap">สวนน้ำอ่างทอง<small>สวนสนุก · เดิน 8 นาที</small></p></div>
<div class="mu-nearby-card"><img src="../images/landmarks/temple.png" alt="วัดใกล้สถานี" loading="lazy" decoding="async"><p class="cap">วัดสำคัญใกล้ป้าย<small>จุดแวะสักการะ · เดิน 5 นาที</small></p></div>
<div class="mu-nearby-card"><img src="../images/landmarks/market.png" alt="ตลาดใกล้สถานี" loading="lazy" decoding="async"><p class="cap">ตลาดชุมชน<small>อาหาร · ติดป้าย</small></p></div>
</div> </section>
<div class="mu-toolbar">
<a class="mu-btn primary" href="./busDetail.html?route=101&amp;origin=at_main_terminal">ดูตารางเวลาสายรถ 101</a>
<a class="mu-back-btn" href="./busstop.html">← กลับไปยังรายการป้าย</a>
</div>
<section class="mu-info-grid" aria-label="stop highlights">
<article class="mu-info-card" style="background:linear-gradient(135deg, #f7f1ff, #f2e8ff);">
<p class="label">จำนวนสายรถ</p>
<p class="value">8 สาย</p>
</article>
<article class="mu-info-card" style="background:linear-gradient(135deg, #edf6ff, #e8f3ff); border-color:#d7e7fb;">
<p class="label">เวลาบริการ</p>
<p class="value">04:30 - 21:00</p>
</article>
<article class="mu-info-card" style="background:linear-gradient(135deg, #eefdf6, #e7f9f1); border-color:#d1efdf;">
<p class="label">ประเภท</p>
<p class="value">สถานีหลัก</p>
</article>
<article class="mu-info-card" style="background:linear-gradient(135deg, #fff5fa, #ffeef6); border-color:#f7d6e5;">
<p class="label">สิ่งอำนวยความสะดวก</p>
<p class="value">ครบครัน</p>
</article>
</section>
<section class="mu-layout-grid">
<div class="mu-card-panel">
<h2>สายรถที่ผ่านจุดนี้</h2>
<div class="mu-route-tools">
<input id="mu-route-filter" class="mu-route-filter" type="text" placeholder="ค้นหาสายรถหรือปลายทาง">
<span class="mu-route-count" id="mu-route-count">แสดง 8 จาก 8 สาย</span>
</div>
<ul class="mu-list mu-stop-list">
<li>
<details class="mu-stop-expander">
<summary>
<span class="mu-route-chip">902</span>
<span class="mu-route-type-badge">🚌 รถบัส</span>
<span class="mu-stop-summary-main">
<strong>กรุงเทพ-อ่างทอง สายเอเซีย</strong>
<span class="mu-stop-summary-meta">เที่ยวกลับเข้า บขส.อ่างทอง</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-status-pill info">18 รอบ/วัน</span>
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<div class="mu-time-grid">
<div class="mu-time-chip">04:00</div><div class="mu-time-chip">04:30</div>
<div class="mu-time-chip">05:00</div><div class="mu-time-chip">05:30</div>
<div class="mu-time-chip">06:00</div><div class="mu-time-chip">06:30</div>
<div class="mu-time-chip">07:00</div><div class="mu-time-chip">07:30</div>
<div class="mu-time-chip">08:00</div><div class="mu-time-chip">08:30</div>
<div class="mu-time-chip">09:00</div><div class="mu-time-chip">09:30</div>
<div class="mu-time-chip">10:00</div><div class="mu-time-chip">10:30</div>
<div class="mu-time-chip">11:00</div><div class="mu-time-chip">11:30</div>
<div class="mu-time-chip">12:00</div><div class="mu-time-chip">12:30</div>
<div class="mu-time-chip">13:00</div><div class="mu-time-chip">13:30</div>
<div class="mu-time-chip">14:00</div><div class="mu-time-chip">14:30</div>
<div class="mu-time-chip">15:00</div><div class="mu-time-chip">15:30</div>
<div class="mu-time-chip">16:00</div><div class="mu-time-chip">16:30</div>
<div class="mu-time-chip">17:00</div><div class="mu-time-chip">17:30</div>
</div>
</div>
</details>
</li>
<li>
<details class="mu-stop-expander">
<summary>
<span class="mu-route-chip">15</span>
<span class="mu-route-type-badge">🚌 รถบัส</span>
<span class="mu-stop-summary-main">
<strong>กรุงเทพ-อ่างทอง สายใน</strong>
<span class="mu-stop-summary-meta">เที่ยวกลับเข้า บขส.อ่างทอง</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-status-pill info">4 รอบ/วัน</span>
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<div class="mu-time-grid">
<div class="mu-time-chip">05:00</div><div class="mu-time-chip">05:45</div>
<div class="mu-time-chip">06:30</div><div class="mu-time-chip">07:30</div>
</div>
</div>
</details>
</li>
<li>
<details class="mu-stop-expander">
<summary>
<span class="mu-route-chip">101</span>
<span class="mu-route-type-badge">🚌 รถบัส</span>
<span class="mu-stop-summary-main">
<strong>อ่างทอง-ป่าโมก-อยุธยา</strong>
<span class="mu-stop-summary-meta">เที่ยวออกจาก บขส.อ่างทอง</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-status-pill info">9 รอบ/วัน</span>
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<div class="mu-time-grid">
<div class="mu-time-chip next">07:30</div><div class="mu-time-chip">08:20</div>
<div class="mu-time-chip">09:10</div><div class="mu-time-chip">10:00</div>
<div class="mu-time-chip">10:50</div><div class="mu-time-chip">11:50</div>
<div class="mu-time-chip">13:00</div><div class="mu-time-chip">14:00</div>
<div class="mu-time-chip">15:00</div>
</div>
<p class="mu-schedule-note">flow mock: เปิด route detail ที่ <strong>?route=101&amp;origin=at_main_terminal</strong></p>
<div class="mu-contact-row" style="margin-top:10px;">
<a href="./busDetail.html?route=101&amp;origin=at_main_terminal">เปิดหน้ารายละเอียดสายรถนี้</a>
</div>
</div>
</details>
</li>
<li>
<details class="mu-stop-expander">
<summary>
<span class="mu-route-chip">464</span>
<span class="mu-route-type-badge">🚌 รถบัส</span>
<span class="mu-stop-summary-main">
<strong>สุพรรณ-อ่างทอง-สระบุรี</strong>
<span class="mu-stop-summary-meta">เที่ยวผ่านจุดนี้</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-status-pill info">20 รอบ/วัน</span>
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<div class="mu-time-grid">
<div class="mu-time-chip">06:30</div><div class="mu-time-chip">07:10</div>
<div class="mu-time-chip">07:50</div><div class="mu-time-chip">08:40</div>
<div class="mu-time-chip">09:30</div><div class="mu-time-chip">10:10</div>
<div class="mu-time-chip">10:50</div><div class="mu-time-chip">11:30</div>
<div class="mu-time-chip">12:10</div><div class="mu-time-chip">12:50</div>
<div class="mu-time-chip">13:30</div><div class="mu-time-chip">14:10</div>
<div class="mu-time-chip">14:50</div><div class="mu-time-chip">15:30</div>
<div class="mu-time-chip">16:10</div><div class="mu-time-chip">16:50</div>
<div class="mu-time-chip">17:30</div><div class="mu-time-chip">18:10</div>
<div class="mu-time-chip">18:50</div><div class="mu-time-chip">19:30</div>
</div>
<p class="mu-schedule-note">⚠️ เวลารถเปลี่ยนทุกวัน</p>
</div>
</details>
</li>
<li>
<details class="mu-stop-expander">
<summary>
<span class="mu-route-chip">641</span>
<span class="mu-route-type-badge">🚌 รถบัส</span>
<span class="mu-stop-summary-main">
<strong>อ่างทอง-บ้านแพรก-ลพบุรี</strong>
<span class="mu-stop-summary-meta">เที่ยวออกจาก บขส.อ่างทอง</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-status-pill info">9 รอบ/วัน</span>
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<div class="mu-time-grid">
<div class="mu-time-chip">07:00</div><div class="mu-time-chip">08:00</div>
<div class="mu-time-chip">09:00</div><div class="mu-time-chip">10:00</div>
<div class="mu-time-chip">11:00</div><div class="mu-time-chip">12:00</div>
<div class="mu-time-chip">13:30</div><div class="mu-time-chip">14:30</div>
<div class="mu-time-chip">16:30</div>
</div>
</div>
</details>
</li>
<li>
<details class="mu-stop-expander">
<summary>
<span class="mu-route-chip">324</span>
<span class="mu-route-type-badge">🚌 รถบัส</span>
<span class="mu-stop-summary-main">
<strong>อ่างทอง-วัดพิกุลทอง</strong>
<span class="mu-stop-summary-meta">เที่ยวผ่านจุดนี้</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-status-pill info">1 รอบ/วัน</span>
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<div class="mu-time-grid">
<div class="mu-time-chip">10:00</div>
</div>
</div>
</details>
</li>
<li>
<details class="mu-stop-expander">
<summary>
<span class="mu-route-chip">1011</span>
<span class="mu-route-type-badge">🚌 รถบัส</span>
<span class="mu-stop-summary-main">
<strong>อ่างทอง-สีบัวทอง</strong>
<span class="mu-stop-summary-meta">เที่ยวผ่านจุดนี้</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-status-pill info">3 รอบ/วัน</span>
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<div class="mu-time-grid">
<div class="mu-time-chip">12:00</div><div class="mu-time-chip">16:00</div>
<div class="mu-time-chip">17:00</div>
</div>
</div>
</details>
</li>
<li>
<details class="mu-stop-expander">
<summary>
<span class="mu-route-chip">2231</span>
<span class="mu-route-type-badge">🚌 รถบัส</span>
<span class="mu-stop-summary-main">
<strong>อ่างทอง-มหานาม</strong>
<span class="mu-stop-summary-meta">เที่ยวผ่านจุดนี้</span>
</span>
<span class="mu-stop-summary-rail">
<span class="mu-status-pill info">1 รอบ/วัน</span>
<span class="mu-stop-chevron">⌄</span>
</span>
</summary>
<div class="mu-stop-expander-body">
<div class="mu-time-grid">
<div class="mu-time-chip">16:00</div>
</div>
</div>
</details>
</li>
</ul>
</div>
<aside class="mu-card-panel">
<h2>แผนที่และข้อมูลป้าย</h2>
<div class="mu-map-mock" style="border-radius: 12px; background: linear-gradient(145deg, #f4f8ff 0%, #effaf5 100%); border: 1px solid #d7e5f2; padding: 20px; min-height: 200px; display:flex; align-items:center; justify-content:center; color:#66728f; font-weight:700; text-align:center;">🗺 แผนที่ตำแหน่งป้ายและช่องจอด</div>
<div style="display:flex; flex-wrap:wrap; gap:8px; margin-top:14px;">
<span class="mu-chip" style="background: rgba(255,255,255,.9); border:1px solid rgba(231, 224, 246, 0.95); color:#5b3b71;">เปิด 04:30</span>
<span class="mu-chip" style="background: rgba(255,255,255,.9); border:1px solid rgba(231, 224, 246, 0.95); color:#5b3b71;">ปิด 21:00</span>
<span class="mu-chip" style="background: rgba(31, 135, 101, 0.08); color:#1f8765; border:1px solid rgba(31,135,101,.15);">มีห้องน้ำ</span>
<span class="mu-chip" style="background: rgba(31, 135, 101, 0.08); color:#1f8765; border:1px solid rgba(31,135,101,.15);">ที่พักคอย</span>
<span class="mu-chip" style="background: rgba(31, 135, 101, 0.08); color:#1f8765; border:1px solid rgba(31,135,101,.15);">ร้านอาหาร</span>
</div>
</aside>
</section>
</div>
</main>
<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="../images/icons/minibus-512x512.png" alt="AT Transit">
<div><strong>AT Transit</strong><span>สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</span></div>
</div>
<p class="about">รายละเอียดป้ายหยุดรถ พร้อมรายชื่อสายรถที่ผ่าน ตารางเวลา และสถานที่ใกล้เคียง</p>
</div>
<div class="mu-footer-col">
<h4>เมนู</h4>
<ul>
<li><a href="./index.html">หน้าแรก</a></li>
<li><a href="./busStop.html">ค้นหาป้ายหยุดรถ</a></li>
<li><a href="./busDetail.html">รายละเอียดสายรถ</a></li>
</ul>
</div>
<div class="mu-footer-col">
<h4>สายยอดนิยม</h4>
<ul>
<li><a href="./busDetail.html?route=101">สาย 101</a></li>
<li><a href="./busDetail.html?route=902">สาย 902</a></li>
<li><a href="./busDetail.html?route=15">สาย 15</a></li>
<li><a href="./busDetail.html?route=464">สาย 464</a></li>
</ul>
</div>
<div class="mu-footer-col mu-footer-contact">
<h4>ติดต่อ</h4>
<div class="row"><a href="tel:+66649639025">📞 +66 64 963 9025</a></div>
<div class="row"><span>📍 ถนนเทศบาล 1 อ.เมือง อ่างทอง</span></div>
<div class="row"><span>🕒 บริการ 04:30 - 21:00 น.</span></div>
<div class="row"><a href="#">💬 LINE Official: @attransit</a></div>
</div>
</div>
<div class="mu-footer-bottom">
<p>© 2026 AT Transit <span class="pill">mockup template</span></p>
</div>
</div>
</footer>
<script>
(function () {
function pad2(num) {
return String(num).padStart(2, "0");
}
function timeToMinutes(timeText) {
var match = /^([01]?\d|2[0-3]):([0-5]\d)$/.exec(timeText.trim());
if (!match) {
return null;
}
return Number(match[1]) * 60 + Number(match[2]);
}
function renderCurrentTime(now) {
var currentTimeEl = document.getElementById("mu-current-time");
if (!currentTimeEl) {
return;
}
currentTimeEl.textContent = pad2(now.getHours()) + ":" + pad2(now.getMinutes());
}
function updateNextArrivalForRow(detailEl, nowMinutes) {
var chips = Array.from(detailEl.querySelectorAll(".mu-time-chip"));
if (!chips.length) {
return;
}
chips.forEach(function (chip) {
chip.classList.remove("next");
chip.classList.remove("next-live");
});
var times = chips
.map(function (chip, idx) {
return { chip: chip, idx: idx, minutes: timeToMinutes(chip.textContent) };
})
.filter(function (item) {
return item.minutes !== null;
})
.sort(function (a, b) {
return a.minutes - b.minutes;
});
if (!times.length) {
return;
}
var next = times.find(function (item) {
return item.minutes >= nowMinutes;
});
var wrapsToTomorrow = false;
if (!next) {
next = times[0];
wrapsToTomorrow = true;
}
next.chip.classList.add("next-live");
var rail = detailEl.querySelector(".mu-stop-summary-rail");
if (!rail) {
return;
}
var nextEl = rail.querySelector(".mu-next-arrival");
if (!nextEl) {
nextEl = document.createElement("span");
nextEl.className = "mu-next-arrival";
var chevron = rail.querySelector(".mu-stop-chevron");
if (chevron) {
rail.insertBefore(nextEl, chevron);
} else {
rail.appendChild(nextEl);
}
}
nextEl.textContent = (wrapsToTomorrow ? "พรุ่งนี้ " : "ถัดไป ") + next.chip.textContent.trim();
}
function setupRouteFilter() {
var inputEl = document.getElementById("mu-route-filter");
var countEl = document.getElementById("mu-route-count");
var items = Array.from(document.querySelectorAll(".mu-stop-list > li"));
if (!inputEl || !countEl || !items.length) {
return;
}
function applyFilter() {
var keyword = inputEl.value.trim().toLowerCase();
var visibleCount = 0;
items.forEach(function (li) {
var summaryText = li.textContent.toLowerCase();
var matched = !keyword || summaryText.indexOf(keyword) !== -1;
li.style.display = matched ? "block" : "none";
if (matched) {
visibleCount += 1;
}
});
countEl.textContent = "แสดง " + visibleCount + " จาก " + items.length + " สาย";
}
inputEl.addEventListener("input", applyFilter);
applyFilter();
}
function tick() {
var now = new Date();
var nowMinutes = now.getHours() * 60 + now.getMinutes();
renderCurrentTime(now);
document.querySelectorAll(".mu-stop-expander").forEach(function (detailEl) {
updateNextArrivalForRow(detailEl, nowMinutes);
});
}
tick();
setupRouteFilter();
setInterval(tick, 30000);
})();
</script>
</body>
</html>
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 327 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 MiB