-
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.
This PR inits the gatsby project for the landing page. In the next steps let's add configuration for `eslint` and other needed things. Gatsby was chosen because it is greatly optimized for SEO.
- Loading branch information
Showing
8 changed files
with
9,789 additions
and
0 deletions.
There are no files selected for viewing
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 @@ | ||
node_modules/ | ||
.cache/ | ||
public | ||
src/gatsby-types.d.ts |
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,10 @@ | ||
# Acre website | ||
|
||
## Installation | ||
|
||
1. Install dependencies and start the app. | ||
```bash | ||
yarn install | ||
yarn start | ||
``` | ||
2. Open [http://localhost:8000](http://localhost:8000) to view it in the browser. |
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,12 @@ | ||
import type { GatsbyConfig } from "gatsby" | ||
|
||
const config: GatsbyConfig = { | ||
siteMetadata: { | ||
// TODO: Update the needed data when the final domain name will be ready. | ||
siteUrl: `https://www.yourdomain.tld`, | ||
}, | ||
graphqlTypegen: true, | ||
plugins: [], | ||
} | ||
|
||
export default config |
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,27 @@ | ||
{ | ||
"name": "website", | ||
"version": "1.0.0", | ||
"private": true, | ||
"description": "Acre website", | ||
"keywords": [ | ||
"gatsby" | ||
], | ||
"scripts": { | ||
"start": "gatsby develop", | ||
"build": "gatsby build", | ||
"serve": "gatsby serve", | ||
"clean": "gatsby clean", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"dependencies": { | ||
"gatsby": "^5.12.4", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.3.3", | ||
"@types/react": "^18.2.14", | ||
"@types/react-dom": "^18.2.6", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
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,14 @@ | ||
import * as React from "react"; | ||
import { HeadFC, PageProps } from "gatsby"; | ||
|
||
const NotFoundPage: React.FC<PageProps> = () => { | ||
return ( | ||
<main> | ||
<h1>Page not found</h1> | ||
</main> | ||
); | ||
}; | ||
|
||
export default NotFoundPage; | ||
|
||
export const Head: HeadFC = () => <title>Not found</title>; |
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,14 @@ | ||
import * as React from "react"; | ||
import type { HeadFC, PageProps } from "gatsby"; | ||
|
||
const IndexPage: React.FC<PageProps> = () => { | ||
return ( | ||
<main> | ||
<h1>Landing page</h1> | ||
</main> | ||
); | ||
}; | ||
|
||
export default IndexPage; | ||
|
||
export const Head: HeadFC = () => <title>Home Page</title>; |
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,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"lib": ["dom", "esnext"], | ||
"jsx": "react", | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"strict": true, | ||
"skipLibCheck": true | ||
}, | ||
"include": [ | ||
"./src/**/*", | ||
"./gatsby-node.ts", | ||
"./gatsby-config.ts", | ||
"./plugins/**/*" | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.