source: imaps-frontend/src/components/DrawGuide/DrawGuide.jsx@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[d565449]1import React, { useState } from "react";
2import styles from "./DrawGuide.module.css";
3import help_icon from "../../assets/help_icon.png";
4
5export default function DrawGuide() {
6 const [modal, setModal] = useState(false);
7
8 const toggleModal = () => {
9 setModal(!modal);
10 };
11
12 return (
13 <>
14 <button onClick={toggleModal} className={styles.btnModal}></button>
15
16 {modal && (
17 <div className={styles.modal}>
18 <div onClick={toggleModal} className={styles.overlay}></div>
19 <div className={styles.modalContent}>
20 <h2>How to Use the Map Builder</h2>
21 <p>Welcome to the Map Builder! Here you can create an indoor map, render it and enjoy!:</p>
22 <br></br>
23 <ul>
24 <h3>Shapes and Placement</h3>
25 <li>There are 4 types of shapes : Walls, Rooms, Entrances and Pins. </li>
26 <li>By clicking on a shape's respective icon, that shape will follow your mouse untill you place it by clicking anywhere on the canvas</li>
27 <li>Placed shapes automatically get snapped in place, with respect to the grid</li>
28 <li>You can place a pin on the canvas by right clicking and then left clicking - imat bug tuka nekogas direktno se postavuvaat</li>
29 <br></br>
30 <h3>Adding information</h3>
31 <li>By double clicking on any shape (except a Wall), you can add information to the shape</li>
32 <li>Every shape holds basic information like a name, and more advanced information for navigation aswell</li>
33 <br></br>
34 <li>To explore map building in detail you can check our own wiki page. TODO</li>
35 </ul>
36 <br></br>
37 <p>After completing your map, click the render button and go to the View page to see your full featured map!</p>
38
39 <button className={styles.closeModal} onClick={toggleModal}>
40 CLOSE
41 </button>
42 </div>
43 </div>
44 )}
45 </>
46 );
47}
Note: See TracBrowser for help on using the repository browser.