Theme Context - Copy this React, Tailwind Component to your project
<div className="p-4 max-w-3xl mx-auto"> <h2 className="text-2xl font-bold mb-6 text-center">Danh sách các ga</h2> <div className="relative border-l-4 border-blue-500 pl-6 space-y-6"> {stationOrder[0]["odpt:stationOrder"].map((station, index) => ( <div key={station["odpt:index"]} className="relative"> {/* Timeline dot */} <div className="absolute -left-2 top-2 w-4 h-4 bg-blue-500 rounded-full border-2 border-white shadow" /> {/* Station content */} <div className="bg-white p-4 rounded-lg shadow hover:bg-gray-100 transition flex items-center space-x-4"> {/* Mã ga trong vòng tròn màu */} <div className="w-10 h-10 flex items-center justify-center rounded-full font-bold text-sm border-2 flex-shrink-0" style={{ border: `4px solid ${lineColor}`, // tăng độ dày viền lên 3px color: "#000", // chữ màu đen backgroundColor: "#fff" // nền trắng }} > {lineCode + station["odpt:index"]} </div> {/* Thông tin ga */} <div> <p className="text-lg font-semibold"> {station["odpt:stationTitle"]?.en} </p> <p className="text-sm text-gray-500"> {station["odpt:stationTitle"]?.ja} </p> <p className="text-sm text-gray-400"> {station["odpt:stationTitle"]?.["ja-Hrkt"]} </p> </div> </div> </div> ))} </div> </div> ); bạn có ý tưởng nào để cải tiến giao diện cho đẹp mắt hơn không
