git ssb

0+

Rômulo Alves / website



Commit 0e93588fd3c0c1d00dd874bd6b984a2f3b027790

Adjusting styles and creating new content

Rômulo Alves committed on 11/8/2016, 9:43:42 AM
Parent: 994b7b81aefebcc50a030d69f1bf4f8292ded369

Files changed

_components/common/globalStyles.jschanged
_components/jobs/Content.jschanged
_components/talks/Content.jsadded
pages/index.jschanged
pages/talks.jsadded
_components/common/globalStyles.jsView
@@ -7,5 +7,22 @@
77 body {
88 font-family: Menlo, Monaco, Consolas;
99 min-height: 100%;
1010 }
11+ .container {
12+ margin: 0 auto;
13+ width: 600px
14+ }
15+
16+ @media (max-width: 768px) {
17+ .container {
18+ width: 300px;
19+ }
20+ }
21+
22+ @media (max-width: 375px) {
23+ .container {
24+ padding: 0 20px;
25+ width: auto;
26+ }
27+ }
1128 `;
_components/jobs/Content.jsView
@@ -8,32 +8,29 @@
88 import Anchor from '../common/Anchor';
99
1010 export default () => (
1111 <Content>
12- <div className={contentStyle}>
12+ <div className="container">
1313 <Link href="/jobs">
1414 <h1 className={titleStyle}>
1515 Jobs
1616 </h1>
1717 </Link>
1818 <ul>
1919 <li className={listStyle}>
20- > from 12/2011 to now - Web developer<br />
21- <Anchor href="http://www.cwi.com.br/" title="cwi software">
22- CWI Software
23- </Anchor>
20+ > from 12/2011 to now - <Anchor href="http://www.cwi.com.br/" title="cwi software">CWI Software</Anchor>
21+ <br />
22+ Web developer
2423 </li>
2524 <li className={listStyle}>
26- > from 10/2011 to 12/2012 - Web developer<br />
27- <Anchor href="http://www.brivia.com.br/" title="brivia">
28- Brivia
29- </Anchor>
25+ > from 10/2011 to 12/2012 - <Anchor href="http://www.brivia.com.br/" title="brivia">Brivia</Anchor>
26+ <br />
27+ Web developer
3028 </li>
3129 <li className={listStyle}>
32- > from 02/2011 to 10/2011 - Intern web developer<br />
33- <Anchor href="http://www.brivia.com.br/" title="brivia">
34- Brivia
35- </Anchor>
30+ > from 02/2011 to 10/2011 - <Anchor href="http://www.brivia.com.br/" title="brivia">Brivia</Anchor>
31+ <br />
32+ Intern web developer
3633 </li>
3734 </ul>
3835 </div>
3936 </Content>
@@ -43,14 +40,8 @@
4340 color: '#000',
4441 marginBottom: '10px'
4542 });
4643
47-const contentStyle = css({
48- margin: '0 auto',
49- textAlign: 'center',
50- width: '300px'
51-});
52-
5344 const listStyle = css({
5445 fontSize: '10pt',
5546 listStyle: 'none',
5647 marginBottom: '20px',
_components/talks/Content.jsView
@@ -1,0 +1,39 @@
1+// Packages
2+import React from 'react';
3+import css from 'next/css';
4+import Link from 'next/link';
5+
6+// Components
7+import Content from '../common/Content';
8+import Anchor from '../common/Anchor';
9+
10+export default () => (
11+ <Content>
12+ <div className="container">
13+ <Link href="/talks">
14+ <h1 className={titleStyle}>
15+ Talks
16+ </h1>
17+ </Link>
18+ <ul>
19+ <li className={listStyle}>
20+ <Anchor href="https://speakerdeck.com/romuloalves/componentizando-suas-views-com-react" title="Dojo React at CWI Software">
21+ Dojo React at @cwisoftware
22+ </Anchor>
23+ </li>
24+ </ul>
25+ </div>
26+ </Content>
27+);
28+
29+const titleStyle = css({
30+ color: '#000',
31+ marginBottom: '10px'
32+});
33+
34+const listStyle = css({
35+ fontSize: '10pt',
36+ listStyle: 'none',
37+ marginBottom: '20px',
38+ textAlign: 'left'
39+});
pages/index.jsView
@@ -10,31 +10,27 @@
1010 // Components/Page
1111 import Header from '../_components/index/Header';
1212 import NavBar from '../_components/index/NavBar';
1313 import JobsContent from '../_components/jobs/Content';
14+import TalksContent from '../_components/talks/Content';
1415
1516 export default () => (
1617 <div>
1718 <Head />
1819 <Header />
1920 <NavBar />
2021 <Content>
21- <div className={contentStyle}>
22- <h1 className={titleStyle}>Where am I?</h1>
22+ <div className="container">
23+ <h1 className={titleStyle}>Where I am?</h1>
2324 <Anchor href="https://www.google.com.br/maps/place/Sapiranga,+RS/@-29.6410773,-51.0112617,14z/data=!3m1!4b1!4m5!3m4!1s0x95193f737e8194df:0x571f590faf537198!8m2!3d-29.6353852!4d-51.0069543?hl=en" title="Sapiranga, Rio Grande do Sul, Brazil">
2425 Sapiranga, Rio Grande do Sul, Brazil
2526 </Anchor>
2627 </div>
2728 </Content>
2829 <JobsContent />
30+ <TalksContent />
2931 </div>
3032 );
3133
3234 const titleStyle = css({
3335 marginBottom: '10px'
3436 });
35-
36-const contentStyle = css({
37- margin: '0 auto',
38- textAlign: 'center',
39- width: '300px'
40-});
pages/talks.jsView
@@ -1,0 +1,22 @@
1+// Packages
2+import React from 'react';
3+import css from 'next/css';
4+
5+// Components/Common
6+import Head from '../_components/common/Head';
7+import Content from '../_components/common/Content';
8+import Anchor from '../_components/common/Anchor';
9+
10+// Components/Page
11+import Header from '../_components/index/Header';
12+import NavBar from '../_components/index/NavBar';
13+import TalksContent from '../_components/talks/Content';
14+
15+export default () => (
16+ <div>
17+ <Head title="talks" />
18+ <Header />
19+ <NavBar />
20+ <TalksContent />
21+ </div>
22+);

Built with git-ssb-web