Skip to content
Snippets Groups Projects
Commit 9ebb63b0 authored by HouTeng Chan's avatar HouTeng Chan
Browse files

Update file team.html

parent 79395fa9
No related branches found
No related tags found
No related merge requests found
<!DOCTYPE html>
<html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tsinghua - IGEM 2024</title> <title>Tsinghua - IGEM 2024</title>
<style> <style>
body { .team-grid {
font-family: Arial, sans-serif; display: grid;
margin: 0; grid-template-columns: repeat(3, 1fr);
padding: 0; gap: 3px; /* Reduced from the previous value to bring frames closer */
} max-width: 1200px;
.team-grid { margin: 0 auto;
display: grid; }
grid-template-columns: repeat(3, 1fr);
gap: 10px; /* Reduced gap to bring frames closer */ .team-member {
max-width: 1200px; display: flex;
margin: 20px auto; flex-direction: column;
padding: 0 10px; align-items: center;
} text-align: center;
.team-member { }
display: flex;
flex-direction: column; .image-container, .image-placeholder {
align-items: center; width: 300px; /* Kept original size */
text-align: center; height: 300px; /* Kept original size */
background-color: #f9f9f9; overflow: hidden;
border-radius: 10px; margin-bottom: 10px;
overflow: hidden; display: flex;
box-shadow: 0 2px 5px rgba(0,0,0,0.1); justify-content: center;
} align-items: center;
.image-container, .image-placeholder { border-radius: 20px;
width: 100%; }
height: 300px;
overflow: hidden; .image-container img {
display: flex; max-width: 100%;
justify-content: center; max-height: 100%;
align-items: center; object-fit: cover;
} }
.image-container img {
width: 100%; .image-placeholder {
height: 100%; background-color: #000;
object-fit: cover; }
}
.image-placeholder { .text-area {
background-color: #ddd; width: 350px; /* Kept original size */
} min-height: 100px; /* Kept original size */
.text-area { border: 1px solid #ccc;
padding: 15px; padding: 10px;
width: 100%; box-sizing: border-box;
box-sizing: border-box; display: flex;
} flex-direction: column;
.text-area .name { justify-content: flex-start;
font-size: 18px; border-radius: 20px;
font-weight: bold; }
margin-bottom: 5px;
} .text-area .name {
.text-area .bio { font-size: 18px;
font-size: 14px; font-weight: bold;
text-align: left; margin-bottom: 10px;
} }
@media (max-width: 768px) {
.team-grid { .text-area .bio {
grid-template-columns: repeat(2, 1fr); font-size: 14px;
gap: 8px; text-align: left;
} }
}
@media (max-width: 480px) { @media (max-width: 768px) {
.team-grid { .team-grid {
grid-template-columns: 1fr; grid-template-columns: repeat(2, 1fr);
gap: 10px; gap: 15px; /* Slightly reduced gap for tablet view */
} }
} }
</style>
@media (max-width: 480px) {
.team-grid {
grid-template-columns: 1fr;
gap: 10px; /* Further reduced gap for mobile view */
}
}
</style>
</head> </head>
{% extends "layout.html" %} {% extends "layout.html" %}
...@@ -218,3 +224,4 @@ Meet Our Team Members ...@@ -218,3 +224,4 @@ Meet Our Team Members
{% endblock %} {% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment