A simple React application for managing sticky notes with draggable, resizable, and pinning features.
Live Demo: Sticky Notes App
- Draggable Notes: Move your notes freely around the board.
- Resizable Notes: Resize the notes by adjusting the text area.
- Add New Notes: Click on the "+" button to create a new note.
- Delete Notes: Click on the "x" button to remove a note.
- Edit Notes: Click on the "Edit" button to start editing the note text.
- Pin Notes: Pin a note to make it non-draggable and prevent overlapping.
-
Clone the repository:
git clone https://github.com/your-username/sticky-notes-app.git
-
Navigate to the project directory:
cd sticky-notes-app
-
Install dependencies:
npm install
```
npm start
```
Visit http://localhost:3000 in your browser to use the Sticky Notes App.
The main board component that renders the Sticky Notes.
addNote(): Adds a new note to the board.
removeNote(): Removes a note from the board.
handleNoteDragEnd(): Handles the drag end event for a note.
handleNoteDrag(): Handles the drag event for a note.
The individual sticky note component.
handleEditClick(): Moves the cursor to the beginning of the note text.
handleMouseDown(): Handles the mouse down event for dragging.
handleMouseMove(): Handles the mouse move event for dragging within bounds.
handleMouseUp(): Handles the mouse up event for ending dragging.