A website of some sort.
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
[package]
|
||||||
|
name = "fares-site"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2024"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
yew = { version = "0.23", features = ["csr"] }
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[serve]
|
||||||
|
addresses = ["0.0.0.0"]
|
||||||
|
port = 8000
|
||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>Ballast-Data: Fares</title>
|
||||||
|
<link rel="icon" type="image/x-icon" href="https://cdn.ballast-data.co.uk/Icon.svg">
|
||||||
|
<link rel="stylesheet" href="https://cdn.ballast-data.co.uk/theme.css">
|
||||||
|
</head>
|
||||||
|
<body></body>
|
||||||
|
</html>
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
use yew::prelude::*;
|
||||||
|
|
||||||
|
#[component]
|
||||||
|
fn Page() -> Html {
|
||||||
|
html! {
|
||||||
|
<div style="display: flex; flex-direction: column; width: 100%;">
|
||||||
|
<div class="header">
|
||||||
|
{ "Header" }
|
||||||
|
</div>
|
||||||
|
<br/>
|
||||||
|
<div class="content">
|
||||||
|
{ "Content" }
|
||||||
|
</div>
|
||||||
|
<br/>
|
||||||
|
<div class="footer">
|
||||||
|
{ "Powered by National Rail Enquiries. This site is not accredited by National Rail." } <br/>
|
||||||
|
{ "We use information from" }
|
||||||
|
<a href="https://opendata.nationalrail.co.uk/" target="_blank">{ "National Rail Open Data" } </a>
|
||||||
|
{ " and " }
|
||||||
|
<a href="https://raildata.org.uk/" target="_blank">{ "Rail Data Marketplace" }</a>{ "." } <br/>
|
||||||
|
{ "This service is not to be used for safety critical purposes." }
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fn main() {
|
||||||
|
yew::Renderer::<Page>::new().render();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user