Skip to content

Commit 75f3f89

Browse files
authored
Merge pull request #24 from OPTML-Group/wcs/update_9_26
fix cover img
2 parents 6c81086 + 61086b5 commit 75f3f89

3 files changed

Lines changed: 81 additions & 1 deletion

File tree

_pages/home.md

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,76 @@ permalink: /
88

99
### About Us
1010

11-
**OP**timization and **T**rustworthy **M**achine **L**earning (OPTML) group is an active research group at [Michigan State University](https://www.msu.edu). Our research interests span the areas of machine learning (ML)/ deep learning (DL), optimization, computer vision, security, signal processing and data science, with a focus on developing learning algorithms and theory, as well as robust and explainable artificial intelligence (AI). These research themes provide a solid foundation for reaching the long-term research objective: __Making AI systems scalable and trustworthy__.
11+
12+
13+
<style>
14+
.about-wrap{
15+
display: flex;
16+
align-items: flex-start;
17+
gap: 16px;
18+
}
19+
20+
/* 文字占满剩余空间 */
21+
.about-wrap .about-text{
22+
flex: 1;
23+
min-width: 0; /* 防止长链接撑开 */
24+
}
25+
26+
/* 链接是 flex 子项:负责把图片推到最右侧 */
27+
.about-wrap .about-photo-link{
28+
flex: 0 0 auto;
29+
margin-left: auto; /* ← 把整块推到最右 */
30+
display: inline-block; /* 不要被拉伸 */
31+
line-height: 0; /* 去掉行内空白 */
32+
}
33+
34+
/* 图片自身样式 + 悬停动画 */
35+
.about-wrap img.about-photo{
36+
display: block;
37+
width: 145px; /* 想更大就改这里,比如 180px / 200px */
38+
height: auto;
39+
border-radius: 8px;
40+
box-shadow: 0 2px 8px rgba(0,0,0,.08);
41+
transition: transform 0.25s ease, box-shadow 0.25s ease;
42+
cursor: pointer;
43+
}
44+
45+
.about-wrap img.about-photo:hover{
46+
transform: scale(1.05); /* 悬停时放大 5% */
47+
box-shadow: 0 4px 16px rgba(0,0,0,.15);
48+
}
49+
50+
/* 移动端:上下排 */
51+
@media (max-width: 768px){
52+
.about-wrap{
53+
flex-direction: column;
54+
align-items: center;
55+
}
56+
.about-wrap .about-photo-link{
57+
margin-left: 0;
58+
}
59+
.about-wrap img.about-photo{
60+
width: 100%;
61+
max-width: 480px;
62+
}
63+
}
64+
</style>
65+
66+
<div class="about-wrap" markdown="0">
67+
<div class="about-text" markdown="1">
68+
**OP**timization and **T**rustworthy **M**achine **L**earning (OPTML) group is an active research group at
69+
[Michigan State University](https://www.msu.edu). Our research interests span the areas of machine learning (ML)/ deep learning (DL), optimization, computer vision, security, signal processing and data science, with a focus on developing learning algorithms and theory, as well as robust and explainable artificial intelligence (AI). These research themes provide a solid foundation for reaching the long-term research objective: __Making AI systems scalable and trustworthy__.
70+
</div>
71+
72+
<a class="about-photo-link"
73+
href="{{ '/pdf/Recruitment/Welcome2OPTML.pdf' | relative_url }}"
74+
target="_blank"
75+
aria-label="Open Welcome2OPTML Booklet (PDF)">
76+
<img class="about-photo"
77+
src="{{ '/images/cover_img.png' | relative_url }}"
78+
alt="OPTML @ MSU">
79+
</a>
80+
</div>
1281

1382
📖 **For a more detailed introduction, see our [Welcome2OPTML Booklet](/pdf/Recruitment/Welcome2OPTML.pdf).**
1483

css/main.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,14 @@ firstp {
9696
margin-right: 30px;
9797
}
9898

99+
100+
101+
102+
.about-wrap a {
103+
display: inline-block; /* 保持 a 标签不拉伸 */
104+
line-height: 0; /* 去掉可能的空白间隙 */
105+
}
106+
107+
.about-wrap a img.about-photo {
108+
display: block; /* 图片按块元素显示,避免受 a 影响 */
109+
}

images/cover_img.png

583 KB
Loading

0 commit comments

Comments
 (0)