-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
77 changed files
with
71,888 additions
and
33 deletions.
There are no files selected for viewing
Binary file added
BIN
+409 KB
...bYuca7f/1375b70c5bd9293ae7455162c62eb616/bailey-zindel-NRQV-hBF10M-unsplash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+528 KB
...rbRT/1398673276d8fa83930e79a9b0436583/alexandre-lecocq-k8kogBkUWCk-unsplash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+394 KB
...4NNMiwIQCWz3/218bac223743d3345bb99559d9a856a1/quynh-do-P-0MG1GjYhQ-unsplash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+331 KB
...DSg3Kf/664547584ab70a41c37b0634f6c9347a/ryan-schroeder-Gg7uKdHFb_c-unsplash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+924 KB
...XYk8W/827d97a70831ac29e68158b07fff9803/charles-deluvio-UVfSXI8D0Pc-unsplash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.cache | ||
public | ||
node_modules | ||
.env | ||
.env.development | ||
.env.production | ||
.contentful/export-model-and-content.json | ||
.yarn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.cache | ||
public | ||
static | ||
node_modules | ||
.vscode | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import "@fontsource/inter/400.css"; | ||
import "@fontsource/inter/600.css"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
require("dotenv").config({ | ||
path: `.env.${process.env.NODE_ENV}`, | ||
}); | ||
|
||
const contentfulConfig = { | ||
spaceId: process.env.CONTENTFUL_SPACE_ID, | ||
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN, | ||
}; | ||
|
||
if (process.env.CONTENTFUL_HOST) { | ||
contentfulConfig.host = process.env.CONTENTFUL_HOST; | ||
contentfulConfig.accessToken = process.env.CONTENTFUL_PREVIEW_ACCESS_TOKEN; | ||
} | ||
|
||
const { spaceId, accessToken } = contentfulConfig; | ||
|
||
if (!spaceId || !accessToken) { | ||
throw new Error( | ||
"Contentful spaceId and the access token need to be provided. Received: " + | ||
JSON.stringify(contentfulConfig) | ||
); | ||
} | ||
|
||
// starter config | ||
module.exports = { | ||
siteMetadata: { | ||
title: "Gatsby Starter Landing Page", | ||
description: | ||
"Create custom landing pages using Gatsby and Contentful with this Gatsby Starter", | ||
}, | ||
plugins: [ | ||
{ | ||
resolve: `gatsby-theme-landing-page`, | ||
options: contentfulConfig, | ||
}, | ||
{ | ||
resolve: `gatsby-plugin-manifest`, | ||
options: { | ||
name: `Gatsby Starter Landing Page`, | ||
short_name: `Gatsby Starter Landing Page`, | ||
start_url: `/`, | ||
background_color: `#fff`, | ||
theme_color: `#000`, | ||
display: `browser`, | ||
icon: `src/assets/favicon.png`, | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
exports.createSchemaCustomization = ({ actions }) => { | ||
const { createTypes } = actions; | ||
const typeDefs = ` | ||
type ContentfulLandingPage implements ContentfulReference & ContentfulEntry & Node @dontInfer { | ||
name: String | ||
slug: String | ||
noIndex: Boolean | ||
title: String | ||
description: String | ||
image: ContentfulAsset @link(by: "id", from: "image___NODE") | ||
sections: [ContentfulLandingPageSection] @link(by: "id", from: "sections___NODE") | ||
} | ||
type ContentfulLandingPageSection implements ContentfulReference & ContentfulEntry & Node @dontInfer { | ||
name: String | ||
component: String | ||
heading: String | ||
content: [ContentfulLandingPageContent] @link(by: "id", from: "content___NODE") | ||
secondaryHeading: String | ||
} | ||
type ContentfulLandingPageContent implements ContentfulReference & ContentfulEntry & Node @dontInfer { | ||
name: String | ||
image: ContentfulAsset @link(by: "id", from: "image___NODE") | ||
links: [ContentfulLink] @link(by: "id", from: "links___NODE") | ||
primaryText: contentfulLandingPageContentPrimaryTextTextNode @link(by: "id", from: "primaryText___NODE") | ||
secondaryText: contentfulLandingPageContentSecondaryTextTextNode @link(by: "id", from: "secondaryText___NODE") | ||
} | ||
type ContentfulLink implements ContentfulReference & ContentfulEntry & Node @dontInfer { | ||
href: String | ||
text: String | ||
} | ||
`; | ||
|
||
createTypes(typeDefs); | ||
}; |
Oops, something went wrong.