git ssb

0+

Rômulo Alves / website



Commit 05da29162cd94001b87a1366246df608c8a7fa4d

Includes manifest and progress bar indicator

Rômulo Alves committed on 5/6/2018, 11:03:50 AM
Parent: 1c565fd835e560d9649f1839715e501895e84f77

Files changed

components/page.jschanged
package.jsonchanged
static/manifest.jsonadded
yarn.lockchanged
components/page.jsView
@@ -1,18 +1,25 @@
11 import Head from 'next/head';
2 +import Router from 'next/router';
3 +import NProgress from 'nprogress';
24 import {
35 node,
46 string
57 } from 'prop-types';
68
9 +Router.onRouteChangeStart = () => NProgress.start();
10 +Router.onRouteChangeComplete = () => NProgress.done();
11 +Router.onRouteChangeError = () => NProgress.done();
12 +
713 const Page = ({ children, pageTitle }) => (
814 <div>
915 <Head>
1016 <meta charSet="utf-8" />
1117 <meta httpEquiv="X-UA-Compatible" content="IE=edge" />
1218 <meta name="description" content="@romuloalves - Software Developer" />
1319 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
1420 <link rel="icon" type="image/png" href="/static/favicon.png" />
21 + <link rel="manifest" href="/static/manifest.json" />
1522 <title>
1623 { `@romuloalves${pageTitle ? ` – ${pageTitle}` : ''}` }
1724 </title>
1825 </Head>
@@ -40,8 +47,32 @@
4047 }
4148 a:hover {
4249 color: #81D4FA;
4350 }
51 +
52 + /* loading progress bar styles */
53 + #nprogress {
54 + pointer-events: none;
55 + }
56 + #nprogress .bar {
57 + background: #22BAD9;
58 + position: fixed;
59 + z-index: 1031;
60 + top: 0;
61 + left: 0;
62 + width: 100%;
63 + height: 2px;
64 + }
65 + #nprogress .peg {
66 + display: block;
67 + position: absolute;
68 + right: 0px;
69 + width: 100px;
70 + height: 100%;
71 + box-shadow: 0 0 10px #22BAD9, 0 0 5px #22BAD9;
72 + opacity: 1.0;
73 + transform: rotate(3deg) translate(0px, -4px);
74 + }
4475 `}</style>
4576 </div>
4677 );
4778
package.jsonView
@@ -4,8 +4,9 @@
44 "description": "Rômulo Alves website",
55 "dependencies": {
66 "@zeit/next-preact": "^0.0.7",
77 "next": "^6.0.0",
8 + "nprogress": "^0.2.0",
89 "preact": "^8.2.9",
910 "preact-compat": "^3.18.0",
1011 "prop-types": "^15.6.1",
1112 "react": "^16.3.2",
static/manifest.jsonView
@@ -1,0 +1,5 @@
1 +{
2 + "short_name": "romuloalves",
3 + "name": "Rômulo Alves Website",
4 + "start_url": "/"
5 +}
yarn.lockView
The diff is too large to show. Use a local git client to view these changes.
Old file size: 162069 bytes
New file size: 151083 bytes

Built with git-ssb-web