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
441683ef
Commit
441683ef
authored
6 months ago
by
Xingan Zhao
Browse files
Options
Downloads
Patches
Plain Diff
fix some team page stuff
parent
4b8f2470
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#432008
passed
6 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
+11
-0
11 additions, 0 deletions
src/containers/App/App.css
src/contents/team.tsx
+15
-7
15 additions, 7 deletions
src/contents/team.tsx
with
26 additions
and
7 deletions
src/containers/App/App.css
+
11
−
0
View file @
441683ef
...
...
@@ -362,6 +362,17 @@ footer a:hover {
height
:
auto
;
}
.sticky-words
{
font-size
:
large
;
}
.sticky-img
{
width
:
100%
;
/* 图片宽度自适应容器 */
height
:
auto
;
/* 保持图片纵横比 */
/* display: block; 去掉图片下方的空隙 */
margin
:
2px
;
max-height
:
60vh
;
}
.row-custom-height-card
{
height
:
300px
;
/* 你可以根据需要调整高度 */
}
...
...
This diff is collapsed.
Click to expand it.
src/contents/team.tsx
+
15
−
7
View file @
441683ef
...
...
@@ -44,10 +44,11 @@ const Card: React.FC<CardProps> = ({ image1, image2, title1, description1, id,
);
};
const
StickyImageContainer
:
React
.
FC
<
{
image
:
string
}
>
=
({
image
})
=>
{
const
StickyImageContainer
:
React
.
FC
<
{
image
:
string
,
words
:
string
}
>
=
({
image
,
words
})
=>
{
return
(
<
div
className
=
"sticky-container"
>
<
img
src
=
{
image
}
alt
=
"Sticky"
className
=
'responsive-img'
/>
<
img
src
=
{
image
}
alt
=
"Sticky"
className
=
'sticky-img'
/>
<
p
className
=
'sticky-words'
>
{
words
}
</
p
>
</
div
>
);
};
...
...
@@ -67,6 +68,13 @@ export function Team() {
card4
:
'
https://static.igem.wiki/teams/5378/safety/03-111.webp
'
};
const
words
=
{
card1
:
'
大家好啊,我是zxa,asdasdsadasdsasdadwdawdawdasdawdawsdaw附件格式艰苦虎骨酒扣税的哎u了如何改进南方灯具开关哎u人身攻击喀什地方韩国u爱我人员孤独和干部埃卢瑞干哈及时答复客户给
'
,
card2
:
'
我是wyf,地地道道的地地道道的地对地导弹顶顶顶顶
'
,
card3
:
'
我是leeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
'
,
card4
:
'
芜湖
'
};
// 下方定义重要!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
const
handleCardHover
=
(
id
:
string
,
isHovered
:
boolean
)
=>
{
if
(
isHovered
)
{
...
...
@@ -92,7 +100,7 @@ export function Team() {
{
/* 左侧sticky容器 */
}
<
div
className
=
"col-4"
>
{
/* 下方设置默认显示图像 */
}
<
StickyImageContainer
image
=
{
hoveredCardId
?
images
[
hoveredCardId
]
:
'
https://
static.igem.wiki/teams/5378/school-badge/smu.webp
'
}
/>
<
StickyImageContainer
image
=
{
hoveredCardId
?
images
[
hoveredCardId
]
:
'
https://
placehold.co/600x800
'
}
words
=
{
hoveredCardId
?
words
[
hoveredCardId
]
:
"
Good to see you here!!
"
}
/>
</
div
>
{
/* 卡片区域 */
}
...
...
@@ -103,7 +111,7 @@ export function Team() {
<
div
className
=
"col-3"
>
<
Card
id
=
"card1"
image1
=
"https://
static.igem.wiki/teams/5378/school-badge/smu.webp
"
image1
=
"https://
placehold.co/600x800
"
image2
=
"https://static.igem.wiki/teams/5378/school-badge/gdmu.webp"
title1
=
"Xingan Zhao"
description1
=
"Shall we?"
...
...
@@ -114,7 +122,7 @@ export function Team() {
<
div
className
=
"col-3"
>
<
Card
id
=
"card2"
image1
=
"https://
static.igem.wiki/teams/5378/school-badge/smu.webp
"
image1
=
"https://
placehold.co/600x800
"
image2
=
"https://static.igem.wiki/teams/5378/school-badge/gdmu.webp"
title1
=
"Yifeng Wang"
description1
=
"hahahahaahhahaha."
...
...
@@ -125,7 +133,7 @@ export function Team() {
<
div
className
=
"col-3"
>
<
Card
id
=
"card3"
image1
=
"https://
static.igem.wiki/teams/5378/image/zxa-tp.webp
"
image1
=
"https://
placehold.co/600x800
"
image2
=
"https://static.igem.wiki/teams/5378/lesser-panda/smal.webp"
title1
=
"Hermit Lee"
description1
=
"Genshin,launch!!"
...
...
@@ -136,7 +144,7 @@ export function Team() {
<
div
className
=
"col-3"
>
<
Card
id
=
"card4"
image1
=
"https://
static.igem.wiki/teams/5378/safety/03-111.webp
"
image1
=
"https://
placehold.co/600x800
"
image2
=
"https://static.igem.wiki/teams/5378/safety/03-11.webp"
title1
=
"SMU"
description1
=
"SMU Description."
...
...
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