Spaces:
Sleeping
Sleeping
francis-ogbuagu
commited on
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
# Set page configuration
|
4 |
+
st.set_page_config(page_title="Federal University Lokoja Community", page_icon=":school:", layout="centered")
|
5 |
+
|
6 |
+
# Styling for the card
|
7 |
+
card_style = """
|
8 |
+
<style>
|
9 |
+
.card {
|
10 |
+
border-radius: 15px;
|
11 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
12 |
+
transition: transform 0.3s;
|
13 |
+
background: linear-gradient(135deg, #ff7b54, #ffb300);
|
14 |
+
padding: 20px;
|
15 |
+
color: white;
|
16 |
+
text-align: center;
|
17 |
+
margin: 20px auto;
|
18 |
+
max-width: 400px;
|
19 |
+
}
|
20 |
+
.card:hover {
|
21 |
+
transform: scale(1.05);
|
22 |
+
}
|
23 |
+
.card-image img {
|
24 |
+
width: 100%;
|
25 |
+
border-radius: 15px 15px 0 0;
|
26 |
+
}
|
27 |
+
.card-title {
|
28 |
+
font-size: 1.8em;
|
29 |
+
margin-top: 15px;
|
30 |
+
}
|
31 |
+
.card-description {
|
32 |
+
margin-top: 10px;
|
33 |
+
font-size: 1em;
|
34 |
+
}
|
35 |
+
.card-button a {
|
36 |
+
display: inline-block;
|
37 |
+
padding: 10px 20px;
|
38 |
+
margin-top: 15px;
|
39 |
+
background-color: #007e8e;
|
40 |
+
color: white;
|
41 |
+
border-radius: 8px;
|
42 |
+
text-decoration: none;
|
43 |
+
transition: background-color 0.3s;
|
44 |
+
}
|
45 |
+
.card-button a:hover {
|
46 |
+
background-color: #005f66;
|
47 |
+
}
|
48 |
+
</style>
|
49 |
+
"""
|
50 |
+
|
51 |
+
# Inject custom CSS
|
52 |
+
st.markdown(card_style, unsafe_allow_html=True)
|
53 |
+
|
54 |
+
# Display card
|
55 |
+
st.markdown(
|
56 |
+
"""
|
57 |
+
<div class="card">
|
58 |
+
<div class="card-image">
|
59 |
+
<img src="https://via.placeholder.com/400x200" alt="Community Image">
|
60 |
+
</div>
|
61 |
+
<div class="card-title">Federal University Lokoja Community</div>
|
62 |
+
<div class="card-description">
|
63 |
+
Join our growing community at Hugging Face where we explore AI, NLP, and machine learning innovations.
|
64 |
+
</div>
|
65 |
+
<div class="card-button">
|
66 |
+
<a href="https://huggingface.co/" target="_blank">Join Now</a>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
""",
|
70 |
+
unsafe_allow_html=True
|
71 |
+
)
|