File tree Expand file tree Collapse file tree 4 files changed +62
-1
lines changed Expand file tree Collapse file tree 4 files changed +62
-1
lines changed Original file line number Diff line number Diff line change 1
1
import React , { Fragment } from 'react' ;
2
2
import GlobalStyle from './styles/global' ;
3
3
4
+ import Main from './pages/Main' ;
5
+
4
6
const App = ( ) => (
5
7
< Fragment >
6
8
< GlobalStyle />
7
- < div className = "App" />
9
+ < Main />
8
10
</ Fragment >
9
11
) ;
10
12
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import styled from 'styled-components' ;
3
+
4
+ import Logo from '../assets/logo.png' ;
5
+
6
+ const Container = styled . div `
7
+ display: flex;
8
+ flex-direction: column;
9
+ align-items: center;
10
+ padding-top: 60px;
11
+ ` ;
12
+
13
+ const Form = styled . form `
14
+ margin-top: 20px;
15
+ width: 100%;
16
+ max-width: 400px;
17
+ display: flex;
18
+
19
+ input {
20
+ flex: 1;
21
+ height: 55px;
22
+ padding: 0 20px;
23
+ background: #fff;
24
+ border: 0;
25
+ font-size: 18px;
26
+ color: #444;
27
+ border-radius: 3px;
28
+ }
29
+
30
+ button {
31
+ height: 55px;
32
+ padding: 0 20px;
33
+ margin-left: 10px;
34
+ background: #63f5b8;
35
+ color: #fff;
36
+ border: 0;
37
+ font-size: 20px;
38
+ font-weight: bold;
39
+ border-radius: 3px;
40
+
41
+ &:hover {
42
+ background: #57d89f;
43
+ }
44
+ }
45
+ ` ;
46
+
47
+ const Main = ( ) => (
48
+ < Container >
49
+ < img src = { Logo } alt = "Github Compare" />
50
+
51
+ < Form >
52
+ < input type = "text" placeholder = "usuário/repositório" />
53
+ < button type = "submit" > OK</ button >
54
+ </ Form >
55
+ </ Container >
56
+ ) ;
57
+
58
+ export default Main ;
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const GlobalStyle = createGlobalStyle`
5
5
margin: 0;
6
6
padding: 0;
7
7
box-sizing: border-box;
8
+ outline: 0;
8
9
}
9
10
10
11
body {
You can’t perform that action at this time.
0 commit comments