Spaces:
Sleeping
Sleeping
francis-ogbuagu
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -3,23 +3,24 @@ 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
|
7 |
custom_css = """
|
8 |
<style>
|
9 |
.card-container {
|
10 |
display: flex;
|
11 |
-
|
12 |
-
|
13 |
gap: 20px;
|
14 |
margin-top: 20px;
|
15 |
}
|
16 |
.card {
|
17 |
-
width:
|
|
|
18 |
border-radius: 15px;
|
19 |
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
|
20 |
transition: transform 0.3s, box-shadow 0.3s;
|
21 |
overflow: hidden;
|
22 |
-
background: linear-gradient(135deg, #
|
23 |
color: white;
|
24 |
text-align: center;
|
25 |
}
|
@@ -32,7 +33,7 @@ custom_css = """
|
|
32 |
height: auto;
|
33 |
}
|
34 |
.card-title {
|
35 |
-
font-size:
|
36 |
margin: 15px 0;
|
37 |
}
|
38 |
.card-description {
|
@@ -59,12 +60,12 @@ custom_css = """
|
|
59 |
# Inject the custom CSS
|
60 |
st.markdown(custom_css, unsafe_allow_html=True)
|
61 |
|
62 |
-
# Display the enhanced card layout
|
63 |
st.markdown("""
|
64 |
<div class="card-container">
|
65 |
<div class="card">
|
66 |
<div class="card-image">
|
67 |
-
<img src="https://via.placeholder.com/
|
68 |
</div>
|
69 |
<div class="card-title">Federal University Lokoja AI Community</div>
|
70 |
<div class="card-description">
|
@@ -73,9 +74,11 @@ st.markdown("""
|
|
73 |
<div class="card-button">
|
74 |
<a href="https://huggingface.co/Federal-University-Lokoja" target="_blank">Join Us Now</a>
|
75 |
</div>
|
76 |
-
|
|
|
|
|
77 |
<div class="card-image">
|
78 |
-
<img src="https://via.placeholder.com/
|
79 |
</div>
|
80 |
<div class="card-title">AI Workshops & Events</div>
|
81 |
<div class="card-description">
|
@@ -84,9 +87,11 @@ st.markdown("""
|
|
84 |
<div class="card-button">
|
85 |
<a href="https://events.example.com" target="_blank">Discover Events</a>
|
86 |
</div>
|
87 |
-
|
|
|
|
|
88 |
<div class="card-image">
|
89 |
-
<img src="https://via.placeholder.com/
|
90 |
</div>
|
91 |
<div class="card-title">Resources & Tools</div>
|
92 |
<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 with a navy blue theme and vertical column layout
|
7 |
custom_css = """
|
8 |
<style>
|
9 |
.card-container {
|
10 |
display: flex;
|
11 |
+
flex-direction: column;
|
12 |
+
align-items: center;
|
13 |
gap: 20px;
|
14 |
margin-top: 20px;
|
15 |
}
|
16 |
.card {
|
17 |
+
width: 100%;
|
18 |
+
max-width: 400px;
|
19 |
border-radius: 15px;
|
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, #001f3f, #004080);
|
24 |
color: white;
|
25 |
text-align: center;
|
26 |
}
|
|
|
33 |
height: auto;
|
34 |
}
|
35 |
.card-title {
|
36 |
+
font-size: 1.8em;
|
37 |
margin: 15px 0;
|
38 |
}
|
39 |
.card-description {
|
|
|
60 |
# Inject the custom CSS
|
61 |
st.markdown(custom_css, unsafe_allow_html=True)
|
62 |
|
63 |
+
# Display the enhanced card layout in a vertical column structure
|
64 |
st.markdown("""
|
65 |
<div class="card-container">
|
66 |
<div class="card">
|
67 |
<div class="card-image">
|
68 |
+
<img src="https://via.placeholder.com/400x200" alt="AI Innovation Image">
|
69 |
</div>
|
70 |
<div class="card-title">Federal University Lokoja AI Community</div>
|
71 |
<div class="card-description">
|
|
|
74 |
<div class="card-button">
|
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/400x200" alt="Community Events Image">
|
82 |
</div>
|
83 |
<div class="card-title">AI Workshops & Events</div>
|
84 |
<div class="card-description">
|
|
|
87 |
<div class="card-button">
|
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/400x200" alt="Resources Image">
|
95 |
</div>
|
96 |
<div class="card-title">Resources & Tools</div>
|
97 |
<div class="card-description">
|