Skip to content

Commit

Permalink
Update to GTFS ride pages
Browse files Browse the repository at this point in the history
  • Loading branch information
brendannee committed Dec 16, 2024
1 parent cb9499c commit 9bf2d8a
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 29 deletions.
44 changes: 27 additions & 17 deletions src/pages/gtfs-ride/jct.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,26 @@ import React from 'react';
import Layout from '@theme/Layout';

export default function Smart() {
const gtfsRideData = [
{
startDate: '2024-11-22',
endDate: '2024-11-30',
link: '/gtfs-ride/jct/jct-2024-11-22-2024-11-30.zip',
},
{
startDate: '2024-11-14',
endDate: '2024-11-21',
link: '/gtfs-ride/jct/jct-2024-11-14-2024-11-21.zip',
},
{
startDate: '2024-11-01',
endDate: '2024-11-13',
link: '/gtfs-ride/jct/jct-2024-11-01-2024-11-13.zip',
},
];

return (
<Layout title="JCT Gtfs-Ride">
<Layout title="JCT GTFS-Ride">
<main className="container" style={{padding: '2rem 0'}}>
<h1>JCT GTFS-Ride</h1>
<table>
Expand All @@ -15,24 +33,16 @@ export default function Smart() {
</tr>
</thead>
<tbody>
<tr>
<td>2024-11-22</td>
<td>2024-11-30</td>
<td><a href="/gtfs-ride/jct/jct-2024-11-22-2024-11-30.zip">Download</a></td>
</tr>
<tr>
<td>2024-11-14</td>
<td>2024-11-21</td>
<td><a href="/gtfs-ride/jct/jct-2024-11-14-2024-11-21.zip">Download</a></td>
</tr>
<tr>
<td>2024-11-01</td>
<td>2024-11-13</td>
<td><a href="/gtfs-ride/jct/jct-2024-11-01-2024-11-13.zip">Download</a></td>
</tr>
{gtfsRideData.map((item, index) => (
<tr key={index}>
<td>{item.startDate}</td>
<td>{item.endDate}</td>
<td><a href={item.link}>Download</a></td>
</tr>
))}
</tbody>
</table>
<a href="https://gtfsride.org">About GTFS-ride</a>
<a href="https://gtfsride.org/docs/about">About GTFS-ride</a>
</main>
</Layout>
);
Expand Down
34 changes: 22 additions & 12 deletions src/pages/gtfs-ride/smart.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,21 @@ import React from 'react';
import Layout from '@theme/Layout';

export default function Smart() {
const gtfsRideData = [
{
startDate: '2024-11-25',
endDate: '2024-11-30',
link: '/gtfs-ride/smart/smart-2024-11-25-2024-11-30.zip',
},
{
startDate: '2024-11-01',
endDate: '2024-11-24',
link: '/gtfs-ride/smart/smart-2024-11-01-2024-11-24.zip',
},
];

return (
<Layout title="SMART Gtfs-Ride">
<Layout title="SMART GTFS-Ride">
<main className="container" style={{padding: '2rem 0'}}>
<h1>SMART GTFS-Ride</h1>
<table>
Expand All @@ -15,19 +28,16 @@ export default function Smart() {
</tr>
</thead>
<tbody>
<tr>
<td>2024-11-25</td>
<td>2024-11-30</td>
<td><a href="/gtfs-ride/smart/smart-2024-11-25-2024-11-30.zip">Download</a></td>
</tr>
<tr>
<td>2024-11-01</td>
<td>2024-11-24</td>
<td><a href="/gtfs-ride/smart/smart-2024-11-01-2024-11-24.zip">Download</a></td>
</tr>
{gtfsRideData.map((item, index) => (
<tr key={index}>
<td>{item.startDate}</td>
<td>{item.endDate}</td>
<td><a href={item.link}>Download</a></td>
</tr>
))}
</tbody>
</table>
<a href="https://gtfsride.org">About GTFS-ride</a>
<a href="https://gtfsride.org/docs/about">About GTFS-ride</a>
</main>
</Layout>
);
Expand Down

0 comments on commit 9bf2d8a

Please sign in to comment.