Skip to content

Commit f2515d9

Browse files
committed
update foundation page + video
1 parent 5f704b3 commit f2515d9

File tree

14 files changed

+59
-39
lines changed

14 files changed

+59
-39
lines changed

public/index.html

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,14 @@
1010
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
1111
<script defer data-domain="robotframework.org" src="https://plausible.io/js/plausible.outbound-links.js"></script>
1212
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
13-
<script type="text/javascript">
14-
// Single Page Apps for GitHub Pages
15-
// MIT License
16-
// https://github.com/rafgraph/spa-github-pages
17-
// This script checks to see if a redirect is present in the query string,
18-
// converts it back into the correct url and adds it to the
19-
// browser's history using window.history.replaceState(...),
20-
// which won't cause the browser to attempt to load the new url.
21-
// When the single page app is loaded further down in this file,
22-
// the correct url will be waiting in the browser's history for
23-
// the single page app to route accordingly.
24-
(function(l) {
25-
if (l.search[1] === '/' ) {
26-
var decoded = l.search.slice(1).split('&').map(function(s) {
27-
return s.replace(/~and~/g, '&')
28-
}).join('?');
29-
window.history.replaceState(null, null,
30-
l.pathname.slice(0, -1) + decoded + l.hash
31-
);
32-
}
33-
}(window.location))
34-
</script>
13+
<script defer src="/scripts/gh-pages-spa.js"></script>
14+
<script defer src="/scripts/stars-tag.js"></script>
3515
</head>
3616
<body>
3717
<noscript>
3818
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
3919
</noscript>
4020
<div id="app"></div>
4121
<!-- built files will be auto injected -->
42-
<script defer src="/stars-tag.js"></script>
4322
</body>
4423
</html>

public/robot-icon.svg

Lines changed: 15 additions & 0 deletions
Loading

public/scripts/gh-pages-spa.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Single Page Apps for GitHub Pages
2+
// MIT License
3+
// https://github.com/rafgraph/spa-github-pages
4+
// This script checks to see if a redirect is present in the query string,
5+
// converts it back into the correct url and adds it to the
6+
// browser's history using window.history.replaceState(...),
7+
// which won't cause the browser to attempt to load the new url.
8+
// When the single page app is loaded further down in this file,
9+
// the correct url will be waiting in the browser's history for
10+
// the single page app to route accordingly.
11+
(function(l) {
12+
if (l.search[1] === '/' ) {
13+
var decoded = l.search.slice(1).split('&').map(function(s) {
14+
return s.replace(/~and~/g, '&')
15+
}).join('?');
16+
window.history.replaceState(null, null,
17+
l.pathname.slice(0, -1) + decoded + l.hash
18+
);
19+
}
20+
}(window.location))

public/stars-tag.js renamed to public/scripts/stars-tag.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/video/foundation.webm

16.4 MB
Binary file not shown.

public/video/foundation_compat.mp4

21 MB
Binary file not shown.

public/video/foundation_mobile.webm

8.82 MB
Binary file not shown.
9.73 MB
Binary file not shown.

public/video/foundation_poster.webp

57.1 KB
Binary file not shown.

src/assets/css/text.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ p {
118118

119119
p.lead {
120120
font-size: var(--type-large);
121-
margin: var(--size-2xlarge) 0;
122121
font-family: var(--font-title);
123122
line-height: var(--line-height-lead);
124123
}

0 commit comments

Comments
 (0)