Static pages #1

Merged
Ghost merged 3 commits from create-the-static-pages into master 2018-12-05 18:54:07 +00:00
4 changed files with 26 additions and 8 deletions
Showing only changes of commit d307fd0c15 - Show all commits

View File

@ -1,6 +1,5 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import { Provider } from 'react-redux'; import { Provider } from 'react-redux';
import logo from './logo.svg';
import './App.css'; import './App.css';
import { Route } from 'react-router-dom'; import { Route } from 'react-router-dom';
import Home from './containers/Home'; import Home from './containers/Home';

BIN
src/logo.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@ -0,0 +1,4 @@
.site-logo{
max-width: 300px;
}

View File

@ -1,9 +1,24 @@
import React from 'react'; import React from 'react';
class Header extends React.Component{ import logo from '../logo.png';
render(){ import '../styleSheets/style.css'
return(
'hello! header' class Header extends React.Component {
render() {
const Logo = () => {
return (
<nav>
<img className="site-logo" src={logo} alt="logo 858 "/>
</nav>
);
}
return (
<header>
<section className="container">
<Logo/>
</section>
</header>
) )
}
} }
}
export default (Header); export default (Header);