-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve #14 add map title and header/logos
-Add semitransparent header -Add media queries for resizing -Replace SVG reference with actual SVG encoding
- Loading branch information
Annabelle Thomas Taylor
committed
Sep 25, 2019
1 parent
961171c
commit e25852a
Showing
5 changed files
with
97 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import React from 'react'; | ||
import { Route, Switch } from 'react-router-dom'; | ||
import Map from './components/map.jsx'; | ||
import Header from './components/header'; | ||
|
||
const App = () => ( | ||
<Switch> | ||
<Route exact path="/" component={Map} /> | ||
<div> | ||
<Header /> | ||
<Switch> | ||
<Route exact path="/" component={Map} /> | ||
</Switch> | ||
</div> | ||
); | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React, { Component } from 'react'; | ||
import Logo from '../../../assets/images/logo.svg'; | ||
|
||
|
||
export default class Header extends Component { | ||
constructor(props) { | ||
super(props); | ||
this.el = document.createElement('div'); | ||
} | ||
|
||
render() { | ||
return ( | ||
<header className="header"> | ||
<img src="https://www.mapc.org/wp-content/themes/mapc/assets/images/mapc-logo.svg" className="header__image" alt="Metropolitan Area Planning Council"/> | ||
<h1 className="header__title">Trailmap: Metro Boston's Regional Walking and Cycling Map</h1> | ||
</header> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters