@@ -27,42 +27,72 @@ const codeStyles = {
27
27
const listStyles = {
28
28
marginBottom : 96 ,
29
29
paddingLeft : 0 ,
30
- listStyleType : "none" ,
31
30
}
32
31
const listItemStyles = {
33
- marginBottom : 12 ,
34
32
fontWeight : "300" ,
35
- letterSpacing : 1 ,
33
+ fontSize : "24px" ,
34
+ maxWidth : "560px" ,
36
35
}
37
- const linkStyles = {
36
+
37
+ const linkStyle = {
38
38
color : "#8954A8" ,
39
+ fontWeight : "bold" ,
40
+ fontSize : "16px" ,
41
+ verticalAlign : "5%" ,
42
+ }
43
+
44
+ const docLinkStyle = {
45
+ ...linkStyle ,
46
+ listStyleType : "none" ,
47
+ marginBottom : 24 ,
48
+ }
49
+
50
+ const descriptionStyle = {
51
+ color : "#232129" ,
52
+ fontSize : "14px" ,
39
53
}
40
54
55
+ const docLink = {
56
+ text : "Documentation" ,
57
+ url : "https://www.gatsbyjs.com/docs/" ,
58
+ color : "#8954A8" ,
59
+ }
41
60
// data
42
61
const links = [
43
62
{
44
- text : "Documentation" ,
45
- url : "https://www.gatsbyjs.com/docs/" ,
63
+ text : "Tutorial" ,
64
+ url : "https://www.gatsbyjs.com/docs/tutorial/" ,
65
+ description :
66
+ "A great place to get started if you're new to web development. Designed to guide you through setting up your first Gatsby site." ,
67
+ color : "#E95800" ,
46
68
} ,
47
69
{
48
- text : "Tutorials" ,
49
- url : "https://www.gatsbyjs.com/tutorial/" ,
70
+ text : "How to Guides" ,
71
+ url : "https://www.gatsbyjs.com/docs/how-to/" ,
72
+ description :
73
+ "Practical step-by-step guides to help you achieve a specific goal. Most useful when you're trying to get something done." ,
74
+ color : "#1099A8" ,
50
75
} ,
51
76
{
52
- text : "Guides" ,
53
- url : "https://www.gatsbyjs.com/tutorial/" ,
77
+ text : "Reference Guides" ,
78
+ url : "https://www.gatsbyjs.com/docs/reference/" ,
79
+ description :
80
+ "Nitty-gritty technical descriptions of how Gatsby works. Most useful when you need detailed information about Gatsby's APIs." ,
81
+ color : "#BC027F" ,
54
82
} ,
55
83
{
56
- text : "API Reference" ,
57
- url : "https://www.gatsbyjs.com/docs/api-reference/" ,
84
+ text : "Conceptual Guides" ,
85
+ url : "https://www.gatsbyjs.com/docs/conceptual/" ,
86
+ description :
87
+ "Big-picture explanations of higher-level Gatsby concepts. Most useful for building understanding of a particular topic." ,
88
+ color : "#0D96F2" ,
58
89
} ,
59
90
{
60
91
text : "Plugin Library" ,
61
92
url : "https://www.gatsbyjs.com/plugins" ,
62
- } ,
63
- {
64
- text : "Cheat Sheet" ,
65
- url : "https://www.gatsbyjs.com/docs/cheat-sheet/" ,
93
+ description :
94
+ "Add functionality and customize your Gatsby site or app with thousands of plugins built by our amazing developer community." ,
95
+ color : "#000000" ,
66
96
} ,
67
97
]
68
98
@@ -74,7 +104,7 @@ const IndexPage = () => {
74
104
< h1 style = { headingStyles } >
75
105
Congratulations
76
106
< br />
77
- < span style = { headingAccentStyles } > — you just made a Gatsby site!</ span >
107
+ < span style = { headingAccentStyles } > — you just made a Gatsby site! </ span >
78
108
< span role = "img" aria-label = "Party popper emojis" >
79
109
🎉🎉🎉
80
110
</ span >
@@ -87,14 +117,25 @@ const IndexPage = () => {
87
117
</ span >
88
118
</ p >
89
119
< ul style = { listStyles } >
120
+ < li style = { docLinkStyle } >
121
+ < a
122
+ style = { linkStyle }
123
+ href = { `${ docLink . url } ?utm_source=starter&utm_medium=start-page&utm_campaign=minimal-starter` }
124
+ >
125
+ { docLink . text }
126
+ </ a >
127
+ </ li >
90
128
{ links . map ( link => (
91
- < li style = { listItemStyles } >
92
- < a
93
- style = { linkStyles }
94
- href = { `${ link . url } ?utm_source=starter&utm_medium=start-page&utm_campaign=minimal-starter` }
95
- >
96
- { link . text }
97
- </ a >
129
+ < li style = { { ...listItemStyles , color : link . color } } >
130
+ < span >
131
+ < a
132
+ style = { linkStyle }
133
+ href = { `${ link . url } ?utm_source=starter&utm_medium=start-page&utm_campaign=minimal-starter` }
134
+ >
135
+ { link . text }
136
+ </ a >
137
+ < p style = { descriptionStyle } > { link . description } </ p >
138
+ </ span >
98
139
</ li >
99
140
) ) }
100
141
</ ul >
0 commit comments