Skip to content

Commit 6b4c640

Browse files
authored
セッションページのスライドへのリンクのデザインを修正 (#135)
スライドのアイコンは自作しました。
1 parent 571740c commit 6b4c640

File tree

5 files changed

+66
-9
lines changed

5 files changed

+66
-9
lines changed

assets/scss/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
@import "partials/staff.scss";
66
@import "partials/live_panels.scss";
77

8+
@import "sessions/single.scss";
89
@import "staffs/list.scss";
910
@import "schedule/list.scss";
1011

assets/scss/sessions/single.scss

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
body.sessions {
2+
.talkLinks {
3+
margin: var(--space-4) 0;
4+
padding: 0;
5+
list-style: none;
6+
text-align: center;
7+
8+
.talkLinks_link {
9+
display: inline;
10+
margin-left: var(--space-3);
11+
margin-right: var(--space-3);
12+
13+
a {
14+
display: inline-flex;
15+
align-items: center;
16+
17+
margin: var(--space-4);
18+
padding: .25em 1em;
19+
border-radius: 1em;
20+
21+
background: var(--primary);
22+
color: var(--primary-txt);
23+
font-size: 125%;
24+
25+
.icon {
26+
width: 1em;
27+
}
28+
29+
&:hover {
30+
box-shadow: .0625em .0625em .125em var(--darken-3);
31+
}
32+
}
33+
}
34+
}
35+
}

i18n/en.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,11 @@ other = "Partner Session Speakers"
113113
##########
114114

115115
[staff_green]
116-
other = "Green Partner Staffs"
116+
other = "Green Partner Staffs"
117+
118+
############
119+
# Sessions #
120+
############
121+
122+
[session_slides]
123+
other = "Slides"

i18n/ja.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,11 @@ other = "スポンサーセッションスピーカー"
116116
##########
117117

118118
[staff_green]
119-
other = "グリーンスポンサースタッフ"
119+
other = "グリーンスポンサースタッフ"
120+
121+
############
122+
# Sessions #
123+
############
124+
125+
[session_slides]
126+
other = "スライド"

layouts/sessions/single.html

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,21 @@ <h1 class="text">{{ .Title }}</h1>
6666
title="YouTube Video"></iframe>
6767
</div>
6868
{{ end }}
69+
</div>
6970

70-
{{ if .Params.presentation }}
71-
<a class="social-slides"
72-
href="{{ .Params.presentation }}"
73-
rel="noreferrer"
74-
target="_blank">Voir les slides</a>
75-
{{ end }}
76-
71+
<div>
72+
<ul class="talkLinks">
73+
{{ if .Params.Slides }}
74+
<li class="talkLinks_link">
75+
<a href="{{ .Params.Slides }}"
76+
rel="noreferrer"
77+
target="_blank">
78+
<svg class="icon" xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 16.933 16.933"><g transform="translate(-.334 .167)"><rect style="fill:#fff;fill-opacity:0;fill-rule:nonzero;stroke:currentColor;stroke-width:1.05833;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" width="15" height="11.25" x="1.301" y="2.675" ry=".087" fill="none"/><rect style="fill:currentColor;fill-opacity:1;fill-rule:nonzero;stroke:#000;stroke-width:0;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none" width="7" height="1" x="5.301" y="6.502" ry="0"/><rect style="fill:currentColor;fill-opacity:1;fill-rule:nonzero;stroke:#000;stroke-width:0;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none" width="9" height="1" x="4.301" y="9.166" ry="0"/></g></svg>
79+
{{ i18n "session_slides" }}
80+
</a>
81+
</li>
82+
{{ end }}
83+
</ul>
7784
</div>
7885

7986
</section>

0 commit comments

Comments
 (0)