Spaces:
Sleeping
Sleeping
Vela
commited on
Commit
·
b2600cc
1
Parent(s):
dfcc16a
added images
Browse files- .gitignore +0 -1
- src/frontend/__pycache__/home_page.cpython-313.pyc +0 -0
- src/frontend/app.py +1 -2
- src/frontend/home_page.py +37 -24
- src/frontend/images/jb_events_logo.jpg +0 -0
.gitignore
CHANGED
@@ -1,3 +1,2 @@
|
|
1 |
.venv
|
2 |
-
src/frontend/images
|
3 |
__pycache__
|
|
|
1 |
.venv
|
|
|
2 |
__pycache__
|
src/frontend/__pycache__/home_page.cpython-313.pyc
CHANGED
Binary files a/src/frontend/__pycache__/home_page.cpython-313.pyc and b/src/frontend/__pycache__/home_page.cpython-313.pyc differ
|
|
src/frontend/app.py
CHANGED
@@ -2,5 +2,4 @@ import home_page
|
|
2 |
from utils import common_functions
|
3 |
|
4 |
common_functions.set_up_page()
|
5 |
-
home_page.navbar_with_title()
|
6 |
-
# home_page.page_title()
|
|
|
2 |
from utils import common_functions
|
3 |
|
4 |
common_functions.set_up_page()
|
5 |
+
home_page.navbar_with_title()
|
|
src/frontend/home_page.py
CHANGED
@@ -1,24 +1,22 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
|
19 |
def navbar_with_title():
|
20 |
-
logo_path = "src/frontend/images/jb_events_logo.jpg"
|
21 |
-
|
22 |
st.markdown(f"""
|
23 |
<style>
|
24 |
.navbar {{
|
@@ -26,32 +24,47 @@ def navbar_with_title():
|
|
26 |
align-items: center;
|
27 |
justify-content: space-between;
|
28 |
width: 100%;
|
29 |
-
|
|
|
|
|
|
|
30 |
}}
|
|
|
31 |
.left-section {{
|
|
|
32 |
display: flex;
|
33 |
align-items: center;
|
34 |
gap: 15px;
|
35 |
}}
|
|
|
36 |
.menu {{
|
37 |
display: flex;
|
38 |
gap: 20px;
|
39 |
}}
|
40 |
.menu a {{
|
41 |
-
color:
|
42 |
text-decoration: none;
|
43 |
font-weight: bold;
|
44 |
font-size: 16px;
|
45 |
-
transition: 0.3s;
|
46 |
}}
|
47 |
.menu a:hover {{
|
48 |
-
color: #
|
|
|
49 |
}}
|
|
|
50 |
.contact {{
|
51 |
-
color:
|
52 |
font-size: 16px;
|
53 |
font-weight: bold;
|
54 |
}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
</style>
|
56 |
|
57 |
<div class="navbar">
|
@@ -61,8 +74,8 @@ def navbar_with_title():
|
|
61 |
<div class="menu">
|
62 |
<a href="#">HOME</a>
|
63 |
<a href="#">ABOUT US</a>
|
64 |
-
<a href="#">SERVICES
|
65 |
-
<a href="#">GALLERY
|
66 |
<a href="#">CONTACT US</a>
|
67 |
</div>
|
68 |
<div class="contact">
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
def page_title():
|
4 |
+
st.markdown("""
|
5 |
+
<style>
|
6 |
+
.title {
|
7 |
+
text-align: left;
|
8 |
+
font-size: 48px;
|
9 |
+
font-weight: bold;
|
10 |
+
color: #2E3A59;
|
11 |
+
padding-bottom: 10px;
|
12 |
+
border-bottom: 3px solid #FF6F61;
|
13 |
+
display: inline-block;
|
14 |
+
}
|
15 |
+
</style>
|
16 |
+
<h1 class="title">Welcome to JB Events & Management</h1>
|
17 |
+
""", unsafe_allow_html=True)
|
18 |
|
19 |
def navbar_with_title():
|
|
|
|
|
20 |
st.markdown(f"""
|
21 |
<style>
|
22 |
.navbar {{
|
|
|
24 |
align-items: center;
|
25 |
justify-content: space-between;
|
26 |
width: 100%;
|
27 |
+
padding: 1px 30px;
|
28 |
+
background-color: #1F1F1F; /* Dark background */
|
29 |
+
border-radius: 50px;
|
30 |
+
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
|
31 |
}}
|
32 |
+
|
33 |
.left-section {{
|
34 |
+
color: white;
|
35 |
display: flex;
|
36 |
align-items: center;
|
37 |
gap: 15px;
|
38 |
}}
|
39 |
+
|
40 |
.menu {{
|
41 |
display: flex;
|
42 |
gap: 20px;
|
43 |
}}
|
44 |
.menu a {{
|
45 |
+
color: white;
|
46 |
text-decoration: none;
|
47 |
font-weight: bold;
|
48 |
font-size: 16px;
|
49 |
+
transition: color 0.3s, transform 0.2s;
|
50 |
}}
|
51 |
.menu a:hover {{
|
52 |
+
color: #FFD700; /* Gold hover effect */
|
53 |
+
transform: scale(1.1);
|
54 |
}}
|
55 |
+
|
56 |
.contact {{
|
57 |
+
color: white;
|
58 |
font-size: 16px;
|
59 |
font-weight: bold;
|
60 |
}}
|
61 |
+
@media (max-width: 768px) {{
|
62 |
+
.navbar {{
|
63 |
+
flex-direction: column;
|
64 |
+
align-items: center;
|
65 |
+
text-align: center;
|
66 |
+
}}
|
67 |
+
}}
|
68 |
</style>
|
69 |
|
70 |
<div class="navbar">
|
|
|
74 |
<div class="menu">
|
75 |
<a href="#">HOME</a>
|
76 |
<a href="#">ABOUT US</a>
|
77 |
+
<a href="#">SERVICES</a>
|
78 |
+
<a href="#">GALLERY</a>
|
79 |
<a href="#">CONTACT US</a>
|
80 |
</div>
|
81 |
<div class="contact">
|
src/frontend/images/jb_events_logo.jpg
ADDED
![]() |