Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/development' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
HennecartLisa committed Jul 24, 2018
2 parents 5df5854 + 995c7c0 commit 8401f1b
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 32 deletions.
Binary file added public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>AccessFlanders</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
Expand All @@ -9,7 +10,7 @@
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<link rel="icon" type="image/png" href="/favicon-16x16.png">
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand All @@ -19,8 +20,6 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->

<title>React App</title>
</head>
<body>

Expand Down
8 changes: 7 additions & 1 deletion src/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default class Header extends Component {
<Row className="search__bar">
<Col l={3} m={6} href="#" className="brand">
<img className="brand__icon" src={require('../images/logo-oasis.svg')} alt="OASIS"></img>
<h1 className="brand__name">OASIS</h1>
<h1 className="brand__name">Access Flanders</h1>
</Col>
<Col s={6} className="search">
<div className="input-field">
Expand All @@ -133,6 +133,12 @@ export default class Header extends Component {
<i className="material-icons" onClick={this.resetSearch}>close</i>
</div>
</Col>
<Col>
<a href="https://github.com/oSoc18/OASIS" target="_blank">
<img alt="github icon" title="github" className="social__media__icon" src={require('../images/github_otocat.png')} alt="github">
</img>
</a>
</Col>
</Row>
<Row className="search__filters">
<Col s={9} offset="s0 m6 l3">
Expand Down
2 changes: 1 addition & 1 deletion src/components/SidebarBuildingDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default class SidebarBuildingDetail extends Component {
<Col>
<h2>{this.Building.title}</h2>
</Col>
<Col>
<Col s={12}>
<p>{this.Building.description}</p>
</Col>
<Col s={12}>
Expand Down
4 changes: 3 additions & 1 deletion src/components/SidebarSearchResult.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import {Col, Row} from "react-materialize";
import {Card, Col, Row} from "react-materialize";
import {inject, observer} from 'mobx-react';


Expand Down Expand Up @@ -36,6 +36,7 @@ export default class SidebarSearchResult extends React.Component {

render() {
return (
<Card>
<Row>
<Col m={12} s={12}>
<hr />
Expand All @@ -52,6 +53,7 @@ export default class SidebarSearchResult extends React.Component {
</Col>
<a className="col m12 s12 center" href="#" onClick={this.handleClick} id={this.Building.id}>Meer details...</a>
</Row>
</Card>
)
}
}
2 changes: 1 addition & 1 deletion src/css/App.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

$colorPrimary: #2ed3c8;
$colorPrimary: #27b59f;
$colorPrimaryLight: lighten($colorPrimary,20%);
$colorPrimaryDark: #026863;

Expand Down
15 changes: 14 additions & 1 deletion src/css/Header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ $filterBarBackground: white;
float: left;
}

.social__media__icon{
height: 32px;
float: right;
position: absolute;
right: 0px;
}

.brand__name {
height: 100%;
display: inline-block;
Expand All @@ -36,6 +43,11 @@ $filterBarBackground: white;
float: left;
}

::placeholder {
color: $colorPrimaryDark;
opacity: 1; /* Firefox */
}

div.search {
display: block;
height: $headerBarPrimaryHeight - 2* $headerBarPadding;
Expand All @@ -49,6 +61,7 @@ $filterBarBackground: white;
}
}


.header .search__filters {
height: $headerBarFilterHeight;
margin-bottom: 0;
Expand Down Expand Up @@ -89,7 +102,7 @@ $filterBarBackground: white;
margin-top: ($headerBarFilterHeight - 3 * $headerBarPadding - 18px)/2;
padding: $headerBarPadding / 2;
line-height: 18px;
font-size: 14px;
font-size: 20px;
border-radius: 4px;
color: $filterBarForeground;
border: 1px solid $filterBarForeground;
Expand Down
50 changes: 27 additions & 23 deletions src/css/Map.scss
Original file line number Diff line number Diff line change
@@ -1,37 +1,41 @@
div.leaflet-container {
height: 100%;
height: 100%;
}


.leaflet-marker-pane>img{
margin:-1px;
.leaflet-marker-pane > img {
margin: -1px;
}

.map__marker__image {
position: relative;
height:38px;
width:38px;
top: -32px;
left: -13px;
position: relative;
height: 42px;
width: 30px;
top: -34px;
left: -13px;
}

.map__marker__text{
position: relative;
width:80px;
overflow: hidden;
white-space: nowrap;
top: -100px;
left: -35px;
background-color: #ffffff;
opacity: 0.9;
display: none;
text-align: center;
.map__marker__text {
position: relative;
width: 80px;
overflow: hidden;
white-space: nowrap;
top: -100px;
left: -35px;
background-color: $colorPrimary;
border: 1px solid $colorPrimaryDark;
opacity: 0.9;
display: none;
text-align: center;
}

.map__marker__image:hover + .map__marker__text{
display: block;
.map__marker__image:hover + .map__marker__text {
display: block;
}

.map__marker:hover > .map__marker__text {
display: block;
display: block;
}

leaflet-top leaflet-left {
float: right !important;
}
3 changes: 2 additions & 1 deletion src/css/Sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ div.sidebar {
margin: 0;
float: left;
background-color: #fff;
overflow: scroll;
}

div.sidebar__card {
overflow: scroll;

height: 100%;
}
Binary file added src/images/github_otocat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/images/map-marker-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8401f1b

Please sign in to comment.