Skip to content

Commit

Permalink
Changed Header Image and Brand Color #39 (#46)
Browse files Browse the repository at this point in the history
* Changed header image

* Changed brand color
  • Loading branch information
iLtc committed Feb 3, 2020
1 parent 4cff9b5 commit 25fc7a9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 27 deletions.
Binary file added images/wuhan2020-header-image.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 2 additions & 25 deletions src/pages/home/index.jsx
Expand Up @@ -90,31 +90,8 @@ class Home extends Language {
</a>
</div>
</div>
<div className="animation">
<div className="outer-circle"/>
<div className="rotate-circle">
<svg viewBox="0 0 404 404" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient
id="linear"
x1="0%"
y1="0%"
x2="100%"
y2="0%"
>
<stop offset="0%" stopColor="rgba(17, 186, 250, 1)"/>
<stop offset="50%" stopColor="rgba(17, 186, 250, 0.1)"/>
<stop offset="50%" stopColor="rgba(17, 186, 250, 1)"/>
<stop offset="100%" stopColor="rgba(17, 186, 250, 0.1)"/>
</linearGradient>
</defs>
<circle cx="202" cy="202" r="200" fill="rgba(0, 0, 0, 0)" stroke="url(#linear)"
strokeWidth="4"/>
</svg>
</div>
<img className="img3" src="//img.alicdn.com/tfs/TB1EBu.JgHqK1RjSZJnXXbNLpXa-914-1156.png"/>
<img className="img4" src="//img.alicdn.com/tfs/TB115i2JmzqK1RjSZPxXXc4tVXa-186-78.png"/>
<img className="img5" src="//img.alicdn.com/tfs/TB115i2JmzqK1RjSZPxXXc4tVXa-186-78.png"/>
<div className="header-image">
<img src="/images/wuhan2020-header-image.png"/>
</div>
</div>
</section>
Expand Down
17 changes: 16 additions & 1 deletion src/pages/home/index.scss
Expand Up @@ -183,12 +183,27 @@
}
}
}
.header-image {
width: 546px;
height: 578px;
position: absolute;
top: 146px;
right: 0;
img {
position: absolute;
height: 578px;
left: 50%;
transform: translateX(-50%);
top: 0;
z-index: 1;
}
}
@media screen and (max-width: 768px) {
.vertical-middle {
text-align: center;
width: 100%;
}
.animation {
.header-image {
display: none;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/variables.scss
@@ -1,5 +1,5 @@
// 品牌色
$brandColor: #0054D1;
$brandColor: #FF6440;
// 渐变起始色
$startColor: #0054D1;
// 渐变结束色
Expand Down

0 comments on commit 25fc7a9

Please sign in to comment.