Skip to content

Commit 5b301d8

Browse files
authored
Update packages and some styling (#129)
1 parent f796003 commit 5b301d8

20 files changed

+1609
-1394
lines changed

index.html

Lines changed: 65 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,37 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8" />
5-
<meta name="viewport" content="initial-scale=1, width=device-width" />
6-
<meta
7-
name="description"
8-
content="Find your nearest library and mobile library stop in the UK"
9-
/>
10-
<meta name="keywords" content="Libraries, Mobile library stops" />
11-
<meta name="msapplication-TileColor" content="#ffffff" />
12-
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png" />
133

14-
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png" />
15-
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png" />
16-
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png" />
17-
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png" />
18-
<link
19-
rel="apple-touch-icon"
20-
sizes="114x114"
21-
href="/apple-icon-114x114.png"
22-
/>
23-
<link
24-
rel="apple-touch-icon"
25-
sizes="120x120"
26-
href="/apple-icon-120x120.png"
27-
/>
28-
<link
29-
rel="apple-touch-icon"
30-
sizes="144x144"
31-
href="/apple-icon-144x144.png"
32-
/>
33-
<link
34-
rel="apple-touch-icon"
35-
sizes="152x152"
36-
href="/apple-icon-152x152.png"
37-
/>
38-
<link
39-
rel="apple-touch-icon"
40-
sizes="180x180"
41-
href="/apple-icon-180x180.png"
42-
/>
43-
<link
44-
rel="icon"
45-
type="image/png"
46-
sizes="192x192"
47-
href="/android-icon-192x192.png"
48-
/>
49-
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
50-
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png" />
51-
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta name="viewport" content="initial-scale=1, width=device-width" />
7+
<meta name="description" content="Find your nearest library and mobile library stop in the UK" />
8+
<meta name="keywords" content="Libraries, Mobile library stops" />
9+
<meta name="msapplication-TileColor" content="#ffffff" />
10+
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png" />
5211

53-
<!--
12+
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png" />
13+
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png" />
14+
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png" />
15+
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png" />
16+
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png" />
17+
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png" />
18+
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png" />
19+
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png" />
20+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png" />
21+
<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png" />
22+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
23+
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png" />
24+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
25+
26+
<!--
5427
manifest.json provides metadata used when your web app is installed on a
5528
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
5629
-->
57-
<link rel="manifest" href="/manifest.json" />
58-
<link rel="preconnect" href="https://api.librarydata.uk" />
59-
<link rel="preconnect" href="https://api.mobilelibraries.org" />
30+
<link rel="manifest" href="/manifest.json" />
31+
<link rel="preconnect" href="https://api.librarydata.uk" />
32+
<link rel="preconnect" href="https://api.mobilelibraries.org" />
6033

61-
<!--
34+
<!--
6235
Notice the use of in the tags above.
6336
It will be replaced with the URL of the `public` folder during the build.
6437
Only files inside the `public` folder can be referenced from the HTML.
@@ -67,42 +40,43 @@
6740
work correctly both with client-side routing and a non-root public URL.
6841
Learn how to configure a non-root public URL by running `npm run build`.
6942
-->
70-
<title>Library map</title>
71-
<!-- Start Single Page Apps for GitHub Pages -->
72-
<script type="text/javascript">
73-
// Single Page Apps for GitHub Pages
74-
// MIT License
75-
// https://github.com/rafgraph/spa-github-pages
76-
// This script checks to see if a redirect is present in the query string,
77-
// converts it back into the correct url and adds it to the
78-
// browser's history using window.history.replaceState(...),
79-
// which won't cause the browser to attempt to load the new url.
80-
// When the single page app is loaded further down in this file,
81-
// the correct url will be waiting in the browser's history for
82-
// the single page app to route accordingly.
83-
;(function (l) {
84-
if (l.search[1] === '/') {
85-
var decoded = l.search
86-
.slice(1)
87-
.split('&')
88-
.map(function (s) {
89-
return s.replace(/~and~/g, '&')
90-
})
91-
.join('?')
92-
window.history.replaceState(
93-
null,
94-
null,
95-
l.pathname.slice(0, -1) + decoded + l.hash
96-
)
97-
}
98-
})(window.location)
99-
</script>
100-
<!-- End Single Page Apps for GitHub Pages -->
101-
</head>
43+
<title>Library map</title>
44+
<!-- Start Single Page Apps for GitHub Pages -->
45+
<script type="text/javascript">
46+
// Single Page Apps for GitHub Pages
47+
// MIT License
48+
// https://github.com/rafgraph/spa-github-pages
49+
// This script checks to see if a redirect is present in the query string,
50+
// converts it back into the correct url and adds it to the
51+
// browser's history using window.history.replaceState(...),
52+
// which won't cause the browser to attempt to load the new url.
53+
// When the single page app is loaded further down in this file,
54+
// the correct url will be waiting in the browser's history for
55+
// the single page app to route accordingly.
56+
; (function (l) {
57+
if (l.search[1] === '/') {
58+
var decoded = l.search
59+
.slice(1)
60+
.split('&')
61+
.map(function (s) {
62+
return s.replace(/~and~/g, '&')
63+
})
64+
.join('?')
65+
window.history.replaceState(
66+
null,
67+
null,
68+
l.pathname.slice(0, -1) + decoded + l.hash
69+
)
70+
}
71+
})(window.location)
72+
</script>
73+
<!-- End Single Page Apps for GitHub Pages -->
74+
</head>
75+
76+
<body>
77+
<noscript>You need to enable JavaScript to run this app.</noscript>
78+
<div id="app"></div>
79+
<script type="module" src="/src/index.jsx"></script>
80+
</body>
10281

103-
<body>
104-
<noscript>You need to enable JavaScript to run this app.</noscript>
105-
<div id="app"></div>
106-
<script type="module" src="/src/index.jsx"></script>
107-
</body>
108-
</html>
82+
</html>

0 commit comments

Comments
 (0)