-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWelcome.py
More file actions
76 lines (66 loc) · 3.39 KB
/
Welcome.py
File metadata and controls
76 lines (66 loc) · 3.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
#!/usr/bin/env python
# coding: utf-8
import streamlit as st
st.set_page_config(
page_title="Flank Method Reduction Program",
page_icon='flank method documentation/images/flank-method-logo.png',
layout="wide",
initial_sidebar_state="expanded"
)
# def add_logo():
# st.markdown(
# """
# <style>
# [data-testid="stSidebarNav"] {
# background-image: url(https://githubusercontent.github.com/Hezel2000/flank_method/blob/36073aa375b459dc99715d0e43bfb4f811e6f34b/flank%20method%20documentation/images/Goethe-Logo.jpg);
# background-repeat: no-repeat;
# padding-top: 120px;
# background-position: 20px 20px;
# }
# [data-testid="stSidebarNav"]::before {
# content: "The Flank Method";
# margin-left: 20px;
# margin-top: 20px;
# font-size: 30px;
# position: relative;
# top: 100px;
# }
# </style>
# """,
# unsafe_allow_html=True,
# )
# add_logo()
# == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == =
# hide_st_style = """
# <style>
# #MainMenu {visibility: hidden;}
# footer {visibility: hidden;}
# header {visibility: hidden;}
# </style>
# """
# st.markdown(hide_st_style, unsafe_allow_html=True)
# == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == =
st.subheader("Welcome to Flank Data Reduction")
col1, col2 = st.columns([4, 1])
with col1:
st.write('''This online tool allows to calculate Fe3+/FeT abundances from an electron microprobe (EPMA) file.
Check out the Flank Method Documentation [webpage](https://hezel2000.quarto.pub/ifg-data-processsing-center/microprobe/flank-method/welcome.html)
for in-depth information about the method, how to prepare the EPMA file, video tutorials how to use this program, the code documentation, literature, a method
section for publications, sample files to test this tool, ... – and everything else related to this tool or the flank method.''')
#st.link_button("Flank Reduction Documentation Webpage", "https://hezel2000.quarto.pub/ifg-data-processsing-center/microprobe/flank-method/welcome.html")
st.write(
'''Each page has boxes on the sidebar with information and instructions for the according page – see the example box in the sidebar of this page''')
st.write(
'''If you have any question or found a bug, contact me: dominik.hezel-at-em.uni-frankfurt.de''')
#st.write(
# ''':blue[**Known problem** The app occasionally drops the data (this can happen in short or long intervals). This requires a start
# from the beginning, which can be annoying and will be resolved as soon as the program, documentation webpage and publication are done.
# So it might take a little.]''')
st.link_button("Flank Reduction Documentation Webpage", 'https://hezel2000.quarto.pub/ifg-data-processsing-center/microprobe/flank-method/welcome.html')
with col2:
st.image('images/flank-method-logo.png')
with st.sidebar:
with st.expander("Example Info Box"):
st.write("""
Such boxes on each page contain information about how to use the according page.
""")