Skip to content

Commit

Permalink
add resonsive map
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon-Pampuch committed May 24, 2019
1 parent f6a1e22 commit ca1d558
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
Binary file added .DS_Store
Binary file not shown.
5 changes: 4 additions & 1 deletion refugee-stories/src/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,7 @@ export const login = (newCredentials) => dispatch => {
dispatch({ type: LOGIN_SUCCESS, payload: res });
})
.catch(err => console.log(err));
};
};



13 changes: 11 additions & 2 deletions refugee-stories/src/components/Map.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
import React from "react";
import { Map, InfoWindow, Marker, GoogleApiWrapper } from "google-maps-react";


const style = {
width: "50%",
height: "50%",
marginLeft: '470px',
marginLeft: '25%',
position: "static"

};


export class MapContainer extends React.Component {







render() {
return (
<Map style={style}
Expand Down Expand Up @@ -50,5 +59,5 @@ export class MapContainer extends React.Component {
}

export default GoogleApiWrapper({
apiKey: "AIzaSyAvZSdsDQUaRmDELHpaiIFgcDR4M5pa6cs"
apiKey: "AIzaSyAvZSdsDQUaRmDELHpaiIFgcDR4M5pa6cs",
})(MapContainer);
4 changes: 3 additions & 1 deletion refugee-stories/src/reducers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ import {
LOGIN_START,
LOGIN_SUCCESS,
LOGIN_FAILURE,


} from "../actions";

const initialState = {
stories: [],
adminStories: []
adminStories: [],
};

export const storiesReducer = (state = initialState, action) => {
Expand Down
2 changes: 1 addition & 1 deletion refugee-stories/src/views/pages/AddStory.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const TextInput = styled.textarea`
letter-spacing: 1px;
}
`;
const Header = styled.div`
const Header = styled.h1`
margin: 0 auto;
margin-top: 40px;
`;
Expand Down
2 changes: 1 addition & 1 deletion refugee-stories/src/views/pages/Connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const HeroWrapper = styled.div`
font-size: 4rem;
`;
const MapWrapper = styled.div`
position: static;
display:flex;
flex-direction: column;
color:white;
Expand Down

0 comments on commit ca1d558

Please sign in to comment.