Spaces:
No application file
No application file
Delete app.py
Browse files
app.py
DELETED
|
@@ -1,50 +0,0 @@
|
|
| 1 |
-
import streamlit as st
|
| 2 |
-
import base64
|
| 3 |
-
from PIL import Image
|
| 4 |
-
import pandas as pd
|
| 5 |
-
import matplotlib.pyplot as plt
|
| 6 |
-
|
| 7 |
-
# Set the page configuration
|
| 8 |
-
st.set_page_config(page_title="Roadmap Academy", page_icon=":rocket:")
|
| 9 |
-
|
| 10 |
-
# Define a function to set background image
|
| 11 |
-
def set_background(png_file):
|
| 12 |
-
with open(png_file, "rb") as f:
|
| 13 |
-
bin_str = base64.b64encode(f.read()).decode()
|
| 14 |
-
page_bg_img = f'''
|
| 15 |
-
<style>
|
| 16 |
-
[data-testid="stAppViewContainer"] {{
|
| 17 |
-
background-image: url("data:image/png;base64,{bin_str}");
|
| 18 |
-
background-size: cover;
|
| 19 |
-
}}
|
| 20 |
-
</style>
|
| 21 |
-
'''
|
| 22 |
-
st.markdown(page_bg_img, unsafe_allow_html=True)
|
| 23 |
-
|
| 24 |
-
# Set a background image
|
| 25 |
-
set_background("cool_background.png") # Use a cool background image
|
| 26 |
-
|
| 27 |
-
# Create the organization card
|
| 28 |
-
st.title("Roadmap Academy")
|
| 29 |
-
st.write("An Educational Technologies Company")
|
| 30 |
-
st.write("Motto: Polaris Prowess")
|
| 31 |
-
st.write("[Website](https://roadmap.academy)")
|
| 32 |
-
|
| 33 |
-
# Add a cool image or logo
|
| 34 |
-
image = Image.open("roadmap_logo.png") # Use your company logo or cool image
|
| 35 |
-
st.image(image, use_column_width=True)
|
| 36 |
-
|
| 37 |
-
# Add interactive components
|
| 38 |
-
if st.button("Click Me"):
|
| 39 |
-
st.success("You clicked the button!") # Cool feedback for interaction
|
| 40 |
-
|
| 41 |
-
# Create a simple chart or plot for additional coolness
|
| 42 |
-
data = {
|
| 43 |
-
'Category': ['A', 'B', 'C', 'D'],
|
| 44 |
-
'Values': [10, 15, 25, 30]
|
| 45 |
-
}
|
| 46 |
-
df = pd.DataFrame(data)
|
| 47 |
-
st.bar_chart(df) # Display a simple bar chart to add interactivity
|
| 48 |
-
|
| 49 |
-
# Footer with custom text
|
| 50 |
-
st.write("© 2024 Roadmap Academy. All rights reserved.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|