Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SMU-GDMU-CHINA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
SMU-GDMU-CHINA
Commits
9f593fd6
Commit
9f593fd6
authored
5 months ago
by
Xingan Zhao
Browse files
Options
Downloads
Patches
Plain Diff
new feature in team member
parent
7e651780
No related branches found
No related tags found
No related merge requests found
Pipeline
#448950
passed
5 months ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/containers/App/App.css
+6
-2
6 additions, 2 deletions
src/containers/App/App.css
src/contents/team.tsx
+45
-3
45 additions, 3 deletions
src/contents/team.tsx
with
51 additions
and
5 deletions
src/containers/App/App.css
+
6
−
2
View file @
9f593fd6
...
@@ -379,6 +379,9 @@ footer a:hover {
...
@@ -379,6 +379,9 @@ footer a:hover {
.card
{
.card
{
transition
:
transform
0.2s
;
transition
:
transform
0.2s
;
width
:
100%
;
width
:
100%
;
border
:
5px
solid
rgba
(
114
,
47
,
55
,
1
)
!important
;
background-color
:
#f77001
a6
!important
;
border-radius
:
10px
!important
;
/* height: 400px; */
/* height: 400px; */
}
}
...
@@ -386,14 +389,15 @@ footer a:hover {
...
@@ -386,14 +389,15 @@ footer a:hover {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
}
}
.card-title
{
.card-title
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
font-size
:
large
;
font-size
:
large
;
border-radius
:
20px
;
background-color
:
#e4dfb4
b0
;
padding
:
15px
;
}
}
.card-img-top
{
.card-img-top
{
...
...
This diff is collapsed.
Click to expand it.
src/contents/team.tsx
+
45
−
3
View file @
9f593fd6
...
@@ -44,10 +44,10 @@ const Card: React.FC<CardProps> = ({ image1, image2, title1, description1, id,
...
@@ -44,10 +44,10 @@ const Card: React.FC<CardProps> = ({ image1, image2, title1, description1, id,
);
);
};
};
const
StickyImageContainer
:
React
.
FC
<
{
image
:
string
,
words
:
string
}
>
=
({
image
,
words
})
=>
{
const
StickyImageContainer
:
React
.
FC
<
{
image
:
string
,
words
:
string
,
names
:
string
}
>
=
({
image
,
words
,
names
})
=>
{
return
(
return
(
<
div
className
=
"sticky-container"
>
<
div
className
=
"sticky-container"
>
<
h3
className
=
'center-text'
>
⭐
SMU-GDMU-China crew
⭐
</
h3
>
<
h3
className
=
'center-text'
>
⭐
{
names
}
⭐
</
h3
>
<
img
src
=
{
image
}
alt
=
"Sticky"
className
=
'sticky-img'
/>
<
img
src
=
{
image
}
alt
=
"Sticky"
className
=
'sticky-img'
/>
<
p
className
=
'sticky-words sticky-description indent'
>
{
words
}
</
p
>
<
p
className
=
'sticky-words sticky-description indent'
>
{
words
}
</
p
>
</
div
>
</
div
>
...
@@ -142,6 +142,44 @@ export function Team() {
...
@@ -142,6 +142,44 @@ export function Team() {
};
};
const
names
=
{
card1
:
'
Keyi Zhan
'
,
card2
:
'
Ming Zhu
'
,
card3
:
'
Yihan Wu
'
,
card4
:
'
Shenglin chen
'
,
card5
:
'
Yuhao lin
'
,
card6
:
'
Xiaolong He
'
,
card7
:
'
Jingxuan Duanyi
'
,
card8
:
'
Luming Huang
'
,
card9
:
'
Wan Li
'
,
card10
:
'
Wenrong Wen
'
,
card11
:
'
Ziyuan Liu
'
,
card12
:
'
Pan Zhao
'
,
card13
:
'
Wenyi Guan
'
,
card14
:
'
Jianhua Zhang
'
,
card15
:
'
Runze Wen
'
,
card16
:
'
Hua Zhang
'
,
card17
:
'
Guozhuo Cai
'
,
card18
:
'
Yingying Yang
'
,
card19
:
'
Weihuan Li
'
,
card20
:
'
Yifeng Wang
'
,
card21
:
'
Feier Tian
'
,
card22
:
'
Zhixin Fang
'
,
card23
:
'
Kun Liu
'
,
card24
:
'
Lin Li
'
,
card25
:
'
Jiajin Li
'
,
card26
:
'
Kang Wang
'
,
card27
:
'
Meitong Han
'
,
card28
:
'
Yanqiu Cai
'
,
card29
:
'
Junhao Li
'
,
card30
:
'
Ke Liu
'
,
card31
:
'
Yingying Chen
'
,
card32
:
'
Xingan Zhao
'
,
card33
:
'
Zhilin Wu
'
,
card34
:
'
Jian Sun
'
,
card35
:
''
,
}
// 下方定义重要!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// 下方定义重要!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
const
handleCardHover
=
(
id
:
string
,
isHovered
:
boolean
)
=>
{
const
handleCardHover
=
(
id
:
string
,
isHovered
:
boolean
)
=>
{
if
(
isHovered
)
{
if
(
isHovered
)
{
...
@@ -167,7 +205,11 @@ export function Team() {
...
@@ -167,7 +205,11 @@ export function Team() {
{
/* 左侧sticky容器 */
}
{
/* 左侧sticky容器 */
}
<
div
className
=
"col-3"
>
<
div
className
=
"col-3"
>
{
/* 下方设置默认显示图像 */
}
{
/* 下方设置默认显示图像 */
}
<
StickyImageContainer
image
=
{
hoveredCardId
?
images
[
hoveredCardId
]
:
'
https://placehold.co/600x800
'
}
words
=
{
hoveredCardId
?
words
[
hoveredCardId
]
:
"
Good to see you here!!
"
}
/>
<
StickyImageContainer
image
=
{
hoveredCardId
?
images
[
hoveredCardId
]
:
'
https://placehold.co/600x800
'
}
words
=
{
hoveredCardId
?
words
[
hoveredCardId
]
:
"
Glad to introduce our team to you!
"
}
names
=
{
hoveredCardId
?
names
[
hoveredCardId
]
:
"
Our crew
"
}
/>
</
div
>
</
div
>
{
/* 卡片区域 */
}
{
/* 卡片区域 */
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment