A website of some sort.

This commit is contained in:
2026-06-11 19:45:30 +01:00
commit 02f9319372
4 changed files with 48 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
[package]
name = "fares-site"
version = "0.1.0"
edition = "2024"
[dependencies]
yew = { version = "0.23", features = ["csr"] }
+3
View File
@@ -0,0 +1,3 @@
[serve]
addresses = ["0.0.0.0"]
port = 8000
+10
View File
@@ -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
View File
@@ -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();
}