Skip to content

Commit 91e0e90

Browse files
committed
download button
1 parent 710eaf1 commit 91e0e90

File tree

6 files changed

+22
-16
lines changed

6 files changed

+22
-16
lines changed

_i18n/cn.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,5 @@ sponsors_bronze: 铜牌赞助商
118118
about_organizer: Wiredcraft是一家本部位于上海的电子科技公司,在美国华盛顿及德国柏林均有分部。我们的专长是设计、数据科学,API和 DevOps,我们曾帮助世界银行实现开源数据门户的数据可视化,为25年来缅甸第一次民主选举设计选票系统。我们通过每月组织线下活动(UIUX meetup, JS meetup, Hacker News meetup, Docker meetup)来支持本土科技与设计社区,每年我们都组织JS Conf及UI/UX Conf China。
119119
media_partner_exclusive: 独家直播平台
120120
watch_us_online: 大会直播前往
121-
header_deck: 演讲文档
121+
header_deck: 演讲文档
122+
slide_download: 文档

_i18n/en.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,5 @@ sponsors_bronze: Bronze Sponsor
130130
about_organizer: Wiredcraft is a full service digital agency based in Shanghai, Washington DC and Berlin. We are Design, Data Science, API and DevOps experts. Think data visualizations for the World Bank Open Data Portal, or election software for the first democratic elections in Myanmar in 25 years. We support our local tech and design communities by organizing monthly meetups, JSConf China and UI/UX Conf China.
131131
media_partner_exclusive: Live streaming Partner
132132
watch_us_online: Watch us online
133-
header_deck: Presentation
133+
header_deck: Presentation
134+
slide_download: Slide

_includes/schedule-day1.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
{{ yangyang[0].topicEN }}
4141
{% endif %}
4242
<a href="/files/{{yangyang[0].file}}" target="new" class="deck-link">
43-
<span>Slide</span>
43+
<span>{% t slide_download %}</span>
4444
<svg class="icon-svg icon-download"><use xlink:href="#icon-download"></use></svg>
4545
</a>
4646
</div>
@@ -86,7 +86,7 @@
8686
{{ evanyou[0].topicEN }}
8787
{% endif %}
8888
<a href="/files/{{evanyou[0].file}}" target="new" class="deck-link">
89-
<span>Slide</span>
89+
<span>{% t slide_download %}</span>
9090
<svg class="icon-svg icon-download"><use xlink:href="#icon-download"></use></svg>
9191
</a>
9292
</div>
@@ -113,7 +113,7 @@
113113
{{ neonie[0].topicEN }}
114114
{% endif %}
115115
<a href="/files/{{neonie[0].file}}" target="new" class="deck-link">
116-
<span>Slide</span>
116+
<span>{% t slide_download %}</span>
117117
<svg class="icon-svg icon-download"><use xlink:href="#icon-download"></use></svg>
118118
</a>
119119
</div>
@@ -136,7 +136,7 @@
136136
{{ ryanchen[0].topicEN }}
137137
{% endif %}
138138
<a href="/files/{{ryanchen[0].file}}" target="new" class="deck-link">
139-
<span>Slide</span>
139+
<span>{% t slide_download %}</span>
140140
<svg class="icon-svg icon-download"><use xlink:href="#icon-download"></use></svg>
141141
</a>
142142
</div>
@@ -159,7 +159,7 @@
159159
{{ huangxuan[0].topicEN }}
160160
{% endif %}
161161
<a href="{{huangxuan[0].file}}" target="new" class="deck-link">
162-
<span>Slide</span>
162+
<span>{% t slide_download %}</span>
163163
<svg class="icon-svg icon-download"><use xlink:href="#icon-download"></use></svg>
164164
</a>
165165
</div>

_includes/schedule-day2.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{{ wyattlyonpreul[0].topicEN }}
2020
{% endif %}
2121
<a href="/files/{{wyattlyonpreul[0].file}}" target="new" class="deck-link">
22-
<span>Slide</span>
22+
<span>{% t slide_download %}</span>
2323
<svg class="icon-svg icon-download"><use xlink:href="#icon-download"></use></svg>
2424
</a>
2525
</div>
@@ -43,7 +43,7 @@
4343
{{ puling[0].topicEN }}
4444
{% endif %}
4545
<a href="/files/{{puling[0].file}}" target="new" class="deck-link">
46-
<span>Slide</span>
46+
<span>{% t slide_download %}</span>
4747
<svg class="icon-svg icon-download"><use xlink:href="#icon-download"></use></svg>
4848
</a>
4949
</div>
@@ -67,7 +67,7 @@
6767
{{ jonashelfer[0].topicEN }}
6868
{% endif %}
6969
<a href="/files/{{jonashelfer[0].file}}" target="new" class="deck-link">
70-
<span>Slide</span>
70+
<span>{% t slide_download %}</span>
7171
<svg class="icon-svg icon-download"><use xlink:href="#icon-download"></use></svg>
7272
</a>
7373
</div>
@@ -91,7 +91,7 @@
9191
{{ joelarvidsson[0].topicEN }}
9292
{% endif %}
9393
<a href="/files/{{joelarvidsson[0].file}}" target="new" class="deck-link">
94-
<span>Slide</span>
94+
<span>{% t slide_download %}</span>
9595
<svg class="icon-svg icon-download"><use xlink:href="#icon-download"></use></svg>
9696
</a>
9797
</div>
@@ -112,7 +112,7 @@
112112
<div class="topic">
113113
Graduating your node.js API to production environment
114114
<a href="/files/12-nodejs-for-the-production-juha-makara.pdf" target="new" class="deck-link">
115-
<span>Slide</span>
115+
<span>{% t slide_download %}</span>
116116
<svg class="icon-svg icon-download"><use xlink:href="#icon-download"></use></svg>
117117
</a>
118118
</div>
@@ -135,7 +135,7 @@
135135
{{ yangjianghua[0].topicEN }}
136136
{% endif %}
137137
<a href="/files/{{yangjianghua[0].file}}" target="new" class="deck-link">
138-
<span>Slide</span>
138+
<span>{% t slide_download %}</span>
139139
<svg class="icon-svg icon-download"><use xlink:href="#icon-download"></use></svg>
140140
</a>
141141
</div>
@@ -158,7 +158,7 @@
158158
{{ zhenye[0].topicEN }}
159159
{% endif %}
160160
<a href="/files/{{zhenye[0].file}}" target="new" class="deck-link">
161-
<span>Slide</span>
161+
<span>{% t slide_download %}</span>
162162
<svg class="icon-svg icon-download"><use xlink:href="#icon-download"></use></svg>
163163
</a>
164164
</div>

dist/scss/pages/_homepage.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,10 @@
773773
.deck-link {
774774
display: inline-block;
775775
border: 1px solid #4921CC;
776-
font-size: 1.6rem;
776+
font-size: 1.4rem;
777777
padding: 0 5px;
778778
line-height: normal;
779+
.icon-svg {
780+
vertical-align: middle;
781+
}
779782
}

main.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,8 @@ button.close:hover:before{opacity:.8}
467467
@media (min-width:1024px){#schedule .schedule-details-heading .title{line-height:1.5}
468468
#organizer p{width:60%}
469469
}
470-
.deck-link{display:inline-block;border:1px solid #4921CC;font-size:1.6rem;padding:0 5px;line-height:normal}
470+
.deck-link{display:inline-block;border:1px solid #4921CC;font-size:1.4rem;padding:0 5px;line-height:normal}
471+
.deck-link .icon-svg{vertical-align:middle}
471472
.content h2{margin-bottom:48px}
472473
.content .action{width:100%;text-align:center}
473474
.content .action .button{display:inline-block;margin:84px auto}

0 commit comments

Comments
 (0)