Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init landing page #14

Merged
merged 3 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`,
r-czajkowski marked this conversation as resolved.
Show resolved Hide resolved
},
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.

Loading