Spaces:
Sleeping
Sleeping
import streamlit as st | |
# Set page configuration for a wide layout | |
st.set_page_config(page_title="Federal University Lokoja AI Community", page_icon=":sparkles:", layout="wide") | |
# Custom CSS for styling the cards with a navy/dark-night blue theme | |
row_css = """ | |
<style> | |
.row-container { | |
display: flex; | |
justify-content: center; | |
align-items: stretch; | |
gap: 20px; | |
padding: 20px; | |
margin-top: 20px; | |
flex-wrap: wrap; | |
} | |
.card { | |
flex: 1; | |
max-width: 300px; | |
border-radius: 12px; | |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); | |
transition: transform 0.3s, box-shadow 0.3s; | |
overflow: hidden; | |
background: linear-gradient(135deg, #1b2a49, #27476e); | |
color: white; | |
text-align: center; | |
margin: 10px; | |
} | |
.card:hover { | |
transform: scale(1.05); | |
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4); | |
} | |
.card-image img { | |
width: 100%; | |
height: auto; | |
} | |
.card-title { | |
font-size: 1.6em; | |
margin-top: 15px; | |
} | |
.card-description { | |
padding: 10px 15px; | |
font-size: 1em; | |
} | |
.card-button a { | |
display: inline-block; | |
padding: 10px 18px; | |
margin: 15px 0; | |
background-color: #ffa500; | |
color: #1f1f1f; | |
font-weight: bold; | |
text-decoration: none; | |
border-radius: 5px; | |
transition: background-color 0.3s; | |
} | |
.card-button a:hover { | |
background-color: #e69500; | |
} | |
</style> | |
""" | |
# Inject the custom CSS | |
st.markdown(row_css, unsafe_allow_html=True) | |
# Display the three cards in a single row | |
st.markdown(""" | |
<div class="row-container"> | |
<div class="card"> | |
<div class="card-image"> | |
<img src="https://via.placeholder.com/300x150" alt="AI Innovation Image"> | |
</div> | |
<div class="card-title">Federal University Lokoja AI Community</div> | |
<div class="card-description"> | |
Join our vibrant AI community to connect with researchers and enthusiasts in machine learning and AI. | |
</div> | |
<div class="card-button"> | |
<a href="https://huggingface.co/Federal-University-Lokoja" target="_blank">Join Us Now</a> | |
</div> | |
</div> | |
<div class="card"> | |
<div class="card-image"> | |
<img src="https://via.placeholder.com/300x150" alt="Workshops and Events"> | |
</div> | |
<div class="card-title">Workshops & Events</div> | |
<div class="card-description"> | |
Participate in AI workshops, hackathons, and networking events to hone your skills and connect with others. | |
</div> | |
<div class="card-button"> | |
<a href="https://events.example.com" target="_blank">Learn More</a> | |
</div> | |
</div> | |
<div class="card"> | |
<div class="card-image"> | |
<img src="https://via.placeholder.com/300x150" alt="Resources"> | |
</div> | |
<div class="card-title">Resources & Tools</div> | |
<div class="card-description"> | |
Access state-of-the-art AI tools, datasets, and resources curated for your learning and projects. | |
</div> | |
<div class="card-button"> | |
<a href="https://resources.example.com" target="_blank">View Resources</a> | |
</div> | |
</div> | |
</div> | |
""", unsafe_allow_html=True) |