Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
brant-ruan committed Sep 24, 2024
1 parent 5f13615 commit f726eca
Show file tree
Hide file tree
Showing 16 changed files with 77 additions and 7 deletions.
Binary file added assets/gallery/2024-09-24.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/people/bonan.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/people/jialai.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/people/jialai.jpg
Binary file not shown.
Binary file modified assets/people/qiange.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/people/qixiao.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/people/weibo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/people/yaoqi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/people/yeqi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/people/yueci.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/people/yutong.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/people/zhenyuan.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/people/zhiwei.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,66 @@ footer {
margin-bottom: 10px;
}
}

/* Gallery photo grid */
.gallery {
display: flex;
flex-wrap: wrap;
justify-content: center;
/* grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); */
gap: 20px; /* 每个照片之间的间距 */
padding: 20px;
max-width: 1000px;
width: 100%;
margin: 0 auto; /* 居中对齐 */
}

/* Individual photo styling */
.gallery-item {
position: relative;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 给照片增加轻微阴影 */
transition: transform 0.3s ease-in-out;
}

.gallery-item img {
width: 100%; /* 限制每张图片的宽度为100%,与父元素一致 */
height: auto; /* 高度自适应宽度 */
display: block;
transition: transform 0.3s ease-in-out;
}

/* Hover effect */
.gallery-item:hover {
transform: scale(1.05); /* 鼠标悬停时略微放大图片 */
}

.gallery-item:hover img {
transform: scale(1.1); /* 进一步放大图片 */
}

/* Optional caption for each photo */
.gallery-caption {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: rgba(0, 0, 0, 0.5); /* 半透明背景 */
color: white;
text-align: center;
padding: 10px;
font-size: 16px;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}

.gallery-item:hover .gallery-caption {
opacity: 1; /* 悬停时显示图片说明 */
}

/* Responsive adjustments */
@media (max-width: 768px) {
.gallery {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* 调整照片墙在小屏幕的显示 */
}
}
7 changes: 7 additions & 0 deletions gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ <h1 class="lab-name">InfoSec Research Group</h1>
<div class="container">
<main>
<h2 class="larger-h2">Gallery</h2>
<div class="gallery">
<!-- Gallery item 1 -->
<div class="gallery-item">
<img src="assets/gallery/2024-09-24.jpeg" alt="Members">
<div class="gallery-caption">Com3, NUS, 24 Sep 2024</div>
</div>
</div>
</main>
</div>
<footer>
Expand Down
14 changes: 7 additions & 7 deletions people.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ <h2>Faculty</h2>
</div>
<!-- Repeat the above block for each team member -->
</div>
<h2>Research Fellow</h2>
<div class="team-container">
<div class="team-member">
<img src="assets/people/jialai.jpeg" alt="default" class="member-photo">
<a href="#" class="member-name" target="_blank">Jialai Wang</a>
</div>
</div>
<h2>Ph.D. Students</h2>
<div class="team-container">
<div class="team-member">
Expand Down Expand Up @@ -92,13 +99,6 @@ <h2>Ph.D. Students</h2>
</div>
</div>

<h2>Postdocs</h2>
<div class="team-container">
<div class="team-member">
<img src="assets/people/jialai.jpg" alt="default" class="member-photo">
<a href="#" class="member-name" target="_blank">Jialai Wang</a>
</div>
</div>
<h2>Master Students</h2>
<div class="team-container">
<div class="team-member">
Expand Down

0 comments on commit f726eca

Please sign in to comment.