@@ -11,6 +11,7 @@ import AllCategories from "../components/AllCategories";
11
11
12
12
/** @jsx jsx */
13
13
import { Styled , jsx } from "theme-ui" ;
14
+ import { darken , lighten } from "@theme-ui/color" ;
14
15
15
16
class Index extends React . Component {
16
17
render ( ) {
@@ -26,81 +27,90 @@ class Index extends React.Component {
26
27
< Helmet title = { config . siteTitle } />
27
28
< SEO />
28
29
< section >
29
- < BigAvatar />
30
+ < div
31
+ sx = { {
32
+ display : "flex" ,
33
+ flexDirection : "column" ,
34
+ alignItems : "center" ,
35
+ p : "2em" ,
36
+ } }
37
+ >
38
+ < Styled . h1 sx = { { m : ".5em" } } > Hi! I'm Shaun</ Styled . h1 >
39
+ < Styled . p sx = { { textAlign : "center" } } >
40
+ I'm a Software Engineer passionate about modern Javascript,
41
+ Backend technologies, Data, and Cloud tooling.
42
+ </ Styled . p >
43
+ < a
44
+ href = "https://shaunjacks.substack.com"
45
+ sx = { {
46
+ padding : "1em" ,
47
+ borderRadius : ".5rem" ,
48
+ textDecoration : "none" ,
49
+ color : "background" ,
50
+ cursor : "pointer" ,
51
+ outline : "none" ,
52
+ backgroundColor : "primary" ,
53
+ border : "3px solid text" ,
54
+ borderColor : "primary" ,
55
+ borderRadius : "5px" ,
56
+ borderWidth : "1px" ,
57
+ padding : "4px 11px" ,
58
+ fontSize : "16px" ,
59
+ boxShadow : "0 2px 0 rgba(0,0,0,.045)" ,
60
+ transition : "all .3s ease" ,
61
+ "&:focus, &:hover" : {
62
+ outline : "none" ,
63
+ borderColor : lighten ( "primary" , 0.2 ) ,
64
+ backgroundColor : lighten ( "primary" , 0.2 ) ,
65
+ } ,
66
+ } }
67
+ >
68
+ < Styled . h3 sx = { { m : 0 , p : ".5em 1.5em" , color : "background" } } >
69
+ Subscribe
70
+ </ Styled . h3 >
71
+ </ a >
72
+ </ div >
30
73
</ section >
31
74
< section
32
75
sx = { {
33
76
my : `40px` ,
34
77
display : "flex" ,
35
78
flexDirection : "column" ,
36
- alignItems : "center"
79
+ alignItems : "center" ,
37
80
} }
38
81
>
39
- < Styled . h1 sx = { { color : "text" } } > I write about </ Styled . h1 >
40
- < AllCategories />
82
+ < Styled . h1 sx = { { mt : 0 , color : "text" } } > Most popular </ Styled . h1 >
83
+ < SimplePostListing postEdges = { verticalMostPopularEdges } />
41
84
</ section >
42
85
< section
43
86
sx = { {
44
87
my : `40px` ,
45
88
display : "flex" ,
46
89
flexDirection : "column" ,
47
- alignItems : "center"
90
+ alignItems : "center" ,
48
91
} }
49
92
>
50
93
< Styled . h1 sx = { { mt : 0 , color : "text" } } > Most recent</ Styled . h1 >
51
94
< SimplePostListing postEdges = { verticalMostRecentEdges } />
52
95
</ section >
53
- < section
54
- sx = { {
55
- my : `40px` ,
56
- display : "flex" ,
57
- flexDirection : "column" ,
58
- alignItems : "center"
59
- } }
60
- >
61
- < Styled . h1 sx = { { mt : 0 , color : "text" } } > Most popular</ Styled . h1 >
62
- < SimplePostListing postEdges = { verticalMostPopularEdges } />
63
- </ section >
64
- { /* <section
65
- sx={{
66
- my: `40px`,
67
- display: "flex",
68
- p: 2,
69
- flexDirection: "column"
70
- // "@media screen and (min-width: 40em)": {
71
- // width: "50%"
72
- // }
73
- }}
74
- >
75
- <Styled.h1 sx={{ color: "text" }}>Most recent</Styled.h1>
76
- <PostListing postEdges={horizontalMostRecentEdges} />
77
- </section>
78
- <section
79
- sx={{
80
- my: `40px`,
81
- display: "flex",
82
- flexDirection: "column"
83
- }}
84
- >
85
- <Styled.h1 sx={{ color: "text" }}>Most popular</Styled.h1>
86
- <PostListing postEdges={horizontalMostPopular} />
87
- </section> */ }
88
- < section >
96
+ < section sx = { { display : "flex" , justifyContent : "center" } } >
89
97
< Styled
90
98
as = { Link }
91
99
to = { "/blog" }
92
100
sx = { {
93
101
margin : `auto` ,
94
102
textAlign : `center` ,
95
103
color : `primary` ,
96
- borderBottom : `solid 3px` ,
104
+ border : `1px solid` ,
105
+ borderRadius : 3 ,
106
+ borderColor : `panelBackground` ,
97
107
textDecoration : `none` ,
98
- fontSize : 26 ,
108
+ transition : "all .3s ease" ,
109
+ fontSize : 20 ,
110
+ p : ".5em 1.5em" ,
99
111
":hover" : {
100
- bg : `muted` ,
101
- p : 1 ,
102
- borderRadius : `5px`
103
- }
112
+ bg : lighten ( "background" , 0.1 ) ,
113
+ } ,
104
114
} }
105
115
>
106
116
More posts...
@@ -137,7 +147,7 @@ export const pageQuery = graphql`
137
147
tags
138
148
cover {
139
149
childImageSharp {
140
- fixed(width: 256, height: 200 ) {
150
+ fixed(width: 256, height: 150 ) {
141
151
...GatsbyImageSharpFixed
142
152
}
143
153
}
@@ -172,7 +182,7 @@ export const pageQuery = graphql`
172
182
tags
173
183
cover {
174
184
childImageSharp {
175
- fixed(width: 256, height: 200 ) {
185
+ fixed(width: 256, height: 150 ) {
176
186
...GatsbyImageSharpFixed
177
187
}
178
188
}
0 commit comments