Spaces:
Runtime error
Runtime error
perezcatriel
commited on
Commit
•
3ed4844
1
Parent(s):
0c6b7e4
First commit
Browse files- app.py +108 -0
- brain.png +0 -0
- requirements.txt +47 -0
app.py
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from PIL import Image
|
3 |
+
from streamlit_option_menu import option_menu
|
4 |
+
|
5 |
+
image = Image.open('./brain.png')
|
6 |
+
|
7 |
+
st.markdown("""<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
|
8 |
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous"></script>""",
|
9 |
+
unsafe_allow_html=True)
|
10 |
+
|
11 |
+
# 1. as sidebar menu
|
12 |
+
# with st.sidebar:
|
13 |
+
# selected = option_menu("Main Menu", ["Home", 'Contact'],
|
14 |
+
# icons=['house', 'gear'], menu_icon="cast", default_index=1)
|
15 |
+
# selected
|
16 |
+
|
17 |
+
# 2. horizontal menu
|
18 |
+
selected2 = option_menu(None, ["Home", "Projects", "Contact"],
|
19 |
+
icons=['house', 'bi-archive', "bi-envelope"],
|
20 |
+
menu_icon="cast", default_index=0,
|
21 |
+
orientation="horizontal",
|
22 |
+
styles={
|
23 |
+
"nav-link" : {"color": "grey"},
|
24 |
+
"nav-link-selected": {"background-color": "blue"}
|
25 |
+
}
|
26 |
+
)
|
27 |
+
|
28 |
+
# styles={
|
29 |
+
# "container": {"padding": "0!important", "background-color": "#fafafa"},
|
30 |
+
# "icon": {"color": "orange", "font-size": "25px"},
|
31 |
+
# "nav-link": {"font-size": "25px", "text-align": "left", "margin":"0px", "--hover-color": "#eee"},
|
32 |
+
# "nav-link-selected": {"background-color": "green"},
|
33 |
+
# }
|
34 |
+
|
35 |
+
|
36 |
+
if selected2 == "Home":
|
37 |
+
st.markdown("""
|
38 |
+
<div class="container text-center">
|
39 |
+
<div class="row">
|
40 |
+
<div class="col">
|
41 |
+
<h1>Hola, Somos <span>LatamBrain</span></h1>
|
42 |
+
</div>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
""", unsafe_allow_html=True)
|
46 |
+
st.image(image, caption='imagen de ejemplo', width=700)
|
47 |
+
|
48 |
+
if selected2 == "Projects":
|
49 |
+
st.markdown("""
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
|
54 |
+
<div id="carouselExampleCaptions" class="carousel slide">
|
55 |
+
<div class="carousel-indicators">
|
56 |
+
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
|
57 |
+
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="1" aria-label="Slide 2"></button>
|
58 |
+
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="2" aria-label="Slide 3"></button>
|
59 |
+
</div>
|
60 |
+
<div class="carousel-inner">
|
61 |
+
<div class="carousel-item active">
|
62 |
+
<img src="..." class="d-block w-100" alt="...">
|
63 |
+
<div class="carousel-caption d-none d-md-block">
|
64 |
+
<h5>First slide label</h5>
|
65 |
+
<p>Some representative placeholder content for the first slide.</p>
|
66 |
+
</div>
|
67 |
+
</div>
|
68 |
+
<div class="carousel-item">
|
69 |
+
<img src="..." class="d-block w-100" alt="...">
|
70 |
+
<div class="carousel-caption d-none d-md-block">
|
71 |
+
<h5>Second slide label</h5>
|
72 |
+
<p>Some representative placeholder content for the second slide.</p>
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
+
<div class="carousel-item">
|
76 |
+
<img src="..." class="d-block w-100" alt="...">
|
77 |
+
<div class="carousel-caption d-none d-md-block">
|
78 |
+
<h5>Third slide label</h5>
|
79 |
+
<p>Some representative placeholder content for the third slide.</p>
|
80 |
+
</div>
|
81 |
+
</div>
|
82 |
+
</div>
|
83 |
+
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide="prev">
|
84 |
+
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
85 |
+
<span class="visually-hidden">Previous</span>
|
86 |
+
</button>
|
87 |
+
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide="next">
|
88 |
+
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
89 |
+
<span class="visually-hidden">Next</span>
|
90 |
+
</button>
|
91 |
+
</div>
|
92 |
+
""", unsafe_allow_html=True)
|
93 |
+
if selected2 == "Contact":
|
94 |
+
st.markdown("""
|
95 |
+
<div class="container text-center">
|
96 |
+
<div class="row align-items-start">
|
97 |
+
<div class="col">
|
98 |
+
email
|
99 |
+
</div>
|
100 |
+
<div class="col">
|
101 |
+
github
|
102 |
+
</div>
|
103 |
+
<div class="col">
|
104 |
+
url
|
105 |
+
</div>
|
106 |
+
</div>
|
107 |
+
</div>
|
108 |
+
""", unsafe_allow_html=True)
|
brain.png
ADDED
requirements.txt
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
altair==4.2.2
|
2 |
+
attrs==23.1.0
|
3 |
+
blinker==1.6.2
|
4 |
+
cachetools==5.3.0
|
5 |
+
certifi==2022.12.7
|
6 |
+
charset-normalizer==3.1.0
|
7 |
+
click==8.1.3
|
8 |
+
decorator==5.1.1
|
9 |
+
entrypoints==0.4
|
10 |
+
gitdb==4.0.10
|
11 |
+
GitPython==3.1.31
|
12 |
+
idna==3.4
|
13 |
+
importlib-metadata==6.6.0
|
14 |
+
Jinja2==3.1.2
|
15 |
+
jsonschema==4.17.3
|
16 |
+
markdown-it-py==2.2.0
|
17 |
+
MarkupSafe==2.1.2
|
18 |
+
mdurl==0.1.2
|
19 |
+
numpy==1.24.2
|
20 |
+
packaging==23.1
|
21 |
+
pandas==1.5.3
|
22 |
+
Pillow==9.5.0
|
23 |
+
protobuf==3.20.3
|
24 |
+
pyarrow==11.0.0
|
25 |
+
pydeck==0.8.1b0
|
26 |
+
Pygments==2.15.1
|
27 |
+
Pympler==1.0.1
|
28 |
+
pyrsistent==0.19.3
|
29 |
+
python-dateutil==2.8.2
|
30 |
+
pytz==2023.3
|
31 |
+
pytz-deprecation-shim==0.1.0.post0
|
32 |
+
requests==2.28.2
|
33 |
+
rich==13.3.4
|
34 |
+
six==1.16.0
|
35 |
+
smmap==5.0.0
|
36 |
+
streamlit==1.21.0
|
37 |
+
streamlit-option-menu==0.3.2
|
38 |
+
toml==0.10.2
|
39 |
+
toolz==0.12.0
|
40 |
+
tornado==6.3.1
|
41 |
+
typing_extensions==4.5.0
|
42 |
+
tzdata==2023.3
|
43 |
+
tzlocal==4.3
|
44 |
+
urllib3==1.26.15
|
45 |
+
validators==0.20.0
|
46 |
+
watchdog==3.0.0
|
47 |
+
zipp==3.15.0
|