Skip to content

Commit 902c830

Browse files
committed
Criando interface da aplicação - Header
1 parent c3b71d6 commit 902c830

File tree

7 files changed

+45
-1
lines changed

7 files changed

+45
-1
lines changed

public/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1" />
66
<meta name="theme-color" content="#000000" />
7+
<link rel="preconnect" href="https://fonts.googleapis.com">
8+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
9+
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;700&family=Secular+One&display=swap" rel="stylesheet">
710
<meta
811
name="description"
912
content="Web site created using create-react-app"

src/assets/background.png

3.95 KB
Loading

src/components/Header/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import "./styles.css";
2+
3+
const Header = () => {
4+
return (
5+
<header>
6+
<h1>GitFind</h1>
7+
</header>
8+
);
9+
};
10+
11+
export { Header };

src/components/Header/styles.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
header {
2+
align-items: center;
3+
background-color: #2D333B;
4+
display: flex;
5+
height: 52px;
6+
justify-content: center;
7+
width: 100%;
8+
}
9+
10+
h1 {
11+
color: #FFFFFF;
12+
font-family: 'Inter, Roboto, Arial';
13+
font-size: 24px;
14+
}

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom/client';
3+
import "./styles.css";
34
import App from './pages/Home';
45

56
const root = ReactDOM.createRoot(document.getElementById('root'));

src/pages/Home/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import { Header } from '../../components/Header';
2+
13
function App() {
24
return (
35
<div className="App">
4-
6+
<Header />
57
</div>
68
);
79
}

src/styles.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
}
5+
6+
body {
7+
background-color: #1D2128;
8+
}
9+
10+
hr {
11+
background-color: rgba(229, 229, 229, 0.2);
12+
border: 1px solid rgba(229, 229, 229, 0.2);
13+
}

0 commit comments

Comments
 (0)