-
Notifications
You must be signed in to change notification settings - Fork 0
/
home_page.py
104 lines (93 loc) · 3.2 KB
/
home_page.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import streamlit as st
def show_home_page():
st.markdown(
"""
<style>
/* Global Styles */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f5f5f5;
color: #333333;
line-height: 1.6;
margin: 0;
padding: 0;
}
/* Title Styles */
.header {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
padding: 10px 20px; /* Reduced padding */
background-color: #0E1117;
color: #FFD700;
margin-bottom: 30px;
border-radius: 10px;
font-size: 44px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
animation: fadeInTitle 1s ease-in-out; /* Apply fade-in animation to the title */
}
/* Info Section Styles */
.info-section {
display: flex;
align-items: center;
justify-content: center;
padding: 30px;
background-color: #0E1117;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 10px;
margin-bottom: 40px;
animation: slideInInfo 1s ease-in-out; /* Apply slide-in animation to the info section */
}
.info-section img {
max-width: 300px;
border-radius: 10px;
margin-right: 30px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.info-text {
font-size: 30px; /* Increased paragraph font size */
color: #ffffff;
line-height: 1.6;
font-family: ADLaM Display; /* Changed font style */
font-style: italic; /* Added italic style */
}
/* Animation Keyframes */
@keyframes fadeInTitle {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideInInfo {
from {
transform: translateX(-20px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
</style>
""",
unsafe_allow_html=True
)
# Main title with emoji
st.markdown("<h1 class='header'>Hi, I am Ted!<br> Your AI Assistant </h1>", unsafe_allow_html=True)
# Performance Metrics section with images and text
st.markdown(
"""
<div class="info-section">
<img src="https://images.unsplash.com/photo-1589254066213-a0c9dc853511?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTF8fHJvYm90fGVufDB8fDB8fHww" alt="Performance Metrics" />
<div class="info-text">
<h2>I'm a versatile chatbot equipped to assist with a wide range of queries and facilitate data exploration using a diverse set of tools programmed into my system.</h2>
</div>
</div>
""",
unsafe_allow_html=True
)
if __name__ == "__main__":
show_home_page()