Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update maps #22

Merged
merged 2 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions docs/trails/prague/barre.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,8 @@ title: "Barre"

## Map

### Garmin Connect

<GarminEmbeddedCourse id="211837509"></GarminEmbeddedCourse>

### Mapy.cz

<MapyCzEmbeddedPath id="jukovunejo"></MapyCzEmbeddedPath>

<br />

:::info
Shorter course start from Poliklinika Barrandov and it's about 18 km long.
:::
Expand All @@ -36,3 +28,7 @@ Shorter course start from Poliklinika Barrandov and it's about 18 km long.
| Train | [Central station](https://www.seznam.cz/jizdnirady/pubt%3A15212548%3A9hDIBxXv5L-%3Epubt%3A23846464%3A9gwWYxX1BL?o=528&t=0 "See timetable" ) ➞ [Smíchov](https://www.seznam.cz/jizdnirady/pubt%3A15212579%3A9gzvCxXonb-%3Epubt%3A23846464%3A9gwWYxX1BL?o=528&t=0 "See timetable" ) ➞ Velká Chuchle | 13 min. |
| Tram | [Smíchovské nádraží](https://www.seznam.cz/jizdnirady/pubt%3A15305985%3A9g.EixXogA-%3Epubt%3A15306601%3A9g9lFxXgkP?o=544&t=0 "See timetable" ) ➞ Poliklinika Barrandov | 10 min. |
| Train | Velká Chuchle ➞ [Smíchov](https://www.seznam.cz/jizdnirady/pubt%3A23846464%3A9gwWYxX1BL-%3Epubt%3A15212579%3A9gzvCxXonb?o=528&t=0 "See timetable" ) ➞ [Central station](https://www.seznam.cz/jizdnirady/pubt%3A23846464%3A9gwWYxX1BL-%3Epubt%3A15212548%3A9hDIBxXv5L?o=528&t=0 "See timetable" ) | 13 min. |

## Links

- <MapyCzPathLink id="652fd038acaa705928cd5a80"></MapyCzPathLink>
10 changes: 4 additions & 6 deletions docs/trails/prague/hokun.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ title: "Hokun"

## Map

### Garmin Connect

<GarminEmbeddedCourse id="224619876"></GarminEmbeddedCourse>

### Mapy.cz

<MapyCzEmbeddedPath id="jobadepoba"></MapyCzEmbeddedPath>

## Transportation

| Type | Route | Time |
| --- | --- | --- |
| Train | [Central station](https://www.seznam.cz/jizdnirady/pubt%3A15212548%3A9hDIBxXv5L-%3Epubt%3A15212583%3A9h16XxXg7l?o=528&t=0 "See timetable") ➞ [Vršovice](https://www.seznam.cz/jizdnirady/pubt%3A15212586%3A9hEGexXp.D-%3Epubt%3A15212583%3A9h16XxXg7j?o=528&t=0 "See timetable") ➞ Uhříněves | 20 min. |
| Train | Braník ➞ [Vršovice](https://www.seznam.cz/jizdnirady/pubt%3A15212551%3A9gzfuxXeaM-%3Epubt%3A15212586%3A9hEGexXp.D?o=528&t=0 "See timetable" ) ➞ [Central station](https://www.seznam.cz/jizdnirady/pubt%3A15212551%3A9gzfvxXeaN-%3Epubt%3A15212548%3A9hDIBxXv5L?o=528&t=0 "See timetable" ) | 13 min. |

## Links

- <MapyCzPathLink id="651f065a36a6efcb000cbf3b"></MapyCzPathLink>
8 changes: 2 additions & 6 deletions docs/trails/prague/kokomo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,13 @@ title: "Kokomo"

## Map

### Garmin Connect

<GarminEmbeddedCourse id="211777074"></GarminEmbeddedCourse>

### Mapy.cz

<MapyCzEmbeddedPath id="kebofepede"></MapyCzEmbeddedPath>

## Transportation

| Type | Route | Time |
| --- | --- | --- |
| Train | [Central station](https://www.seznam.cz/jizdnirady/pubt%3A15212548%3A9hDIBxXv5L-%3Epubt%3A15212588%3A9gyUAxX6nZ?o=528&t=0 "See timetable" ) ➞ [Vršovice](https://www.seznam.cz/jizdnirady/pubt%3A15212586%3A9hEGexXp.D-%3Epubt%3A15212588%3A9gyUAxX6nX?o=528&t=0 "See timetable" ) ➞ [Braník](https://www.seznam.cz/jizdnirady/pubt%3A15212551%3A9gzfuxXeaM-%3Epubt%3A15212588%3A9gyUAxX6nX?o=528&t=0 "See timetable" ) ➞ Zbraslav | 25 min. |
| Train | Braník ➞ [Vršovice](https://www.seznam.cz/jizdnirady/pubt%3A15212551%3A9gzfvxXeaN-%3Epubt%3A15212586%3A9hEGexXp.D?o=528&t=0 "See timetable" ) ➞ [Central station](https://www.seznam.cz/jizdnirady/pubt%3A15212551%3A9gzfvxXeaN-%3Epubt%3A15212548%3A9hDIBxXv5L?o=528&t=0 "See timetable" ) | 13 min. |

- <MapyCzPathLink id="6515f72525e33d94be29277f"></MapyCzPathLink>
8 changes: 2 additions & 6 deletions docs/trails/prague/laadchee.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,14 @@ title: "Laadchee"

## Map

### Garmin Connect

<GarminEmbeddedCourse id="211106575"></GarminEmbeddedCourse>

### Mapy.cz

<MapyCzEmbeddedPath id="kapuzaroca"></MapyCzEmbeddedPath>

## Transportation

| Type | Route | Time |
| --- | --- | --- |
| Train | [Masaryk station](https://www.seznam.cz/jizdnirady/pubt%3A15212549%3A9hC5MxXxXd-%3Epubt%3A15212577%3A9hXbZxYHLT?o=528&t=0 "See timetable") ➞ [Vysočany](https://www.seznam.cz/jizdnirady/pubt%3A15698647%3A9hMJrxY2Pv-%3Epubt%3A15212577%3A9hXbZxYHLV?o=528&t=0 "See timetable") ➞ Satalice | 17 min. |
| Train | Podbaba ➞ [Masaryk station](https://www.seznam.cz/jizdnirady/pubt%3A15697242%3A9gx3KxY2VF-%3Epubt%3A15212549%3A9hC5MxXxXb?o=528&t=0 "See timetable") | 9 min. |
| Train | Podbaba ➞ [Hostivař](https://www.seznam.cz/jizdnirady/pubt%3A15697242%3A9gx3LxY2VH-%3Epubt%3A15212564%3A9hSeoxXnZd?o=528&t=0 "See timetable") | 21 min. |

- <MapyCzPathLink id="6515f72525e33d94be29277e"></MapyCzPathLink>
8 changes: 2 additions & 6 deletions docs/trails/prague/rockyt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,13 @@ title: "Rockyt"

## Map

### Garmin Connect

<GarminEmbeddedCourse id="215783112"></GarminEmbeddedCourse>

### Mapy.cz

<MapyCzEmbeddedPath id="jujaduhevo"></MapyCzEmbeddedPath>

## Transportation

| Type | Route | Time |
| --- | --- | --- |
| Train | [Central station](https://www.seznam.cz/jizdnirady/pubt%3A15212548%3A9hDIBxXv5L-%3Epubt%3A15212567%3A9hkUwxXxIF?o=528&t=0 "See timetable") ➞ Klánovice (weekdays only) | 21 min. |
| Train | [Masaryk station](https://www.seznam.cz/jizdnirady/pubt%3A15212549%3A9hC5MxXxXb-%3Epubt%3A15212567%3A9hkUwxXxIF?o=528&t=0 "See timetable") ➞ Klánovice | 21 min. |

- <MapyCzPathLink id="651877615a91d7ce7e1692f6"></MapyCzPathLink>
8 changes: 2 additions & 6 deletions docs/trails/prague/semmering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ title: "Semmering"

## Map

### Garmin Connect

<GarminEmbeddedCourse id="211858322"></GarminEmbeddedCourse>

### Mapy.cz

<MapyCzEmbeddedPath id="jolovabuta"></MapyCzEmbeddedPath>

## Transportation

### Train
Expand All @@ -39,3 +33,5 @@ title: "Semmering"
:::tip
Tram will get you closer to the start of the course but it may be harder to get on a tram during rush hours.
:::

- <MapyCzPathLink id="652d80293a4984d1a065acef"></MapyCzPathLink>
8 changes: 2 additions & 6 deletions docs/trails/prague/shark-a.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ title: "Shark-A"

## Map

### Garmin Connect

<GarminEmbeddedCourse id="211895409"></GarminEmbeddedCourse>

### Mapy.cz

<MapyCzEmbeddedPath id="bepopeseno"></MapyCzEmbeddedPath>

## Transportation

### Train
Expand All @@ -33,3 +27,5 @@ title: "Shark-A"
| Tram | [Hradčanská](https://www.seznam.cz/jizdnirady/pubt%3A15693725%3A9gzNPxX.uq-%3Epubt%3A15307560%3A9gmYIxXt.U?o=544&t=0 "See timetable" ) ➞ Bílá hora | 18 min. |
| Train | Podbaba ➞ [Masaryk station](https://www.seznam.cz/jizdnirady/pubt%3A15697242%3A9gx3LxY2VH-%3Epubt%3A15212549%3A9hC5MxXxXb?o=528&t=0 "See timetable") | 9 min. |
| Train | Podbaba ➞ [Hostivař](https://www.seznam.cz/jizdnirady/pubt%3A15697242%3A9gx3LxY2VH-%3Epubt%3A15212564%3A9hSeoxXnZd?o=528&t=0 "See timetable") | 21 min. |

- <MapyCzPathLink id="6515f72525e33d94be29277b"></MapyCzPathLink>
8 changes: 2 additions & 6 deletions docs/trails/prague/shuss.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ title: "Shuss"

## Map

### Garmin Connect

<GarminEmbeddedCourse id="211914796"></GarminEmbeddedCourse>

### Mapy.cz

<MapyCzEmbeddedPath id="besorozapu"></MapyCzEmbeddedPath>

## Transportation

### Train
Expand All @@ -33,3 +27,5 @@ title: "Shuss"
| Tram | [Hradčanská](https://www.seznam.cz/jizdnirady/pubt%3A15693725%3A9gzNPxX.uq-%3Epubt%3A15307560%3A9gmYIxXt.U?o=544&t=0 "See timetable" ) ➞ Bílá hora | 18 min. |
| Train | Sedlec ➞ [Masaryk station](https://www.seznam.cz/jizdnirady/pubt%3A15212578%3A9gxXAxYJ-h-%3Epubt%3A15212549%3A9hC5MxXxXb?o=528&t=0 "See timetable") | 12 min. |
| Train | Sedlec ➞ [Hostivař](https://www.seznam.cz/jizdnirady/pubt%3A15212578%3A9gxX0xYJ-f-%3Epubt%3A15212564%3A9hSeoxXnZ3?o=528&t=0 "See timetable") | 24 min. |

- <MapyCzPathLink id="6515f72525e33d94be29277a"></MapyCzPathLink>
5 changes: 1 addition & 4 deletions src/components/GarminEmbeddedCourse/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ export default function GarminEmbeddedCourse({
const url = `https://connect.garmin.com/modern/course/embed/${id}`;
return (
<div>
<iframe src={url} width='60%' height='500' />
<div>
<i>Click on trail name to see detailed profile</i>
</div>
<iframe src={url} width='465' height='548' />
</div>
);
}
17 changes: 17 additions & 0 deletions src/components/MapyCzPathLink/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React, {type ReactNode} from 'react';
import Link from '@docusaurus/Link';

export interface Props {
id: string;
}

export default function MapyCzPathLink({
id,
}: Props): JSX.Element {
const url = `https://en.mapy.cz/turisticka?dim=${id}&z=13`;
return (
<>
<Link to={url}>Mapy.cz</Link>
</>
);
}
2 changes: 2 additions & 0 deletions src/theme/MDXComponents.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import MDXComponents from '@theme-original/MDXComponents';
import MapyCzEmbeddedPath from '@site/src/components/MapyCzEmbeddedPath';
import MapyCzPathLink from '@site/src/components/MapyCzPathLink';
import GarminEmbeddedCourse from '@site/src/components/GarminEmbeddedCourse';

export default {
...MDXComponents,
MapyCzEmbeddedPath,
MapyCzPathLink,
GarminEmbeddedCourse,
};