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