Skip to content

Commit f26b808

Browse files
committed
✨ Create home structure
1 parent 36c855c commit f26b808

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"node-sass": "^4.14.1",
1414
"react": "^16.13.1",
1515
"react-dom": "^16.13.1",
16+
"react-icons": "^3.11.0",
1617
"react-router-dom": "^5.2.0",
1718
"react-scripts": "3.4.3",
1819
"typescript": "~3.7.2"

src/pages/Home/index.tsx

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
11
import React from 'react';
2+
import { MdChevronRight } from 'react-icons/md'
3+
import { Link } from 'react-router-dom';
24

35
const Home: React.FC = () => {
46
return (
57
<div className="container">
6-
<h1>Hello World :)</h1>
8+
<hgroup>
9+
<h1 className="title">Digite um número para calcular sua fatorial.</h1>
10+
<h3 className="explanation">Digite um número entre 1 a 150 para calcular o seu valor fatorial de maneira simples e rápida. Seus cálculos ficarão salvos para que você possa consultá-los no futuro.</h3>
11+
</hgroup>
12+
13+
<form>
14+
<input
15+
type="number"
16+
name="fatorial_number"
17+
placeholder="Número"
18+
/>
19+
20+
<button type="submit">
21+
<MdChevronRight />
22+
</button>
23+
</form>
24+
25+
<nav>
26+
<Link to="/history">Histórico de cálculos</Link>
27+
</nav>
728
</div>
829
);
930
}

yarn.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8981,6 +8981,13 @@ react-error-overlay@^6.0.7:
89818981
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.7.tgz#1dcfb459ab671d53f660a991513cb2f0a0553108"
89828982
integrity sha512-TAv1KJFh3RhqxNvhzxj6LeT5NWklP6rDr2a0jaTfsZ5wSZWHOGeqQyejUp3xxLfPt2UpyJEcVQB/zyPcmonNFA==
89838983

8984+
react-icons@^3.11.0:
8985+
version "3.11.0"
8986+
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-3.11.0.tgz#2ca2903dfab8268ca18ebd8cc2e879921ec3b254"
8987+
integrity sha512-JRgiI/vdF6uyBgyZhVyYJUZAop95Sy4XDe/jmT3R/bKliFWpO/uZBwvSjWEdxwzec7SYbEPNPck0Kff2tUGM2Q==
8988+
dependencies:
8989+
camelcase "^5.0.0"
8990+
89848991
react-is@^16.12.0, react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.4:
89858992
version "16.13.1"
89868993
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"

0 commit comments

Comments
 (0)