Reader small image

You're reading from  Full Stack Web Development with Raspberry Pi 3

Product typeBook
Published inAug 2017
Reading LevelExpert
PublisherPackt
ISBN-139781788295895
Edition1st Edition
Languages
Right arrow
Author (1)
Soham Kamani
Soham Kamani
author image
Soham Kamani

Soham Kamani is a full-stack developer who has extensive experience in the JavaScript ecosystem. He works as a consultant, developing end-to-end web-based solutions for clients around the world. He is an open source enthusiast and an avid blogger. He has worked on many frameworks and technologies such as React, Angular, Node, Express, Sails, SQLite, Postgres, and MySQL, and he has worked on many projects in the IoT space using Arduino and Raspberry Pi systems.
Read more about Soham Kamani

Right arrow

Visually enhancing the UI

Our UI works, and we have async XHR calls going for us, but it still feels like something is missing, probably because our UI just looks very plain:

In this section, we will use HTML and CSS to make it look a lot better. We will also establish a layout structure that we can then use through out the next chapters as well.

When deciding a layout for the applications UI, it's always better to make a rough structure before you jump into coding:

Our overall application will have a title bar and two displays to display the temperature and humidity.

We can drill-down into the details of each display:

  • We want each sensor display to show the physical quantity that it is measuring, its value, and its unit.
  • We want to emphasize the value of the reading more than anything else, so we make it the largest.
    • The quantity and unit are more or less fixed and...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Full Stack Web Development with Raspberry Pi 3
Published in: Aug 2017Publisher: PacktISBN-13: 9781788295895

Author (1)

author image
Soham Kamani

Soham Kamani is a full-stack developer who has extensive experience in the JavaScript ecosystem. He works as a consultant, developing end-to-end web-based solutions for clients around the world. He is an open source enthusiast and an avid blogger. He has worked on many frameworks and technologies such as React, Angular, Node, Express, Sails, SQLite, Postgres, and MySQL, and he has worked on many projects in the IoT space using Arduino and Raspberry Pi systems.
Read more about Soham Kamani