fix and deploy => missing div and mismatched div has been update

pull/14/head
mominriyadh 5 years ago
parent 8412c51b89
commit 6f2ae7272d

@ -13,7 +13,7 @@
</sub> </sub>
</div> </div>
</div>
[<< Day 3](../30-Days-Of-React/03_Day_Setting_Up/03_day_setting_up.md) | [Day 5 >>]() [<< Day 3](../30-Days-Of-React/03_Day_Setting_Up/03_day_setting_up.md) | [Day 5 >>]()
@ -471,7 +471,7 @@ const hexaColor = () => {
return '#' + color return '#' + color
} }
const HexaColor = () => <div>{hexaColor()}</dv> const HexaColor = () => <div>{hexaColor()}</div>
const rootElement = document.getElementById('root') const rootElement = document.getElementById('root')
// we render the JSX element using the ReactDOM package // we render the JSX element using the ReactDOM package

@ -62,13 +62,11 @@
header { header {
background-color: #61dbfb; background-color: #61dbfb;
padding: 25;
padding: 10px; padding: 10px;
} }
main { main {
padding: 10px; padding: 10px 10px 60px;
padding-bottom: 60px;
/* Height of the footer */ /* Height of the footer */
} }

@ -1,7 +1,7 @@
// index.js // index.js
import React from 'react' import React from 'react';
import ReactDOM from 'react-dom' import ReactDOM from 'react-dom';
import asabenehImage from './images/asabeneh.jpg' import asabenehImage from './images/asabeneh.jpg';
const hexaColor = () => { const hexaColor = () => {
let str = '0123456789abcdef' let str = '0123456789abcdef'
@ -49,7 +49,7 @@ const Header = () => (
// User Card Component // User Card Component
const UserCard = () => ( const UserCard = () => (
<div className='user-card'> <div className='user-card'>
<img src={asabenehImage} alt='asabeneh image' /> <img src={asabenehImage} alt='asabeneh image'/>
<h2>Asabeneh Yetayeh</h2> <h2>Asabeneh Yetayeh</h2>
</div> </div>
) )
@ -75,11 +75,11 @@ const Main = () => (
<div className='main-wrapper'> <div className='main-wrapper'>
<p>Prerequisite to get started react.js:</p> <p>Prerequisite to get started react.js:</p>
<ul> <ul>
<TechList /> <TechList/>
</ul> </ul>
<UserCard /> <UserCard/>
<div> <div>
<HexaColor /> <HexaColor/>
</div> </div>
</div> </div>
</main> </main>
@ -97,12 +97,12 @@ const Footer = () => (
// The App, or the parent or the container component // The App, or the parent or the container component
const App = () => ( const App = () => (
<div className='app'> <div className='app'>
<Header /> <Header/>
<Main /> <Main/>
<Footer /> <Footer/>
</div> </div>
) )
const rootElement = document.getElementById('root') const rootElement = document.getElementById('root')
// we render the JSX element using the ReactDOM package // we render the JSX element using the ReactDOM package
ReactDOM.render(<App />, rootElement) ReactDOM.render(<App/>, rootElement)

Loading…
Cancel
Save