@geotrekce/geotrek-rando-widget 0.0.3 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/geotrek-rando-widget.cjs.js +2 -2
- package/dist/cjs/grw-app.cjs.entry.js +111 -0
- package/dist/cjs/{grw-app_10.cjs.entry.js → grw-filter_6.cjs.entry.js} +284 -446
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js +52 -0
- package/dist/cjs/grw-trek-card.cjs.entry.js +47 -0
- package/dist/cjs/{index-c6f73e30.js → index-c2c4531d.js} +46 -1
- package/dist/cjs/length-d315d156.js +34 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/store-fd04a216.js +211 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/grw-app/grw-app.css +69 -5
- package/dist/collection/components/grw-app/grw-app.js +76 -28
- package/dist/collection/components/grw-filter/grw-filter.css +29 -0
- package/dist/collection/components/grw-filter/grw-filter.js +132 -0
- package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.css +5 -4
- package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js +1 -1
- package/dist/collection/components/grw-map/grw-map.css +19 -1
- package/dist/collection/components/grw-map/grw-map.js +101 -40
- package/dist/collection/components/grw-poi-detail/grw-poi-detail.css +5 -4
- package/dist/collection/components/grw-poi-detail/grw-poi-detail.js +1 -1
- package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.css +27 -3
- package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js +17 -3
- package/dist/collection/components/grw-trek-card/grw-trek-card.css +66 -32
- package/dist/collection/components/grw-trek-card/grw-trek-card.js +34 -10
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +134 -4
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +95 -6
- package/dist/collection/components/grw-treks-list/grw-treks-list.css +16 -3
- package/dist/collection/components/grw-treks-list/grw-treks-list.js +33 -6
- package/dist/collection/store/grw-trek-provider.js +32 -10
- package/dist/collection/store/grw-treks-provider.js +14 -4
- package/dist/collection/store/store.js +10 -1
- package/dist/collection/stories/App.js +8 -10
- package/dist/collection/stories/App.stories.js +4 -3
- package/dist/collection/stories/TrekMap.stories.js +3 -2
- package/dist/collection/stories/TreksList.js +8 -8
- package/dist/collection/stories/TreksMap.stories.js +3 -2
- package/dist/components/grw-app.js +66 -9
- package/dist/components/grw-filter.d.ts +11 -0
- package/dist/components/grw-filter.js +6 -0
- package/dist/components/grw-filter2.js +95 -0
- package/dist/components/grw-information-desk-detail2.js +2 -2
- package/dist/components/grw-map2.js +102 -41
- package/dist/components/grw-poi-detail2.js +2 -2
- package/dist/components/grw-sensitive-area-detail2.js +7 -2
- package/dist/components/grw-trek-card2.js +10 -5
- package/dist/components/grw-trek-detail2.js +25 -4
- package/dist/components/grw-trek-provider2.js +32 -10
- package/dist/components/grw-treks-list2.js +15 -7
- package/dist/components/grw-treks-provider2.js +14 -4
- package/dist/components/store.js +10 -1
- package/dist/esm/geotrek-rando-widget.js +2 -2
- package/dist/esm/grw-app.entry.js +107 -0
- package/dist/esm/{grw-app_10.entry.js → grw-filter_6.entry.js} +246 -404
- package/dist/esm/grw-information-desk-detail_3.entry.js +46 -0
- package/dist/esm/grw-trek-card.entry.js +43 -0
- package/dist/esm/{index-7aa9e822.js → index-192d910f.js} +47 -2
- package/dist/esm/length-d82189db.js +27 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/store-b2c76c0c.js +208 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/p-1b2ba86d.entry.js +1 -0
- package/dist/geotrek-rando-widget/p-5f17d340.entry.js +1 -0
- package/dist/geotrek-rando-widget/p-6716c635.entry.js +1 -0
- package/dist/geotrek-rando-widget/p-6dce5e6c.js +2 -0
- package/dist/geotrek-rando-widget/p-7715153d.entry.js +1 -0
- package/dist/geotrek-rando-widget/p-e6710c64.js +1 -0
- package/dist/geotrek-rando-widget/p-f3f7d6be.js +1 -0
- package/dist/types/components/grw-app/grw-app.d.ts +9 -2
- package/dist/types/components/grw-filter/grw-filter.d.ts +9 -0
- package/dist/types/components/grw-map/grw-map.d.ts +3 -1
- package/dist/types/components/grw-trek-card/grw-trek-card.d.ts +6 -4
- package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +9 -4
- package/dist/types/components/grw-treks-list/grw-treks-list.d.ts +1 -0
- package/dist/types/components.d.ts +23 -2
- package/dist/types/store/store.d.ts +22 -3
- package/dist/types/types/types.d.ts +74 -1
- package/package.json +5 -4
- package/readme.md +4 -5
- package/dist/geotrek-rando-widget/p-332ba9ab.js +0 -2
- package/dist/geotrek-rando-widget/p-73bc92fe.entry.js +0 -1
|
@@ -1,16 +1,40 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
|
|
4
|
+
}
|
|
5
|
+
:host a {
|
|
6
|
+
color: var(--color-primary);
|
|
5
7
|
}
|
|
6
8
|
|
|
7
|
-
.sensitive-area-
|
|
9
|
+
.sensitive-area-title {
|
|
8
10
|
color: var(--color-primary);
|
|
9
11
|
font-size: 24px;
|
|
12
|
+
padding: 12px 0px;
|
|
10
13
|
font-weight: bold;
|
|
11
|
-
padding: 0px 0px 8px 0px;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
.sensitive-area-description {
|
|
15
17
|
font-size: 16px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.sensitive-area-period-container .sensitive-area-period-title,
|
|
21
|
+
.sensitive-area-period-container .sensitive-area-practice-title,
|
|
22
|
+
.sensitive-area-period-container .sensitive-area-contact-title,
|
|
23
|
+
.sensitive-area-practice-container .sensitive-area-period-title,
|
|
24
|
+
.sensitive-area-practice-container .sensitive-area-practice-title,
|
|
25
|
+
.sensitive-area-practice-container .sensitive-area-contact-title,
|
|
26
|
+
.sensitive-area-contact-container .sensitive-area-period-title,
|
|
27
|
+
.sensitive-area-contact-container .sensitive-area-practice-title,
|
|
28
|
+
.sensitive-area-contact-container .sensitive-area-contact-title {
|
|
29
|
+
color: var(--color-primary);
|
|
30
|
+
font-size: 24px;
|
|
31
|
+
padding: 12px 0px;
|
|
32
|
+
}
|
|
33
|
+
.sensitive-area-period-container .sensitive-area-period-values,
|
|
34
|
+
.sensitive-area-period-container .sensitive-area-practice-values,
|
|
35
|
+
.sensitive-area-practice-container .sensitive-area-period-values,
|
|
36
|
+
.sensitive-area-practice-container .sensitive-area-practice-values,
|
|
37
|
+
.sensitive-area-contact-container .sensitive-area-period-values,
|
|
38
|
+
.sensitive-area-contact-container .sensitive-area-practice-values {
|
|
39
|
+
display: flex;
|
|
16
40
|
}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { Component, Host, h, Prop } from '@stencil/core';
|
|
2
|
+
import state from 'store/store';
|
|
2
3
|
export class GrwSensitiveAreaDetail {
|
|
3
4
|
render() {
|
|
4
5
|
return (h(Host, null,
|
|
5
|
-
h("div", { class: "sensitive-area-
|
|
6
|
-
h("div", { class: "sensitive-area-description", innerHTML: this.sensitiveArea.description })
|
|
6
|
+
h("div", { class: "sensitive-area-title" }, this.sensitiveArea.name),
|
|
7
|
+
h("div", { class: "sensitive-area-description", innerHTML: this.sensitiveArea.description }),
|
|
8
|
+
this.sensitiveArea.practices && this.sensitiveArea.practices.length > 0 && (h("div", { class: "sensitive-area-practice-container" },
|
|
9
|
+
h("div", { class: "sensitive-area-practice-title" }, "Domaines d'activit\u00E9s concern\u00E9s :"),
|
|
10
|
+
h("div", { class: "sensitive-area-practice-values" }, this.sensitiveArea.practices.map((practice, index) => (h("div", { innerHTML: `${state.practices.find(statePractice => statePractice.id === practice).name.toUpperCase()}${index + 1 !== this.sensitiveArea.practices.length ? ' - ' : ''}` })))))),
|
|
11
|
+
this.sensitiveArea.period && this.sensitiveArea.period.length > 0 && (h("div", { class: "sensitive-area-period-container" },
|
|
12
|
+
h("div", { class: "sensitive-area-period-title" }, "P\u00E9riodes de sensibilit\u00E9"),
|
|
13
|
+
h("div", { class: "sensitive-area-period-values" }, this.sensitiveArea.period.map((month, index) => {
|
|
14
|
+
if (month) {
|
|
15
|
+
return (h("div", { innerHTML: `${new Date(0, index + 1, 0).toLocaleDateString('fr', { month: 'long' }).toUpperCase()}${this.sensitiveArea.period.slice(index + 1).find(month => month) ? ' - ' : ''}` }));
|
|
16
|
+
}
|
|
17
|
+
})))),
|
|
18
|
+
h("div", { class: "sensitive-area-contact-container" },
|
|
19
|
+
h("div", { class: "sensitive-area-contact-title" }, "Contact"),
|
|
20
|
+
h("div", { innerHTML: this.sensitiveArea.contact, class: "sensitive-area-contact-value" }))));
|
|
7
21
|
}
|
|
8
22
|
static get is() { return "grw-sensitive-area-detail"; }
|
|
9
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +33,7 @@ export class GrwSensitiveAreaDetail {
|
|
|
19
33
|
"mutable": false,
|
|
20
34
|
"complexType": {
|
|
21
35
|
"original": "SensitiveArea",
|
|
22
|
-
"resolved": "{ id: number; geometry: Geometry; name: string; description: string; }",
|
|
36
|
+
"resolved": "{ id: number; geometry: Geometry; name: string; description: string; contact: string; info_url: string; period: boolean[]; practices: number[]; }",
|
|
23
37
|
"references": {
|
|
24
38
|
"SensitiveArea": {
|
|
25
39
|
"location": "import",
|
|
@@ -1,69 +1,103 @@
|
|
|
1
|
-
.trek-card-container
|
|
1
|
+
.trek-card-container,
|
|
2
|
+
.trek-card-large-view-container {
|
|
2
3
|
font-family: "Roboto";
|
|
3
|
-
width: 350px;
|
|
4
|
-
height: auto;
|
|
5
4
|
border-radius: 8px;
|
|
6
5
|
box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.25);
|
|
7
6
|
cursor: pointer;
|
|
8
7
|
}
|
|
9
|
-
.trek-card-container .image
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
height: auto;
|
|
13
|
-
box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.25);
|
|
8
|
+
.trek-card-container .image,
|
|
9
|
+
.trek-card-large-view-container .image {
|
|
10
|
+
object-fit: cover;
|
|
14
11
|
}
|
|
15
|
-
.trek-card-container .sub-container
|
|
12
|
+
.trek-card-container .sub-container,
|
|
13
|
+
.trek-card-large-view-container .sub-container {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
justify-content: center;
|
|
16
17
|
padding: 12px;
|
|
17
18
|
}
|
|
18
|
-
.trek-card-container .sub-container .name
|
|
19
|
+
.trek-card-container .sub-container .name,
|
|
20
|
+
.trek-card-large-view-container .sub-container .name {
|
|
19
21
|
color: var(--color-primary);
|
|
20
22
|
font-size: 24px;
|
|
21
23
|
font-weight: bold;
|
|
22
|
-
margin-bottom:
|
|
24
|
+
margin-bottom: 8px;
|
|
23
25
|
}
|
|
24
|
-
.trek-card-container .sub-container .
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
margin-bottom: 12px;
|
|
26
|
+
.trek-card-container .sub-container .departure,
|
|
27
|
+
.trek-card-large-view-container .sub-container .departure {
|
|
28
|
+
color: rgba(0, 0, 0, 0.7);
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
margin: 4px 0px;
|
|
30
31
|
}
|
|
31
|
-
.trek-card-container .sub-container .
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
.trek-card-container .sub-container .themes-container,
|
|
33
|
+
.trek-card-large-view-container .sub-container .themes-container {
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: flex-start;
|
|
36
|
+
align-items: center;
|
|
37
|
+
flex-wrap: wrap;
|
|
36
38
|
}
|
|
37
|
-
.trek-card-container .sub-container .
|
|
39
|
+
.trek-card-container .sub-container .themes-container .theme,
|
|
40
|
+
.trek-card-large-view-container .sub-container .themes-container .theme {
|
|
41
|
+
background-color: var(--color-primary-tint);
|
|
42
|
+
color: #ffffff;
|
|
43
|
+
border-radius: 8px;
|
|
44
|
+
padding: 8px;
|
|
45
|
+
margin: 0px 8px 8px 0px;
|
|
46
|
+
}
|
|
47
|
+
.trek-card-container .sub-container .icons-labels-container,
|
|
48
|
+
.trek-card-large-view-container .sub-container .icons-labels-container {
|
|
38
49
|
display: flex;
|
|
39
50
|
justify-content: flex-start;
|
|
40
51
|
align-items: center;
|
|
41
52
|
flex-wrap: wrap;
|
|
42
53
|
}
|
|
43
|
-
.trek-card-container .sub-container .icons-labels-container .row
|
|
54
|
+
.trek-card-container .sub-container .icons-labels-container .row,
|
|
55
|
+
.trek-card-large-view-container .sub-container .icons-labels-container .row {
|
|
44
56
|
display: flex;
|
|
45
57
|
justify-content: space-between;
|
|
46
58
|
align-items: center;
|
|
47
59
|
width: 100%;
|
|
48
60
|
}
|
|
49
|
-
.trek-card-container .sub-container .icons-labels-container .row:not(:last-child)
|
|
61
|
+
.trek-card-container .sub-container .icons-labels-container .row:not(:last-child),
|
|
62
|
+
.trek-card-large-view-container .sub-container .icons-labels-container .row:not(:last-child) {
|
|
50
63
|
margin-bottom: 12px;
|
|
51
64
|
}
|
|
52
|
-
.trek-card-container .sub-container .icons-labels-container .row .icon-label
|
|
65
|
+
.trek-card-container .sub-container .icons-labels-container .row .icon-label,
|
|
66
|
+
.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label {
|
|
53
67
|
display: flex;
|
|
54
|
-
justify-content: center;
|
|
55
68
|
align-items: center;
|
|
56
|
-
width:
|
|
69
|
+
width: 50%;
|
|
57
70
|
}
|
|
58
|
-
.trek-card-container .sub-container .icons-labels-container .row .icon-label:nth-child(2)
|
|
71
|
+
.trek-card-container .sub-container .icons-labels-container .row .icon-label:nth-child(2),
|
|
72
|
+
.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label:nth-child(2) {
|
|
59
73
|
margin: 0px 4px;
|
|
60
74
|
}
|
|
61
75
|
.trek-card-container .sub-container .icons-labels-container .row .icon-label img,
|
|
62
|
-
.trek-card-container .sub-container .icons-labels-container .row .icon-label .svg-icon svg
|
|
76
|
+
.trek-card-container .sub-container .icons-labels-container .row .icon-label .svg-icon svg,
|
|
77
|
+
.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label img,
|
|
78
|
+
.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label .svg-icon svg {
|
|
63
79
|
width: 24px;
|
|
64
80
|
height: auto;
|
|
65
|
-
margin-right:
|
|
81
|
+
margin-right: 8px;
|
|
66
82
|
}
|
|
67
|
-
.trek-card-container .sub-container .icons-labels-container .row .practice img
|
|
83
|
+
.trek-card-container .sub-container .icons-labels-container .row .practice img,
|
|
84
|
+
.trek-card-large-view-container .sub-container .icons-labels-container .row .practice img {
|
|
68
85
|
background-color: var(--color-primary);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.trek-card-container {
|
|
89
|
+
width: 350px;
|
|
90
|
+
height: auto;
|
|
91
|
+
}
|
|
92
|
+
.trek-card-container .image {
|
|
93
|
+
width: 100%;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.trek-card-large-view-container {
|
|
97
|
+
height: auto;
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: row;
|
|
100
|
+
}
|
|
101
|
+
.trek-card-large-view-container .image {
|
|
102
|
+
width: 250px;
|
|
69
103
|
}
|
|
@@ -8,6 +8,7 @@ export class GrwTrekCard {
|
|
|
8
8
|
constructor() {
|
|
9
9
|
this.colorPrimary = '#6b0030';
|
|
10
10
|
this.colorPrimaryTint = '#974c6e';
|
|
11
|
+
this.isLargeView = false;
|
|
11
12
|
}
|
|
12
13
|
componentWillLoad() {
|
|
13
14
|
this.currentTrek = this.trek ? this.trek : state.currentTrek;
|
|
@@ -15,6 +16,7 @@ export class GrwTrekCard {
|
|
|
15
16
|
this.difficulty = state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty);
|
|
16
17
|
this.route = state.routes.find(route => route.id === this.currentTrek.route);
|
|
17
18
|
this.practice = state.practices.find(practice => practice.id === this.currentTrek.practice);
|
|
19
|
+
this.themes = state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));
|
|
18
20
|
}
|
|
19
21
|
onChange('currentTrek', () => {
|
|
20
22
|
this.currentTrek = this.trek ? this.trek : state.currentTrek;
|
|
@@ -22,16 +24,18 @@ export class GrwTrekCard {
|
|
|
22
24
|
this.difficulty = state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty);
|
|
23
25
|
this.route = state.routes.find(route => route.id === this.currentTrek.route);
|
|
24
26
|
this.practice = state.practices.find(practice => practice.id === this.currentTrek.practice);
|
|
27
|
+
this.themes = state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));
|
|
25
28
|
}
|
|
26
29
|
});
|
|
27
30
|
}
|
|
28
31
|
render() {
|
|
29
32
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
30
|
-
return (h(Host, { onClick: () => this.trekCardPress.emit(this.currentTrek.id), style: { '--color-primary': this.colorPrimary, '--color-primary-tint': this.colorPrimaryTint } }, this.currentTrek && (h("div", { class:
|
|
33
|
+
return (h(Host, { onClick: () => this.trekCardPress.emit(this.currentTrek.id), style: { 'width': this.isLargeView ? '100%' : 'auto', '--color-primary': this.colorPrimary, '--color-primary-tint': this.colorPrimaryTint } }, this.currentTrek && (h("div", { class: this.isLargeView ? 'trek-card-large-view-container' : 'trek-card-container' },
|
|
31
34
|
this.currentTrek.attachments && this.currentTrek.attachments[0] && this.currentTrek.attachments[0].thumbnail && (h("img", { class: "image", src: `${this.currentTrek.attachments[0].thumbnail}`, loading: "lazy" })),
|
|
32
35
|
h("div", { class: "sub-container" },
|
|
33
|
-
h("div", { class: "
|
|
34
|
-
h("div", { class: "
|
|
36
|
+
h("div", { class: "departure" }, (_a = this.currentTrek) === null || _a === void 0 ? void 0 : _a.departure),
|
|
37
|
+
h("div", { class: "name" }, (_b = this.currentTrek) === null || _b === void 0 ? void 0 : _b.name),
|
|
38
|
+
h("div", { class: "themes-container" }, this.themes.map(theme => (h("div", { class: "theme" }, theme.label)))),
|
|
35
39
|
h("div", { class: "icons-labels-container" },
|
|
36
40
|
h("div", { class: "row" },
|
|
37
41
|
h("div", { class: "icon-label difficulty" },
|
|
@@ -39,17 +43,18 @@ export class GrwTrekCard {
|
|
|
39
43
|
_d.label),
|
|
40
44
|
h("div", { class: "icon-label duration" },
|
|
41
45
|
h("div", { class: "svg-icon", innerHTML: durationImage }),
|
|
42
|
-
formatDuration(this.currentTrek.duration)),
|
|
43
|
-
h("div", { class: "icon-label route" },
|
|
44
|
-
((_e = this.route) === null || _e === void 0 ? void 0 : _e.pictogram) && h("img", { src: this.route.pictogram }), (_f = this.route) === null || _f === void 0 ? void 0 :
|
|
45
|
-
_f.route)),
|
|
46
|
+
formatDuration(this.currentTrek.duration))),
|
|
46
47
|
h("div", { class: "row" },
|
|
47
48
|
h("div", { class: "icon-label length" },
|
|
48
49
|
h("div", { class: "svg-icon", innerHTML: lengthImage }),
|
|
49
50
|
formatLength(this.currentTrek.length_2d)),
|
|
50
51
|
h("div", { class: "icon-label ascent" },
|
|
51
52
|
h("div", { class: "svg-icon", innerHTML: ascentImage }),
|
|
52
|
-
formatAscent(this.currentTrek.ascent)),
|
|
53
|
+
formatAscent(this.currentTrek.ascent))),
|
|
54
|
+
h("div", { class: "row" },
|
|
55
|
+
h("div", { class: "icon-label route" },
|
|
56
|
+
((_e = this.route) === null || _e === void 0 ? void 0 : _e.pictogram) && h("img", { src: this.route.pictogram }), (_f = this.route) === null || _f === void 0 ? void 0 :
|
|
57
|
+
_f.route),
|
|
53
58
|
h("div", { class: "icon-label practice" },
|
|
54
59
|
((_g = this.practice) === null || _g === void 0 ? void 0 : _g.pictogram) && h("img", { src: this.practice.pictogram }), (_h = this.practice) === null || _h === void 0 ? void 0 :
|
|
55
60
|
_h.name))))))));
|
|
@@ -68,7 +73,7 @@ export class GrwTrekCard {
|
|
|
68
73
|
"mutable": false,
|
|
69
74
|
"complexType": {
|
|
70
75
|
"original": "Trek",
|
|
71
|
-
"resolved": "{ id: number; name: string; attachments: Attachments; description?: string; description_teaser: string; difficulty: number; route: number; practice: number; duration: number; length_2d: number; ascent: number; geometry?: LineString; departure_geom?: Position; gpx?: string; kml?: string; pdf?: string; parking_location?: Position; }",
|
|
76
|
+
"resolved": "{ id: number; name: string; attachments: Attachments; description?: string; description_teaser: string; difficulty: number; route: number; practice: number; themes: number[]; duration: number; length_2d: number; ascent: number; departure: string; arrival?: string; altimetric_profile?: string; geometry?: LineString; departure_geom?: Position; gpx?: string; kml?: string; pdf?: string; parking_location?: Position; ambiance?: string; access?: string; public_transport?: string; advice?: string; advised_parking?: string; gear?: string; labels?: number[]; points_reference?: MultiPoint; source?: number[]; structure?: number; disabled_infrastructure?: string; accessibilities?: number[]; accessibility_level?: number; accessibility_slope?: string; accessibility_width?: string; accessibility_signage?: string; accessibility_covering?: string; accessibility_exposure?: string; accessibility_advice?: string; }",
|
|
72
77
|
"references": {
|
|
73
78
|
"Trek": {
|
|
74
79
|
"location": "import",
|
|
@@ -118,13 +123,32 @@ export class GrwTrekCard {
|
|
|
118
123
|
"attribute": "color-primary-tint",
|
|
119
124
|
"reflect": false,
|
|
120
125
|
"defaultValue": "'#974c6e'"
|
|
126
|
+
},
|
|
127
|
+
"isLargeView": {
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"mutable": false,
|
|
130
|
+
"complexType": {
|
|
131
|
+
"original": "boolean",
|
|
132
|
+
"resolved": "boolean",
|
|
133
|
+
"references": {}
|
|
134
|
+
},
|
|
135
|
+
"required": false,
|
|
136
|
+
"optional": false,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [],
|
|
139
|
+
"text": ""
|
|
140
|
+
},
|
|
141
|
+
"attribute": "is-large-view",
|
|
142
|
+
"reflect": false,
|
|
143
|
+
"defaultValue": "false"
|
|
121
144
|
}
|
|
122
145
|
}; }
|
|
123
146
|
static get states() { return {
|
|
124
147
|
"currentTrek": {},
|
|
125
148
|
"difficulty": {},
|
|
126
149
|
"route": {},
|
|
127
|
-
"practice": {}
|
|
150
|
+
"practice": {},
|
|
151
|
+
"themes": {}
|
|
128
152
|
}; }
|
|
129
153
|
static get events() { return [{
|
|
130
154
|
"method": "trekCardPress",
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
grw-sensitive-area-detail,
|
|
2
|
+
grw-information-desk-detail,
|
|
3
|
+
grw-poi-detail {
|
|
4
|
+
margin-top: 12px;
|
|
5
|
+
}
|
|
6
|
+
|
|
1
7
|
.trek-detail-container {
|
|
2
8
|
font-family: "Roboto";
|
|
3
9
|
display: flex;
|
|
@@ -65,7 +71,10 @@
|
|
|
65
71
|
.trek-detail-container .downloads-container .download-title {
|
|
66
72
|
color: var(--color-primary);
|
|
67
73
|
font-size: 18px;
|
|
68
|
-
margin-bottom:
|
|
74
|
+
margin-bottom: 12px;
|
|
75
|
+
}
|
|
76
|
+
.trek-detail-container .downloads-container .links-container {
|
|
77
|
+
display: flex;
|
|
69
78
|
}
|
|
70
79
|
.trek-detail-container .downloads-container .links-container a {
|
|
71
80
|
background-color: var(--color-primary);
|
|
@@ -80,14 +89,135 @@
|
|
|
80
89
|
.trek-detail-container .downloads-container .links-container a:hover {
|
|
81
90
|
background-color: var(--color-primary-shade);
|
|
82
91
|
}
|
|
83
|
-
.trek-detail-container .
|
|
92
|
+
.trek-detail-container .themes-container {
|
|
93
|
+
display: flex;
|
|
94
|
+
justify-content: flex-start;
|
|
95
|
+
align-items: center;
|
|
96
|
+
flex-wrap: wrap;
|
|
84
97
|
padding: 0px 24px 24px 24px;
|
|
85
98
|
}
|
|
99
|
+
.trek-detail-container .themes-container .theme {
|
|
100
|
+
background-color: var(--color-primary-tint);
|
|
101
|
+
color: #ffffff;
|
|
102
|
+
border-radius: 8px;
|
|
103
|
+
padding: 8px;
|
|
104
|
+
margin: 0px 8px 8px 0px;
|
|
105
|
+
}
|
|
106
|
+
.trek-detail-container .ambiance,
|
|
107
|
+
.trek-detail-container .description-teaser,
|
|
108
|
+
.trek-detail-container .description-container,
|
|
109
|
+
.trek-detail-container .altimetric-profile-container,
|
|
110
|
+
.trek-detail-container .access-container,
|
|
111
|
+
.trek-detail-container .public-transport-container,
|
|
112
|
+
.trek-detail-container .advice-container,
|
|
113
|
+
.trek-detail-container .advised-parking-container,
|
|
114
|
+
.trek-detail-container .gear-container,
|
|
115
|
+
.trek-detail-container .pois-container,
|
|
116
|
+
.trek-detail-container .sensitive-areas-container,
|
|
117
|
+
.trek-detail-container .information-desks-container,
|
|
118
|
+
.trek-detail-container .source-container,
|
|
119
|
+
.trek-detail-container .accessibilities-container {
|
|
120
|
+
padding: 0px 24px 24px 24px;
|
|
121
|
+
}
|
|
122
|
+
.trek-detail-container .ambiance a,
|
|
123
|
+
.trek-detail-container .description-teaser a,
|
|
124
|
+
.trek-detail-container .description-container a,
|
|
125
|
+
.trek-detail-container .altimetric-profile-container a,
|
|
126
|
+
.trek-detail-container .access-container a,
|
|
127
|
+
.trek-detail-container .public-transport-container a,
|
|
128
|
+
.trek-detail-container .advice-container a,
|
|
129
|
+
.trek-detail-container .advised-parking-container a,
|
|
130
|
+
.trek-detail-container .gear-container a,
|
|
131
|
+
.trek-detail-container .pois-container a,
|
|
132
|
+
.trek-detail-container .sensitive-areas-container a,
|
|
133
|
+
.trek-detail-container .information-desks-container a,
|
|
134
|
+
.trek-detail-container .source-container a,
|
|
135
|
+
.trek-detail-container .accessibilities-container a {
|
|
136
|
+
color: var(--color-primary);
|
|
137
|
+
}
|
|
138
|
+
.trek-detail-container .description-title,
|
|
139
|
+
.trek-detail-container .altimetric-profile-title,
|
|
140
|
+
.trek-detail-container .access-title,
|
|
141
|
+
.trek-detail-container .public-transport-title,
|
|
142
|
+
.trek-detail-container .advice-title,
|
|
143
|
+
.trek-detail-container .advised-parking-title,
|
|
144
|
+
.trek-detail-container .gear-title,
|
|
86
145
|
.trek-detail-container .pois-title,
|
|
87
146
|
.trek-detail-container .sensitive-areas-title,
|
|
88
|
-
.trek-detail-container .information-desks-title
|
|
147
|
+
.trek-detail-container .information-desks-title,
|
|
148
|
+
.trek-detail-container .source-title,
|
|
149
|
+
.trek-detail-container .accessibilities-title {
|
|
89
150
|
color: var(--color-primary);
|
|
90
151
|
font-size: 36px;
|
|
91
152
|
font-weight: bold;
|
|
92
|
-
|
|
153
|
+
margin: 12px 0px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.label-container .label-sub-container {
|
|
157
|
+
display: flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
}
|
|
160
|
+
.label-container .label-sub-container img {
|
|
161
|
+
width: 26px;
|
|
162
|
+
margin-right: 16px;
|
|
163
|
+
}
|
|
164
|
+
.label-container .label-sub-container .label-name {
|
|
165
|
+
color: var(--color-primary);
|
|
166
|
+
font-size: 24px;
|
|
167
|
+
font-weight: bold;
|
|
168
|
+
padding: 12px 0px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.source-container .source-sub-container {
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
}
|
|
175
|
+
.source-container .source-sub-container img {
|
|
176
|
+
width: 26px;
|
|
177
|
+
margin-right: 16px;
|
|
178
|
+
}
|
|
179
|
+
.source-container .source-sub-container .source-name {
|
|
180
|
+
color: var(--color-primary);
|
|
181
|
+
font-size: 24px;
|
|
182
|
+
font-weight: bold;
|
|
183
|
+
padding: 12px 0px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.departure-container,
|
|
187
|
+
.arrival-container {
|
|
188
|
+
display: flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
padding: 0px 24px 24px 24px;
|
|
191
|
+
}
|
|
192
|
+
.departure-container .departure-title,
|
|
193
|
+
.departure-container .arrival-title,
|
|
194
|
+
.arrival-container .departure-title,
|
|
195
|
+
.arrival-container .arrival-title {
|
|
196
|
+
color: var(--color-primary);
|
|
197
|
+
font-weight: bold;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.accessibilities-container .accessibilities-content-container {
|
|
201
|
+
padding: 12px 0px 0px 0px;
|
|
202
|
+
display: flex;
|
|
203
|
+
}
|
|
204
|
+
.accessibilities-container .accessibilities-content-container .accessibility-content-container {
|
|
205
|
+
display: flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
margin: 0px 8px 8px 0px;
|
|
208
|
+
}
|
|
209
|
+
.accessibilities-container .accessibilities-content-container .accessibility-content-container img {
|
|
210
|
+
margin-right: 16px;
|
|
211
|
+
width: 26px;
|
|
212
|
+
}
|
|
213
|
+
.accessibilities-container .accessibility-level-title,
|
|
214
|
+
.accessibilities-container .accessibility-slope-title,
|
|
215
|
+
.accessibilities-container .accessibility-width-title,
|
|
216
|
+
.accessibilities-container .accessibility-signage-title,
|
|
217
|
+
.accessibilities-container .accessibility-covering-title,
|
|
218
|
+
.accessibilities-container .accessibility-exposure-title,
|
|
219
|
+
.accessibilities-container .accessibility-advice-title {
|
|
220
|
+
color: var(--color-primary);
|
|
221
|
+
font-size: 24px;
|
|
222
|
+
padding: 12px 0px;
|
|
93
223
|
}
|
|
@@ -16,6 +16,11 @@ export class GrwTrekDetail {
|
|
|
16
16
|
this.difficulty = state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty);
|
|
17
17
|
this.route = state.routes.find(route => route.id === this.currentTrek.route);
|
|
18
18
|
this.practice = state.practices.find(practice => practice.id === this.currentTrek.practice);
|
|
19
|
+
this.themes = state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));
|
|
20
|
+
this.labels = state.labels.filter(label => this.currentTrek.labels.includes(label.id));
|
|
21
|
+
this.sources = state.sources.filter(source => this.currentTrek.source.includes(source.id));
|
|
22
|
+
this.accessibilities = state.accessibilities.filter(accessibility => this.currentTrek.accessibilities.includes(accessibility.id));
|
|
23
|
+
this.accessibilityLevel = state.accessibilitiesLevel.find(accessibilityLevel => this.currentTrek.accessibility_level === accessibilityLevel.id);
|
|
19
24
|
}
|
|
20
25
|
onChange('currentTrek', () => {
|
|
21
26
|
this.currentTrek = this.trek ? this.trek : state.currentTrek;
|
|
@@ -23,6 +28,9 @@ export class GrwTrekDetail {
|
|
|
23
28
|
this.difficulty = state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty);
|
|
24
29
|
this.route = state.routes.find(route => route.id === this.currentTrek.route);
|
|
25
30
|
this.practice = state.practices.find(practice => practice.id === this.currentTrek.practice);
|
|
31
|
+
this.themes = state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));
|
|
32
|
+
this.labels = state.labels.filter(label => this.currentTrek.labels.includes(label.id));
|
|
33
|
+
this.sources = state.sources.filter(source => this.currentTrek.source.includes(source.id));
|
|
26
34
|
}
|
|
27
35
|
});
|
|
28
36
|
}
|
|
@@ -59,16 +67,92 @@ export class GrwTrekDetail {
|
|
|
59
67
|
h("a", { href: `${this.currentTrek.gpx}` }, "GPX"),
|
|
60
68
|
h("a", { href: `${this.currentTrek.kml}` }, "KML"),
|
|
61
69
|
h("a", { href: `${this.currentTrek.pdf}` }, "PDF"))),
|
|
62
|
-
h("div", { class: "
|
|
70
|
+
this.themes.length > 0 && (h("div", { class: "themes-container" }, this.themes.map(theme => (h("div", { class: "theme" }, theme.label))))),
|
|
71
|
+
this.currentTrek.description_teaser && h("div", { class: "description-teaser", innerHTML: this.currentTrek.description_teaser }),
|
|
72
|
+
this.currentTrek.ambiance && h("div", { class: "ambiance", innerHTML: this.currentTrek.ambiance }),
|
|
73
|
+
this.currentTrek.description && (h("div", { class: "description-container" },
|
|
74
|
+
h("div", { class: "description-title" }, "Description"),
|
|
75
|
+
h("div", { class: "description", innerHTML: this.currentTrek.description }))),
|
|
76
|
+
this.currentTrek.departure && (h("div", { class: "departure-container" },
|
|
77
|
+
h("div", { class: "departure-title" }, "D\u00E9part :\u00A0"),
|
|
78
|
+
h("div", { innerHTML: this.currentTrek.departure }))),
|
|
79
|
+
this.currentTrek.arrival && (h("div", { class: "arrival-container" },
|
|
80
|
+
h("div", { class: "arrival-title" }, "Arriv\u00E9e :\u00A0"),
|
|
81
|
+
h("div", { innerHTML: this.currentTrek.arrival }))),
|
|
82
|
+
this.currentTrek.altimetric_profile && (h("div", { class: "altimetric-profile-container" },
|
|
83
|
+
h("div", { class: "altimetric-profile-title" }, "Profil altim\u00E9trique"),
|
|
84
|
+
h("img", { src: this.currentTrek.altimetric_profile }))),
|
|
85
|
+
this.currentTrek.access && (h("div", { class: "access-container" },
|
|
86
|
+
h("div", { class: "access-title" }, "Acc\u00E8s routier"),
|
|
87
|
+
h("div", { class: "access", innerHTML: this.currentTrek.access }))),
|
|
88
|
+
this.currentTrek.public_transport && (h("div", { class: "public-transport-container" },
|
|
89
|
+
h("div", { class: "public-transport-title" }, "Transport"),
|
|
90
|
+
h("div", { class: "public-transport", innerHTML: this.currentTrek.public_transport }))),
|
|
91
|
+
(this.currentTrek.advice || this.labels.length > 0) && (h("div", { class: "advice-container" },
|
|
92
|
+
h("div", { class: "advice-title" }, "Recommandations"),
|
|
93
|
+
this.currentTrek.advice && h("div", { class: "advice", innerHTML: this.currentTrek.advice }),
|
|
94
|
+
this.labels.map(label => (h("div", { class: "label-container" },
|
|
95
|
+
h("div", { class: "label-sub-container" },
|
|
96
|
+
label.pictogram && h("img", { src: label.pictogram }),
|
|
97
|
+
h("div", { class: "label-name", innerHTML: label.name })),
|
|
98
|
+
h("div", { class: "label-advice", innerHTML: label.advice })))))),
|
|
99
|
+
this.currentTrek.advised_parking && (h("div", { class: "advised-parking-container" },
|
|
100
|
+
h("div", { class: "advised-parking-title" }, "Parking conseill\u00E9"),
|
|
101
|
+
h("div", { class: "advised_parking", innerHTML: this.currentTrek.advised_parking }))),
|
|
102
|
+
this.currentTrek.gear && (h("div", { class: "gear-container" },
|
|
103
|
+
h("div", { class: "gear-title" }, "\u00C9quipements"),
|
|
104
|
+
h("div", { class: "gear", innerHTML: this.currentTrek.gear }))),
|
|
63
105
|
state.currentSensitiveAreas && state.currentSensitiveAreas.length > 0 && (h("div", { class: "sensitive-areas-container" },
|
|
64
|
-
h("div", { class: "sensitive-areas-title" }, "Zones
|
|
106
|
+
h("div", { class: "sensitive-areas-title" }, "Zones de sensibilit\u00E9 environnementale"),
|
|
65
107
|
state.currentSensitiveAreas.map(sensitiveArea => (h("grw-sensitive-area-detail", { sensitiveArea: sensitiveArea }))))),
|
|
66
108
|
state.currentInformationDesks && state.currentInformationDesks.length > 0 && (h("div", { class: "information-desks-container" },
|
|
67
109
|
h("div", { class: "information-desks-title" }, "Lieux de renseignement"),
|
|
68
110
|
state.currentInformationDesks.map(informationDesk => (h("grw-information-desk-detail", { informationDesk: informationDesk }))))),
|
|
111
|
+
(this.currentTrek.disabled_infrastructure ||
|
|
112
|
+
(this.accessibilities && this.accessibilities.length > 0) ||
|
|
113
|
+
this.currentTrek.accessibility_level ||
|
|
114
|
+
this.currentTrek.accessibility_slope ||
|
|
115
|
+
this.currentTrek.accessibility_width ||
|
|
116
|
+
this.currentTrek.accessibility_signage ||
|
|
117
|
+
this.currentTrek.accessibility_covering ||
|
|
118
|
+
this.currentTrek.accessibility_exposure ||
|
|
119
|
+
this.currentTrek.accessibility_advice) && (h("div", { class: "accessibilities-container" },
|
|
120
|
+
h("div", { class: "accessibilities-title" }, "Accessibilit\u00E9"),
|
|
121
|
+
this.currentTrek.disabled_infrastructure && h("div", { innerHTML: this.currentTrek.disabled_infrastructure }),
|
|
122
|
+
h("div", { class: "accessibilities-content-container" }, this.accessibilities.map(accessibility => (h("div", { class: "accessibility-content-container" },
|
|
123
|
+
h("img", { src: accessibility.pictogram }),
|
|
124
|
+
h("div", { innerHTML: accessibility.name }))))),
|
|
125
|
+
this.currentTrek.accessibility_level && (h("div", { class: "accessibility-level-container" },
|
|
126
|
+
h("div", { class: "accessibility-level-title" }, "Niveau d'accessibilit\u00E9"),
|
|
127
|
+
h("div", { innerHTML: this.accessibilityLevel.name }))),
|
|
128
|
+
this.currentTrek.accessibility_slope && (h("div", { class: "accessibility-slope-container" },
|
|
129
|
+
h("div", { class: "accessibility-slope-title" }, "Pente"),
|
|
130
|
+
h("div", { innerHTML: this.currentTrek.accessibility_slope }))),
|
|
131
|
+
this.currentTrek.accessibility_width && (h("div", { class: "accessibility-width-container" },
|
|
132
|
+
h("div", { class: "accessibility-width-title" }, "Largeur"),
|
|
133
|
+
h("div", { innerHTML: this.currentTrek.accessibility_width }))),
|
|
134
|
+
this.currentTrek.accessibility_signage && (h("div", { class: "accessibility-signage-container" },
|
|
135
|
+
h("div", { class: "accessibility-signage-title" }, "Pente"),
|
|
136
|
+
h("div", { innerHTML: this.currentTrek.accessibility_signage }))),
|
|
137
|
+
this.currentTrek.accessibility_covering && (h("div", { class: "accessibility-covering-container" },
|
|
138
|
+
h("div", { class: "accessibility-covering-title" }, "Rev\u00EAtement"),
|
|
139
|
+
h("div", { innerHTML: this.currentTrek.accessibility_covering }))),
|
|
140
|
+
this.currentTrek.accessibility_exposure && (h("div", { class: "accessibility-exposure-container" },
|
|
141
|
+
h("div", { class: "accessibility-exposure-title" }, "Exposition"),
|
|
142
|
+
h("div", { innerHTML: this.currentTrek.accessibility_exposure }))),
|
|
143
|
+
this.currentTrek.accessibility_advice && (h("div", { class: "accessibility-advice-container" },
|
|
144
|
+
h("div", { class: "accessibility-advice-title" }, "Conseils"),
|
|
145
|
+
h("div", { innerHTML: this.currentTrek.accessibility_advice }))))),
|
|
69
146
|
state.currentPois && state.currentPois.length > 0 && (h("div", { class: "pois-container" },
|
|
70
147
|
h("div", { class: "pois-title" }, "Points d'int\u00E9r\u00EAts"),
|
|
71
|
-
state.currentPois.map(poi => (h("grw-poi-detail", { poi: poi })))))
|
|
148
|
+
state.currentPois.map(poi => (h("grw-poi-detail", { poi: poi }))))),
|
|
149
|
+
this.currentTrek.source && this.currentTrek.source.length > 0 && (h("div", { class: "source-container" },
|
|
150
|
+
h("div", { class: "source-title" }, "Sources"),
|
|
151
|
+
this.sources.map(source => (h("div", { class: "source-sub-container" },
|
|
152
|
+
source.pictogram && h("img", { src: source.pictogram }),
|
|
153
|
+
h("div", null,
|
|
154
|
+
h("div", { class: "source-name", innerHTML: source.name }),
|
|
155
|
+
h("a", { class: "source-advice", innerHTML: source.website })))))))))));
|
|
72
156
|
}
|
|
73
157
|
static get is() { return "grw-trek-detail"; }
|
|
74
158
|
static get encapsulation() { return "shadow"; }
|
|
@@ -84,7 +168,7 @@ export class GrwTrekDetail {
|
|
|
84
168
|
"mutable": false,
|
|
85
169
|
"complexType": {
|
|
86
170
|
"original": "Trek",
|
|
87
|
-
"resolved": "{ id: number; name: string; attachments: Attachments; description?: string; description_teaser: string; difficulty: number; route: number; practice: number; duration: number; length_2d: number; ascent: number; geometry?: LineString; departure_geom?: Position; gpx?: string; kml?: string; pdf?: string; parking_location?: Position; }",
|
|
171
|
+
"resolved": "{ id: number; name: string; attachments: Attachments; description?: string; description_teaser: string; difficulty: number; route: number; practice: number; themes: number[]; duration: number; length_2d: number; ascent: number; departure: string; arrival?: string; altimetric_profile?: string; geometry?: LineString; departure_geom?: Position; gpx?: string; kml?: string; pdf?: string; parking_location?: Position; ambiance?: string; access?: string; public_transport?: string; advice?: string; advised_parking?: string; gear?: string; labels?: number[]; points_reference?: MultiPoint; source?: number[]; structure?: number; disabled_infrastructure?: string; accessibilities?: number[]; accessibility_level?: number; accessibility_slope?: string; accessibility_width?: string; accessibility_signage?: string; accessibility_covering?: string; accessibility_exposure?: string; accessibility_advice?: string; }",
|
|
88
172
|
"references": {
|
|
89
173
|
"Trek": {
|
|
90
174
|
"location": "import",
|
|
@@ -155,9 +239,14 @@ export class GrwTrekDetail {
|
|
|
155
239
|
}
|
|
156
240
|
}; }
|
|
157
241
|
static get states() { return {
|
|
158
|
-
"currentTrek": {},
|
|
159
242
|
"difficulty": {},
|
|
160
243
|
"route": {},
|
|
161
|
-
"practice": {}
|
|
244
|
+
"practice": {},
|
|
245
|
+
"themes": {},
|
|
246
|
+
"labels": {},
|
|
247
|
+
"sources": {},
|
|
248
|
+
"accessibilities": {},
|
|
249
|
+
"accessibilityLevel": {},
|
|
250
|
+
"currentTrek": {}
|
|
162
251
|
}; }
|
|
163
252
|
}
|
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
font-family: "Roboto";
|
|
3
|
-
|
|
4
|
-
flex-wrap: wrap;
|
|
5
|
-
justify-content: space-around;
|
|
3
|
+
width: 100%;
|
|
6
4
|
height: 100%;
|
|
7
5
|
max-height: 100vh;
|
|
8
6
|
overflow-y: auto;
|
|
9
7
|
}
|
|
10
8
|
|
|
9
|
+
.current-treks-length {
|
|
10
|
+
width: 100%;
|
|
11
|
+
text-align: center;
|
|
12
|
+
padding: 32px 0px;
|
|
13
|
+
color: var(--color-primary);
|
|
14
|
+
font-size: 24px;
|
|
15
|
+
font-weight: bold;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.current-treks-container {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
justify-content: space-around;
|
|
22
|
+
}
|
|
23
|
+
|
|
11
24
|
grw-trek-card {
|
|
12
25
|
margin: 6px;
|
|
13
26
|
}
|