Skip to content

Commit

Permalink
fix: #16 add icon on map
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurBeaulieu committed Jan 23, 2024
1 parent f3778e5 commit 7ad07f6
Show file tree
Hide file tree
Showing 33 changed files with 2,010 additions and 375 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MesseMap

![](https://badgen.net/badge/version/1.0.3/blue)
![](https://badgen.net/badge/version/1.1.0/blue)
[![License](https://img.shields.io/github/license/MesseBasseProduction/MesseMap.svg)](https://github.com/MesseBasseProduction/MesseMap/blob/main/LICENSE)
[![Doc](https://badgen.net/badge/documentation/written/green)](https://messebasseproduction.github.io/MesseMap/doc/index.html)

Expand All @@ -10,7 +10,7 @@ It features 7 poster styles so far, that can all be customized (positioning, col

Wanna try it ? We are running a [MesseMap instance](https://messemap.org) just for you!

[![Interface Screenshot](/assets/img/demo.png)](https://messemap.org)
[![Interface Screenshot](/assets/img/demo/demo.png)](https://messemap.org)

When exporting the map to disk the user can set the output dimension, the lowest resolution being A7 at 300 dpi (600 x 848) and the highest being A2 at 300 dpi (6500 x 9193). The user can also set the output format, between `.png`, `.jpg`, `.webp` and `.pdf` (exports in PDF are done in the CYMK color space so they're ready to print).

Expand Down Expand Up @@ -42,4 +42,4 @@ Fonts are taken from DaFont, using [Catamaran](https://www.dafont.com/catamaran.

---

[Messe Basse Production](https://github.com/MesseBasseProduction) --- 2022 / 2023
[Messe Basse Production](https://github.com/MesseBasseProduction) --- 2022 / 2024
46 changes: 37 additions & 9 deletions assets/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ <h1 class="title">{{TITLE}}</h1>
<section id="scrollable-aside">
<div class="aside-content-wrapper">
<p class="aside-helper">{{HELPER}}</p>
<h1 id="toggle-orientation" data-id="toggle-orientation-container">{{ORIENTATION}}<span data-id="toggle-orientation-container" class="toggle"></span></h1>
<div id="toggle-orientation-container" class="orientation-container category expanded">
<span class="click-item selected" data-orientation="vertical">{{VERTICAL}}</span>
<span class="click-item" data-orientation="horizontal">{{HORIZONTAL}}</span>
</div>
<h1 id="toggle-style" data-id="toggle-style-container">{{STYLE}}<span data-id="toggle-style-container" class="toggle"></span></h1>
<div id="toggle-style-container" class="style-container category expanded">
<label for="dark-theme">{{MAP_STYLE}}</label>
<label for="map-orientation">{{MAP_ORIENTATION}}</label>
<div id="toggle-orientation-container" class="orientation-container">
<span class="click-item selected" data-orientation="vertical">{{VERTICAL}}</span>
<span class="click-item" data-orientation="horizontal">{{HORIZONTAL}}</span>
</div>
<label for="map-style">{{MAP_STYLE}}</label>
<div id="map-style" class="map-style">
<span class="click-item selected" data-style="standard">{{STYLE_STD}}</span>
<span class="click-item" data-style="travel">{{STYLE_TRAVEL}}</span>
Expand All @@ -88,7 +88,7 @@ <h1 id="toggle-style" data-id="toggle-style-container">{{STYLE}}<span data-id="t
<label for="dark-theme">{{DARK_THEME}}</label>
<div class="theme-input-holder">
<div id="theme-editor" class="theme-editor">
<img src="/assets/img/option.svg" height="14" width="14" alt="theme-editor-option">
<img src="/assets/img/icon/option.svg" height="14" width="14" alt="theme-editor-option">
</div>
<input type="checkbox" id="dark-theme" class="switch">
</div>
Expand Down Expand Up @@ -116,6 +116,29 @@ <h1 id="toggle-texts" data-id="toggle-texts-container">{{TEXT}}<span data-id="to
<input type="color" id="comment-color" aria-label='Comment color' class="text-edit" data-type="comment">
</div>
</div>
<h1 id="toggle-icon" data-id="toggle-icon-container">{{ICON}}<span data-id="toggle-icon-container" class="toggle"></span></h1>
<div id="toggle-icon-container" class="icon-container category expanded">
<div class="toggle-icon-wrapper">
<label for="activate-icon">{{TOGGLE_ICON}}</label>
<input type="checkbox" id="activate-icon" class="switch">
</div>
<label for="icon-size" id="icon-size-label">{{ICON_SIZE}} : 2</label>
<input type="range" id="icon-size" name="icon-size" min="1" max="16" value="2" data-size="2">
<div class="icon-color-container">
<label for="icon-color">{{ICON_COLOR}}</label>
<input type="color" value="#FFFFFF" id="icon-color" aria-label='Icon color' class="icon">
</div>
<label for="icon-images">{{ICON_IMAGE}}</label>
<div id="icon-images" class="icon-images-container">
<img src="/assets/img/icon/home.svg" class="selected" data-url="/assets/img/icon/home.svg">
<img src="/assets/img/icon/building.svg" data-url="/assets/img/icon/building.svg">
<img src="/assets/img/icon/case.svg" data-url="/assets/img/icon/case.svg">
<img src="/assets/img/icon/user.svg" data-url="/assets/img/icon/user.svg">
<img src="/assets/img/icon/star.svg" data-url="/assets/img/icon/star.svg">
<img src="/assets/img/icon/heart.svg" data-url="/assets/img/icon/heart.svg">
<img src="/assets/img/icon/pin.svg" data-url="/assets/img/icon/pin.svg">
</div>
</div>
<h1 id="toggle-export" data-id="toggle-export-container">{{EXPORT}}<span data-id="toggle-export-container" class="toggle"></span></h1>
<div id="toggle-export-container" class="export-container category expanded">
<!-- https://fr.wikipedia.org/wiki/Point_par_pouce -->
Expand Down Expand Up @@ -155,7 +178,7 @@ <h1 id="toggle-export" data-id="toggle-export-container">{{EXPORT}}<span data-id
<footer>
<button id="map-save">{{EXPORT_BUTTON}}</button>
<a href="https://messe-basse-production.com" class="mbp-link" target="_blank" rel="noopener noreferer">Messe Basse Production</a>
<p id="credit-modal" class="credit-link">2022 / 2023 – {{CREDITS}}</p>
<p id="credit-modal" class="credit-link">2022 / <span id="year-now"></span> – {{CREDITS}}</p>
</footer>
</aside>
<!-- Map view controls and poster -->
Expand All @@ -167,6 +190,8 @@ <h1 id="title"></h1>
<h2><span class="before"></span><span id="subtitle" class="subtitle"></span><span class="after"></span></h2>
<p id="comment"></p>
</div>
<div id="map-icon" class="map-icon" draggable="true">
</div>
</div>
</main>
</div>
Expand All @@ -188,6 +213,9 @@ <h1>MesseMap</h1>
<!-- Then load MesseMap Js bundle -->
<script type="text/javascript" src="/assets/dist/MesseMap.bundle.js"></script>
<!-- Finally, start MesseMap instance -->
<script type="text/javascript">window.MesseMap = new MesseMap();</script>
<script type="text/javascript">
document.getElementById('year-now').innerHTML = new Date().getFullYear();
window.MesseMap = new MesseMap();
</script>
</body>
</html>
File renamed without changes
Binary file added assets/img/demo/demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/img/icon/building.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/img/icon/case.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/img/icon/heart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions assets/img/icon/home.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions assets/img/icon/option.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions assets/img/icon/pin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/img/icon/star.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions assets/img/icon/user.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
113 changes: 0 additions & 113 deletions assets/img/option.svg

This file was deleted.

Loading

0 comments on commit 7ad07f6

Please sign in to comment.