git ssb

0+

Rômulo Alves / website



Commit 1c565fd835e560d9649f1839715e501895e84f77

Includes to best practices

Rômulo Alves committed on 5/5/2018, 10:30:29 PM
Parent: 0266257daf1eb551b1e0492b10ca0ff98040a895

Files changed

components/page.jschanged
components/post-link.jschanged
components/section.jschanged
components/social.jschanged
package.jsonchanged
pages/index.jschanged
pages/_document.jsadded
components/page.jsView
@@ -36,9 +36,8 @@
3636 }
3737
3838 a {
3939 color: #000;
40- font-size: 10pt;
4140 }
4241 a:hover {
4342 color: #81D4FA;
4443 }
components/post-link.jsView
@@ -14,9 +14,9 @@
1414 `${ta.ago(date)} (${date})`
1515 }</span>
1616 )
1717 }
18- <a href={ href } title={ children } download={ download }>
18 + <a href={ href } title={ children } download={ download } className="post-title">
1919 {
2020 lang && `(${lang}) `
2121 }
2222 { children }
@@ -25,11 +25,14 @@
2525 <style jsx global>{`
2626 .post-date {
2727 color: #757575;
2828 display: block;
29- font-size: 12px;
29 + font-size: 16px;
3030 margin-bottom: 2px;
3131 }
32 + .post-title {
33 + font-size: 17px;
34 + }
3235 `}</style>
3336 </div>
3437 );
3538
components/section.jsView
@@ -25,9 +25,9 @@
2525 margin-bottom: 15px;
2626 }
2727 .section h1,
2828 .section h1 a {
29- font-size: 30px;
29 + font-size: 26px;
3030 }
3131 `}</style>
3232 </section>
3333 );
components/social.jsView
@@ -6,21 +6,21 @@
66 <link rel="prefetch" href="/static/images/twitter.svg" />
77 <link rel="prefetch" href="/static/images/github.svg" />
88 </Head>
99 <a href="https://twitter.com/romuloalves" title="Twitter">
10- <img src="/static/images/twitter.svg" width="20" height="20" />
10 + <img src="/static/images/twitter.svg" alt="Twitter" width="20" height="20" />
1111 </a>
1212 <a href="https://github.com/romuloalves" title="GitHub">
13- <img src="/static/images/github.svg" width="20" height="20" />
13 + <img src="/static/images/github.svg" alt="GitHub" width="20" height="20" />
1414 </a>
1515
1616 <style jsx>{`
1717 .socials {
1818 overflow: auto;
1919 text-align: center;
2020 }
2121 .socials a {
22- margin: 0 5px;
22 + margin: 0 10px;
2323 }
2424 `}</style>
2525 </div>
2626 );
package.jsonView
@@ -12,8 +12,9 @@
1212 "react-dom": "^16.3.2",
1313 "time-ago": "^0.2.1"
1414 },
1515 "scripts": {
16 + "dev": "next",
1617 "start": "node server.js",
1718 "build": "next build"
1819 },
1920 "now": {
pages/index.jsView
@@ -11,9 +11,9 @@
1111 <Page>
1212 <Header />
1313 <Container>
1414 <h2>
15- Software engineer at <a href="https://github.com/plingbr" title="PLING" target="_blank">PLING</a>.
15 + Software engineer at <a href="https://github.com/plingbr" title="PLING" target="_blank" rel="noopener">PLING</a>.
1616 JavaScript hacker.
1717 Decentralization enthusiast.
1818 </h2>
1919
@@ -33,9 +33,9 @@
3333 </Container>
3434
3535 <style jsx>{`
3636 h2 {
37- font-size: 15px;
37 + font-size: 18px;
3838 font-weight: 500;
3939 }
4040
4141 .talk {
pages/_document.jsView
@@ -1,0 +1,21 @@
1 +import Document, { Head, Main, NextScript } from 'next/document';
2 +
3 +export default class MyDocument extends Document {
4 + static async getInitialProps(ctx) {
5 + const initialProps = await Document.getInitialProps(ctx);
6 +
7 + return { ...initialProps }
8 + }
9 +
10 + render() {
11 + return (
12 + <html lang="en">
13 + <Head />
14 + <body>
15 + <Main />
16 + <NextScript />
17 + </body>
18 + </html>
19 + );
20 + }
21 +}

Built with git-ssb-web