File tree Expand file tree Collapse file tree 6 files changed +79
-11
lines changed Expand file tree Collapse file tree 6 files changed +79
-11
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
+
3
4
< head >
4
5
< meta charset ="utf-8 " />
5
6
< link rel ="icon " href ="%PUBLIC_URL%/favicon.ico " />
6
7
< meta name ="viewport " content ="width=device-width, initial-scale=1 " />
7
8
< meta name ="theme-color " content ="#000000 " />
8
- < meta
9
- name ="description "
10
- content ="Web site created using create-react-app "
11
- />
9
+ < meta name ="description " content ="Web site created using create-react-app " />
12
10
< link rel ="apple-touch-icon " href ="logo192.png " />
13
11
<!--
14
12
manifest.json provides metadata used when your web app is installed on a
24
22
work correctly both with client-side routing and a non-root public URL.
25
23
Learn how to configure a non-root public URL by running `npm run build`.
26
24
-->
27
- < title > React App</ title >
25
+ < title > Notes App</ title >
28
26
</ head >
27
+
29
28
< body >
30
29
< noscript > You need to enable JavaScript to run this app.</ noscript >
31
30
< div id ="root "> </ div >
40
39
To create a production bundle, use `npm run build` or `yarn build`.
41
40
-->
42
41
</ body >
43
- </ html >
42
+
43
+ </ html >
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { Provider } from 'react-redux' ;
3
3
4
- import './styles/global.css'
4
+ import './styles/global.css' ;
5
5
6
- import store from './store'
7
- import ComponentList from './components/ComponentList ' ;
6
+ import store from './store' ;
7
+ import Main from './pages/Main ' ;
8
8
9
9
function App ( ) {
10
10
return (
11
11
< Provider store = { store } >
12
- < ComponentList />
12
+ < Main />
13
13
</ Provider >
14
14
) ;
15
15
}
Original file line number Diff line number Diff line change 10
10
padding : 10px ;
11
11
font-size : 18px ;
12
12
border-radius : 3px ;
13
- border : 1px solid # ccc ;
13
+ border : 1px solid # 20336be6 ;
14
14
resize : vertical;
15
15
overflow : auto;
16
16
}
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import { GiBookmark } from 'react-icons/gi' ;
3
+ import { GoMarkGithub } from 'react-icons/go' ;
4
+
5
+ import './styles.css' ;
6
+
7
+ export default function Header ( ) {
8
+ return (
9
+ < div className = "nav-bar" >
10
+ < div className = "title-with-logo" >
11
+ < GiBookmark size = { 32 } />
12
+ < div className = "title" >
13
+ < h2 > Notes App</ h2 >
14
+ < small > Desevolvido por Catharina Mesquita</ small >
15
+ </ div >
16
+ </ div >
17
+ < a href = "https://github.com/acmesquita/notes-app" > < GoMarkGithub size = { 18 } /> Acesso ao repositório</ a >
18
+ </ div >
19
+ ) ;
20
+ }
Original file line number Diff line number Diff line change
1
+ .nav-bar {
2
+ display : flex;
3
+ justify-content : space-between;
4
+ align-items : center;
5
+ padding : 10px 20px ;
6
+
7
+ border-bottom : 1px solid # e3e3e3 ;
8
+ background-color : # 20336be6 ;
9
+
10
+ font-family : sans-serif;
11
+ color : # f3f3f3 ;
12
+ }
13
+
14
+ .title-with-logo {
15
+ display : flex;
16
+ justify-content : center;
17
+ align-items : center;
18
+ }
19
+
20
+ .title {
21
+ padding-left : 10px ;
22
+ }
23
+
24
+ a {
25
+ color : # f3f3f3 ;
26
+ text-decoration : none;
27
+ vertical-align : middle;
28
+ display : flex;
29
+ align-items : center;
30
+ }
31
+
32
+ a svg {
33
+ margin-right : 5px ;
34
+ }
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import ComponentList from '../../components/ComponentList' ;
3
+ import Header from '../../components/Header' ;
4
+
5
+ // import { Container } from './styles';
6
+
7
+ export default function Main ( ) {
8
+ return (
9
+ < >
10
+ < Header />
11
+ < ComponentList />
12
+ </ >
13
+ ) ;
14
+ }
You can’t perform that action at this time.
0 commit comments