-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a76ec29
commit 7afdc0a
Showing
8 changed files
with
187 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import React from 'react'; | ||
import { BrowserRouter } from 'react-router-dom'; | ||
|
||
import GlobalStyle from './styles/global'; | ||
import Routes from './routes'; | ||
|
||
const App: React.FC = () => ( | ||
<BrowserRouter> | ||
<Routes /> | ||
</BrowserRouter> | ||
<> | ||
<BrowserRouter> | ||
<Routes /> | ||
</BrowserRouter> | ||
<GlobalStyle /> | ||
</> | ||
); | ||
|
||
export default App; |
16 changes: 16 additions & 0 deletions
16
nivel-03/01-primeiro-projeto-com-react/src/assets/github-background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion
4
nivel-03/01-primeiro-projeto-com-react/src/pages/Dashboard/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import React from 'react'; | ||
|
||
import { Title } from './styles'; | ||
|
||
const Dashboard: React.FC = () => { | ||
return <div>Dashboard</div>; | ||
return <Title>Explore repositórios no GitHub</Title>; | ||
}; | ||
|
||
export default Dashboard; |
6 changes: 6 additions & 0 deletions
6
nivel-03/01-primeiro-projeto-com-react/src/pages/Dashboard/styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const Title = styled.h1` | ||
font-size: 48px; | ||
color: #3a3a3a; | ||
`; |
31 changes: 31 additions & 0 deletions
31
nivel-03/01-primeiro-projeto-com-react/src/styles/global.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { createGlobalStyle } from 'styled-components'; | ||
|
||
import githubBackground from '../assets/github-background.svg'; | ||
|
||
export default createGlobalStyle` | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
outline: 0; | ||
box-sizing: border-box; | ||
} | ||
body { | ||
background: #f0f0f5 url(${githubBackground}) no-repeat 70% top; | ||
-webkit-font-smoothing: antialiased; | ||
} | ||
body, input, button { | ||
font: 16px Roboto, sans-serif; | ||
} | ||
#root { | ||
max-width: 960px; | ||
margin: 0 auto; | ||
padding: 40px 20px; | ||
} | ||
button { | ||
cursor: pointer; | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters