Skip to content

Commit

Permalink
Init landing page (#14)
Browse files Browse the repository at this point in the history
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
r-czajkowski authored Nov 13, 2023
2 parents 999ed1c + fc01674 commit 24255d8
Show file tree
Hide file tree
Showing 8 changed files with 9,789 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
.cache/
public
src/gatsby-types.d.ts
10 changes: 10 additions & 0 deletions website/README.md
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.
12 changes: 12 additions & 0 deletions website/gatsby-config.ts
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
27 changes: 27 additions & 0 deletions website/package.json
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"
}
}
14 changes: 14 additions & 0 deletions website/src/pages/404.tsx
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>;
14 changes: 14 additions & 0 deletions website/src/pages/index.tsx
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>;
19 changes: 19 additions & 0 deletions website/tsconfig.json
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/**/*"
]
}
9,689 changes: 9,689 additions & 0 deletions website/yarn.lock

Large diffs are not rendered by default.

0 comments on commit 24255d8

Please sign in to comment.