Skip to content

Commit 090a9f2

Browse files
committed
Make top page mobile-friendly
1 parent 736b011 commit 090a9f2

File tree

3 files changed

+55
-40
lines changed

3 files changed

+55
-40
lines changed

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: >- # this means to ignore newlines until "baseurl:"
1010
url: https://dojocon2021.coderdojo.jp
1111
date_published: 2021年11月13日
1212
date_event: 2021年12月18日(土曜)10:00〜
13-
venue: オンライン (メインセッションは YouTube Live で行います。)
13+
venue: "オンライン<br><small>(セッションは <a href='https://www.youtube.com/channel/UCX3tz875ZDtU85rFkYuwl5w' style='text-decoration: underline' target='_blank' rel='noopener'>YouTube</a> でライブ配信します)</small>"
1414
price: 無料
1515

1616
twitter: DojoConJapan

_sass/_global.scss

+53-38
Original file line numberDiff line numberDiff line change
@@ -250,55 +250,70 @@ footer {
250250
}
251251

252252

253-
//フッターのシェアボタン
254-
.share {
255-
a {
256-
float: left;
257-
line-height: 60px;
258-
height: 60px;
259-
width: 50%;
260-
text-decoration-line: none;
261-
}
262-
&::after {
263-
content: '';
264-
clear: both;
265-
display: block;
266-
}
267-
.share-twitter,
268-
.share-facebook {
269-
display: block;
270-
}
253+
//フッターのシェアボタン
254+
.share {
255+
a {
256+
float: left;
257+
line-height: 60px;
258+
height: 60px;
259+
width: 50%;
260+
text-decoration-line: none;
261+
}
262+
&::after {
263+
content: '';
264+
clear: both;
265+
display: block;
271266
}
267+
.share-twitter,
272268
.share-facebook {
273-
background-color: $facebook-color;
269+
display: block;
274270
}
275-
.share-twitter {
276-
background-color: $twitter-color;
271+
}
272+
.share-facebook {
273+
background-color: $facebook-color;
274+
}
275+
.share-twitter {
276+
background-color: $twitter-color;
277+
}
278+
.share-line {
279+
background-color: $line-color;
280+
display: none;
281+
}
282+
@media screen and (max-width: 800px) {
283+
.share a {
284+
width: 100%;
277285
}
278286
.share-line {
279-
background-color: $line-color;
280-
display: none;
281-
}
282-
@media screen and (max-width: 800px) {
283-
.share a {
284-
width: 100%;
285-
}
286-
.share-line {
287-
display: block;
288-
}
287+
display: block;
289288
}
289+
}
290290

291-
.bg-main{
292-
background-color: $main-color;
293-
}
291+
.bg-main{
292+
background-color: $main-color;
293+
}
294294

295-
.title-text{
296-
font-family: 'Noto Sans JP', sans-serif;
297-
font-weight: bold;
295+
.title-text{
296+
font-family: 'Noto Sans JP', sans-serif;
297+
font-weight: bold;
298+
}
299+
300+
/* 改行位置の調整 */
301+
.ignore-pc {
302+
display: none;
303+
}
304+
.ignore-sp {
305+
display: inline;
306+
}
307+
@media screen and (max-width: 640px) {
308+
.ignore-pc {
309+
display: inline;
310+
}
311+
.ignore-sp {
312+
display: none;
298313
}
314+
}
299315

300316
// テーブル
301-
302317
table {
303318
border-collapse: collapse;
304319
border-spacing: 0;

index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ layout: default
66
<div class="top">
77
<div class="top-texts">
88
<h1>DojoCon Japan <br>{{ site.year }}</h1>
9-
<h2 class="text-center">{{ site.subtitle }}</h2>
9+
<h2 class="text-center">見渡す <br class='ignore-pc'>- the 10th anniversary -</h2>
1010
<h3 class="text-center">December 18th / ONLINE</h3>
1111
</div>
1212
</div>

0 commit comments

Comments
 (0)