Compare commits
12 Commits
0.0.5
...
3fbffc7589
| Author | SHA1 | Date | |
|---|---|---|---|
| 3fbffc7589 | |||
| 84312abc75 | |||
| c6fa8794e0 | |||
| 8e65fd396e | |||
| 8a05d8358f | |||
| a8c3117259 | |||
| 2b2095604c | |||
| 08f3d30e44 | |||
| 39511dd428 | |||
| cfcf651e41 | |||
| cfa1d44dbc | |||
| ca5e78e2b1 |
@@ -6,4 +6,4 @@ bun.lock
|
||||
bun.lockb
|
||||
|
||||
# Miscellaneous
|
||||
/static/
|
||||
#/static/
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -1 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="107" height="128" viewBox="0 0 107 128"><title>svelte-logo</title><path d="M94.157 22.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282 29.608A29.92 29.92 0 0 0 8.764 49.65a31.5 31.5 0 0 0 3.108 20.231 30 30 0 0 0-4.477 11.183 31.9 31.9 0 0 0 5.448 24.116c10.402 14.887 30.942 19.297 45.791 9.835l26.083-16.624A29.92 29.92 0 0 0 98.235 78.35a31.53 31.53 0 0 0-3.105-20.232 30 30 0 0 0 4.474-11.182 31.88 31.88 0 0 0-5.447-24.116" style="fill:#ff3e00"/><path d="M45.817 106.582a20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.503 18 18 0 0 1 .624-2.435l.49-1.498 1.337.981a33.6 33.6 0 0 0 10.203 5.098l.97.294-.09.968a5.85 5.85 0 0 0 1.052 3.878 6.24 6.24 0 0 0 6.695 2.485 5.8 5.8 0 0 0 1.603-.704L69.27 76.28a5.43 5.43 0 0 0 2.45-3.631 5.8 5.8 0 0 0-.987-4.371 6.24 6.24 0 0 0-6.698-2.487 5.7 5.7 0 0 0-1.6.704l-9.953 6.345a19 19 0 0 1-5.296 2.326 20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.502 17.99 17.99 0 0 1 8.13-12.052l26.081-16.623a19 19 0 0 1 5.3-2.329 20.72 20.72 0 0 1 22.237 8.243 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-.624 2.435l-.49 1.498-1.337-.98a33.6 33.6 0 0 0-10.203-5.1l-.97-.294.09-.968a5.86 5.86 0 0 0-1.052-3.878 6.24 6.24 0 0 0-6.696-2.485 5.8 5.8 0 0 0-1.602.704L37.73 51.72a5.42 5.42 0 0 0-2.449 3.63 5.79 5.79 0 0 0 .986 4.372 6.24 6.24 0 0 0 6.698 2.486 5.8 5.8 0 0 0 1.602-.704l9.952-6.342a19 19 0 0 1 5.295-2.328 20.72 20.72 0 0 1 22.237 8.242 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-8.13 12.053l-26.081 16.622a19 19 0 0 1-5.3 2.328" style="fill:#fff"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512"><defs><radialGradient xlink:href="#a" id="b" cx="256" cy="256" r="254.04401" fx="256" fy="256" gradientUnits="userSpaceOnUse"/><linearGradient id="a"><stop offset="0" stop-color="#2b343c"/><stop offset="1" stop-color="#404c55"/></linearGradient></defs><circle cx="256" cy="256" r="254.04401" fill="url(#b)"/><path fill="#4fd1d1" d="M256 63.429688c-70.95778.000042-128.48044 57.522702-128.48047 128.480472.00022 14.10748 2.32313 28.1184 6.87695 41.4707l-.01-.0156 7.35742 17.3086c1.62516 3.0994 3.37536 6.13147 5.24805 9.08789.32127.56629.64671 1.13007.97656 1.6914L256 448.57031l108.0293-187.11719c.32985-.56133.65528-1.12511.97656-1.6914 1.8727-2.95642 3.62483-5.98849 5.25-9.08789l7.34766-17.28125v-.0117c4.55383-13.3523 6.87674-27.36322 6.87695-41.4707C384.48042 120.95241 326.95774 63.429742 256 63.429688Zm-77.58594 58.457032c.01-.00084.0211-.00045.0312 0 0 0 17.19849 15.57553 33.64258 24.45117 20.19639 10.90092 31.83331 10.07724 43.91211 24.80469 12.0788-14.72745 23.71572-13.90377 43.91211-24.80469 16.44409-8.87564 33.64258-24.45117 33.64258-24.45117 2.60037-.11599 0 42.34071 0 58.96094 0 42.83269-73.74774 87.10937-77.55469 87.04687-3.80695.0625-77.55469-44.21418-77.55469-87.04687 0-16.55531-2.58111-58.74622-.0312-58.96094z"/><path fill="#fd5" d="m256 247.27121-7.4932-25.90681 7.46586 6 7.52054-6z"/></svg>
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
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,15 +2,10 @@
|
||||
import type { PageData } from './$types';
|
||||
import { base } from '$app/paths';
|
||||
export let data: PageData;
|
||||
import favicon from '$lib/assets/favicon.svg';
|
||||
|
||||
let searchTerm = '';
|
||||
|
||||
const formatDate = (dateVal: string | null) => {
|
||||
if (!dateVal) return '---';
|
||||
const d = new Date(dateVal);
|
||||
return d.toLocaleDateString('en-GB', { day: '2-digit', month: 'short', year: '2-digit' });
|
||||
};
|
||||
|
||||
$: filteredMaps = data.maps.filter(
|
||||
(m) =>
|
||||
m.routeId.toString().includes(searchTerm) ||
|
||||
@@ -18,6 +13,12 @@
|
||||
m.routeEnd.toLowerCase().includes(searchTerm.toLowerCase())
|
||||
);
|
||||
|
||||
const vibrate = (patern: number | number[] = 10) => {
|
||||
if (typeof window !== 'undefined' && window.navigator.vibrate) {
|
||||
window.navigator.vibrate(pattern);
|
||||
}
|
||||
}
|
||||
|
||||
const isVerifiedRecently = (dateVal: string | null) => {
|
||||
if (!dateVal) return 'draft';
|
||||
|
||||
@@ -26,13 +27,28 @@
|
||||
|
||||
return checkedDate > oneYearAgo ? 'verified' : 'stale';
|
||||
};
|
||||
|
||||
const formatDate = (dateVal: string | null) => {
|
||||
if (!dateVal) return 'N/A';
|
||||
|
||||
const date = new Date(dateVal);
|
||||
|
||||
// Check for invalid dates to avoid "NaN/NaN/NaN"
|
||||
if (isNaN(date.getTime())) return 'Invalid Date';
|
||||
|
||||
const d = date.getDate().toString().padStart(2, '0');
|
||||
const m = (date.getMonth() + 1).toString().padStart(2, '0');
|
||||
const y = date.getFullYear().toString().slice(-2);
|
||||
|
||||
return `${d}/${m}/${y}`;
|
||||
};
|
||||
</script>
|
||||
|
||||
<div class="page-wrapper">
|
||||
<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"
|
||||
/>
|
||||
@@ -51,26 +67,9 @@
|
||||
</header>
|
||||
|
||||
<div class="list-container">
|
||||
<a
|
||||
href="https://owlboard.info"
|
||||
class="card external-card"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<div class="card-top">
|
||||
<span class="route-id system-tag">OWL</span>
|
||||
<span class="status-badge external">External Tool</span>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="location">OwlBoard</div>
|
||||
<p class="description">Live Departure Boards and PIS Codes</p>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<span>Visit owlboard.info ↗</span>
|
||||
</div>
|
||||
</a>
|
||||
<a href="https://owlboard.info" class="button-link">Go to OwlBoard Live Departures & PIS</a>
|
||||
{#each filteredMaps as map (map.routeId)}
|
||||
<a href="{base}/map/{map.routeId.toString().padStart(4, '0')}" class="card">
|
||||
<a href="{base}/map/{map.routeId.toString().padStart(4, '0')}" class="card" on:click={() => vibrate(10)}>
|
||||
<div class="card-top">
|
||||
<span class="route-id">{map.routeId.toString().padStart(4, '0')}</span>
|
||||
<span class="status-badge {isVerifiedRecently(map.checked)}">
|
||||
@@ -91,9 +90,9 @@
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<span>Created: {formatDate(map.created)}</span>
|
||||
<span>Created on {formatDate(map.created)}</span>
|
||||
{#if map.checked}
|
||||
<span>• Checked: {formatDate(map.checked)}</span>
|
||||
<span>• Checked & Updated on {formatDate(map.checked)}</span>
|
||||
{/if}
|
||||
</div>
|
||||
</a>
|
||||
@@ -107,7 +106,8 @@
|
||||
/* Mobile-First Base Styles */
|
||||
:global(body) {
|
||||
margin: 0;
|
||||
background-color: #f8fafc;
|
||||
background-color: #404c55;
|
||||
background-image: radial-gradient(#2b343c, #404c55);
|
||||
color: #0f172a;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
}
|
||||
@@ -120,18 +120,27 @@
|
||||
|
||||
.main-header {
|
||||
margin-bottom: 1.5rem;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
background: #3c6f79;
|
||||
color: #ebebeb;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.brand-container {
|
||||
padding: 15px;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.main-logo {
|
||||
/* Adjust height to fit your logo's aspect ratio */
|
||||
height: 48px;
|
||||
height: 52px;
|
||||
width: auto;
|
||||
display: block;
|
||||
}
|
||||
@@ -139,75 +148,98 @@
|
||||
.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;
|
||||
}
|
||||
|
||||
.sub-brand {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 800;
|
||||
color: #94a3b8;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
margin: 0.2rem 0 0 0;
|
||||
}
|
||||
|
||||
/* Desktop layout adjustment */
|
||||
@media (min-width: 640px) {
|
||||
.main-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.brand-container {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.main-logo {
|
||||
height: 56px;
|
||||
}
|
||||
.search-container {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 100%;
|
||||
margin-left: auto;
|
||||
height: 50px;
|
||||
padding: 0.8rem 1rem;
|
||||
border: 2px solid #e2e8f0;
|
||||
border-radius: 12px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
border-radius: 30px;
|
||||
border: none;
|
||||
font-size: 1rem;
|
||||
transition: all 0.3s ease;
|
||||
box-sizing: border-box; /* Ensures padding doesn't break width */
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.search-input:focus {
|
||||
border-color: #3b82f6;
|
||||
.search-input:hover {
|
||||
box-shadow: rgba(0, 0, 0, 0.46);
|
||||
}
|
||||
|
||||
/* Card Layout (Mobile) */
|
||||
.list-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
padding: 90px 1rem 1rem 1rem;
|
||||
isolation: isolate;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.list-container {
|
||||
padding-top: 90px;
|
||||
gap: 0.75rem;
|
||||
padding-left: 0.5rem;
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 10px 12px;
|
||||
margin: 0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 1rem;
|
||||
margin-bottom: 0.1rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.path-arrow {
|
||||
color: #fff;
|
||||
font-size: 0.8rem;
|
||||
margin: 0.1rem 0;
|
||||
line-height: 0.75;
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
font-size: 0.6rem;
|
||||
line-height: 0.8rem;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
display: block;
|
||||
background: white;
|
||||
background: #3c6f79;
|
||||
padding: 1.25rem;
|
||||
border-radius: 16px;
|
||||
border-radius: 35px;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
border: 1px solid #e2e8f0;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
||||
color: #4fd1d1;
|
||||
text-shadow: 2px 1px 10px rgba(0, 0, 0, 0.29);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.482);
|
||||
transition: transform 0.1s ease;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
transform: scale(1.01);
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.card:active {
|
||||
transform: scale(0.98); /* Tactile feedback for mobile */
|
||||
transform: scale(0.99); /* Tactile feedback for mobile */
|
||||
}
|
||||
|
||||
.card-top {
|
||||
@@ -220,8 +252,9 @@
|
||||
.route-id {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
||||
font-weight: 800;
|
||||
color: #3b82f6;
|
||||
background: #eff6ff;
|
||||
color: #fff;
|
||||
background: #2d2d2d;
|
||||
text-shadow: none;
|
||||
padding: 0.2rem 0.5rem;
|
||||
border-radius: 6px;
|
||||
}
|
||||
@@ -231,30 +264,31 @@
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 1.125rem;
|
||||
font-family: "urwgothic";
|
||||
font-size: 1.23rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.path-arrow {
|
||||
color: #acc7e8;
|
||||
color: #fff;
|
||||
font-family: "urwgothic";
|
||||
font-size: 0.9rem;
|
||||
margin: 0.2rem 0;
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
font-size: 0.7rem;
|
||||
color: #64748b;
|
||||
color: #e2ebeb;
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.05em;
|
||||
border-top: 1px solid #f1f5f9;
|
||||
padding-top: 0.75rem;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 800;
|
||||
text-shadow: none;
|
||||
text-transform: uppercase;
|
||||
padding: 0.3rem 0.6rem;
|
||||
border-radius: 999px;
|
||||
@@ -277,56 +311,22 @@
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.page-wrapper {
|
||||
padding: 3rem 1.5rem;
|
||||
.button-link {
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
background: #3c6f79;
|
||||
max-width: 360px;
|
||||
padding: 8px 25px;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
border-radius: 25px;
|
||||
width: auto;
|
||||
color: #e2ebeb;
|
||||
transition: 0.3s all ease;
|
||||
font-weight: 620;
|
||||
}
|
||||
|
||||
.main-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.path-arrow {
|
||||
display: inline-block;
|
||||
margin: 0 0.5rem;
|
||||
}
|
||||
|
||||
.card-body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.external-card {
|
||||
border-left: 4px solid #6366f1;
|
||||
background: linear-gradient(to right, #ffffff, #f5f3ff);
|
||||
}
|
||||
|
||||
.system-tag {
|
||||
background: #eef2ff !important;
|
||||
color: #4338ca !important;
|
||||
}
|
||||
|
||||
.status-badge.external {
|
||||
background: #6366f1;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.description {
|
||||
margin: 0.25rem 0 0 0;
|
||||
font-size: 0.9rem;
|
||||
color: #64748b;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.external-card:hover {
|
||||
border-color: #4338ca;
|
||||
background: #f5f3ff;
|
||||
.button-link:hover {
|
||||
background: #2b2b2b;
|
||||
}
|
||||
</style>
|
||||
|
||||
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',
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -145,13 +145,19 @@
|
||||
}
|
||||
|
||||
.top-nav {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0.5rem 1rem;
|
||||
background: #0f172a;
|
||||
color: white;
|
||||
background: #3c6f79;
|
||||
color: #e1ebeb;
|
||||
gap: 1rem;
|
||||
z-index: 10000;
|
||||
}
|
||||
|
||||
.nav-cluster {
|
||||
@@ -167,19 +173,18 @@
|
||||
justify-content: center;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
background: #1e293b;
|
||||
background: #404c55;
|
||||
border: 1px solid #334155;
|
||||
border-radius: 8px;
|
||||
color: #94a3b8;
|
||||
color: #e1ebeb;
|
||||
text-decoration: none;
|
||||
font-size: 1.2rem;
|
||||
flex-shrink: 0; /* Keeps button from squishing on mobile */
|
||||
flex-shrink: 0;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.home-link:hover {
|
||||
background: #334155;
|
||||
color: white;
|
||||
border-color: #475569;
|
||||
background: #2d2d2d;
|
||||
}
|
||||
|
||||
.route-stack {
|
||||
@@ -193,13 +198,14 @@
|
||||
font-weight: 800;
|
||||
margin: 0;
|
||||
white-space: nowrap;
|
||||
color: #cce9e9;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.secondary-station {
|
||||
font-size: 0.7rem;
|
||||
color: #94a3b8;
|
||||
color: #cce9e9;
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -209,30 +215,10 @@
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.icon-btn {
|
||||
background: #1e293b;
|
||||
border: 1px solid #334155;
|
||||
color: white;
|
||||
padding: 0.4rem 0.6rem;
|
||||
border-radius: 6px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.map-spine {
|
||||
padding-top: 72px;
|
||||
}
|
||||
|
||||
.secondary-station {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
color: #64748b;
|
||||
letter-spacing: 0.025em;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.primary-station {
|
||||
font-size: 1.5rem;
|
||||
@@ -268,6 +254,7 @@
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
z-index: 150;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.filter-drawer {
|
||||
@@ -275,7 +262,7 @@
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: white;
|
||||
background: #3c6f79;
|
||||
z-index: 200;
|
||||
border-radius: 20px 20px 0 0;
|
||||
box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.15);
|
||||
@@ -288,17 +275,17 @@
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1.25rem 1.5rem 0.75rem;
|
||||
border-bottom: 1px solid #f1f5f9;
|
||||
border-bottom: 1px solid #e1ebeb;
|
||||
}
|
||||
|
||||
.drawer-header h3 {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
color: #1e293b;
|
||||
color: #e1ebeb;
|
||||
}
|
||||
|
||||
.close-icon {
|
||||
background: #f1f5f9;
|
||||
background: #404c55;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
width: 32px;
|
||||
@@ -307,7 +294,12 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
color: #64748b;
|
||||
color: #e1ebeb;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.close-icon:hover {
|
||||
background: #2d2d2d;
|
||||
}
|
||||
|
||||
.drawer-content {
|
||||
@@ -324,14 +316,14 @@
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid #e2e8f0;
|
||||
background: #f8fafc;
|
||||
background: #ff6060;
|
||||
font-size: 0.875rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.filter-chip.active {
|
||||
background: #1e293b;
|
||||
background: #00725b;
|
||||
color: white;
|
||||
border-color: #1e293b;
|
||||
}
|
||||
@@ -346,23 +338,22 @@
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
border: none;
|
||||
padding: 0.5rem 0.8rem;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #e2e8f0;
|
||||
background: #f8fafc;
|
||||
color: #475569;
|
||||
background: #404c55;
|
||||
color: #e1ebeb;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.02em;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.icon-btn:hover {
|
||||
background: #f1f5f9;
|
||||
border-color: #cbd5e1;
|
||||
color: #1e293b;
|
||||
background: #2d2d2d;
|
||||
}
|
||||
|
||||
.icon-btn:active {
|
||||
|
||||
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
|
||||
@@ -1179,7 +1186,7 @@ routeDetail:
|
||||
diverges: right
|
||||
direction: up
|
||||
elecBranch: none
|
||||
description: to Southern Lines (Waterloo/Guildford)
|
||||
description: Up/Dn Reading Spur to Southern Lines (Waterloo/Guildford)
|
||||
miles: 35
|
||||
chains: 40
|
||||
|
||||
@@ -1187,6 +1194,7 @@ routeDetail:
|
||||
position: under
|
||||
category: rail
|
||||
name: Low Level Tunnel
|
||||
description: Reading Low Level line
|
||||
miles: 35
|
||||
chains: 40
|
||||
|
||||
@@ -1211,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
|
||||
routeId: "0002"
|
||||
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
|
||||
routeId: "0001"
|
||||
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