3 Commits

Author SHA1 Message Date
cfa1d44dbc Run prettier 2026-02-07 00:38:56 +00:00
ca5e78e2b1 Add OwlBoard styling 2026-02-07 00:31:37 +00:00
6c10cb628e Fix linter warnings 2026-02-06 23:54:50 +00:00
10 changed files with 1725 additions and 1650 deletions

View File

@@ -6,4 +6,4 @@ bun.lock
bun.lockb bun.lockb
# Miscellaneous # Miscellaneous
/static/ #/static/

View File

@@ -23,11 +23,11 @@ fs.readdirSync(inputDir).forEach((file) => {
routeStart: content.routeStart || null, routeStart: content.routeStart || null,
routeEnd: content.routeEnd || null, routeEnd: content.routeEnd || null,
created: content.created || null, created: content.created || null,
checked: content.checked || null, checked: content.checked || null
}); });
} }
}); });
fs.writeFileSync(indexFile, JSON.stringify(mapList)); fs.writeFileSync(indexFile, JSON.stringify(mapList));
console.log(`Generated ${mapList.length} map files and index.`) console.log(`Generated ${mapList.length} map files and index.`);

View File

@@ -1,4 +1,4 @@
import { type HandleFetch } from "@sveltejs/kit"; import { type HandleFetch } from '@sveltejs/kit';
export const handleFetch: HandleFetch = async ({ request, fetch }) => { export const handleFetch: HandleFetch = async ({ request, fetch }) => {
if (request.url.startsWith('https://maps.owlboard.info')) { if (request.url.startsWith('https://maps.owlboard.info')) {
@@ -11,10 +11,10 @@ export const handleFetch: HandleFetch = async ({ request, fetch }) => {
method: request.method, method: request.method,
headers: headers, headers: headers,
body: request.body, body: request.body,
// @ts-ignore - 'duplex' is needed for node fetch with bodies // @ts-expect-error - 'duplex' is needed for node fetch with bodies
duplex: 'half' duplex: 'half'
}); });
} }
return fetch(request); return fetch(request);
} };

View File

@@ -4,7 +4,15 @@
export let feature: { export let feature: {
position: 'over' | 'under'; position: 'over' | 'under';
category: 'rail' |'stream'| 'foot' | 'aroad' | 'minorRoad' | 'motorway' | 'waterway' | 'pipeline'; category:
| 'rail'
| 'stream'
| 'foot'
| 'aroad'
| 'minorRoad'
| 'motorway'
| 'waterway'
| 'pipeline';
roadName?: string; roadName?: string;
}; };
export let activeElec: ElecType; export let activeElec: ElecType;
@@ -98,11 +106,10 @@
{#if isOver} {#if isOver}
<BaseTrack {activeElec} height={64} /> <BaseTrack {activeElec} height={64} />
<!-- White edge, to provide separation between abutment line and bridge content --> <!-- White edge, to provide separation between abutment line and bridge content -->
<rect x=0 y={32 - (s.width / 2) - 4} width="64" height="{s.width + 8}" fill="white" /> <rect x="0" y={32 - s.width / 2 - 4} width="64" height={s.width + 8} fill="white" />
<rect x="6" y={32 - (s.width / 2)} width="52" height={s.width} fill={s.bg} /> <rect x="6" y={32 - s.width / 2} width="52" height={s.width} fill={s.bg} />
{#if s.type === 'road'} {#if s.type === 'road'}
<line <line
@@ -120,15 +127,17 @@
<line x1={xLeft} y1="36" x2={xRight} y2="36" stroke="#cbd5e1" stroke-width="1.5" /> <line x1={xLeft} y1="36" x2={xRight} y2="36" stroke="#cbd5e1" stroke-width="1.5" />
{/if} {/if}
<g fill="none" stroke={s.stroke} stroke-width="2.5" stroke-linecap="square"> <g fill="none" stroke={s.stroke} stroke-width="2.5" stroke-linecap="square">
<path d={`M 20 ${32 - s.width / 2 - 6} L 20 ${32 - s.width / 2 - 4} L 44 ${32 - s.width / 2 - 4} L 44 ${32 - s.width / 2 - 6}`} /> <path
d={`M 20 ${32 - s.width / 2 - 6} L 20 ${32 - s.width / 2 - 4} L 44 ${32 - s.width / 2 - 4} L 44 ${32 - s.width / 2 - 6}`}
/>
<path d={`M 20 ${32 + s.width / 2 + 6} L 20 ${32 + s.width / 2 + 4} L 44 ${32 + s.width / 2 + 4} L 44 ${32 + s.width / 2 + 6}`} /> <path
</g> d={`M 20 ${32 + s.width / 2 + 6} L 20 ${32 + s.width / 2 + 4} L 44 ${32 + s.width / 2 + 4} L 44 ${32 + s.width / 2 + 6}`}
/>
</g>
{:else} {:else}
<rect x="6" y={32 - s.width / 2} width="52" height={s.width} fill={s.bg} />
<rect x="6" y={32 - (s.width / 2)} width="52" height={s.width} fill={s.bg} />
{#if s.type === 'road'} {#if s.type === 'road'}
<line <line
@@ -148,9 +157,13 @@
<rect x="26" y={yTop} width="12" height="64" fill="white" /> <rect x="26" y={yTop} width="12" height="64" fill="white" />
<g stroke={s.stroke} stroke-width="2.5" fill="none" stroke-linecap="square"> <g stroke={s.stroke} stroke-width="2.5" fill="none" stroke-linecap="square">
<path d={`M 24 ${(32 - (s.width / 2)) - 5} L 25 ${(32 - (s.width / 2)) - 5} L 25 ${(32 - (s.width / 2)) + s.width + 5} L 24 ${(32 - (s.width / 2)) + s.width + 5}`} /> <path
d={`M 24 ${32 - s.width / 2 - 5} L 25 ${32 - s.width / 2 - 5} L 25 ${32 - s.width / 2 + s.width + 5} L 24 ${32 - s.width / 2 + s.width + 5}`}
/>
<path d={`M 40 ${(32 - (s.width / 2)) - 5} L 39 ${(32 - (s.width / 2)) - 5} L 39 ${(32 - (s.width / 2)) + s.width + 5} L 40 ${(32 - (s.width / 2)) + s.width + 5}`} /> <path
d={`M 40 ${32 - s.width / 2 - 5} L 39 ${32 - s.width / 2 - 5} L 39 ${32 - s.width / 2 + s.width + 5} L 40 ${32 - s.width / 2 + s.width + 5}`}
/>
</g> </g>
<BaseTrack {activeElec} height={64} /> <BaseTrack {activeElec} height={64} />

View File

@@ -18,7 +18,7 @@
}; };
const getPath = (side: 'left' | 'right') => { const getPath = (side: 'left' | 'right') => {
const yStart = visualUp ? 64 : 0; const yStart = visualUp ? 64 : 8;
const yEnd = visualUp ? 8 : 56; const yEnd = visualUp ? 8 : 56;
const xEnd = side === 'right' ? 56 : 8; const xEnd = side === 'right' ? 56 : 8;
return `M 32 ${yStart} Q 32 32 ${xEnd} ${yEnd}`; return `M 32 ${yStart} Q 32 32 ${xEnd} ${yEnd}`;
@@ -34,7 +34,7 @@
</script> </script>
<svg viewBox="0 0 64 64" width="64" height="64" class="junction"> <svg viewBox="0 0 64 64" width="64" height="64" class="junction">
{#each paths as d} {#each paths as d (d)}
<path {d} fill="none" stroke={branchColour} stroke-width="5" stroke-linecap="round" /> <path {d} fill="none" stroke={branchColour} stroke-width="5" stroke-linecap="round" />
{/each} {/each}
<BaseTrack {activeElec} height={64} /> <BaseTrack {activeElec} height={64} />

View File

@@ -1,38 +1,52 @@
<script lang="ts"> <script lang="ts">
import type { PageData } from './$types'; import type { PageData } from './$types';
import { base } from '$app/paths';
export let data: PageData; export let data: PageData;
let searchTerm = ''; let searchTerm = '';
const formatDate = (dateVal: string | null) => { $: filteredMaps = data.maps.filter(
if (!dateVal) return '---'; (m) =>
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) || m.routeId.toString().includes(searchTerm) ||
m.routeStart.toLowerCase().includes(searchTerm.toLowerCase()) || m.routeStart.toLowerCase().includes(searchTerm.toLowerCase()) ||
m.routeEnd.toLowerCase().includes(searchTerm.toLowerCase()) m.routeEnd.toLowerCase().includes(searchTerm.toLowerCase())
); );
const isVerifiedRecently = (dateVal: string | null) => { const isVerifiedRecently = (dateVal: string | null) => {
if (!dateVal) return 'draft'; if (!dateVal) return 'draft';
const checkedDate = new Date(dateVal).getTime(); const checkedDate = new Date(dateVal).getTime();
const oneYearAgo = Date.now() - (365 * 24 * 60 * 60 * 1000); const oneYearAgo = Date.now() - 365 * 24 * 60 * 60 * 1000;
return checkedDate > oneYearAgo ? 'verified' : 'stale'; 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> </script>
<div class="page-wrapper"> <div class="page-wrapper">
<header class="main-header"> <header class="main-header">
<div class="brand-container"> <div class="brand-container">
<img src="https://owlboard.info/images/logo/wide_logo.svg" alt="OwlBoard Logo" class="main-logo" /> <img
src="https://owlboard.info/images/logo/wide_logo.svg"
alt="OwlBoard Logo"
class="main-logo"
/>
<div class="brand-text"> <div class="brand-text">
<h1>Routes</h1> <h1>Routes</h1>
<p class="sub-brand">by OwlBoard</p>
</div> </div>
<div class="search-container"> <div class="search-container">
<input <input
@@ -42,14 +56,33 @@ const isVerifiedRecently = (dateVal: string | null) => {
class="search-input" class="search-input"
/> />
</div> </div>
</div>
</header> </header>
<div class="list-container"> <div class="list-container">
{#each filteredMaps as map} <a
<a href="/map/{map.routeId.toString().padStart(4, '0')}" class="card"> 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>
{#each filteredMaps as map (map.routeId)}
<a href="{base}/map/{map.routeId.toString().padStart(4, '0')}" class="card">
<div class="card-top"> <div class="card-top">
<span class="route-id">{map.routeId.toString().padStart(4, '0')}</span> <span class="route-id">{map.routeId.toString().padStart(4, '0')}</span>
<span class="status-badge {isVerifiedRecently(map.checked)}"> <span class="status-badge {isVerifiedRecently(map.checked)}">
{#if isVerifiedRecently(map.checked) === 'verified'} {#if isVerifiedRecently(map.checked) === 'verified'}
Reviewed Reviewed
{:else if isVerifiedRecently(map.checked) === 'stale'} {:else if isVerifiedRecently(map.checked) === 'stale'}
@@ -57,19 +90,19 @@ const isVerifiedRecently = (dateVal: string | null) => {
{:else} {:else}
Draft Draft
{/if} {/if}
</span> </span>
</div> </div>
<div class="card-body"> <div class="card-body">
<div class="location origin">{map.routeStart}</div> <div class="location origin">{map.routeStart}</div>
<div class="path-arrow"></div> <div class="path-arrow">to</div>
<div class="location destination">{map.routeEnd}</div> <div class="location destination">{map.routeEnd}</div>
</div> </div>
<div class="card-footer"> <div class="card-footer">
<span>Created: {formatDate(map.created)}</span> <span>Created on {formatDate(map.created)}</span>
{#if map.checked} {#if map.checked}
<span>• Checked: {formatDate(map.checked)}</span> <span>• Checked & Updated on {formatDate(map.checked)}</span>
{/if} {/if}
</div> </div>
</a> </a>
@@ -83,9 +116,10 @@ const isVerifiedRecently = (dateVal: string | null) => {
/* Mobile-First Base Styles */ /* Mobile-First Base Styles */
:global(body) { :global(body) {
margin: 0; margin: 0;
background-color: #f8fafc; background-color: #404c55;
background-image: radial-gradient(#2b343c, #404c55);
color: #0f172a; color: #0f172a;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
} }
.page-wrapper { .page-wrapper {
@@ -96,13 +130,19 @@ const isVerifiedRecently = (dateVal: string | null) => {
.main-header { .main-header {
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
position: fixed;
top: 0;
left: 0;
width: 100%;
background: #3c6f79;
color: #ebebeb;
} }
.brand-container { .brand-container {
margin: 15px;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 1rem; gap: 1rem;
margin-bottom: 1.5rem;
} }
.main-logo { .main-logo {
@@ -167,6 +207,7 @@ const isVerifiedRecently = (dateVal: string | null) => {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 1rem; gap: 1rem;
padding-top: 90px;
} }
.card { .card {
@@ -177,8 +218,9 @@ const isVerifiedRecently = (dateVal: string | null) => {
text-decoration: none; text-decoration: none;
color: inherit; color: inherit;
border: 1px solid #e2e8f0; border: 1px solid #e2e8f0;
box-shadow: 0 1px 3px rgba(0,0,0,0.05); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
transition: transform 0.1s ease; transition: transform 0.1s ease;
cursor: pointer;
} }
.card:active { .card:active {
@@ -212,7 +254,7 @@ const isVerifiedRecently = (dateVal: string | null) => {
} }
.path-arrow { .path-arrow {
color: #cbd5e1; color: #acc7e8;
font-size: 0.9rem; font-size: 0.9rem;
margin: 0.2rem 0; margin: 0.2rem 0;
} }
@@ -227,33 +269,31 @@ const isVerifiedRecently = (dateVal: string | null) => {
padding-top: 0.75rem; padding-top: 0.75rem;
} }
/* Update your existing badge styles */ .status-badge {
.status-badge {
font-size: 0.65rem; font-size: 0.65rem;
font-weight: 800; font-weight: 800;
text-transform: uppercase; text-transform: uppercase;
padding: 0.3rem 0.6rem; padding: 0.3rem 0.6rem;
border-radius: 999px; border-radius: 999px;
white-space: nowrap; /* Prevents label snapping on small screens */ white-space: nowrap;
} }
.verified { .verified {
background: #dcfce7; background: #dcfce7;
color: #166534; color: #166534;
} }
.stale { .stale {
background: #fef3c7; /* Amber/Yellow background */ background: #fef3c7;
color: #92400e; /* Dark brown/gold text */ color: #92400e;
border: 1px solid #fcd34d; border: 1px solid #fcd34d;
} }
.draft { .draft {
background: #f1f5f9; background: #f1f5f9;
color: #475569; color: #475569;
} }
/* Desktop Adjustments */
@media (min-width: 640px) { @media (min-width: 640px) {
.page-wrapper { .page-wrapper {
padding: 3rem 1.5rem; padding: 3rem 1.5rem;
@@ -272,7 +312,6 @@ const isVerifiedRecently = (dateVal: string | null) => {
.path-arrow { .path-arrow {
display: inline-block; display: inline-block;
margin: 0 0.5rem; margin: 0 0.5rem;
transform: rotate(-90deg); /* Turn down arrow into right arrow */
} }
.card-body { .card-body {
@@ -280,4 +319,31 @@ const isVerifiedRecently = (dateVal: string | null) => {
align-items: center; 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;
}
</style> </style>

View File

@@ -1,4 +1,4 @@
import type { PageLoad } from "./$types"; import type { PageLoad } from './$types';
export const load: PageLoad = async ({ fetch }) => { export const load: PageLoad = async ({ fetch }) => {
const response = await fetch('map-index.json'); const response = await fetch('map-index.json');

View File

@@ -2,6 +2,7 @@
import RouteRow from '$lib/components/RouteRow.svelte'; import RouteRow from '$lib/components/RouteRow.svelte';
import RouteEndLink from '$lib/components/mapIcons/RouteEndLink.svelte'; import RouteEndLink from '$lib/components/mapIcons/RouteEndLink.svelte';
import { slide } from 'svelte/transition'; import { slide } from 'svelte/transition';
import { base } from '$app/paths';
// data.route contains: routeStart, routeEnd, routeId, elecStart, elecEnd, routeDetail[] // data.route contains: routeStart, routeEnd, routeId, elecStart, elecEnd, routeDetail[]
export let data; export let data;
@@ -58,9 +59,9 @@
</script> </script>
<div class="map-layout"> <div class="map-layout">
<header class="top-nav"> <header class="top-nav">
<div class="nav-cluster"> <div class="nav-cluster">
<a href="/" class="home-link" title="Back to Index"> <a href="{base}/" class="home-link" title="Back to Index">
<span class="home-icon"></span> <span class="home-icon"></span>
</a> </a>
@@ -82,7 +83,7 @@
</button> </button>
<button class="icon-btn" on:click={() => (showFilters = !showFilters)}> Settings </button> <button class="icon-btn" on:click={() => (showFilters = !showFilters)}> Settings </button>
</div> </div>
</header> </header>
{#if showFilters} {#if showFilters}
<div class="backdrop" on:click={() => (showFilters = false)}></div> <div class="backdrop" on:click={() => (showFilters = false)}></div>
@@ -106,7 +107,7 @@
<div class="drawer-content"> <div class="drawer-content">
<div class="filter-flex"> <div class="filter-flex">
{#each Object.keys(visibleTypes) as type} {#each Object.keys(visibleTypes) as type (type)}
<button <button
class="filter-chip" class="filter-chip"
class:active={visibleTypes[type]} class:active={visibleTypes[type]}
@@ -143,14 +144,20 @@
padding-top: 0; padding-top: 0;
} }
.top-nav { .top-nav {
position: fixed;
width: 100%;
box-sizing: border-box;
top: 0;
left: 0;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
background: #0f172a; background: #3c6f79;
color: white; color: #e1ebeb;
gap: 1rem; gap: 1rem;
z-index: 10000;
} }
.nav-cluster { .nav-cluster {
@@ -166,19 +173,18 @@
justify-content: center; justify-content: center;
width: 36px; width: 36px;
height: 36px; height: 36px;
background: #1e293b; background: #404c55;
border: 1px solid #334155; border: 1px solid #334155;
border-radius: 8px; border-radius: 8px;
color: #94a3b8; color: #e1ebeb;
text-decoration: none; text-decoration: none;
font-size: 1.2rem; font-size: 1.2rem;
flex-shrink: 0; /* Keeps button from squishing on mobile */ flex-shrink: 0;
transition: all 0.3s ease;
} }
.home-link:hover { .home-link:hover {
background: #334155; background: #2d2d2d;
color: white;
border-color: #475569;
} }
.route-stack { .route-stack {
@@ -192,13 +198,14 @@
font-weight: 800; font-weight: 800;
margin: 0; margin: 0;
white-space: nowrap; white-space: nowrap;
color: #cce9e9;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.secondary-station { .secondary-station {
font-size: 0.7rem; font-size: 0.7rem;
color: #94a3b8; color: #cce9e9;
text-transform: uppercase; text-transform: uppercase;
font-weight: 600; font-weight: 600;
} }
@@ -208,30 +215,10 @@
gap: 0.5rem; 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 { .map-spine {
padding-top: 72px; 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) { @media (min-width: 768px) {
.primary-station { .primary-station {
font-size: 1.5rem; font-size: 1.5rem;
@@ -267,6 +254,7 @@
inset: 0; inset: 0;
background: rgba(0, 0, 0, 0.4); background: rgba(0, 0, 0, 0.4);
z-index: 150; z-index: 150;
transition: all 0.3s ease;
} }
.filter-drawer { .filter-drawer {
@@ -274,7 +262,7 @@
bottom: 0; bottom: 0;
left: 0; left: 0;
right: 0; right: 0;
background: white; background: #3c6f79;
z-index: 200; z-index: 200;
border-radius: 20px 20px 0 0; border-radius: 20px 20px 0 0;
box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.15); box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.15);
@@ -287,17 +275,17 @@
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 1.25rem 1.5rem 0.75rem; padding: 1.25rem 1.5rem 0.75rem;
border-bottom: 1px solid #f1f5f9; border-bottom: 1px solid #e1ebeb;
} }
.drawer-header h3 { .drawer-header h3 {
margin: 0; margin: 0;
font-size: 1rem; font-size: 1rem;
color: #1e293b; color: #e1ebeb;
} }
.close-icon { .close-icon {
background: #f1f5f9; background: #404c55;
border: none; border: none;
border-radius: 50%; border-radius: 50%;
width: 32px; width: 32px;
@@ -306,7 +294,12 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
cursor: pointer; cursor: pointer;
color: #64748b; color: #e1ebeb;
transition: all 0.3s ease;
}
.close-icon:hover {
background: #2d2d2d;
} }
.drawer-content { .drawer-content {
@@ -323,14 +316,14 @@
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
border-radius: 999px; border-radius: 999px;
border: 1px solid #e2e8f0; border: 1px solid #e2e8f0;
background: #f8fafc; background: #ff6060;
font-size: 0.875rem; font-size: 0.875rem;
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: all 0.2s;
} }
.filter-chip.active { .filter-chip.active {
background: #1e293b; background: #00725b;
color: white; color: white;
border-color: #1e293b; border-color: #1e293b;
} }
@@ -345,23 +338,22 @@
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 0.4rem; gap: 0.4rem;
border: none;
padding: 0.5rem 0.8rem; padding: 0.5rem 0.8rem;
border-radius: 12px; border-radius: 12px;
border: 1px solid #e2e8f0; background: #404c55;
background: #f8fafc; color: #e1ebeb;
color: #475569;
font-size: 0.75rem; font-size: 0.75rem;
font-weight: 700; font-weight: 700;
cursor: pointer; cursor: pointer;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.02em; letter-spacing: 0.02em;
transition: all 0.3s ease;
} }
.icon-btn:hover { .icon-btn:hover {
background: #f1f5f9; background: #2d2d2d;
border-color: #cbd5e1;
color: #1e293b;
} }
.icon-btn:active { .icon-btn:active {

File diff suppressed because it is too large Load Diff

View File

@@ -11,7 +11,10 @@ elecStart:
elecEnd: elecEnd:
elec: none elec: none
routeDetail: routeDetail:
- type: crossovers - type: continues
routeName: Paddington - Reading West Jn
routeId: '0001'
- type: crossovers
name: Scours Lane Junction name: Scours Lane Junction
description: Line diverges description: Line diverges
miles: 38 miles: 38