Skip to content

Commit e8c2ae4

Browse files
committed
Add build
1 parent aa1bd4e commit e8c2ae4

4 files changed

Lines changed: 211 additions & 0 deletions

File tree

_site/favicon-32px.png

1.57 KB
Loading

_site/manifest.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"lang": "en",
3+
"dir": "ltr",
4+
"name": "Sparkplug",
5+
"short_name": "Raymaun",
6+
"icons": [
7+
{
8+
"src": "/favicon-32px.png",
9+
"sizes": "32x32",
10+
"type": "image/png"
11+
}
12+
],
13+
"theme_color": "#ffffff",
14+
"background_color": "#ffffff",
15+
"start_url": "/",
16+
"display": "standalone",
17+
"orientation": "natural"
18+
}

_site/offline.html

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0">
8+
9+
<meta name="HandheldFriendly" content="True">
10+
<meta name="MobileOptimized" content="320">
11+
<meta name="author" content="Sparkplug">
12+
<meta name="google-site-verification" content="" />
13+
14+
<!-- Begin Jekyll SEO tag v2.5.0 -->
15+
<title>Sparkplug | Building better products for our clients since 2013.</title>
16+
<meta name="generator" content="Jekyll v3.8.3" />
17+
<meta property="og:title" content="Sparkplug" />
18+
<meta name="author" content="Sparkplug" />
19+
<meta property="og:locale" content="en_US" />
20+
<meta name="description" content="Building better products for our clients since 2013." />
21+
<meta property="og:description" content="Building better products for our clients since 2013." />
22+
<link rel="canonical" href="http://localhost:4000/offline.html" />
23+
<meta property="og:url" content="http://localhost:4000/offline.html" />
24+
<meta property="og:site_name" content="Sparkplug" />
25+
<meta property="og:image" content="http://localhost:4000/img/sparkplug-tech-work.jpg" />
26+
<meta name="twitter:card" content="summary_large_image" />
27+
<meta name="twitter:site" content="@sparkplugea" />
28+
<meta name="twitter:creator" content="@Sparkplug" />
29+
<script type="application/ld+json">
30+
{"description":"Building better products for our clients since 2013.","author":{"@type":"Person","name":"Sparkplug"},"@type":"WebPage","url":"http://localhost:4000/offline.html","image":"http://localhost:4000/img/sparkplug-tech-work.jpg","headline":"Sparkplug","@context":"http://schema.org"}</script>
31+
<!-- End Jekyll SEO tag -->
32+
33+
34+
<meta name="theme-color" content="#ffffff">
35+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
36+
37+
<!-- icon in the highest resolution we need it for -->
38+
<link rel="icon" href="img/favicon-16px.png" sizes="16x16" type="image/png">
39+
<link rel="icon" href="favicon-32px.png" sizes="32x32" type="image/png">
40+
41+
<!-- reuse same icon for Safari -->
42+
<link rel="apple-touch-icon" href="img/apple-touch-icon.png">
43+
44+
<!-- Twitter Tags -->
45+
46+
<!-- Twitter cards -->
47+
<meta name="twitter:site" content="@sparkplugea">
48+
<meta name="twitter:creator" content="@sparkplugea">
49+
<meta name="twitter:title" content="">
50+
51+
52+
<meta name="twitter:description" content="Building better products for our clients since 2013.">
53+
54+
55+
56+
<meta name="twitter:card" content="summary_large_image">
57+
<meta name="twitter:image" content="http://localhost:4000/img/sparkplug-tech-work.jpg">
58+
59+
<!-- end of Twitter cards -->
60+
61+
62+
<title>Sparkplug</title>
63+
64+
<link rel="stylesheet" href="/css/sparkplug.css">
65+
<link rel="alternate" type="application/rss+xml" title="Sparkplug Feed" href="/feed.xml" >
66+
<link rel="shortcut icon" href="/favicon.ico">
67+
<!-- <script src="/js/vendor/modernizr-2.8.3.min.js" defer></script>
68+
<script type="text/javascript" src="/js/jquery-3.2.1.min.js" ></script>
69+
<script src="/js/slick.min.js" defer></script> -->
70+
71+
<link rel="manifest" href="manifest.json">
72+
73+
74+
<meta property="og:image" content="http://localhost:4000//img/sparkplug-tech-work.jpg" />
75+
76+
77+
<meta property="og:description" content="" />
78+
79+
</head>
80+
81+
82+
<body>
83+
<div class="w-100">
84+
<nav class="dt w-100 mw9 center ph4-ns pv3">
85+
<div class="db dtc-l v-mid w-100 w-30-l tc tl-l">
86+
<a class="grow-large mb0 mb0-l" href="/" title="Tribe Kampala">
87+
<img src="/img/sparkpluglogo.png" class="dib pa1" alt="avatar">
88+
</a>
89+
</div>
90+
<div class="db dtc-l v-mid w-100 w-60-l tc tr-l">
91+
<a class="link hover-black-90 no-underline underline-hover black-70 f5 f5-l lh-title dib mr3 mr4-l" href="/#services" title="Services at Sparkplug">Services</a>
92+
<a class="f5 fw4 font-smoothing-hover hover-bg-black-80 hover-white no-underline black-70 dib ml2 pv2 ph3 ba-ns br2-ns bw1-ns" href="https://airtable.com/shrkwvdNHX1Ua3rAb" target="_blank" rel="noopener" title="Contact Sparkplug">Contact Us</a>
93+
</div>
94+
</nav>
95+
</div>
96+
<header>
97+
<div class="cover bg-left bg-center-l" style="background-color: #ffffff">
98+
<div class="bg-white-80 pb5 pb6-m pb7-l">
99+
<div class="tc mt4 mt5-m mt6-l ph5-ns ph3 pv5">
100+
<h1 class="f1 f1-l fw2 black-90 mb0 lh-title">It is quite likely that you are offline. </h1>
101+
102+
<p><img class="emoji" title=":frowning:" alt=":frowning:" src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f626.png" height="20" width="20"> <img class="emoji" title=":frowning:" alt=":frowning:" src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f626.png" height="20" width="20"></p>
103+
</div>
104+
</div>
105+
</div>
106+
</header>
107+
108+
<footer class="w-100 cf tc ph3 ph4-m ph6-l pv4 pv6-ns wow animated fadeInUp">
109+
<nav class="wow animated fadeIn">
110+
<ul class="f4 list pa0 mv4 lh-copy">
111+
<li class="dib mr2"><a class="link underline-hover dark-gray b ttu" href="/#services">Services</a></li>
112+
<li class="dib mr2"><a class="link underline-hover dark-gray b ttu" rel="noopener" href="https://airtable.com/shrkwvdNHX1Ua3rAb" target="_blank">Contact</a></li>
113+
</ul>
114+
</nav>
115+
<ul class="list pl0 lh-copy">
116+
<!-- <li class="dib mr2"><a class="link underline-hover dark-gray b ttu" href="/terms-of-use.html"><small>Terms of Use</small></a></li>
117+
<li class="dib mr2"><a class="link underline-hover dark-gray b ttu" href="/privacy-policy.html"><small>Privacy Policy</small></a></li> -->
118+
<li class="dib mr2"><a class="link underline-hover dark-gray b ttu" href="/feed.xml"><small>RSS Feed</small></a></li>
119+
<li class="dib mr2"><a class="link underline-hover dark-gray b ttu" href="/sitemap.xml"><small>Sitemap</small></a></li>
120+
</ul>
121+
<small class="w-100 db mv2 lh-copy">Copyright <i class="fa fa-fw fa-copyright"></i>2018 Sparkplug. All rights reserved.</small>
122+
<small class="w-100 db mv2 lh-copy">Made in Kampala, Uganda.</small>
123+
<a class="db link underline-hover gray" href="#cornerstone" data-scroll><small>Back to Top</small></a>
124+
</footer>
125+
126+
127+
</body>
128+
129+
</html>

_site/sw.js

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
const version = '{{ site.time }}';
2+
3+
const CACHE_VERSION = 1;
4+
let CURRENT_CACHE = 'sparkplug' + version;
5+
6+
const cacheFiles = [
7+
'/',
8+
'/404/',
9+
'css/sparkplug.css'
10+
];
11+
12+
self.addEventListener('activate', evt =>
13+
evt.waitUntil(
14+
caches.keys().then(cacheNames => {
15+
return Promise.all(
16+
cacheNames.map(cacheName => {
17+
if (cacheName !== CURRENT_CACHE) {
18+
return caches.delete(cacheName);
19+
}
20+
})
21+
);
22+
})
23+
)
24+
);
25+
26+
self.addEventListener('install', evt =>
27+
evt.waitUntil(
28+
caches.open(CURRENT_CACHE)
29+
.then(cache => {
30+
return cache.addAll(cacheFiles);
31+
})
32+
)
33+
);
34+
35+
const fromNetwork = (request, timeout) =>
36+
new Promise( (fulfill, reject) => {
37+
var timeoutId = setTimeout(reject, timeout);
38+
fetch(request).then(response => {
39+
clearTimeout(timeoutId);
40+
fulfill(response);
41+
update(request);
42+
}, reject);
43+
})
44+
45+
const fromCache = request =>
46+
caches.open(CURRENT_CACHE).then(cache =>
47+
cache.match(request).then(matching =>
48+
matching || cache.match('/offline.html')
49+
)
50+
);
51+
52+
const update = request =>
53+
caches.open(CURRENT_CACHE).then(cache =>
54+
fetch(request).then(response =>
55+
cache.put(request, response)
56+
)
57+
);
58+
59+
self.addEventListener('fetch', evt => {
60+
evt.respondWith(fromNetwork(evt.request, 10000).catch(
61+
() => fromCache(evt.request)
62+
));
63+
evt.waitUntil(update(evt.request));
64+
});

0 commit comments

Comments
 (0)