Currently, I am in the process of developing a straightforward web UI for an embedded platform. In terms of styling the layout, I am considering using bootstrap 4 as it appears to be a suitable option. The objective is to create a one-page application without the need for any additional framework. The anticipated structure involves a fixed navbar or tabs with 4 distinct pages. The majority of these pages will feature several "cards" displaying various information. Navigation will be managed through a websocket from the embedded part.
To be more specific, I am looking for a viable method of implementing "switchable pages" using Bootstrap.
- Utilizing the hide and show function for a div
- Using hide and show functionality for a container (is this feasible?)
- Generating a page dynamically within a Javascript function
- Exploring any other potential alternatives
Given my limited experience with Javascript and web development, I would greatly appreciate any advice or suggestions on how to proceed with this project.