Get Bootstrap: http://getbootstrap.com/
Good getting started resources
I used this site to get MySQL authenication working with Bootstrap for the UI.
http://www.wikihow.com/Create-a-Secure-Login-Script-in-PHP-and-MySQL
PHP Manual on using MySQLi in a prepared statement which is more secure.
http://php.net/manual/en/mysqli.prepare.php
Guide to making nice looking tables with rounded corners
http://www.red-team-design.com/practical-css3-tables-with-rounded-corners
List of Bootstrap components including a library of font icons
http://getbootstrap.com/components/
Quick and easy button generator
http://charliepark.org/bootstrap_buttons/
CSS gradient generator
http://www.colorzilla.com/gradient-editor/
Bootstrap Theme designer
http://www.bootstrapthemeroller.com/twitter-bootstrap-themeroller.html
Bootstrap docs with more info
http://bootstrapdocs.com/v2.3.1/docs/base-css.html
Here is a site with a jquery autocomplete example that I have yet to try
http://www.pontikis.net/blog/jquery-ui-autocomplete-step-by-step
Screenshots
Login Page - Remember me not implemented yet. |
Navbar and Admin menu |
Main page after login |
Here is a animated gif of the LED status button. The Arduino Mega is running ROS_Arduino_Bridge that connects with a python program on the BBB that handles the subscriptions and publishing of data to the ROS stack. This makes the functions of the Arduino globally accessible within the ROS stack without any special code or modifications.
The user page was the hardest to get working. But now I can add, delete and even edit users. For the edit user function I am using the Bootstrap modal shown below.
I plan on changing the colors but this gives an idea of what is possible with not too much effort. Bootstrap really simplifies the UI design while keeping a modern look. To get the modal to load the user you clicked on I had to use some JQuery to modify the value of the textbox based on the ID of the button you clicked which is linked to the user id.
This site is a huge improvement over the ASPX one I had created previously which was dependent on Windows and IIS. This site can run on Linux or Windows\IIS with MySQL which can run on either. Once development is done on the website I will move it to the BBB so that the robot is self contained.
LED Status using websockets |
Add, edit, delete users |
Edit user modal |
This site is a huge improvement over the ASPX one I had created previously which was dependent on Windows and IIS. This site can run on Linux or Windows\IIS with MySQL which can run on either. Once development is done on the website I will move it to the BBB so that the robot is self contained.
No comments:
Post a Comment