-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Five-great <43601963+Five-great@users.noreply.github.com>
- Loading branch information
1 parent
49e4491
commit c5a6229
Showing
11 changed files
with
438 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { FC } from 'react'; | ||
|
||
import { Icon } from '../Icon'; | ||
|
||
export type UserAddressProps = Partial<Record<'email' | 'website', string>>; | ||
|
||
export const UserAddress: FC<UserAddressProps> = ({ email, website }) => ( | ||
<address className="mb-0 d-flex justify-content-around gap-2"> | ||
{email && ( | ||
<a rel="noreferrer" target="_blank" href={'mailto:' + email}> | ||
<Icon name="envelope" /> | ||
</a> | ||
)} | ||
{website && ( | ||
<a rel="noreferrer" target="_blank" href={website}> | ||
<Icon name="globe2" /> | ||
</a> | ||
)} | ||
</address> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,227 @@ | ||
@keyframes suspension { | ||
0% { | ||
position: relative; | ||
top: 0px; | ||
} | ||
50% { | ||
position: relative; | ||
top: -0.8rem; | ||
} | ||
100% { | ||
position: relative; | ||
top: 0px; | ||
} | ||
} | ||
|
||
.topUserRow { | ||
--logo-image: url('https://github.com/idea2app.png'); | ||
--title-background-image: url('https://hackathon-api.static.kaiyuanshe.cn/6342619375fa1817e0f56ce1/2022/10/09/rrrr.png'); | ||
a { | ||
color: inherit; | ||
text-decoration: none; | ||
} | ||
.imgBox { | ||
width: 2.1rem; | ||
&:hover img { | ||
transition: all 0.3s; | ||
transform: scale(1.1); | ||
} | ||
} | ||
.showTitle { | ||
position: relative; | ||
height: 4.8rem; | ||
padding-top: 1.2rem; | ||
z-index: 4; | ||
background-image: var(--title-background-image); | ||
background-attachment: fixed; | ||
background-size: 21rem auto; | ||
margin-top: 1.5rem; | ||
&::before { | ||
content: ''; | ||
display: block; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
border-radius: 0.3rem; | ||
background-color: rgba(161, 160, 152, 0.7); | ||
} | ||
.showMedal { | ||
position: absolute; | ||
top: -1.2rem; | ||
left: 5%; | ||
i { | ||
width: 1.7rem; | ||
height: 1.7rem; | ||
background-image: var(--logo-image), | ||
linear-gradient(#ffd83a, #fdeba0); | ||
background-blend-mode: lighten; | ||
background-position: center; | ||
background-size: 1.5rem 1.5rem; | ||
background-repeat: no-repeat; | ||
border: 0.1rem solid #ffd83a; | ||
box-shadow: 0 0 0.5rem 0 #ffd83a; | ||
&:first-child { | ||
border-color: #d8d8d8; | ||
box-shadow: 0 0 0.5rem 0 #d8d8d8; | ||
background-image: var(--logo-image), | ||
linear-gradient(#d8d8d8, #eeeeee); | ||
} | ||
&:last-child { | ||
border-color: #fab36e; | ||
box-shadow: 0 0 0.5rem 0 #fab36e; | ||
background-image: var(--logo-image), | ||
linear-gradient(#fab36e, #fbe7d3); | ||
} | ||
} | ||
} | ||
h3 { | ||
position: relative; | ||
z-index: 2; | ||
font-size: 2rem; | ||
letter-spacing: 0.4rem; | ||
width: 10rem; | ||
cursor: default; | ||
text-shadow: | ||
0px 1px 0px #c0c0c0, | ||
0px 2px 0px #b0b0b0, | ||
0px 3px 0px #a0a0a0, | ||
0px 4px 0px #909090, | ||
0px 5px 10px rgba(0, 0, 0, 0.6); | ||
color: transparent; | ||
font-family: "'book antiqua', palatino, serif"; | ||
&::after { | ||
content: attr(data-text); | ||
display: block; | ||
position: absolute; | ||
z-index: 1; | ||
top: 0; | ||
left: 0; | ||
width: 10rem; | ||
margin: 0 auto; | ||
text-shadow: none; | ||
background-image: linear-gradient( | ||
to right, | ||
#d8d8d8 10%, | ||
#ffd83a 60%, | ||
#fab36e 75% | ||
); | ||
background-clip: text; | ||
} | ||
} | ||
} | ||
.topUserUl { | ||
z-index: 5; | ||
li { | ||
text-align: center; | ||
cursor: default; | ||
.showBox { | ||
min-height: 6rem; | ||
letter-spacing: 1px; | ||
z-index: 3; | ||
} | ||
.imgBox { | ||
z-index: 2; | ||
animation: 3.5s suspension ease-in-out infinite; | ||
transition: all 0.6s; | ||
} | ||
&:nth-child(1) { | ||
order: 2; | ||
padding-top: 0.3rem; | ||
.showBox { | ||
color: #ffd83a; | ||
border-bottom: 1.5rem solid #ffd83a; | ||
text-shadow: | ||
0px 1px 0px #969653, | ||
0px 2px 5px rgba(240, 219, 100, 0.4); | ||
i { | ||
width: 2.5rem; | ||
height: 2.6rem; | ||
background-image: var(--logo-image), | ||
linear-gradient(#ffd83a, #fdeba0); | ||
background-blend-mode: lighten; | ||
background-position: center; | ||
background-size: 2.5rem auto; | ||
background-repeat: no-repeat; | ||
} | ||
} | ||
.imgBox { | ||
width: 6.4rem; | ||
animation-delay: 3.5s; | ||
} | ||
} | ||
&:nth-child(2) { | ||
order: 1; | ||
padding-top: 1rem; | ||
.showBox { | ||
color: #d8d8d8; | ||
border-bottom: 1.2rem solid #d8d8d8; | ||
text-shadow: 0px 1px 0px #d9cdcd 0px 2px 5px | ||
rgba(133, 132, 130, 0.4); | ||
i { | ||
background-image: var(--logo-image), | ||
linear-gradient(#d8d8d8, #eeeeee); | ||
} | ||
} | ||
.imgBox { | ||
width: 6rem; | ||
animation-delay: 1.4s; | ||
} | ||
} | ||
&:nth-child(3) { | ||
order: 3; | ||
padding-top: 1.5rem; | ||
.showBox { | ||
border-bottom: 1rem solid #fab36e; | ||
color: #fab36e; | ||
text-shadow: | ||
0px 1px 0px #aa8865, | ||
0px 2px 5px rgba(167, 129, 67, 0.4); | ||
i { | ||
background-image: var(--logo-image), | ||
linear-gradient(#fab36e, #fbe7d3); | ||
} | ||
} | ||
.imgBox { | ||
width: 5.6rem; | ||
animation-delay: 2.4s; | ||
} | ||
} | ||
&:hover .imgBox { | ||
animation-play-state: paused; | ||
} | ||
} | ||
} | ||
.topUserList { | ||
tr { | ||
&::before { | ||
content: ''; | ||
position: absolute; | ||
display: block; | ||
right: 0; | ||
bottom: 0; | ||
width: 0; | ||
height: 2px; | ||
background: #9fc2ef; | ||
transition: all 0.5s; | ||
} | ||
&:hover::before { | ||
left: 0; | ||
width: 100%; | ||
} | ||
} | ||
td { | ||
cursor: default; | ||
background-color: transparent; | ||
.usernameBox { | ||
font-size: 0; | ||
&:hover { | ||
.imgBox > img { | ||
transform: scale(1.2); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.