Skip to content

Commit

Permalink
chore(starters): Upgrade minimal starter and add link to cloud (#29805)
Browse files Browse the repository at this point in the history
* chore(starters): Upgrade minimal starter and add CTA for hosting

* some minor color changes

* Update wording

* badge

Co-authored-by: Laurie <[email protected]>
  • Loading branch information
ascorbic and Laurie authored Mar 2, 2021
1 parent 2c243e6 commit 360cad7
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 10 deletions.
6 changes: 3 additions & 3 deletions starters/gatsby-starter-minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
},
"license": "0BSD",
"dependencies": {
"gatsby": "^2.32.8",
"react": "^16.13.1",
"react-dom": "^16.13.1"
"gatsby": "^3.0.0",
"react": "^17.0.1",
"react-dom": "^17.0.1"
}
}
48 changes: 41 additions & 7 deletions starters/gatsby-starter-minimal/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from "react"
// styles
const pageStyles = {
color: "#232129",
padding: "96px",
padding: 96,
fontFamily: "-apple-system, Roboto, sans-serif, serif",
}
const headingStyles = {
Expand All @@ -29,15 +29,16 @@ const listStyles = {
paddingLeft: 0,
}
const listItemStyles = {
fontWeight: "300",
fontSize: "24px",
maxWidth: "560px",
fontWeight: 300,
fontSize: 24,
maxWidth: 560,
marginBottom: 30,
}

const linkStyle = {
color: "#8954A8",
fontWeight: "bold",
fontSize: "16px",
fontSize: 16,
verticalAlign: "5%",
}

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

const descriptionStyle = {
color: "#232129",
fontSize: "14px",
fontSize: 14,
marginTop: 10,
marginBottom: 0,
lineHeight: 1.25,
}

const docLink = {
text: "Documentation",
url: "https://www.gatsbyjs.com/docs/",
color: "#8954A8",
}

const badgeStyle = {
color: "#fff",
backgroundColor: "#088413",
border: "1px solid #088413",
fontSize: 11,
fontWeight: "bold",
letterSpacing: 1,
borderRadius: 4,
padding: "4px 6px",
display: "inline-block",
position: "relative",
top: -2,
marginLeft: 10,
lineHeight: 1,
}

// data
const links = [
{
Expand Down Expand Up @@ -92,7 +113,15 @@ const links = [
url: "https://www.gatsbyjs.com/plugins",
description:
"Add functionality and customize your Gatsby site or app with thousands of plugins built by our amazing developer community.",
color: "#000000",
color: "#8EB814",
},
{
text: "Build and Host",
url: "https://www.gatsbyjs.com/cloud",
badge: true,
description:
"Now you’re ready to show the world! Give your Gatsby site superpowers: Build and host on Gatsby Cloud. Get started for free!",
color: "#663399",
},
]

Expand Down Expand Up @@ -134,6 +163,11 @@ const IndexPage = () => {
>
{link.text}
</a>
{link.badge && (
<span style={badgeStyle} aria-label="New Badge">
NEW!
</span>
)}
<p style={descriptionStyle}>{link.description}</p>
</span>
</li>
Expand Down

0 comments on commit 360cad7

Please sign in to comment.