This commit is contained in:
Matthew Ryan Dillon 2021-12-09 07:54:22 -07:00
parent dac2f177f0
commit 03d6a56b12

View file

@ -13,18 +13,26 @@ impl Component for App {
} }
fn view(&self, _ctx: &Context<Self>) -> Html { fn view(&self, _ctx: &Context<Self>) -> Html {
let topografix = move || -> Html {
html! { <a href="https://www.topografix.com/gpx.asp">{"GPX files"}</a> }
};
let garmin = move || -> Html {
html! {<a href="https://www.garmin.com">{"Garmin"}</a>}
};
let strava = move || -> Html {
html! {<a href="https://www.strava.com">{"Strava"}</a>}
};
html! { html! {
<> <>
<h1> <h1>
<a href="/">{"gpx.thermokar.st"}</a> <a href="/">{ "gpx.thermokar.st" }</a>
</h1> </h1>
<p> <p>
{"This client-side tool is for merging "} { "A client-side tool for merging "}{ topografix() }{ "." }
<a href="https://www.topografix.com/gpx.asp">
{"GPX files"}
</a>
{". "}
</p> </p>
<Loader /> <Loader />
@ -32,21 +40,14 @@ impl Component for App {
<hr/> <hr/>
<p> <p>
{"Note, this has only been tested on GPX files produced by "} { "Note, this has only been tested on GPX files produced by " }
<a href="https://www.garmin.com"> { garmin() }{ " and " }{ strava() }{ " - your mileage may vary." }
{"Garmin"}
</a>
{" and "}
<a href="https://www.strava.com">
{"Strava"}
</a>
{" - your mileage may vary."}
</p> </p>
<p> <p>
<small> <small>
{"source (public access): "} { "source (public access): " }
{"git://pingo.thermokar.st/gpx-web-utils"} { "git://pingo.thermokar.st/gpx-web-utils" }
</small> </small>
</p> </p>
</> </>