Files
web-at-transit/frontend/src/app/credits/page.tsx
T
phattaranun.a b022a85178 feat(ui): province→station selector, filter, share, visitor, lang, nav+pages
- HomeClient (client): จังหวัด→สถานี cascade selector (default อ่างทอง),
  กรองเส้นทางตามจังหวัด/สถานี, โชว์โซนว่างเป็น N/A card, ปุ่มแชร์ลิงก์สั้น
- page.tsx: fetch provinces/stops/routeStops + searchParams (p/s) for share link
- Header: nav 6 เมนู + สลับภาษา ไทย/EN (localStorage)
- Footer: ตัวนับผู้เข้าชม (visitsSummary) + เมนู 6 รายการ
- หน้าใหม่ /about /blog /credits (เนื้อหา+รูปจาก mock about-data/blog-data)
- globals.css: selector/share/empty-card/about/blog/credit styles
2026-10-10 19:38:32 +07:00

81 lines
5.8 KiB
TypeScript

import { HERO_MAP } from "@/lib/images";
export default function CreditsPage() {
return (
<>
<section className="hero hero--short">
<img className="hero__map" src={HERO_MAP} alt="" aria-hidden="true" />
<div className="hero__blob one" aria-hidden />
<div className="hero__blob two" aria-hidden />
<div className="hero__blob three" aria-hidden />
<div className="container hero__inner">
<span className="hero__badge">เครดิต</span>
<h1>
เครดิตและแหล่งที่มา
<br />
<span className="hero__grad">ขอบคุณทุกทรัพยากร</span>
</h1>
<p className="hero__lead">รายการทรัพยากรทั้งหมดที่ใช้ในเว็บนี้ พร้อมใบอนุญาตตามข้อกำหนดของเจ้าของแต่ละราย</p>
</div>
</section>
<main className="main">
<div className="container credit-wrap">
<section className="credit-section">
<h2>ไอคอน — Lucide</h2>
<p className="src">
แหล่งที่มา: <a href="https://lucide.dev" rel="noopener">lucide.dev</a> · ใบอนุญาต:{" "}
<a href="https://github.com/lucide-icons/lucide/blob/main/LICENSE" rel="noopener">MIT License</a>
</p>
<ul>
<li>ไอคอนที่ใช้ทั้งหมด 15 รายการ: alarm-clock, arrow-right, bus, bus-front, check, clock, globe, hourglass, map, map-pin, message-circle, phone, refresh-cw, search, triangle-alert</li>
</ul>
<div className="license">
<strong>MIT License (สรุป):</strong> อนุญาตให้ใช้ คัดลอก แก้ไข ผสาน เผยแพร่ แจกจ่าย ขาย และ/หรือให้สิทธิ์ใช้งานซอฟต์แวร์นี้ โดยมีเงื่อนไขให้ข้อความแสดงลิขสิทธิ์และข้อความอนุญาตข้างต้นปรากฏอยู่ในสำเนาทั้งหมด ซอฟต์แวร์นี้ให้บริการ "ตามสภาพ" โดยไม่มีการรับประกันใด ๆ
</div>
</section>
<section className="credit-section">
<h2>ฟอนต์ — Google Fonts</h2>
<p className="src">
แหล่งที่มา: <a href="https://fonts.google.com" rel="noopener">fonts.google.com</a> · ใบอนุญาต:{" "}
<a href="https://openfontlicense.org" rel="noopener">SIL Open Font License 1.1</a>
</p>
<ul>
<li><strong>K2D</strong> — ฟอนต์หลักของเว็บ (เนื้อหา + หัวเรื่อง)</li>
<li><strong>Noto Sans Thai</strong> — ตัวสำรองเนื้อหา</li>
<li><strong>Prompt</strong> — ตัวสำรองหัวเรื่อง/ตัวหนา</li>
<li><strong>IBM Plex Mono</strong> — เวลา · เลขสาย · ตัวเลข</li>
</ul>
</section>
<section className="credit-section">
<h2>แผนที่</h2>
<p className="src">
ใบอนุญาต: Leaflet <a href="https://github.com/Leaflet/Leaflet/blob/main/LICENSE" rel="noopener">BSD-2-Clause</a> · ชุดแผนที่:{" "}
<a href="https://www.openstreetmap.org/copyright" rel="noopener">OpenStreetMap © ผู้มีส่วนร่วม (ODbL)</a>
</p>
<ul>
<li>Leaflet — ไลบรารีแผนที่แบบ open-source</li>
<li>OpenStreetMap — ภาพ tiles และข้อมูลแผนที่</li>
<li>เส้นทางเดินรถ จุดจอด และหมุดสถานี วาดจากข้อมูล GIS ของทีม (GeoJSON)</li>
</ul>
</section>
<section className="credit-section">
<h2>ขอขอบคุณภาพรถประจำทาง</h2>
<p className="src">ภาพรถโดยสารที่แสดงในหน้ารายละเอียดสาย มาจากแหล่งข้อมูลสาธารณะด้านล่างนี้</p>
<ul>
<li><strong>สาย 2194</strong> หัวเวียง-อยุธยา — จาก <a href="http://www.bangkokbusclub.com/cms/showthread.php?t=4968" rel="noopener">bangkokbusclub.com</a></li>
<li><strong>สาย 8</strong> กรุงเทพ-สรรคบุรี-ชัยนาท — จากกลุ่ม Facebook (web.facebook.com)</li>
<li><strong>สาย 954</strong> กรุงเทพ-ท่าช้าง — จาก <a href="https://gogo.town/route/bangkok-rangsit-angthong-thachang/" rel="noopener">gogo.town</a></li>
<li><strong>รถไฟฟ้าสายสีแดง</strong> กรุงเทพ-ชุมทางบ้านภาชี — จาก <a href="https://thelist.group" rel="noopener">thelist.group</a></li>
</ul>
<div className="license">และสายอื่น ๆ ที่ไม่ได้ระบุ ขอขอบคุณมา ณ ที่นี้</div>
</section>
</div>
</main>
</>
);
}