Spaces:
Sleeping
Sleeping
Vela
commited on
Commit
·
aed2820
1
Parent(s):
3c7ad03
created space in hugging face
Browse files- .gitignore +3 -0
- requirements.txt +3 -0
- src/frontend/__pycache__/home_page.cpython-312.pyc +0 -0
- src/frontend/__pycache__/home_page.cpython-313.pyc +0 -0
- src/frontend/app.py +6 -0
- src/frontend/home_page.py +72 -0
- src/frontend/utils/__pycache__/common_functions.cpython-313.pyc +0 -0
- src/frontend/utils/common_functions.py +9 -0
.gitignore
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.venv
|
| 2 |
+
src/frontend/images
|
| 3 |
+
__pycache__
|
requirements.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pandas
|
| 2 |
+
streamlit
|
| 3 |
+
fastapi[standard]
|
src/frontend/__pycache__/home_page.cpython-312.pyc
ADDED
|
Binary file (628 Bytes). View file
|
|
|
src/frontend/__pycache__/home_page.cpython-313.pyc
ADDED
|
Binary file (1.88 kB). View file
|
|
|
src/frontend/app.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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()
|
src/frontend/home_page.py
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
logo_path = "src/frontend/images/jb_events_logo.jpg"
|
| 21 |
+
|
| 22 |
+
st.markdown(f"""
|
| 23 |
+
<style>
|
| 24 |
+
.navbar {{
|
| 25 |
+
display: flex;
|
| 26 |
+
align-items: center;
|
| 27 |
+
justify-content: space-between;
|
| 28 |
+
width: 100%;
|
| 29 |
+
border-radius: 8px;
|
| 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: black;
|
| 42 |
+
text-decoration: none;
|
| 43 |
+
font-weight: bold;
|
| 44 |
+
font-size: 16px;
|
| 45 |
+
transition: 0.3s;
|
| 46 |
+
}}
|
| 47 |
+
.menu a:hover {{
|
| 48 |
+
color: #E91E63;
|
| 49 |
+
}}
|
| 50 |
+
.contact {{
|
| 51 |
+
color: black;
|
| 52 |
+
font-size: 16px;
|
| 53 |
+
font-weight: bold;
|
| 54 |
+
}}
|
| 55 |
+
</style>
|
| 56 |
+
|
| 57 |
+
<div class="navbar">
|
| 58 |
+
<div class="left-section">
|
| 59 |
+
<h1 class="title">JB Events & Management</h1>
|
| 60 |
+
</div>
|
| 61 |
+
<div class="menu">
|
| 62 |
+
<a href="#">HOME</a>
|
| 63 |
+
<a href="#">ABOUT US</a>
|
| 64 |
+
<a href="#">SERVICES ▼</a>
|
| 65 |
+
<a href="#">GALLERY ▼</a>
|
| 66 |
+
<a href="#">CONTACT US</a>
|
| 67 |
+
</div>
|
| 68 |
+
<div class="contact">
|
| 69 |
+
📞 +91-744-888-6668
|
| 70 |
+
</div>
|
| 71 |
+
</div>
|
| 72 |
+
""", unsafe_allow_html=True)
|
src/frontend/utils/__pycache__/common_functions.cpython-313.pyc
ADDED
|
Binary file (667 Bytes). View file
|
|
|
src/frontend/utils/common_functions.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
PAGE_ICON = 'src/frontend/images/jb_events_logo.jpg'
|
| 4 |
+
PAGE_LAYOUT = 'wide'
|
| 5 |
+
PAGE_TITLE = 'JB Events'
|
| 6 |
+
INITIAL_SIBEBAR_STATE = 'collapsed'
|
| 7 |
+
|
| 8 |
+
def set_up_page():
|
| 9 |
+
st.set_page_config(page_icon=PAGE_ICON,layout=PAGE_LAYOUT,page_title=PAGE_TITLE,initial_sidebar_state=INITIAL_SIBEBAR_STATE)
|