Commit Graph
11 Commits
Author SHA1 Message Date
phattaranun.a 71dacc0da2 Eliminate horizontal scrolling on phone: wrap instead of scroll
- Topbar: switch from overflow-x:auto to a two-line layout on mobile
  (brand + language on line 1, nav full-width on line 2) so the header
  never scrolls left/right
- Province filter strip: flex-wrap instead of overflow-x:auto so the
  province chips wrap onto multiple lines
- Reset topbar/nav to single-line at >=640px

Site now scrolls vertically only on phone; zero user horizontal scroll.
2026-09-12 16:04:57 +07:00
phattaranun.a 0ac33f0735 Tighten mobile layout: fix hero height and tap targets
- Fix .mu-select-field flex-basis bug: flex:1 1 250px became a 250px
  HEIGHT basis when the selector stacks to a column on phone, bloating
  the home/check heroes to ~700-760px. Reset to flex:0 0 auto (content
  height) -> heroes now ~350-420px
- Enlarge tap targets on phone: language buttons 21px -> 40px, footer
  links and contact link -> 44px min-height

Verified with headless Chrome: 0 horizontal overflow at 320-1600px, hero
heights sane on phone.
2026-09-12 15:51:05 +07:00
phattaranun.a 0a464b6b18 Fix horizontal overflow across the site on phone and tablet widths
- Add box-sizing: border-box and img/svg/video max-width:100% reset
- Add min-width:0 to grid/flex children so they can shrink (hero panel,
  layout grid, metric grid)
- Allow long text to wrap (mock-state query strings, long stop names)
- Topbar: hide CTA button until 1024px, hide brand subtitle until 768px,
  and wrap the bar onto two lines under 360px so nav is never cut off

Verified with headless Chrome at 320/375/414/640/768/1024/1280/1600px:
zero horizontal overflow on all 7 routes.
2026-09-12 15:41:45 +07:00
phattaranun.a 82aafdc61f Rename hidden image folder .resource/ to .image/
.resource/ clashed with resource/ (the tracked data folder), so rename the
hidden image folder to .image/ for clarity. Re-zip resource/images.zip to
contain .image/ and update setup.sh, .gitignore, README.md, AGENTS.md and
all image references in ui/.
2026-09-12 12:40:29 +07:00
phattaranun.a 670afcb773 Move images to hidden .resource/ folder
- Rename resource/images/ to .resource/ (dot-prefixed, gitignored, never pushed)
- Repackage resource/images.zip to contain .resource/ at the archive root
- Update setup.sh to extract the zip to .resource/
- Update all image references from ../resource/images/ to ../.resource/
  across ui HTML, manifest.json and sw.js
- Sync .gitignore, README.md and AGENTS.md with the new layout
2026-09-12 12:38:00 +07:00
phattaranun.a b2383ca7d0 Redesign #/check to match homepage design; drop home hero buttons; add README
- Rebuild checkSchedule.html to reuse index.html shell classes (gradient
  hero + blobs + gradient-text, summary stats, gradient stop-card headers)
- Remove View Route Details / Find Bus Stops / Preview a Route buttons and
  their i18n keys from the homepage hero
- Add check.* i18n keys (th/en) for the redesigned schedule page
- Add README.md with run instructions
2026-09-12 12:13:12 +07:00
Bkk1234 c44f79b7d9 Rebuild mock as hash-routed SPA with i18n and PWA refresh
- Single-page shell (ui/index.html) + vanilla hash router; each screen is a partial
- New #/check schedule view (all stop times open, no collapse) wired to the
  'check schedules' CTA; contact-operator box, route map and gallery trimmed from it
- Mobile-first responsive.css (375px iPhone 8 up to 27-inch/1440p)
- TH/EN i18n system (data-i18n, browser-language detect, topbar switcher)
- Shared form controls moved to _shared.css (mu-btn, custom select chevron,
  focus-visible ring); footer contact column now mailto:[email protected]
- SW v9: JS network-first, precache i18n.js + all partials
- Legacy pages become redirect stubs to index.html#/...
2026-09-03 00:08:04 +07:00
phattaranun.a 8a6133fd77 Remove backup HTML file for AT Transit homepage 2026-08-22 19:41:17 +07:00
phattaranun.a c2db993f5c Add marquee functionality to sponsor section with animation 2026-08-22 19:40:24 +07:00
phattaranun.a 413e280e9a Add initial HTML structure for AT Transit homepage and hero section
- Created index_backup.html with complete layout and styling for the homepage.
- Added home.html partial for the hero section, including province and station selectors.
- Implemented responsive design elements and navigation for bus routes.
- Included sponsor section with partner logos in a marquee format.
2026-08-22 19:27:45 +07:00
phattaranun.a 7bf06e6f88 Refactor code structure for improved readability and maintainability 2026-08-22 17:29:38 +07:00