Skip to content

Commit 360cad7

Browse files
ascorbicLaurie
andauthored
chore(starters): Upgrade minimal starter and add link to cloud (#29805)
* chore(starters): Upgrade minimal starter and add CTA for hosting * some minor color changes * Update wording * badge Co-authored-by: Laurie <[email protected]>
1 parent 2c243e6 commit 360cad7

File tree

2 files changed

+44
-10
lines changed

2 files changed

+44
-10
lines changed

starters/gatsby-starter-minimal/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
},
1717
"license": "0BSD",
1818
"dependencies": {
19-
"gatsby": "^2.32.8",
20-
"react": "^16.13.1",
21-
"react-dom": "^16.13.1"
19+
"gatsby": "^3.0.0",
20+
"react": "^17.0.1",
21+
"react-dom": "^17.0.1"
2222
}
2323
}

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

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as React from "react"
33
// styles
44
const pageStyles = {
55
color: "#232129",
6-
padding: "96px",
6+
padding: 96,
77
fontFamily: "-apple-system, Roboto, sans-serif, serif",
88
}
99
const headingStyles = {
@@ -29,15 +29,16 @@ const listStyles = {
2929
paddingLeft: 0,
3030
}
3131
const listItemStyles = {
32-
fontWeight: "300",
33-
fontSize: "24px",
34-
maxWidth: "560px",
32+
fontWeight: 300,
33+
fontSize: 24,
34+
maxWidth: 560,
35+
marginBottom: 30,
3536
}
3637

3738
const linkStyle = {
3839
color: "#8954A8",
3940
fontWeight: "bold",
40-
fontSize: "16px",
41+
fontSize: 16,
4142
verticalAlign: "5%",
4243
}
4344

@@ -49,14 +50,34 @@ const docLinkStyle = {
4950

5051
const descriptionStyle = {
5152
color: "#232129",
52-
fontSize: "14px",
53+
fontSize: 14,
54+
marginTop: 10,
55+
marginBottom: 0,
56+
lineHeight: 1.25,
5357
}
5458

5559
const docLink = {
5660
text: "Documentation",
5761
url: "https://www.gatsbyjs.com/docs/",
5862
color: "#8954A8",
5963
}
64+
65+
const badgeStyle = {
66+
color: "#fff",
67+
backgroundColor: "#088413",
68+
border: "1px solid #088413",
69+
fontSize: 11,
70+
fontWeight: "bold",
71+
letterSpacing: 1,
72+
borderRadius: 4,
73+
padding: "4px 6px",
74+
display: "inline-block",
75+
position: "relative",
76+
top: -2,
77+
marginLeft: 10,
78+
lineHeight: 1,
79+
}
80+
6081
// data
6182
const links = [
6283
{
@@ -92,7 +113,15 @@ const links = [
92113
url: "https://www.gatsbyjs.com/plugins",
93114
description:
94115
"Add functionality and customize your Gatsby site or app with thousands of plugins built by our amazing developer community.",
95-
color: "#000000",
116+
color: "#8EB814",
117+
},
118+
{
119+
text: "Build and Host",
120+
url: "https://www.gatsbyjs.com/cloud",
121+
badge: true,
122+
description:
123+
"Now you’re ready to show the world! Give your Gatsby site superpowers: Build and host on Gatsby Cloud. Get started for free!",
124+
color: "#663399",
96125
},
97126
]
98127

@@ -134,6 +163,11 @@ const IndexPage = () => {
134163
>
135164
{link.text}
136165
</a>
166+
{link.badge && (
167+
<span style={badgeStyle} aria-label="New Badge">
168+
NEW!
169+
</span>
170+
)}
137171
<p style={descriptionStyle}>{link.description}</p>
138172
</span>
139173
</li>

0 commit comments

Comments
 (0)