Skip to content

Commit 82a2fa4

Browse files
feat: add event background images (#882)
1 parent 4494dee commit 82a2fa4

File tree

8 files changed

+91
-10
lines changed

8 files changed

+91
-10
lines changed

webapp/src/components/MVMFPage/MVMFBanner/MVMFBanner.css

+25-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
border-radius: 10px;
1515
}
1616

17+
.MVMFBanner.banner-container .banner.started {
18+
padding-left: 52px;
19+
}
20+
1721
.MVMFBanner.banner-container.small .banner {
1822
display: flex;
1923
flex-direction: row;
@@ -47,17 +51,37 @@
4751
height: 44px;
4852
}
4953

54+
.MVMFBanner.banner-container.small .banner.started {
55+
background-image: url('../../../images/mvmf-started-1064x100.gif');
56+
height: 145px;
57+
padding-right: 32px;
58+
background-repeat: no-repeat;
59+
background-color: #10141d;
60+
flex-direction: column;
61+
}
62+
63+
.MVMFBanner.banner-container.small .started button {
64+
width: 300px;
65+
margin-top: 16px;
66+
}
67+
5068
.MVMFBanner.banner-container.small .banner {
5169
background-image: url('../../../images/mvmf-1064x100.gif');
5270
height: 100px;
5371
padding-right: 32px;
5472
}
5573

5674
.MVMFBanner.banner-container.medium .banner {
57-
background-image: url('../../../images/mvmf22-banner-small.png');
75+
background-image: url('../../../images/mvmf-started-1064x153.gif');
5876
height: 150px;
5977
}
6078

79+
.MVMFBanner.banner-container.big .banner.started {
80+
background-image: url('../../../images/mvmf-started-1064x276.gif');
81+
height: 276px;
82+
background-repeat: no-repeat;
83+
}
84+
6185
.MVMFBanner.banner-container.big .banner {
6286
background-image: url('../../../images/mvmf-1064x276.gif');
6387
height: 316px;

webapp/src/components/MVMFPage/MVMFBanner/MVMFBanner.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ const MVMFBanner = ({
194194
return isMVMFEnabled || isMVMFAnnouncementEnabled ? (
195195
<div className={classNames('MVMFBanner banner-container', type)}>
196196
<Container>
197-
<div className="banner">{content}</div>
197+
<div className={classNames('banner', isMVMFEnabled && 'started')}>
198+
{content}
199+
</div>
198200
</Container>
199201
</div>
200202
) : null
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,54 @@
1-
.sparkles-icon {
1+
.mvmf-icon {
22
display: inline-block;
3-
width: 15px;
4-
height: 15px;
5-
filter: brightness(0) invert(1);
3+
width: 16px;
4+
height: 16px;
65
margin-right: 8px;
7-
background-image: url(../../images/sparkles.svg);
6+
background-image: url(../../images/rabbit.svg);
87
background-size: cover;
98
}
9+
10+
.mvmf-tab {
11+
background: linear-gradient(45deg, #92efeb, #bfffdc, #f7ffdc, #ecc8ff);
12+
background-size: 30% 30%;
13+
background-clip: text;
14+
-webkit-background-clip: text;
15+
-webkit-text-fill-color: transparent;
16+
17+
-webkit-animation: AnimationName 5s ease-out infinite;
18+
-moz-animation: AnimationName 5s ease-out infinite;
19+
animation: AnimationName 5s ease-out infinite;
20+
}
21+
22+
@-webkit-keyframes AnimationName {
23+
0% {
24+
background-position: 0% 50%;
25+
}
26+
50% {
27+
background-position: 100% 50%;
28+
}
29+
100% {
30+
background-position: 0% 50%;
31+
}
32+
}
33+
@-moz-keyframes AnimationName {
34+
0% {
35+
background-position: 0% 50%;
36+
}
37+
50% {
38+
background-position: 100% 50%;
39+
}
40+
100% {
41+
background-position: 0% 50%;
42+
}
43+
}
44+
@keyframes AnimationName {
45+
0% {
46+
background-position: 0% 50%;
47+
}
48+
50% {
49+
background-position: 100% 50%;
50+
}
51+
100% {
52+
background-position: 0% 50%;
53+
}
54+
}

webapp/src/components/Navigation/Navigation.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ const Navigation = (props: Props) => {
3232
})}
3333
>
3434
<Tabs.Tab active={activeTab === NavigationTab.MVMF}>
35-
<>
36-
<span className="sparkles-icon" />
35+
<div className="mvmf-tab">
36+
<span className="mvmf-icon" />
3737
<span>{t('navigation.mvmf')}</span>
38-
</>
38+
</div>
3939
</Tabs.Tab>
4040
</Link>
4141
) : null}
5.68 MB
Loading
8.96 MB
Loading
15.4 MB
Loading

webapp/src/images/rabbit.svg

+10
Loading

0 commit comments

Comments
 (0)