-
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.
Merge pull request #139 from GeotrekCE/mfu-improve-doc
[Documentation] Add doc about theme, outdoor and list of components
- Loading branch information
Showing
22 changed files
with
288 additions
and
14 deletions.
There are no files selected for viewing
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,89 @@ | ||
# Vue détaillée d'un contenu outdoor | ||
|
||
La vue détaillée est composée de deux parties : | ||
|
||
- La fiche détaillée à gauche | ||
- La carte à droite | ||
|
||
## Fonctionnalités générales de la vue détaillée | ||
|
||
- Défilement de plusieurs images sous la forme d'un carrousel | ||
- Affichage de l’ensemble des communes traversées par le site outdoor | ||
- Liens vers les parcours outdoor associés | ||
- Liens vers les contenus touristiques associés (services et évènements) | ||
|
||
## Fiche détaillée d'un site outdoor | ||
|
||
La fiche détaillée d'un site outdoor comporte plusieurs sections intéragissant dynamiquement avec la carte. | ||
|
||
### Section "Présentation" | ||
|
||
La section "Présentation" est constituée : | ||
|
||
- de la vignette avec la liste des thèmes associés (Faune, Flore, Patrimoine historique, etc.) | ||
- de la pratique, l'orientation du vent, la saison de pratique, les cotations et la difficulté | ||
- des boutons de téléchargement de la fiche d'un site au format PDF | ||
- du chapeau (bref résumé) et de l'ambiance (attractions principales et intérêts) du site outdoor | ||
|
||
<center> | ||
<a title="Fiche détail d'un site outdoor"><img src="/components/detail_outdoor.jpg" alt="Fiche détail d'un site outdoor"></a> | ||
</center> | ||
|
||
### Section "Description" | ||
|
||
Cette section comporte une description technique pas à pas du site. | ||
|
||
<center> | ||
<a title="Fiche détail d'un site outdoor - section Description"><img src="/components/detail_outdoor_description.jpg" alt="Fiche détail d'un site outdoor - section Description"></a> | ||
</center> | ||
|
||
### Section "Patrimoines" | ||
|
||
Sur la vue détaillée d’un site outdoor, l'affichage des POIs a été optimisé de façon à rendre leur utilisation plus intuitive : | ||
|
||
- Affichage d'un bouton « Lire plus » pour dévoiler la totalité de la description présente dans la vignette | ||
- Possibilité d’afficher plusieurs images par POI dans un carrousel | ||
- Affichage de l’icône de la catégorie du POI sur sa vignette (faune, flore, patrimoine, équipements…) | ||
|
||
::: info | ||
Les pictogrammes des POIs s'affichent sur la carte lorsque l'utilisateur arrive sur cette section. | ||
::: | ||
|
||
En plus d'afficher les vignettes des éléments de patrimoines (POIs) situés à proximités du site (rayon de 500m par défaut), la section "Patrimoine", peut présenter des informations complémentaires comme : | ||
|
||
- le widget Météo France | ||
- Les accès routiers et parkings | ||
- Les transports en commun pour venir | ||
|
||
#### Paramétrage du widget Météo France | ||
|
||
```html | ||
<grw-app weather="true"></grw-app> | ||
``` | ||
|
||
### Sections "Recommandations" et "Lieux d'informations" | ||
|
||
La section "Recommandations" présente les recommandations sur les risques, danger ou meilleure période pour pratiquer l’itinéraire, ainsi que tout autre élément d'information utile à connaître. | ||
|
||
La section "Lieux d'informations" présente les lieux de renseignement (office du tourisme, bureau d'information, etc.) sous forme de vignettes. | ||
|
||
::: info | ||
En cliquant sur le bouton "Centrer sur la carte", la carte est zoomée sur le lieu en question. | ||
::: | ||
|
||
<center> | ||
<a title="Fiche détail d'un site outdoor - section Recommandations et Lieux d'informations"><img src="/components/detail_outdoor_informationdesk.jpg" alt="Fiche détail d'un site outdoor - section Recommandations et Lieux d'informations"></a> | ||
</center> | ||
|
||
### Sections "Accessibilité" et "A proximité" | ||
|
||
La section "Accessibilité" permet d'afficher les informations relatives à l'accessibilité (aménagements, pente, revêtements, exposition, etc.). | ||
|
||
La section "A proximité" présente les services à proximité du site (rayon de 500m par défaut). | ||
|
||
Une section complémentaire "En savoir plus" peut être affichée si le champ `source` est renseigné dans **Geotrek-admin** . | ||
|
||
::: info | ||
Les pictogrammes des services s'affichent sur la carte lorsque l'utilisateur arrive sur cette section. | ||
::: | ||
|
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
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
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
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,13 +1,142 @@ | ||
# Langues | ||
--- | ||
head: | ||
- - script | ||
- defer: true | ||
nomodule: true | ||
src: https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/geotrek-rando-widget.js | ||
- - script | ||
- defer: true | ||
type: module | ||
src: https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js | ||
- - link | ||
- href: https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/geotrek-rando-widget.css | ||
rel: stylesheet | ||
- - link | ||
- href: https://fonts.googleapis.com | ||
rel: preconnect | ||
- - link | ||
- href: https://fonts.gstatic.com | ||
rel: preconnect | ||
crossorigin: anonymous | ||
- - link | ||
- href: https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap | ||
rel: stylesheet | ||
--- | ||
|
||
Geotrek-rando-widget offre la possibilité de basculer d'une langue à l'autre via un bouton dédié dans le haut de la page si les randonnées sont traduites dans d'autres langages. | ||
# Paramètres supplémentaires | ||
|
||
## Paramétrer plusieurs langues | ||
Les paramètres `rounded` et `font-family` sont les deux seuls paramètres associés au thème mais qui ne concernent pas les couleurs. | ||
|
||
## Les bordures | ||
|
||
### Code | ||
|
||
Pour afficher une bordure arrondie dans le widget, il faut que la balise `grw-app` embarque le paramètre suivant à `true` : | ||
|
||
```html | ||
<grw-app rounded="true"></grw-app> | ||
``` | ||
|
||
**Voici un exemple de code complet :** | ||
|
||
```html | ||
<div> | ||
<grw-app | ||
app-width="100%" | ||
app-height="100vh" | ||
api="https://geotrek-admin.portcros-parcnational.fr/api/v2/" | ||
languages="fr" | ||
name-layer="IGN,OpenStreetMap" | ||
url-layer="https://data.geopf.fr/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2&STYLE=normal&FORMAT=image/png&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x},https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" | ||
attribution-layer="<a target='_blank' href='https://ign.fr/'>IGN</a>,OpenStreetMap" | ||
weather="true" | ||
treks="true" | ||
rounded="true" | ||
></grw-app> | ||
</div> | ||
``` | ||
|
||
## La police de caractère | ||
|
||
Par défaut la police de caractère utilisée est `Roboto`. Il est possible d'en utiliser une autre. | ||
|
||
Voici un exemple de configuration de police de caractère avec [Google Font](https://fonts.google.com/). | ||
|
||
### Code | ||
|
||
Pour paramétrer une nouvelle police, il faut que la balise `grw-app` embarque le paramètre suivant en précisant son nom : | ||
|
||
```html | ||
<grw-app font-family="Comic Neue"></grw-app> | ||
``` | ||
|
||
1. Rechercher le nom de la police souhaitée sur Google Font. | ||
Exemple : https://fonts.google.com/specimen/Comic+Neue?query=comic+neue | ||
|
||
2. Cliquer sur le bouton "Get font", puis "Get embed code" | ||
|
||
3. Copier les trois lignes de codes générées dans la balise `<head>` du fichier HTML | ||
|
||
```html | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link href="https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet" /> | ||
``` | ||
|
||
**Voici un exemple de code complet :** | ||
|
||
```html | ||
<grw-app languages="fr,en"></grw-app> | ||
<html dir="ltr" lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" /> | ||
<title>pnrlat</title> | ||
<link rel="stylesheet" href="https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/geotrek-rando-widget.css" /> | ||
<script type="module" src="https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js"></script> | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link href="https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet" /> | ||
<script nomodule src="https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/geotrek-rando-widget.js"></script> | ||
<style> | ||
body { | ||
margin: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div style="width: 100vw; height: 100vh"> | ||
<grw-app | ||
app-width="100%" | ||
app-height="100vh" | ||
api="https://geotrek-admin.portcros-parcnational.fr/api/v2/" | ||
languages="fr" | ||
name-layer="IGN,OpenStreetMap" | ||
url-layer="https://data.geopf.fr/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2&STYLE=normal&FORMAT=image/png&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x},https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" | ||
attribution-layer="<a target='_blank' href='https://ign.fr/'>IGN</a>,OpenStreetMap" | ||
treks="true" | ||
rounded="true" | ||
font-family="Comic Neue" | ||
></grw-app> | ||
</div> | ||
</body> | ||
</html> | ||
``` | ||
|
||
Actuellement seul l'anglais est prévu par défaut dans le widget, en plus du français. | ||
### Exemple de widget utilisant la police Comic Neue | ||
|
||
Pour proposer les contenus dans une autre langue, il faut ajouter son code [ISO 639-1](https://fr.wikipedia.org/wiki/Liste_des_codes_ISO_639-1) à deux lettres (exemple : _es_, _it_, _de_) à la liste `interface AvailableTranslations` et traduire les paramètres dans le fichier _src/i18n/i18n.ts_ comme cela a été fait pour l'anglais [ici](https://github.com/GeotrekCE/Geotrek-rando-widget/blob/main/src/i18n/i18n.ts#L211). | ||
<ClientOnly> | ||
<div> | ||
<grw-app | ||
app-width="100%" | ||
app-height="100vh" | ||
api="https://geotrek-admin.portcros-parcnational.fr/api/v2/" | ||
languages="fr" | ||
name-layer="IGN,OpenStreetMap" | ||
url-layer="https://data.geopf.fr/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2&STYLE=normal&FORMAT=image/png&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x},https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" | ||
attribution-layer="<a target='_blank' href='https://ign.fr/'>IGN</a>,OpenStreetMap" | ||
treks="true" | ||
rounded="true" | ||
font-family="Comic Neue" | ||
></grw-app> | ||
</div> | ||
</ClientOnly> |
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.
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,5 +1,7 @@ | ||
# grw-app | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
|
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,4 +1,4 @@ | ||
# grw-information-desk-detail | ||
# grw-information-desk | ||
|
||
|
||
|
||
|
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,5 +1,7 @@ | ||
# grw-map | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
|
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,4 +1,4 @@ | ||
# grw-poi-detail | ||
# grw-poi | ||
|
||
|
||
|
||
|
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,4 +1,4 @@ | ||
# grw-sensitive-area | ||
# grw-sensitive-area-detail | ||
|
||
|
||
|
||
|
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,5 +1,7 @@ | ||
# grw-touristic-content-card | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
|
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,4 +1,6 @@ | ||
# grw-touristic-content-card-detail | ||
# grw-touristic-content-detail | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
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,4 +1,6 @@ | ||
# grw-treks-list | ||
# grw-touristic-contents-list | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
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,5 +1,7 @@ | ||
# grw-touristic-event-card | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
|
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,4 +1,6 @@ | ||
# grw-touristic-content-card-detail | ||
# grw-touristic-event-detail | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
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,4 +1,6 @@ | ||
# grw-treks-list | ||
# grw-touristic-events-list | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
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,5 +1,7 @@ | ||
# grw-trek-detail | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
|
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,5 +1,7 @@ | ||
# grw-treks-list | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
|