Skip to content

Commit

Permalink
Merge pull request #45 from codetapacademy/feat/add-top-menu
Browse files Browse the repository at this point in the history
feat: add an ugly menu to the top
  • Loading branch information
marianzburlea authored Jul 17, 2019
2 parents 56783fc + 5f17cfb commit 99e192b
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/component/home/home.component.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import React from 'react'

const Home = () => <h1>Info about course released, mentoring and much more</h1>

export default Home
1 change: 1 addition & 0 deletions src/component/home/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './home.component'
Empty file.
9 changes: 9 additions & 0 deletions src/component/section-panel/section-panel.component.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

const SectionPanel = () => {
return (
<div>Daca vrem!</div>
)
}

export default SectionPanel
1 change: 1 addition & 0 deletions src/component/top-menu/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './top-menu.component'
14 changes: 14 additions & 0 deletions src/component/top-menu/top-menu.component.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react'
import { Link } from '@reach/router'

const TopMenu = () => {
return (
<div>
<Link to="/">Home</Link>
<Link to="/dashboard">Dashboard</Link>
<button>Log in</button>
</div>
)
}

export default TopMenu
12 changes: 9 additions & 3 deletions src/component/web-info/web-info.component.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import React from 'react'
import CoursePanel from '../course-panel';
import CoursePanel from '../course-panel'
import TopMenu from '../top-menu'
import { Router } from '@reach/router'
import Home from '../home';

const WebInfo = () => {
return (
<div>
<h1>Info about course released, mentoring and much more</h1>
<CoursePanel />
<TopMenu />
<Router>
<Home path="/" />
<CoursePanel path="dashboard" />
</Router>
</div>
)
}
Expand Down

0 comments on commit 99e192b

Please sign in to comment.