-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHome.py
73 lines (60 loc) · 2.29 KB
/
Home.py
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
import streamlit as st
import streamlit.components.v1 as components
st.set_page_config(
page_title="EduSync360",
page_icon="🏫",
layout="wide",
initial_sidebar_state="expanded",
)
hide_default_format = """
<style>
#MainMenu {visibility: show; }
footer {visibility: hidden;}
</style>
"""
st.markdown(hide_default_format, unsafe_allow_html=True)
def gradient_text(text, color1, color2):
gradient_css = f"""
background: -webkit-linear-gradient(left, {color1}, {color2});
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: bold;
font-size: 42px;
"""
return f'<span style="{gradient_css}">{text}</span>'
color1 = "#0d3270"
color2 = "#0fab7b"
text = "EduSync360"
left_co, cent_co,last_co = st.columns(3)
with cent_co:
st.image("images/logo.png", width=200)
styled_text = gradient_text(text, color1, color2)
st.write(f"<div style='text-align: center;'>{styled_text}</div>", unsafe_allow_html=True)
st.markdown("""
#### Welcome to EduSync360 - Unlock Knowledge, Seamlessly
1. **Chat & Learn**: Empower your knowledge with a chatbot that lets you create a smart knowledge base, ask questions, and save the conversation using Azure Conversational AI service.
2. **VideoLink**: Dive into learning with ease! Our Video Searcher finds the most relevant learning videos on any topic using the Azure Bing Search API service.
3. **Keyword-Powered Notes**: Take notes like a pro! Our Note Maker extracts keywords and lets you download them in bold format - powered by Azure Keyword Extractor Feature.
4. **LinguaBrief**: Unlock the power of instant translation and summarization with our Text Summarizer, backed by Azure AI Text Summarizer and Translator.
""")
footer="""<style>
a:hover, a:active {
color: red;
background-color: transparent;
text-decoration: underline;
}
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: white;
color: black;
text-align: center;
}
</style>
<div class="footer">
<p>Developed with ❤️ by <a style='display: inline; text-align: center;' href="https://www.linkedin.com/in/harshavardhan-bajoria/" target="_blank">Harshavardhan Bajoria</a></p>
</div>
"""
st.markdown(footer,unsafe_allow_html=True)