Skip to content

Commit 0ddaadf

Browse files
committed
Updated about page
1 parent 316ede5 commit 0ddaadf

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ npm run build
2828
```
2929
2. Go into your project folder using your file explorer. Navigate to the `dist` folder and open it. Then double-click `<your-project-name>` Setup 0.1.0. Your app should open and there should now be an icon on your desktop for this app.
3030

31+
**Use a Custom Icon**
32+
33+
Add a 256 x 256 .png or .ico image in your public folder. It should be either `icon.ico` or `icon.png`. Update the `icon` property in your `package.json` if necessary. Currently, it uses an image called `icon.png`, which is a graphic of a coffee cup. You'll only see this in production. For more info, see the [electron-builder documentation](https://www.electron.build/icons)
34+
3135
## Contribute
3236
Feel free to submit an issue or pull request anytime. If a change is made to the codebase with your PR, you'll be listed as a contributor.
3337

src/App.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@
2020
.App-link {
2121
color: #09d3ac;
2222
}
23+
24+
.about {
25+
margin-top: 10%;
26+
display: flex;
27+
flex-direction: column;
28+
align-items: center;
29+
justify-content: center;
30+
font-size: calc(10px + 2vmin);
31+
}
32+

src/App.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import React from 'react';
2+
import { Link } from "react-router-dom"
23
import logo from './logo.svg';
34
import './App.css';
45

56
function App() {
67
return (
78
<div className="App">
89
<header className="App-header">
10+
<p>React Electron Boilerplate</p>
911
<img src={logo} className="App-logo" alt="logo" />
1012
<p>
1113
Edit <code>src/App.js</code> and save to reload.
@@ -18,7 +20,9 @@ function App() {
1820
>
1921
Learn React
2022
</a>
23+
<Link className="App-link" to="/about">Link to the About Page</Link>
2124
</header>
25+
2226
</div>
2327
);
2428
}

src/pages/about.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import React from "react"
2+
import { Link } from "react-router-dom"
3+
import Logo from "../logo.svg"
24
import "../App.css"
35

46
const About = () => {
57
return (
68
<div className="about">
7-
<h1>Welcome to the About Page</h1>
9+
<p>Welcome to the About Page</p>
10+
<Link className ="App-link" to= "/">Link to Home</Link>
11+
<img className="about-img" width="275" src={Logo} alt=""/>
812
</div>
913
)
1014
}

0 commit comments

Comments
 (0)