Compare commits
7 Commits
08f3d30e44
...
0.0.11
| Author | SHA1 | Date | |
|---|---|---|---|
| 3fbffc7589 | |||
| 84312abc75 | |||
| c6fa8794e0 | |||
| 8e65fd396e | |||
| 8a05d8358f | |||
| a8c3117259 | |||
| 2b2095604c |
@@ -6,6 +6,7 @@
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"
|
||||
/>
|
||||
<link rel="manifest" href="/manifest.webmanifest" />
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
<body data-sveltekit-preload-data="hover">
|
||||
|
||||
17
src/lib/assets/global.css
Normal file
17
src/lib/assets/global.css
Normal file
@@ -0,0 +1,17 @@
|
||||
/* FONTS */
|
||||
@font-face {
|
||||
font-family: "urwgothic";
|
||||
src: url("/fonts/urwgothic/urwgothic.woff2") format("woff2"), url("/font/urwgothic/urwgothic.woff") format("woff");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "urwgothic";
|
||||
src: url("/fonts/urwgothic/urwgothicDemi.woff2") format("woff2"), url("/font/urwgothic/urwgothicDemi.woff") format("woff");
|
||||
font-weight: 900;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
[id] {
|
||||
scroll-margin-top: 100px;
|
||||
}
|
||||
@@ -6,9 +6,12 @@
|
||||
export let reversed: boolean = false;
|
||||
|
||||
$: Icon = components[feature.type] || components.default;
|
||||
|
||||
const slugify = (str?: string) =>
|
||||
str?.toLocaleLowerCase().trim().replace(/\s+/g, '-') ?? 'unknown';
|
||||
</script>
|
||||
|
||||
<div class="row-container">
|
||||
<div class="row-container" id="{slugify(feature.name)}">
|
||||
<div class="mileage-col">
|
||||
<span class="miles">{feature.miles + 'm' || ''}</span>
|
||||
<span class="chains">{feature.chains + 'ch' || ''}</span>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import favicon from '$lib/assets/favicon.svg';
|
||||
import '$lib/assets/global.css';
|
||||
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
import type { PageData } from './$types';
|
||||
import { base } from '$app/paths';
|
||||
export let data: PageData;
|
||||
import favicon from '$lib/assets/favicon.svg';
|
||||
|
||||
let searchTerm = '';
|
||||
|
||||
@@ -47,7 +48,7 @@
|
||||
<header class="main-header">
|
||||
<div class="brand-container">
|
||||
<img
|
||||
src="https://owlboard.info/images/logo/wide_logo.svg"
|
||||
src={favicon}
|
||||
alt="OwlBoard Logo"
|
||||
class="main-logo"
|
||||
/>
|
||||
@@ -147,10 +148,10 @@
|
||||
.brand-text h1 {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 900;
|
||||
font-family: "urwgothic";
|
||||
margin: 0;
|
||||
line-height: 1;
|
||||
letter-spacing: -0.05em;
|
||||
font-style: italic;
|
||||
font-style: none;
|
||||
}
|
||||
|
||||
.search-container {
|
||||
@@ -214,7 +215,7 @@
|
||||
|
||||
.card-footer {
|
||||
font-size: 0.6rem;
|
||||
line-height: 0.5;
|
||||
line-height: 0.8rem;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
}
|
||||
@@ -263,13 +264,14 @@
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 1.125rem;
|
||||
font-family: "urwgothic";
|
||||
font-size: 1.23rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.path-arrow {
|
||||
color: #fff;
|
||||
font-family: "urwgothic";
|
||||
font-size: 0.9rem;
|
||||
margin: 0.2rem 0;
|
||||
}
|
||||
|
||||
30
src/routes/manifest.webmanifest/+server.ts
Normal file
30
src/routes/manifest.webmanifest/+server.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { json } from "@sveltejs/kit";
|
||||
import type { RequestHandler } from './$types';
|
||||
import favicon from '$lib/assets/favicon.svg?url';
|
||||
|
||||
export const prerender = true;
|
||||
|
||||
export const GET: RequestHandler = ({ url }) => {
|
||||
const manifest = {
|
||||
name: "OwlBoard Maps",
|
||||
short_name: "OwlBoard Maps",
|
||||
start_url: "/",
|
||||
display: "standalone",
|
||||
theme_color: "#ff6600",
|
||||
background_color: "#ffffff",
|
||||
icons: [
|
||||
{
|
||||
src: favicon,
|
||||
sizes: "any",
|
||||
type: "image/svg+xml"
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
return json(manifest, {
|
||||
headers: {
|
||||
'Content-Type': 'application/manifest+json',
|
||||
'Cache-Control': 'public, max-age=3600',
|
||||
}
|
||||
})
|
||||
}
|
||||
BIN
static/fonts/urwgothic/urwgothic.woff
Normal file
BIN
static/fonts/urwgothic/urwgothic.woff
Normal file
Binary file not shown.
BIN
static/fonts/urwgothic/urwgothic.woff2
Normal file
BIN
static/fonts/urwgothic/urwgothic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/urwgothic/urwgothicDemi.woff
Normal file
BIN
static/fonts/urwgothic/urwgothicDemi.woff
Normal file
Binary file not shown.
BIN
static/fonts/urwgothic/urwgothicDemi.woff2
Normal file
BIN
static/fonts/urwgothic/urwgothicDemi.woff2
Normal file
Binary file not shown.
@@ -1,8 +1,8 @@
|
||||
routeStart: Paddington
|
||||
routeEnd: Reading West Jn
|
||||
routeEnd: Reading
|
||||
routeId: 0001
|
||||
created: 2026-02-04
|
||||
checked: 2026-02-06
|
||||
checked: 2026-02-09
|
||||
signallerStart: TVSC Paddington WS
|
||||
signallerEnd: TVSC Reading WS
|
||||
elecStart:
|
||||
@@ -154,11 +154,11 @@ routeDetail:
|
||||
miles: 3
|
||||
chains: 0
|
||||
|
||||
- type: junction
|
||||
- type: siteof
|
||||
name: Old Oak Common West
|
||||
diverges: left
|
||||
direction: up
|
||||
description: Out of Use for HS2 Works
|
||||
description: Junction has been removed
|
||||
miles: 3
|
||||
chains: 20
|
||||
|
||||
@@ -180,7 +180,8 @@ routeDetail:
|
||||
name: Friars Junction
|
||||
diverges: left
|
||||
direction: up
|
||||
description: Out of Use for HS2 Works
|
||||
elecBranch: none
|
||||
description: Out of Use for HS2 Works. Track temporarily disconnected.
|
||||
miles: 3
|
||||
chains: 53
|
||||
|
||||
@@ -314,6 +315,7 @@ routeDetail:
|
||||
name: West Ealing Junction
|
||||
diverges: left
|
||||
direction: down
|
||||
elecBranch: none
|
||||
description: Dn/Up Greenford to Greenford & West Ealing Sidings
|
||||
miles: 6
|
||||
chains: 54
|
||||
@@ -329,6 +331,7 @@ routeDetail:
|
||||
name: Hanwell Junction
|
||||
diverges: left
|
||||
direction: up
|
||||
elecBranch: none
|
||||
description: Dn/Up Loop to Greenford & West Ealing Sidings
|
||||
miles: 7
|
||||
chains: 19
|
||||
@@ -371,6 +374,8 @@ routeDetail:
|
||||
- type: loop
|
||||
position: left
|
||||
name: Hanwell Up & Dn Goods Loops
|
||||
description: Both on Up side
|
||||
elecLoop: none
|
||||
miles: 8
|
||||
chains: 20
|
||||
|
||||
@@ -392,6 +397,7 @@ routeDetail:
|
||||
name: Southall East Junction
|
||||
diverges: right
|
||||
direction: up
|
||||
elecBranch: none
|
||||
description: Brentford Waste Terminal & Southall Depot
|
||||
miles: 8
|
||||
chains: 62
|
||||
@@ -638,6 +644,7 @@ routeDetail:
|
||||
name: Langley GF
|
||||
diverges: left
|
||||
description: Langley Sidings
|
||||
elecBranch: none
|
||||
direction: up
|
||||
miles: 15
|
||||
chains: 76
|
||||
@@ -1212,43 +1219,6 @@ routeDetail:
|
||||
miles: 35
|
||||
chains: 78
|
||||
|
||||
- type: bridge
|
||||
name: Caversham Road
|
||||
position: under
|
||||
category: minorRoad
|
||||
miles: 35
|
||||
chains: 11
|
||||
|
||||
- type: junction
|
||||
diverges: right
|
||||
direction: down
|
||||
name: Westbury Line Junction
|
||||
description: to Oxford Road Jn
|
||||
miles: 36
|
||||
chains: 17
|
||||
|
||||
- type: junction
|
||||
diverges: right
|
||||
direction: down
|
||||
name: Caversham Road Junction
|
||||
description: Reading Feeder Main/Relief diverge and pass under Reading Viaduct to Oxford Rd Jn
|
||||
miles: 36
|
||||
chains: 22
|
||||
|
||||
- type: crossovers
|
||||
name: Reading High Level Junction
|
||||
description: Down Reading Festival Connects to Down Main
|
||||
miles: 36
|
||||
chains: 47
|
||||
|
||||
- type: junction
|
||||
diverges: right
|
||||
direction: up
|
||||
name: Reading West Junction
|
||||
description: to Oxford Road Junction (From relief lines only)
|
||||
miles: 37
|
||||
chains: 17
|
||||
|
||||
- type: continues
|
||||
routeName: Reading West Jn - Bristol TM
|
||||
routeName: Reading - Bristol TM
|
||||
routeId: '0002'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
routeStart: Reading West Jn
|
||||
routeStart: Reading
|
||||
routeEnd: Bristol TM
|
||||
routeId: 0002
|
||||
created: 2026-02-04
|
||||
@@ -12,10 +12,47 @@ elecEnd:
|
||||
elec: none
|
||||
routeDetail:
|
||||
- type: continues
|
||||
routeName: Paddington - Reading West Jn
|
||||
routeName: Paddington - Reading
|
||||
routeId: '0001'
|
||||
|
||||
- type: station
|
||||
name: Reading
|
||||
miles: 35
|
||||
chains: 78
|
||||
|
||||
- type: bridge
|
||||
name: Caversham Road
|
||||
position: under
|
||||
category: minorRoad
|
||||
miles: 35
|
||||
chains: 11
|
||||
|
||||
- type: junction
|
||||
diverges: right
|
||||
direction: down
|
||||
name: Westbury Line Junction
|
||||
description: to Oxford Road Jn
|
||||
miles: 36
|
||||
chains: 17
|
||||
|
||||
- type: junction
|
||||
diverges: right
|
||||
direction: down
|
||||
name: Caversham Road Junction
|
||||
description: Reading Feeder Main/Relief diverge and pass under Reading Viaduct to Oxford Rd Jn
|
||||
miles: 36
|
||||
chains: 22
|
||||
|
||||
- type: crossovers
|
||||
name: Scours Lane Junction
|
||||
description: Line diverges
|
||||
miles: 38
|
||||
chains: 90
|
||||
name: Reading High Level Junction
|
||||
description: Down Reading Festival Connects to Down Main
|
||||
miles: 36
|
||||
chains: 47
|
||||
|
||||
- type: junction
|
||||
diverges: right
|
||||
direction: up
|
||||
name: Reading West Junction
|
||||
description: to Oxford Road Junction (From relief lines only)
|
||||
miles: 37
|
||||
chains: 17
|
||||
|
||||
@@ -2,5 +2,16 @@ import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [sveltekit()]
|
||||
plugins: [
|
||||
sveltekit(),
|
||||
],
|
||||
build: {
|
||||
assetsInlineLimit: 0,
|
||||
cssCodeSplit: true,
|
||||
sourcemap: false,
|
||||
target: 'esnext',
|
||||
modulePreload: {
|
||||
polyfill: false,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user