Skip to content

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

License

Notifications You must be signed in to change notification settings

aiiddqd/modaler

Repository files navigation

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

used 2 components from Bootstrap:

design patterns

  • modal and popup windows for site #1
  • offcanvas sidebars like Amazon Navigation or Notion #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: <a href="#modal-58490">some link</a> or <a href="#offcanvas-58490">some link</a>

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