Skip to content

Commit 95ddc88

Browse files
committed
fix: board icon & add blog to detail
1 parent bc60f13 commit 95ddc88

File tree

2 files changed

+37
-7
lines changed

2 files changed

+37
-7
lines changed

src/components/board/BoardMemberDetail.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Modal } from 'antd';
33
import { X, Mail } from 'lucide-react';
4-
import { FaTwitter, FaGithub, FaLinkedin } from 'react-icons/fa';
4+
import { FaTwitter, FaGithub, FaLinkedin, FaBlog } from 'react-icons/fa';
55
import { SiWechat } from 'react-icons/si';
66
import Image from 'next/image';
77
import { PersonCardProps } from './PersonCard';
@@ -108,6 +108,17 @@ export default function BoardMemberDetail({
108108
<FaLinkedin size={24} />
109109
</a>
110110
)}
111+
{member.blog && (
112+
<a
113+
href={member.blog}
114+
target="_blank"
115+
rel="noopener noreferrer"
116+
className={styles.socialLink}
117+
title="Blog"
118+
>
119+
<FaBlog size={24} />
120+
</a>
121+
)}
111122
</div>
112123
</div>
113124
</div>

src/components/board/PersonCard.module.css

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
.personInfo {
3737
flex: 1;
38-
margin: 16px 24px;
38+
margin: 8px 10px 4px;
3939
display: flex;
4040
flex-direction: column;
4141
justify-content: center;
@@ -97,6 +97,12 @@
9797
color: #333333;
9898
margin: 0 0 8px 0;
9999
line-height: 1.3;
100+
display: -webkit-box;
101+
-webkit-box-orient: vertical;
102+
-webkit-line-clamp: 2;
103+
line-clamp: 2;
104+
overflow: hidden;
105+
text-overflow: ellipsis;
100106
}
101107

102108
.tagsContainer {
@@ -128,22 +134,27 @@
128134

129135
.socialLinks {
130136
display: flex;
131-
gap: 12px;
137+
flex-wrap: wrap;
138+
gap: 8px;
132139
justify-content: center;
133-
margin: 0 24px 20px 24px;
140+
margin: auto 16px 16px 16px;
141+
min-height: 40px;
134142
}
135143

136144
.socialLink {
137145
display: flex;
138146
align-items: center;
139147
justify-content: center;
140-
width: 40px;
141-
height: 40px;
148+
width: 36px;
149+
height: 36px;
150+
min-width: 36px;
151+
min-height: 36px;
142152
background: #f5f5f5;
143153
border-radius: 8px;
144154
color: #666666;
145155
transition: all 0.3s ease;
146156
text-decoration: none;
157+
flex-shrink: 0;
147158
}
148159

149160
.socialLink:hover {
@@ -171,8 +182,10 @@
171182
}
172183

173184
.socialLinks {
174-
margin: 0 20px 12px 20px;
185+
margin: auto 12px 12px 12px;
175186
flex-shrink: 0;
187+
gap: 6px;
188+
min-height: 36px;
176189
}
177190

178191
.name {
@@ -188,6 +201,12 @@
188201
.title {
189202
font-size: 13px;
190203
margin: 0 0 3px 0;
204+
display: -webkit-box;
205+
-webkit-box-orient: vertical;
206+
-webkit-line-clamp: 2;
207+
line-clamp: 2;
208+
overflow: hidden;
209+
text-overflow: ellipsis;
191210
}
192211

193212
.organization {

0 commit comments

Comments
 (0)