updated readme

This commit is contained in:
Yusuf İpek
2021-01-22 19:58:12 +03:00
parent 8ec711fd32
commit 87b02ba1f8
+3 -4
View File
@@ -10,14 +10,13 @@ Run `npm install` then run `npm run`.
### Adding a custom card ### Adding a custom card
For this you need to create an array inside data folder. For example card3.js and add desired websites to array. An example; For this you need to create an array inside data folder. For example create card3.js and add desired websites to array. An example;
```javascript ```javascript
export const cards = [ export const cards = [
<a href="https://www.protonmail.com/login" target=""> <a href="https://www.protonmail.com/login" target="">
Protonmail Protonmail
</a>, </a>,
<a href="https://www.youtube.com" target=""> <a href="https://www.youtube.com" target="">
Youtube Youtube
</a>, </a>,
@@ -39,7 +38,7 @@ Protonmail
]; ];
``` ```
After adding the new array, head over to app.js and add a `<Card title="Desired Title" list={the.list.you.created} /> After adding the new array, head over to app.js and add a `<Card title="Desired Title" list={the.list.you.created} />`
### Fetching different city's weather ### Fetching different city's weather
@@ -47,4 +46,4 @@ Open the `weather-fetch.jsx` inside components folder. Change api request from `
#### Building and using app locally #### Building and using app locally
Open `package.json` and add `"homepage": "."` to first object. Then add <"deploy": "gh-pages -d build"> to the scripts section. After this save and run `npm run build`. You should be able to locally access using `index.html` in the builds folder. Open `package.json` and add `"homepage": "."` to first object. Then add `"deploy": "gh-pages -d build"` to the scripts section. After this save and run `npm run build`. You should be able to locally access using `index.html` in the builds folder.