Skip to content

Commit

Permalink
v1.2.0 (#29)
Browse files Browse the repository at this point in the history
* better translations

* updated apollo-angular

* updated angular to v10

* updated angular material

* updated deps

* updated major deps

* removed custom-webpack

* better translations

* #14 - close button is overlapped by some elements

* #24 - tweaks to the detail card sidebar

* v1.1.1

* pointing dev www to dev api

* first implementation of openstreetmap nodes

* first implementation of osmPois shown on the map, first implementation of getPhotos, added sessionId to the request headers

* better format for current location

* photos and todos

* tweaks to the OSM data handling, added map loader

* minor tweaks; using nearby POis for populating the sidebar

* minor tweaks

* added drinking-water pin

* POI detail card

* fixed bug due to missing check on FB SDK

* fixed distance pipe

* slicing items in sidebar

* less prominent text

* loading osm nodes only under a certain threshold

* responsive detail card for osm items

* increased poi detail card title's dimension

* minor improvements, list of items on cluster click (#11)

* added call link to shelters (#22)

* v1.2.0
  • Loading branch information
marcellobarile authored Aug 14, 2020
1 parent faefcdd commit 2306951
Show file tree
Hide file tree
Showing 49 changed files with 1,060 additions and 218 deletions.
1 change: 1 addition & 0 deletions design/svg/drinking-water/drinking-water-pin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion design/svg/pins/crag-pin.svg

This file was deleted.

1 change: 0 additions & 1 deletion design/svg/pins/default-pin.svg

This file was deleted.

1 change: 0 additions & 1 deletion design/svg/pins/event-pin.svg

This file was deleted.

1 change: 0 additions & 1 deletion design/svg/pins/place-pin.svg

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wci-frontend",
"version": "1.1.1",
"version": "1.2.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ $cragPinColor: #3c40c6;
$shelterPinColor: #bb6328;
$placePinColor: #f53b57;
$eventPinColor: #ffcd03;
$drinkingWaterPinColor: #14c0ff;
1 change: 1 addition & 0 deletions frontend/src/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ $headerHeight: 160px;
$mobileBreakpointWidth: 1020px;
$smallScreenBreakpointWidth: 1200px;
$hugeScreenBreakpointWidth: 1670px;
$detailCardSmallWidth: 313px;
34 changes: 34 additions & 0 deletions frontend/src/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,37 @@
}
}
}

@mixin poiCategoryBadge {
position: relative;
float: left;
color: white;
width: 14px;
height: 20px;
line-height: 20px;
text-align: center;
font-size: 13px;
font-weight: 700;
padding: 3px 6px 3px 6px;
border-radius: 90px;

&.crag {
background: $cragPinColor;
}
&.hike {
background: $hikePinColor;
}
&.shelter {
background: $shelterPinColor;
}
&.event,
&.competition {
background: $eventPinColor;
}
&.place {
background: $placePinColor;
}
&.drinking-water {
background: $drinkingWaterPinColor;
}
}
2 changes: 2 additions & 0 deletions frontend/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ const routes: Routes = [
// Not supported yet
// { path: 'news/:slug', component: DetailComponent, data: { type: ContentType.ONE_NEWS, isFloatingContent: true } },

{ path: 'pois/:nodeId', component: DetailComponent, data: { type: ContentType.OSM_NODE, isFloatingContent: true } },

{ path: 'search/:query', component: EntitiesListComponent, data: { type: ContentType.SEARCH } },
{ path: 'search/:query/page/:page', component: EntitiesListComponent, data: { type: ContentType.SEARCH } },

Expand Down
20 changes: 16 additions & 4 deletions frontend/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
Privacy
</button>
<script type="text/javascript">
(function(w, d) {
var loader = function() {
(function (w, d) {
var loader = function () {
var s = d.createElement('script'),
tag = d.getElementsByTagName('script')[0];
s.src = 'https://cdn.iubenda.com/iubenda.js';
Expand Down Expand Up @@ -83,6 +83,8 @@
</ng-container>
</mat-menu>
</div>

<!-- The map -->
<div class="map">
<div class="header-container">
<wci-header
Expand All @@ -94,29 +96,39 @@
></wci-header>
</div>
<wci-map
*ngIf="currentLocation && userLocation"
[zoom]="zoom"
[centerLocation]="currentLocation"
[userLocation]="userLocation"
[pois]="nearbyPois"
[osmPois]="nearbyOsmPois"
[loadingOsmData]="isOsmNearbyLoading"
[loadingWciData]="isNearbyLoading"
(ready)="onMapReadyOrUpdate($event)"
(update)="onMapReadyOrUpdate($event)"
></wci-map>
</div>

<!-- The sidenav -->
<div class="sidenav" fxShow="false" fxShow.gt-sm>
<wci-sidebar
[loading]="isLatestLoading"
[loading]="isNearbyLoading"
[currentLocation]="currentLocation"
[pois]="latestPois"
[pois]="nearbyPois"
(sectionSelected)="onSectionSelected($event)"
(poiSelected)="onPoiSelected($event)"
></wci-sidebar>
</div>

<!-- The content container -->
<div class="content" *ngIf="showContent && !isFloatingContent">
<div class="section">
<router-outlet></router-outlet>
</div>
</div>
</div>

<!-- The floating content container -->
<ng-container *ngIf="showContent && isFloatingContent">
<router-outlet></router-outlet>
</ng-container>
Loading

0 comments on commit 2306951

Please sign in to comment.