-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHome.py
54 lines (45 loc) · 1.84 KB
/
Home.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from PIL import Image
import streamlit as st
from utils import add_logo
st.set_page_config(
page_title="CQC - Home",
page_icon="img/logo.png",
layout="centered",
initial_sidebar_state="auto",
menu_items=None,
)
hide_streamlit_style = """
<style>
footer {visibility: hidden;}
</style>
"""
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
# Add logo to sidebar top
add_logo()
canteen_str = """The canteen is a type of food service location where students and faculty members dine during lunchtime.
In addition, its service entails steps like having customers stand in line, place orders, and then have the personnel deliver the food that the customer has ordered.
The customer then walks up to the counter to pay for it."""
qt_str = """Queuing Theory is one way of assessing and calculating the existing queue in a specific area.
This queuing theory calculator was made to determine the measures of performance in waiting for lines which can be used to design services and reduce its adverse impact to tolerable levels.
Features and queuing models that it has will be based on what are the different characteristics that the canteens consist of."""
st.markdown("### Canteen's Queuing Calculator")
st.markdown("#### Canteen")
title_container = st.container()
col1, col2 = st.columns([8, 20])
image = Image.open("img/canteen.jpg")
with title_container:
with col1:
st.image(image)
with col2:
st.markdown(canteen_str, unsafe_allow_html=True)
st.write("\n\n")
st.write("\n\n")
st.markdown("#### Queuing theory")
title_container = st.container()
col1, col2 = st.columns([20, 8])
image = Image.open("img/qt.webp")
with title_container:
with col2:
st.image(image)
with col1:
st.markdown(qt_str, unsafe_allow_html=True)