File size: 887 Bytes
197f5ec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import streamlit as st

from src.content import (
    HERO_TEXT,
    ABOUT_TEXT,
    CITATION_LABEL,
    CITATION_TEXT,
    LICENCE_TEXT,
    INTRO_TEXT,
    METHODOLOGY_TEXT
)

from src.expert import expert_mode
from src.calculator import calculator_mode

st.set_page_config(layout="wide",
                   page_title="ECOLOGITS",
                   page_icon='💬')

st.html(HERO_TEXT)

st.markdown(INTRO_TEXT)

tab_calculator, tab_expert, tab_method, tab_about = st.tabs(['🧮 Calculator', '🤓 Expert Mode', '📖 Methodology', 'ℹ️ About'])

with tab_calculator:

    calculator_mode()

with tab_expert:

    expert_mode()

with tab_method:

    st.write(METHODOLOGY_TEXT)

with tab_about:

    st.write(ABOUT_TEXT)

with st.expander('📚 Citation'):
    st.html(CITATION_LABEL)
    st.html(CITATION_TEXT)

st.html(LICENCE_TEXT)