Skip to content

Commit 11dced2

Browse files
LBfk
LB
andauthored
(gatsby-minimal-starter): Update docs links and style to match relaunch (#28660)
* match docs relaunch * fix vertical alignment * Update starters/gatsby-starter-minimal/src/pages/index.js Co-authored-by: Florian Kissling <[email protected]> * Update starters/gatsby-starter-minimal/src/pages/index.js Co-authored-by: Florian Kissling <[email protected]> * Update starters/gatsby-starter-minimal/src/pages/index.js Co-authored-by: Florian Kissling <[email protected]> * Update starters/gatsby-starter-minimal/src/pages/index.js Co-authored-by: Florian Kissling <[email protected]> * adjust alignment * maxWidth Co-authored-by: Florian Kissling <[email protected]>
1 parent 2050e93 commit 11dced2

File tree

1 file changed

+65
-24
lines changed
  • starters/gatsby-starter-minimal/src/pages

1 file changed

+65
-24
lines changed

starters/gatsby-starter-minimal/src/pages/index.js

+65-24
Original file line numberDiff line numberDiff line change
@@ -27,42 +27,72 @@ const codeStyles = {
2727
const listStyles = {
2828
marginBottom: 96,
2929
paddingLeft: 0,
30-
listStyleType: "none",
3130
}
3231
const listItemStyles = {
33-
marginBottom: 12,
3432
fontWeight: "300",
35-
letterSpacing: 1,
33+
fontSize: "24px",
34+
maxWidth: "560px",
3635
}
37-
const linkStyles = {
36+
37+
const linkStyle = {
3838
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",
3953
}
4054

55+
const docLink = {
56+
text: "Documentation",
57+
url: "https://www.gatsbyjs.com/docs/",
58+
color: "#8954A8",
59+
}
4160
// data
4261
const links = [
4362
{
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",
4668
},
4769
{
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",
5075
},
5176
{
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",
5482
},
5583
{
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",
5889
},
5990
{
6091
text: "Plugin Library",
6192
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",
6696
},
6797
]
6898

@@ -74,7 +104,7 @@ const IndexPage = () => {
74104
<h1 style={headingStyles}>
75105
Congratulations
76106
<br />
77-
<span style={headingAccentStyles}>— you just made a Gatsby site!</span>
107+
<span style={headingAccentStyles}>— you just made a Gatsby site! </span>
78108
<span role="img" aria-label="Party popper emojis">
79109
🎉🎉🎉
80110
</span>
@@ -87,14 +117,25 @@ const IndexPage = () => {
87117
</span>
88118
</p>
89119
<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>
90128
{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>
98139
</li>
99140
))}
100141
</ul>

0 commit comments

Comments
 (0)