import base64
import streamlit as st
def get_base64(bin_file):
with open(bin_file, 'rb') as f:
data = f.read()
return base64.b64encode(data).decode()
def add_logo(width, padding, margin):
padding_top, padding_right, padding_bottom, padding_left = padding
margin_top, margin_right, margin_bottom, margin_left = margin
bin_str = get_base64('images/logo1.png')
link = 'https://www.lifepulse.ai'
html_code = f'''
'''
return html_code
def new_line(n=1):
for i in range(n):
st.write("\n")
def local_css(file_name):
with open(file_name) as f:
st.markdown(f'', unsafe_allow_html=True)
def remote_css(url):
st.markdown(f'', unsafe_allow_html=True)
def add_header(png_file):
bin_str = get_base64(png_file)
page_bg_img = f'''
'''
st.markdown(page_bg_img, unsafe_allow_html=True)