-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHome.py
More file actions
98 lines (91 loc) · 5.39 KB
/
Home.py
File metadata and controls
98 lines (91 loc) · 5.39 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import streamlit as st
from functions.login import get_loginform
from functions.pagesetup import set_title
from streamlit_modal import Modal
import streamlit.components.v1 as components
st.set_page_config(layout="wide")
if 'authenticated' not in st.session_state:
get_loginform()
elif not st.session_state.authenticated:
get_loginform()
else:
set_title("FEOC", "Home")
container0 = st.container()
with container0:
st.markdown("#### Welcome to the Faulkner Emission Solutions Platform!")
st.markdown("Introducing the **Faulkner Certificates** - our benchmark for emission offset. These certificates not only validate and track environmental contributions but, with the aid of state-of-the-art AI technology, ensure their authenticity, accuracy, and completeness. Jump in, explore, and be the change you wish to see in the world! We are thrilled to have you join our mission. Whether you're an Emitter, a Provider, a Purchaser, or simply a champion for the environment, this platform aims to unify our collective efforts towards a greener planet.")
st.markdown("**Emitters**")
st.markdown("""```
You are the linchpin of emission reduction, driving us towards a sustainable future. Your investments empower Providers to innovate and bring forth solutions that battle against emissions.
""")
st.markdown("**Providers**")
st.markdown("""```
With your groundbreaking solutions, you are lighting the path to a brighter, cleaner future. By collaborating with Emitters, we are making strides in environmental conservation.
""")
st.markdown("**Purchasers**")
st.markdown("""```
By choosing to back reduced emission products, you set a commendable standard. Every purchase you make takes us one step closer to a cleaner, better world.
""")
modal = Modal("Request a Demo Modal", key="mdlDemoRequest")
demo_modal = st.button("Request Demo", key="btnDemoRequest", type="primary", use_container_width=True)
if demo_modal:
modal.open()
if modal.is_open():
with modal.container():
st.write("Text goes here")
html_string = '''
<h1>HTML string in RED</h1>
<script language="javascript">
document.querySelector("h1").style.color = "red";
</script>
'''
components.html(html_string)
st.write("Some fancy text")
value = st.checkbox("Check me")
st.write(f"Checkbox checked: {value}")
st.divider()
col01, col02 = st.columns(2)
with col01:
st.markdown("#### Harness the power of cutting-edge AI technology.")
st.write("Our AI continuously refines and validates data, ensuring accuracy and credibility at every step.")
with col02:
st.markdown("#### To our vibrant user community")
st.write("Your interactions and inputs amplify the effectiveness of our platform. Each one of you is a cog in this grand machinery combating climate change. Together, let's pave the way for a sustainable, verdant future for the next generation.")
st.divider()
main_container = st.container()
with main_container:
col1, col2 = st.columns(2)
with col1:
container11 = st.container()
with container11:
st.markdown("#### Initiate New Certificate")
exp11 = st.expander("New Certificate", expanded=True)
with exp11:
st.write("**Instructions**")
st.write("Select this option to create a new FEOC providing the necessary information.")
st.button("Create New Certificate", key="btnNewCertificate", type="primary", use_container_width=True)
container12 = st.container()
with container12:
st.markdown("#### Manage Users")
exp12 = st.expander("Users", expanded=True)
with exp12:
st.write("**Instructions**")
st.write("Select this option to manage any user or user-related item associated to an FEOC.")
st.button("Manage Users", key="btnManageUsers", type="primary", use_container_width=True)
with col2:
container21 = st.container()
with container21:
st.markdown("#### Manage Existing Certificate")
exp21 = st.expander("Existing Certificate", expanded=True)
with exp21:
st.write("**Instructions**")
st.write("Select this option to manage an existing FEOC and any related details, activity, or other items.")
st.button("Manage Existing Certificate", key="btnExistingCertificate", type="primary", use_container_width=True)
container22 = st.container()
with container22:
st.markdown("#### Manage Audit History")
exp22 = st.expander("Audit History", expanded=True)
with exp22:
st.write("**Instructions**")
st.write("Select this option to manage and view the audit history for one or more FEOC.")
st.button("Manage Audit History", key="btnAuditHistory", type="primary", use_container_width=True)