Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aiiddqd/modaler

Popups, Modal, Offcanvas, Float Sidebars for Gutenberg based web sites, by Bootstrap CSS & Vite JS
https://github.com/aiiddqd/modaler

aside bootstrap gutenberg modal offcanvas vitejs wordpress

Last synced: about 7 hours ago
JSON representation

Popups, Modal, Offcanvas, Float Sidebars for Gutenberg based web sites, by Bootstrap CSS & Vite JS

Awesome Lists containing this project

README

        

# modaler
Popups, Modal, Offcanvas, Float Sidebars for Gutenberg based web sites, by Vite & Bootstrap

Popular design patterns.

Examples by Amazon, GitHub, Bootstrap https://github.com/uptimizt/modaler/labels/examples

![Popup, Modal & Offcanvas](/.github/demo.jpg)

# used 2 components from Bootstrap:

- Modal https://getbootstrap.com/docs/5.3/components/modal/
- Offcanvas https://getbootstrap.com/docs/5.3/components/offcanvas/

# design patterns
- modal and popup windows for site https://github.com/uptimizt/modaler/issues/1
- offcanvas sidebars like Amazon Navigation or Notion https://github.com/uptimizt/modaler/issues/2

# how it works?
## add layouts
- in menu - Modaler
- remember post id

## add shortcode
for exmple
- `[modaler a=#modal-58490]` - modal render for post id 58490
- `[modaler a=#offcanvas-58490]` - offcanvas render for post id 58490

after that, you just need add hash to any link or buttons block: `some link` or `some link`

## result

click on link or button and open content in modal or offcanvas

# roadmap

## phase 1
- MVP
- tests for some cases

## phase 2
- improve styles
- add options and hooks