File tree Expand file tree Collapse file tree 4 files changed +45
-17
lines changed
Expand file tree Collapse file tree 4 files changed +45
-17
lines changed Original file line number Diff line number Diff line change 1- import logo from './logo.svg' ;
2- import ' ./App.css' ;
3-
1+ import React from "react" ;
2+ import " ./App.css" ;
3+ import Header from "./components/Header/Header" ;
44function App ( ) {
55 return (
66 < div className = "App" >
7- < header className = "App-header" >
8- < img src = { logo } className = "App-logo" alt = "logo" />
9- < p >
10- Edit < code > src/App.js</ code > and save to reload.
11- </ p >
12- < a
13- className = "App-link"
14- href = "https://reactjs.org"
15- target = "_blank"
16- rel = "noopener noreferrer"
17- >
18- Learn React
19- </ a >
20- </ header >
7+ < Header />
218 </ div >
229 ) ;
2310}
Original file line number Diff line number Diff line change 1+ nav {
2+ position : fixed;
3+ display : flex;
4+ flex-flow : row;
5+ justify-content : flex-start;
6+ align-items : center;
7+ width : 100% ;
8+ background-color : slategrey;
9+ }
10+ .logo {
11+ flex : 1 ;
12+ margin : auto;
13+ padding : auto;
14+ }
15+ .imagelogo {
16+ border-radius : 100% ;
17+ width : 50px ;
18+ height : 50px ;
19+ }
20+ .name {
21+ flex : 2 ;
22+ }
Original file line number Diff line number Diff line change 1+ import React from 'react'
2+ import './Header.css'
3+ const Header = ( ) => {
4+ return (
5+ < div >
6+ < nav >
7+ < div className = "logo" >
8+ < img className = 'imagelogo' src = "https://logo.clearbit.com/spotify.com" alt = "logo" />
9+ </ div >
10+ < div className = "name" >
11+ < h2 > Name</ h2 >
12+ </ div >
13+ </ nav >
14+ </ div >
15+ )
16+ }
17+
18+ export default Header
You can’t perform that action at this time.
0 commit comments