Spaces:
Runtime error
Runtime error
sergiolucero
commited on
Commit
•
6bb6632
1
Parent(s):
fda8997
Create streamlib.py
Browse files- streamlib.py +46 -0
streamlib.py
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
st.markdown('''
|
4 |
+
<link
|
5 |
+
href="https://fonts.googleapis.com/css2?family=Exo:wght@400;500;600;700&display=swap"
|
6 |
+
rel="stylesheet"
|
7 |
+
/>
|
8 |
+
''', unsafe_allow_html=True)
|
9 |
+
st.markdown('''
|
10 |
+
<style>
|
11 |
+
body {
|
12 |
+
font-family: sans-serif;
|
13 |
+
font-family: "Exo", sans-serif;
|
14 |
+
|
15 |
+
background: #070815;
|
16 |
+
color: white;
|
17 |
+
}
|
18 |
+
h1 {
|
19 |
+
text-align: center;
|
20 |
+
font-weight: lighter;
|
21 |
+
}
|
22 |
+
button {
|
23 |
+
display: block;
|
24 |
+
margin: 0 auto;
|
25 |
+
padding: 10px 20px;
|
26 |
+
font-size: 1.2rem;
|
27 |
+
border: none;
|
28 |
+
border-radius: 5px;
|
29 |
+
cursor: pointer;
|
30 |
+
}
|
31 |
+
textarea {
|
32 |
+
display: block;
|
33 |
+
margin: 0 auto;
|
34 |
+
width: 100%;
|
35 |
+
height: 300px;
|
36 |
+
padding: 10px;
|
37 |
+
font-size: 1.2rem;
|
38 |
+
background: transparent;
|
39 |
+
color: white;
|
40 |
+
font-family: "Exo", sans-serif;
|
41 |
+
border: none;
|
42 |
+
border-radius: 5px;
|
43 |
+
cursor: pointer;
|
44 |
+
}
|
45 |
+
</style>
|
46 |
+
''', unsafe_allow_html=True)
|