Prettier formatting
This commit is contained in:
@@ -1,31 +1,31 @@
|
||||
<div id="container">
|
||||
<p id="tick">✔</p>
|
||||
<p>Done</p>
|
||||
<p id="tick">✔</p>
|
||||
<p>Done</p>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
#tick {
|
||||
#tick {
|
||||
font-size: 45px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#container {
|
||||
position:fixed;
|
||||
top:50%;
|
||||
left:50%;
|
||||
transform:translate(-50%,-50%);
|
||||
margin:auto;
|
||||
background-color:var(--overlay-color);
|
||||
border-radius:15px;
|
||||
padding:20px;
|
||||
padding-bottom:1px;
|
||||
min-width:90px;
|
||||
max-width:90px
|
||||
}
|
||||
p {
|
||||
padding-top:0px;
|
||||
font-weight:bolder;
|
||||
overflow-wrap:normal;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
#container {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
margin: auto;
|
||||
background-color: var(--overlay-color);
|
||||
border-radius: 15px;
|
||||
padding: 20px;
|
||||
padding-bottom: 1px;
|
||||
min-width: 90px;
|
||||
max-width: 90px;
|
||||
}
|
||||
p {
|
||||
padding-top: 0px;
|
||||
font-weight: bolder;
|
||||
overflow-wrap: normal;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,40 +1,42 @@
|
||||
<script>
|
||||
export let title = 'title'
|
||||
export let title = 'title';
|
||||
</script>
|
||||
|
||||
<div class="headerBar">
|
||||
<a href="/">
|
||||
<picture>
|
||||
<source srcset="/images/logo/wide_logo.svg" type="image/svg+xml">
|
||||
<img src="/images/logo/wide_logo_200.png" alt="OwlBoard Logo">
|
||||
</picture>
|
||||
</a>
|
||||
<header>{title}</header>
|
||||
<a href="/">
|
||||
<picture>
|
||||
<source srcset="/images/logo/wide_logo.svg" type="image/svg+xml" />
|
||||
<img src="/images/logo/wide_logo_200.png" alt="OwlBoard Logo" />
|
||||
</picture>
|
||||
</a>
|
||||
<header>{title}</header>
|
||||
</div>
|
||||
<div class="headerBlock">
|
||||
<!-- This exists to prevent the headerBar overlapping anything below it -->
|
||||
<!-- This exists to prevent the headerBar overlapping anything below it -->
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.headerBar {
|
||||
.headerBar {
|
||||
background: var(--overlay-color-solid);
|
||||
color: var(--main-text-color);
|
||||
position: fixed;
|
||||
top: 0; left: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 50px;
|
||||
z-index: 20;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
img {
|
||||
position: absolute;
|
||||
height: 40px;
|
||||
right: 8px;
|
||||
top: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
header {
|
||||
header {
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
top: 3px;
|
||||
@@ -43,11 +45,11 @@ header {
|
||||
margin-top: 7px;
|
||||
margin-left: 20px;
|
||||
font-size: 15pt;
|
||||
}
|
||||
}
|
||||
|
||||
.headerBlock {
|
||||
.headerBlock {
|
||||
height: 50px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,53 +1,57 @@
|
||||
<script>
|
||||
import { fade } from "svelte/transition";
|
||||
import { fade } from 'svelte/transition';
|
||||
</script>
|
||||
|
||||
<div id="container" in:fade={{delay: 150, duration: 250}} out:fade={{duration: 250}}>
|
||||
<div class="spinner"></div>
|
||||
<p>Loading...</p>
|
||||
<div
|
||||
id="container"
|
||||
in:fade={{ delay: 150, duration: 250 }}
|
||||
out:fade={{ duration: 250 }}
|
||||
>
|
||||
<div class="spinner" />
|
||||
<p>Loading...</p>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
@keyframes spinner {
|
||||
0% {
|
||||
transform:translate3d(-50%,-50%,0) rotate(0)
|
||||
}
|
||||
100% {
|
||||
transform:translate3d(-50%,-50%,0) rotate(360deg)
|
||||
}
|
||||
}
|
||||
.spinner::before {
|
||||
animation:1.5s linear infinite spinner;
|
||||
animation-play-state:inherit;
|
||||
border:solid 5px var(--overlay-color);
|
||||
border-bottom-color: white;
|
||||
border-radius:50%;
|
||||
content:"";
|
||||
height:40px;
|
||||
width:40px;
|
||||
position:absolute;
|
||||
top:30%;
|
||||
margin:auto;
|
||||
transform:translate3d(-50%,-50%,0);
|
||||
will-change:transform
|
||||
}
|
||||
#container {
|
||||
position:fixed;
|
||||
top:50%;
|
||||
left:50%;
|
||||
transform:translate(-50%,-50%);
|
||||
margin:auto;
|
||||
background-color:var(--overlay-color);
|
||||
border-radius:15px;
|
||||
padding:20px;
|
||||
padding-bottom:1px;
|
||||
min-width:90px;
|
||||
max-width:90px
|
||||
}
|
||||
p {
|
||||
padding-top:50px;
|
||||
font-weight:bolder;
|
||||
overflow-wrap:normal;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
@keyframes spinner {
|
||||
0% {
|
||||
transform: translate3d(-50%, -50%, 0) rotate(0);
|
||||
}
|
||||
100% {
|
||||
transform: translate3d(-50%, -50%, 0) rotate(360deg);
|
||||
}
|
||||
}
|
||||
.spinner::before {
|
||||
animation: 1.5s linear infinite spinner;
|
||||
animation-play-state: inherit;
|
||||
border: solid 5px var(--overlay-color);
|
||||
border-bottom-color: white;
|
||||
border-radius: 50%;
|
||||
content: '';
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
position: absolute;
|
||||
top: 30%;
|
||||
margin: auto;
|
||||
transform: translate3d(-50%, -50%, 0);
|
||||
will-change: transform;
|
||||
}
|
||||
#container {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
margin: auto;
|
||||
background-color: var(--overlay-color);
|
||||
border-radius: 15px;
|
||||
padding: 20px;
|
||||
padding-bottom: 1px;
|
||||
min-width: 90px;
|
||||
max-width: 90px;
|
||||
}
|
||||
p {
|
||||
padding-top: 50px;
|
||||
font-weight: bolder;
|
||||
overflow-wrap: normal;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,91 +1,103 @@
|
||||
<script>
|
||||
const links = [
|
||||
{
|
||||
title: "Home",
|
||||
path: "/",
|
||||
svgPath: "/images/navigation/home.svg"
|
||||
}
|
||||
]
|
||||
import { page } from "$app/stores";
|
||||
const links = [
|
||||
{
|
||||
title: 'Home',
|
||||
path: '/',
|
||||
svgPath: '/images/navigation/home.svg'
|
||||
}
|
||||
];
|
||||
import { page } from '$app/stores';
|
||||
</script>
|
||||
|
||||
<footer>
|
||||
{#each links as item}
|
||||
<a class="footerLink" href={item.path} class:active={$page.url.pathname == item.path}>
|
||||
<img src="{item.svgPath}" alt="{item.title}">
|
||||
<br>
|
||||
<span>{item.title}</span>
|
||||
</a>
|
||||
<a
|
||||
class="footerLink"
|
||||
href={item.path}
|
||||
class:active={$page.url.pathname == item.path}
|
||||
>
|
||||
<img src={item.svgPath} alt={item.title} />
|
||||
<br />
|
||||
<span>{item.title}</span>
|
||||
</a>
|
||||
{/each}
|
||||
<div class="data-source">
|
||||
<a href="https://nationalrail.co.uk" target="_blank">
|
||||
<picture>
|
||||
<source srcset="/images/nre/nre-powered_200w.jxl" type="image/jxl">
|
||||
<source srcset="/images/nre/nre-powered_200w.webp" type="image/webp">
|
||||
<img id="nre-logo" src="/images/nre/nre-powered_200w.png" alt="Data sourced from National Rail and others">
|
||||
<source srcset="/images/nre/nre-powered_200w.jxl" type="image/jxl" />
|
||||
<source srcset="/images/nre/nre-powered_200w.webp" type="image/webp" />
|
||||
<img
|
||||
id="nre-logo"
|
||||
src="/images/nre/nre-powered_200w.png"
|
||||
alt="Data sourced from National Rail and others"
|
||||
/>
|
||||
</picture>
|
||||
</a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<style>
|
||||
footer {
|
||||
position: fixed;
|
||||
display: flex;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: var(--overlay-color);
|
||||
}
|
||||
footer {
|
||||
position: fixed;
|
||||
display: flex;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: var(--overlay-color);
|
||||
}
|
||||
|
||||
.footerLink {
|
||||
width: 30%;
|
||||
height: 100%;
|
||||
background-color: var(--overlay-color);
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-top: none;
|
||||
border-bottom: none;
|
||||
border-color: rgba(0, 0, 0, 0.24);
|
||||
text-decoration: double;
|
||||
font-weight: 600;
|
||||
}
|
||||
.footerLink {
|
||||
width: 30%;
|
||||
height: 100%;
|
||||
background-color: var(--overlay-color);
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-top: none;
|
||||
border-bottom: none;
|
||||
border-color: rgba(0, 0, 0, 0.24);
|
||||
text-decoration: double;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
footer a.active {
|
||||
background-color: transparent;
|
||||
}
|
||||
footer a.active {
|
||||
background-color: transparent;
|
||||
}
|
||||
.data-source {
|
||||
flex-grow: 2;
|
||||
background: rgb(255, 255, 255);
|
||||
}
|
||||
#nre-logo {
|
||||
width: 150px;
|
||||
height: auto;
|
||||
margin: auto;
|
||||
margin-top: 13px;
|
||||
}
|
||||
@media only screen and (min-width: 475px) {
|
||||
.data-source {
|
||||
flex-grow: 2;
|
||||
background: rgb(255,255,255);
|
||||
background: rgb(255, 255, 255);
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
rgba(255, 255, 255, 0) 0%,
|
||||
rgba(255, 255, 255, 1) 40%
|
||||
);
|
||||
}
|
||||
#nre-logo {
|
||||
width: 150px;
|
||||
height: auto;
|
||||
margin: auto;
|
||||
margin-top: 13px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
right: 20px;
|
||||
}
|
||||
@media only screen and (min-width: 475px) {
|
||||
.data-source {
|
||||
background: rgb(255,255,255);
|
||||
background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 40%);
|
||||
}
|
||||
#nre-logo {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
right: 20px;
|
||||
}
|
||||
}
|
||||
img {
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
margin: 0;
|
||||
margin-top: 3px;
|
||||
padding: 0;
|
||||
}
|
||||
span {
|
||||
margin: 0;
|
||||
margin-bottom: 3px;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
img {
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
margin: 0;
|
||||
margin-top: 3px;
|
||||
padding: 0;
|
||||
}
|
||||
span {
|
||||
margin: 0;
|
||||
margin-bottom: 3px;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,74 +1,74 @@
|
||||
<script>
|
||||
const links = [
|
||||
{
|
||||
title: "Home",
|
||||
path: "/",
|
||||
svgPath: "/images/navigation/home.svg"
|
||||
},
|
||||
{
|
||||
title: "PIS Finder",
|
||||
path: "/pis",
|
||||
svgPath: "/images/navigation/info.svg"
|
||||
},
|
||||
{
|
||||
title: "More",
|
||||
path: "/more",
|
||||
svgPath: "/images/navigation/more.svg"
|
||||
}
|
||||
]
|
||||
import { page } from "$app/stores";
|
||||
const links = [
|
||||
{
|
||||
title: 'Home',
|
||||
path: '/',
|
||||
svgPath: '/images/navigation/home.svg'
|
||||
},
|
||||
{
|
||||
title: 'PIS Finder',
|
||||
path: '/pis',
|
||||
svgPath: '/images/navigation/info.svg'
|
||||
},
|
||||
{
|
||||
title: 'More',
|
||||
path: '/more',
|
||||
svgPath: '/images/navigation/more.svg'
|
||||
}
|
||||
];
|
||||
import { page } from '$app/stores';
|
||||
</script>
|
||||
|
||||
<footer>
|
||||
{#each links as item}
|
||||
<a href={item.path} class:active={$page.url.pathname == item.path}>
|
||||
<img src="{item.svgPath}" alt="{item.title}">
|
||||
<br>
|
||||
<span>{item.title}</span>
|
||||
</a>
|
||||
<a href={item.path} class:active={$page.url.pathname == item.path}>
|
||||
<img src={item.svgPath} alt={item.title} />
|
||||
<br />
|
||||
<span>{item.title}</span>
|
||||
</a>
|
||||
{/each}
|
||||
</footer>
|
||||
|
||||
<style>
|
||||
footer {
|
||||
position: fixed;
|
||||
display: flex;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: rgb(54, 54, 54);
|
||||
}
|
||||
footer {
|
||||
position: fixed;
|
||||
display: flex;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: rgb(54, 54, 54);
|
||||
}
|
||||
|
||||
footer a {
|
||||
flex: 12;
|
||||
width: 30%;
|
||||
height: 100%;
|
||||
background-color: var(--overlay-color);
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-top: none;
|
||||
border-bottom: none;
|
||||
border-color: rgba(0, 0, 0, 0.24);
|
||||
text-decoration: double;
|
||||
font-weight: 600;
|
||||
}
|
||||
footer a {
|
||||
flex: 12;
|
||||
width: 30%;
|
||||
height: 100%;
|
||||
background-color: var(--overlay-color);
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-top: none;
|
||||
border-bottom: none;
|
||||
border-color: rgba(0, 0, 0, 0.24);
|
||||
text-decoration: double;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
footer a.active {
|
||||
background-color: transparent;
|
||||
}
|
||||
footer a.active {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
img {
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
margin: 0;
|
||||
margin-top: 3px;
|
||||
padding: 0;
|
||||
}
|
||||
img {
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
margin: 0;
|
||||
margin-top: 3px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
span {
|
||||
margin: 0;
|
||||
margin-bottom: 3px;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
span {
|
||||
margin: 0;
|
||||
margin-bottom: 3px;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user