Organizing and arranging content in a web app
In Chapter 4, we built the foundations of our first web application and wrote some Python code that, once executed, gives us the following result:
Figure 5.1: Chapter 5 starting point
We completed the About section, made some decorations in terms of colors, and added an icon (the so-called favicon) and a title to the web browser page.
It’s time to complete the three remaining voices of the menu: Text Analysis, Translation, and Sentiment Analysis.
Adding decorations
Before completing the three voices of the menu, however, let’s add a nice decoration to the sidebar of our web app. So, once again, open the Sublime Text editor and restart coding.
We need to add an image to the sidebar immediately after the second HTML of the title on lines 35-36 of our code. This is an easy coding task, and it is shown in the following figure:
Figure 5.2: st.sidebar.image
...