Skip to content

Commit

Permalink
Init gatsby project for landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Nov 8, 2023
1 parent 999ed1c commit cafc3cb
Show file tree
Hide file tree
Showing 8 changed files with 9,792 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 @@
# Landing page

## Installation

1. Install dependencies and start the app.
```bash
yarn install
yarn run develop
```
2. Open [http://localhost:8000](http://localhost:8000) to view it in the browser.
14 changes: 14 additions & 0 deletions website/gatsby-config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { GatsbyConfig } from "gatsby"

const config: GatsbyConfig = {
siteMetadata: {
siteUrl: `https://www.yourdomain.tld`,
},
// More easily incorporate content into your pages through automatic TypeScript type generation and better GraphQL IntelliSense.
// If you use VSCode you can also use the GraphQL plugin
// Learn more at: https://gatsby.dev/graphql-typegen
graphqlTypegen: true,
plugins: [],
}

export default config
28 changes: 28 additions & 0 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "website",
"version": "1.0.0",
"private": true,
"description": "website",
"keywords": [
"gatsby"
],
"scripts": {
"develop": "gatsby develop",
"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.1.6"
}
}
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/**/*"
]
}
Loading

0 comments on commit cafc3cb

Please sign in to comment.