style: Enhance team page layout and styling for improved readability and responsiveness
This commit is contained in:
+65
-15
@@ -43,13 +43,14 @@
|
||||
|
||||
<style>
|
||||
.page-hero {
|
||||
margin-bottom: 1.2rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.team-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 1rem;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.member-card {
|
||||
@@ -60,64 +61,113 @@
|
||||
box-shadow: 0 12px 24px rgba(25, 45, 41, 0.06);
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.member-card:hover {
|
||||
box-shadow: 0 20px 32px rgba(25, 45, 41, 0.12);
|
||||
transform: translateY(-4px);
|
||||
border-color: #c0ccc8;
|
||||
}
|
||||
|
||||
.member-photo {
|
||||
width: 100%;
|
||||
height: 220px;
|
||||
aspect-ratio: 3 / 4;
|
||||
object-fit: cover;
|
||||
background: #eef2ee;
|
||||
object-position: center 15%;
|
||||
background: linear-gradient(135deg, #eef2ee 0%, #e0e8e4 100%);
|
||||
display: block;
|
||||
}
|
||||
|
||||
.member-content {
|
||||
padding: 1rem;
|
||||
padding: 1.5rem;
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.member-slot {
|
||||
margin: 0;
|
||||
color: #5f7479;
|
||||
font-size: 0.82rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.03em;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.member-content h2 {
|
||||
margin: 0;
|
||||
color: #264f56;
|
||||
font-size: clamp(1.12rem, 1.8vw, 1.42rem);
|
||||
font-size: clamp(1.25rem, 2vw, 1.5rem);
|
||||
line-height: 1.3;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.member-role {
|
||||
margin: 0;
|
||||
color: #3b6168;
|
||||
font-weight: 700;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.member-content p:last-child {
|
||||
margin: 0.5rem 0 0 0;
|
||||
color: #505550;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.values {
|
||||
margin-top: 1rem;
|
||||
margin-top: 3rem;
|
||||
background: #ffffff;
|
||||
border: 1px solid #d8dfd7;
|
||||
border-radius: 14px;
|
||||
padding: 1rem;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.values h2 {
|
||||
color: #265057;
|
||||
margin-bottom: 0.45rem;
|
||||
font-size: clamp(1.05rem, 1.8vw, 1.35rem);
|
||||
margin-bottom: 0.75rem;
|
||||
font-size: clamp(1.25rem, 2vw, 1.5rem);
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.values p {
|
||||
color: #505550;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.team-grid {
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.member-photo {
|
||||
height: 240px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.team-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.member-card {
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.member-content {
|
||||
padding: 1.25rem;
|
||||
}
|
||||
|
||||
.member-photo {
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.values {
|
||||
padding: 1.5rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user