You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2021/01/20 10:22:22 UTC
[echarts-www] branch next updated: feat(event): use webp
This is an automated email from the ASF dual-hosted git repository.
ovilia pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/echarts-www.git
The following commit(s) were added to refs/heads/next by this push:
new d98a884 feat(event): use webp
d98a884 is described below
commit d98a8843c293780ce10a828d2def52f160ff0d8e
Author: Ovilia <zw...@gmail.com>
AuthorDate: Wed Jan 20 18:22:05 2021 +0800
feat(event): use webp
---
_jade/zh/events.jade | 5 ++++-
_jade/zh/index.jade | 5 ++++-
_scss/_pages.events.scss | 14 ++++++--------
images/event/20200128-apache-echarts-5.png | Bin 75823 -> 230869 bytes
images/event/20200128-apache-echarts-5.webp | Bin 0 -> 65998 bytes
5 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/_jade/zh/events.jade b/_jade/zh/events.jade
index 0581a28..cad4ce7 100644
--- a/_jade/zh/events.jade
+++ b/_jade/zh/events.jade
@@ -19,7 +19,10 @@ block content
.page-content#maillist
.container
a.event(href='https://echarts-5-live.bj.bcebos.com/echarts-5-event.html?ref=ec-event')
- img.lazy(data-src="#{cdnPayRoot}/#{ecWWWLang}/images/event/20200128-apache-echarts-5.png?_v_=#{cdnPayVersion}")
+ picture
+ source.lazy(data-srcset="#{cdnPayRoot}/#{ecWWWLang}/images/event/20200128-apache-echarts-5.webp?_v_=#{cdnPayVersion}", type="image/webp")
+ source.lazy(data-srcset="#{cdnPayRoot}/#{ecWWWLang}/images/event/20200128-apache-echarts-5.png?_v_=#{cdnPayVersion}", type="image/jpeg")
+ img.lazy(data-src="#{cdnPayRoot}/#{ecWWWLang}/images/event/20200128-apache-echarts-5.png?_v_=#{cdnPayVersion}", alt="Apache ECharts 5 Official Release")
block extra_js
script.
diff --git a/_jade/zh/index.jade b/_jade/zh/index.jade
index 7c3c4b4..f8ddaec 100644
--- a/_jade/zh/index.jade
+++ b/_jade/zh/index.jade
@@ -34,7 +34,10 @@ block content
section
.container
a.event(href='https://echarts-5-live.bj.bcebos.com/echarts-5-event.html?ref=ec-event')
- img.lazy(data-src="#{cdnPayRoot}/#{ecWWWLang}/images/event/20200128-apache-echarts-5.png?_v_=#{cdnPayVersion}")
+ picture
+ source.lazy(data-srcset="#{cdnPayRoot}/#{ecWWWLang}/images/event/20200128-apache-echarts-5.webp?_v_=#{cdnPayVersion}", type="image/webp")
+ source.lazy(data-srcset="#{cdnPayRoot}/#{ecWWWLang}/images/event/20200128-apache-echarts-5.png?_v_=#{cdnPayVersion}", type="image/jpeg")
+ img.lazy(data-src="#{cdnPayRoot}/#{ecWWWLang}/images/event/20200128-apache-echarts-5.png?_v_=#{cdnPayVersion}", alt="Apache ECharts 5 Official Release")
section#feature-section
.container
diff --git a/_scss/_pages.events.scss b/_scss/_pages.events.scss
index 3638cad..4fb8ec3 100644
--- a/_scss/_pages.events.scss
+++ b/_scss/_pages.events.scss
@@ -1,15 +1,13 @@
.event {
display: block;
margin: 20px 0 50px 0;
+ width: 100%;
+ border-radius: 10px;
+ box-shadow: 0 0 20px rgba(0,0,0,0.2);
+ transition: 0.3s;
+ overflow: hidden;
- img {
- width: 100%;
- border-radius: 10px;
- box-shadow: 0 0 20px rgba(0,0,0,0.2);
- transition: 0.3s;
- }
-
- &:hover img {
+ &:hover {
box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
}
diff --git a/images/event/20200128-apache-echarts-5.png b/images/event/20200128-apache-echarts-5.png
index 188a936..158e4c4 100644
Binary files a/images/event/20200128-apache-echarts-5.png and b/images/event/20200128-apache-echarts-5.png differ
diff --git a/images/event/20200128-apache-echarts-5.webp b/images/event/20200128-apache-echarts-5.webp
new file mode 100644
index 0000000..08eea5d
Binary files /dev/null and b/images/event/20200128-apache-echarts-5.webp differ
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org