diff --git a/README.md b/README.md index 7c7d630..471f0f2 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,24 @@ -# \ +# Publite Frontend

- <Logo description> + Publite logo

## Overview -\ +Frontend for Publite service — E-Books reader ## Deploy -\ +Dev environment setup: ```bash - +npm i + +# Run with watch +npm run dev + +# Build to test prod +npm run build +npm exec serve -s build ``` diff --git a/custom.d.ts b/custom.d.ts new file mode 100644 index 0000000..f2d12bb --- /dev/null +++ b/custom.d.ts @@ -0,0 +1,4 @@ +declare module "*.module.css" { + const classes: { [key: string]: string }; + export default classes; +} diff --git a/logo.svg b/logo.svg new file mode 100644 index 0000000..2283463 --- /dev/null +++ b/logo.svg @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + diff --git a/package.json b/package.json index 8e8f93f..7858101 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ }, "dependencies": { "react": "^17.0.2", - "react-dom": "^17.0.2" + "react-dom": "^17.0.2", + "serve": "^12.0.0" } } diff --git a/public/index.html b/public/index.html index db5f1ff..18e5078 100644 --- a/public/index.html +++ b/public/index.html @@ -4,7 +4,7 @@ - React application + Publite diff --git a/public/logo.svg b/public/logo.svg new file mode 100644 index 0000000..2283463 --- /dev/null +++ b/public/logo.svg @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + diff --git a/src/App.tsx b/src/App.tsx deleted file mode 100644 index bffe779..0000000 --- a/src/App.tsx +++ /dev/null @@ -1 +0,0 @@ -export const App = () =>
Hello, world
; diff --git a/src/App/App.module.css b/src/App/App.module.css new file mode 100644 index 0000000..787562f --- /dev/null +++ b/src/App/App.module.css @@ -0,0 +1,6 @@ +.centredBlock { + display: flex; + align-items: center; + flex-direction: column; + width: 100%; +} diff --git a/src/App/index.tsx b/src/App/index.tsx new file mode 100644 index 0000000..c6e309a --- /dev/null +++ b/src/App/index.tsx @@ -0,0 +1,9 @@ +import React from "react"; +import styles from "./App.module.css"; + +export const App = () => ( +
+

Hello, Publite

+ Publite logo +
+);