Spaces:
Sleeping
Sleeping
francis-ogbuagu
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -3,24 +3,23 @@ import streamlit as st
|
|
3 |
# Set page configuration
|
4 |
st.set_page_config(page_title="Federal University Lokoja AI Community", page_icon=":sparkles:", layout="centered")
|
5 |
|
6 |
-
# Custom CSS for styling with
|
7 |
custom_css = """
|
8 |
<style>
|
9 |
.card-container {
|
10 |
display: flex;
|
11 |
-
|
12 |
-
align-items: center;
|
13 |
gap: 20px;
|
14 |
margin-top: 20px;
|
|
|
15 |
}
|
16 |
.card {
|
17 |
-
width:
|
18 |
-
|
19 |
-
|
20 |
-
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
|
21 |
transition: transform 0.3s, box-shadow 0.3s;
|
22 |
overflow: hidden;
|
23 |
-
background: linear-gradient(135deg, #
|
24 |
color: white;
|
25 |
text-align: center;
|
26 |
}
|
@@ -42,9 +41,9 @@ custom_css = """
|
|
42 |
}
|
43 |
.card-button a {
|
44 |
display: inline-block;
|
45 |
-
padding:
|
46 |
margin: 15px 0;
|
47 |
-
background-color: #
|
48 |
color: #1f1f1f;
|
49 |
font-weight: bold;
|
50 |
text-decoration: none;
|
@@ -52,7 +51,7 @@ custom_css = """
|
|
52 |
transition: background-color 0.3s;
|
53 |
}
|
54 |
.card-button a:hover {
|
55 |
-
background-color: #
|
56 |
}
|
57 |
</style>
|
58 |
"""
|
@@ -60,12 +59,12 @@ custom_css = """
|
|
60 |
# Inject the custom CSS
|
61 |
st.markdown(custom_css, unsafe_allow_html=True)
|
62 |
|
63 |
-
# Display the
|
64 |
st.markdown("""
|
65 |
<div class="card-container">
|
66 |
<div class="card">
|
67 |
<div class="card-image">
|
68 |
-
<img src="https://via.placeholder.com/
|
69 |
</div>
|
70 |
<div class="card-title">Federal University Lokoja AI Community</div>
|
71 |
<div class="card-description">
|
@@ -75,10 +74,10 @@ st.markdown("""
|
|
75 |
<a href="https://huggingface.co/Federal-University-Lokoja" target="_blank">Join Us Now</a>
|
76 |
</div>
|
77 |
</div>
|
78 |
-
|
79 |
<div class="card">
|
80 |
<div class="card-image">
|
81 |
-
<img src="https://via.placeholder.com/
|
82 |
</div>
|
83 |
<div class="card-title">AI Workshops & Events</div>
|
84 |
<div class="card-description">
|
@@ -88,10 +87,10 @@ st.markdown("""
|
|
88 |
<a href="https://events.example.com" target="_blank">Discover Events</a>
|
89 |
</div>
|
90 |
</div>
|
91 |
-
|
92 |
<div class="card">
|
93 |
<div class="card-image">
|
94 |
-
<img src="https://via.placeholder.com/
|
95 |
</div>
|
96 |
<div class="card-title">Resources & Tools</div>
|
97 |
<div class="card-description">
|
|
|
3 |
# Set page configuration
|
4 |
st.set_page_config(page_title="Federal University Lokoja AI Community", page_icon=":sparkles:", layout="centered")
|
5 |
|
6 |
+
# Custom CSS for styling the cards with navy/dark-night blue theme
|
7 |
custom_css = """
|
8 |
<style>
|
9 |
.card-container {
|
10 |
display: flex;
|
11 |
+
justify-content: center;
|
|
|
12 |
gap: 20px;
|
13 |
margin-top: 20px;
|
14 |
+
flex-wrap: wrap;
|
15 |
}
|
16 |
.card {
|
17 |
+
width: 350px;
|
18 |
+
border-radius: 12px;
|
19 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
|
20 |
transition: transform 0.3s, box-shadow 0.3s;
|
21 |
overflow: hidden;
|
22 |
+
background: linear-gradient(135deg, #1b2a49, #27476e);
|
23 |
color: white;
|
24 |
text-align: center;
|
25 |
}
|
|
|
41 |
}
|
42 |
.card-button a {
|
43 |
display: inline-block;
|
44 |
+
padding: 10px 18px;
|
45 |
margin: 15px 0;
|
46 |
+
background-color: #ffa500;
|
47 |
color: #1f1f1f;
|
48 |
font-weight: bold;
|
49 |
text-decoration: none;
|
|
|
51 |
transition: background-color 0.3s;
|
52 |
}
|
53 |
.card-button a:hover {
|
54 |
+
background-color: #e69500;
|
55 |
}
|
56 |
</style>
|
57 |
"""
|
|
|
59 |
# Inject the custom CSS
|
60 |
st.markdown(custom_css, unsafe_allow_html=True)
|
61 |
|
62 |
+
# Display the card layout in a row
|
63 |
st.markdown("""
|
64 |
<div class="card-container">
|
65 |
<div class="card">
|
66 |
<div class="card-image">
|
67 |
+
<img src="https://via.placeholder.com/350x150" alt="AI Innovation Image">
|
68 |
</div>
|
69 |
<div class="card-title">Federal University Lokoja AI Community</div>
|
70 |
<div class="card-description">
|
|
|
74 |
<a href="https://huggingface.co/Federal-University-Lokoja" target="_blank">Join Us Now</a>
|
75 |
</div>
|
76 |
</div>
|
77 |
+
<!-- -->
|
78 |
<div class="card">
|
79 |
<div class="card-image">
|
80 |
+
<img src="https://via.placeholder.com/350x150" alt="Community Events Image">
|
81 |
</div>
|
82 |
<div class="card-title">AI Workshops & Events</div>
|
83 |
<div class="card-description">
|
|
|
87 |
<a href="https://events.example.com" target="_blank">Discover Events</a>
|
88 |
</div>
|
89 |
</div>
|
90 |
+
<!-- -->
|
91 |
<div class="card">
|
92 |
<div class="card-image">
|
93 |
+
<img src="https://via.placeholder.com/350x150" alt="Resources Image">
|
94 |
</div>
|
95 |
<div class="card-title">Resources & Tools</div>
|
96 |
<div class="card-description">
|