Skip to content

Commit fdc74f3

Browse files
committed
add gh pages and readme
1 parent 85e38cc commit fdc74f3

File tree

4 files changed

+155
-2
lines changed

4 files changed

+155
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ I present my new application. The Exchanger vol 2 is an app where you have 3 sec
1616
![src/assets/screens/screen2.png](src/assets/screens/screen2.png)
1717
![src/assets/screens/screen1.png](src/assets/screens/screen1.png)
1818

19-
All I created in [REACT JS](https://reactjs.org/) and [Styled-Component](https://styled-components.com/). All icons are from [Styled-Icons](https://styled-icons.js.org/). To the select input I used [React-Select](https://react-select.com/) and to the chart - [ApexCharts](https://apexcharts.com/).
19+
All I created in [REACT JS](https://reactjs.org/) and [Styled-Components](https://styled-components.com/). All icons are from [Styled-Icons](https://styled-icons.js.org/). To the select input I used [React-Select](https://react-select.com/) and to the chart - [ApexCharts](https://apexcharts.com/).
2020

2121
It works well in multiple resolutions (mobile, tablet, desktop, portrait and landscape) :iphone: :computer:
2222

package-lock.json

+148
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"homepage": "https://maciekbe89.github.io/exchanger-vol2/",
23
"name": "exchanger-vol2",
34
"version": "0.1.0",
45
"private": true,
@@ -7,6 +8,7 @@
78
"@testing-library/react": "^9.5.0",
89
"@testing-library/user-event": "^7.2.1",
910
"apexcharts": "^3.22.0",
11+
"gh-pages": "^3.1.0",
1012
"react": "^16.13.1",
1113
"react-apexcharts": "^1.3.7",
1214
"react-dom": "^16.13.1",
@@ -18,7 +20,10 @@
1820
"styled-icons": "^10.21.0",
1921
"styled-normalize": "^8.0.7"
2022
},
23+
2124
"scripts": {
25+
"predeploy": "npm run build",
26+
"deploy": "gh-pages -d build",
2227
"start": "react-scripts start",
2328
"build": "react-scripts build",
2429
"test": "react-scripts test",

src/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function App() {
1515
<Start getStart={() => setActive(false)} />
1616
) : (
1717
<>
18-
<Router>
18+
<Router basename={process.env.PUBLIC_URL}>
1919
<NavTop>currency calculator</NavTop>
2020
<Switch>
2121
<Route exact path="/" component={Calculator} />

0 commit comments

Comments
 (0)