Book Image

Creating Interfaces with Bulma

By : Jeremy Thomas, Oleksii Potiekhin, Mikko Lauhakari, Aslam Shah, Dave Berning
Book Image

Creating Interfaces with Bulma

By: Jeremy Thomas, Oleksii Potiekhin, Mikko Lauhakari, Aslam Shah, Dave Berning

Overview of this book

Bulma is a lightweight configurable CSS framework that handles all the hard work of Flexbox for you. Bulma makes creating web interfaces an easy and interesting job. This book begins with an overview of the basics of Bulma ? its terms and its concepts. Then, while designing a login page for your application, you’ll learn how to use the various tools provided by Bulma to create HTML forms and control their layout and flow. In the later chapters, you’ll design an admin area for your application, thus learning to use Bulma’s navigation and menu components. You will also add the components to your user interface for common things such as boxes, lists, and media groups, and then create pagination. As you progress through the book, you’ll create and layout some other components for your interface, including tables, design dropdown lists, and finally to integrate your web application with JavaScript. By the end of this book, you’ll be able to use the features of Bulma to your advantage and build web interfaces quickly and easily.
Table of Contents (15 chapters)
8
8. Creating more tables and selecting dropdowns

Implementing the form’s content

The login form will be built with four fields:

  • An email input
  • A password input
  • A “Remember me” checkbox
  • A “Login” submit button

You will add a placeholder and a required attribute to some of the fields, which handle form errors, so you can display to the user why they failed to login.

Logo

To reassure the user that they are indeed logging into the correct website, add a logo first. Replace the “Login” text you’ve had so far with your first field:

<form class="box">
  <div class="field has-text-centered">
    <img src="images/logo-bis.png" width="167">
  </div>
</form>

Logo

Note: Make sure the images folder is alongside your login.html file.

Files

Bulma provides a field class that allows each form field to be spaced evenly. It also comes with helper classes like has-text-centered to center text and inline elements.

Email input

For...