Skip to content

Commit 2b861e0

Browse files
committed
Xの埋め込みタイムラインが非表示になるため news.coderdojo.jp を前面に表示した
1 parent d9aea43 commit 2b861e0

File tree

2 files changed

+33
-22
lines changed

2 files changed

+33
-22
lines changed

app/views/home/show.html.haml

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,41 @@
112112
地図情報から探す
113113
= render partial: 'shared/dojos', locals: { regions_and_dojos: @regions_and_dojos }
114114
115-
%section#timeline.text-center{style: 'margin-bottom: 50px;'}
115+
/ Start with 'div' not 'section' due to grayscale-bg area
116+
/.text-center.grayscale-bg{style: "padding-top: 40px; padding-bottom: 50px;"}
117+
/ %section.detail-introduction#news
118+
%section#news.detail-introduction.text-center.list{style: 'margin: 30px auto 50px;'}
119+
%h2{style: "color: dimgray;"}
120+
%a{href: '#news'} 📰
121+
最近の CoderDojo
116122
%br
123+
124+
%ul.list{style: "list-style: none;"}
125+
%li
126+
%a{href: 'https://news.coderdojo.jp/2024/12/25/box-japan-to-coderdojo/'} 🎄 128台のノート PC 寄贈、Box Japan から CoderDojo へ
127+
%li
128+
%a{href: 'https://news.coderdojo.jp/2024/12/10/dojoletter-vol-78-2024%e5%b9%b410%e6%9c%88%e5%8f%b7/'} 📰 DojoLetter Vol.78 2024年10月号
129+
%li
130+
%a{href: 'https://news.coderdojo.jp/2024/11/11/dojoletter-vol-77-2024%e5%b9%b409%e6%9c%88%e5%8f%b7/'} 📰 DojoLetter Vol.77 2024年09月号
131+
%p{style: 'margin-top: 30px;'}
132+
最新情報はメールで受け取れます。
133+
%br.ignore-pc<>
134+
%small
135+
(毎月配信)
136+
= render partial: 'shared/newsletter'
137+
.btn-cover{style: 'margin-top: 40px;'}
138+
%a.btn-blue{href: news_url}<>
139+
%i.far.fa-newspaper
140+
過去の記事を読む
141+
142+
/%section#timeline.text-center{style: 'margin-bottom: 50px;'}
143+
/
117144
%h3.text-center{style: 'margin-bottom: 30px;'}
118145
%a{href: "https://x.com/search?vertical=default&q=dojocon%20OR%20coderdojo%20OR%20コーダー道場%20lang%3Aja"}
119146
%i.fab.fa-x-twitter
120-
最近の CoderDojo
147+
最近の CoderDojo
148+
%br
149+
/
121150
.twitter-timeline-wrap
122151
%a.twitter-timeline{href: "https://twitter.com/CoderDojoJapan?ref_src=twsrc%5Etfw",
123152
'data-lang' => "ja", "data-dnt" => "true",
@@ -185,24 +214,6 @@
185214
%i.far.fa-books
186215
資料集「Kata」を読む
187216
188-
/ Start with 'div' not 'section' due to grayscale-bg area
189-
.text-center.grayscale-bg{style: "padding-top: 40px; padding-bottom: 50px;"}
190-
%section.detail-introduction#news
191-
%br
192-
%h2{style: "color: dimgray;"}
193-
%a{href: '#news'} 📰
194-
ニュースレター購読
195-
%br
196-
%p
197-
最新情報はメールで受け取れます。
198-
%br.ignore-pc<>
199-
%small
200-
(毎月配信)
201-
= render partial: 'shared/newsletter'
202-
.btn-cover{style: 'margin-top: 40px;'}
203-
%a.btn-blue{href: dojoletter_url}<>
204-
%i.far.fa-newspaper
205-
過去の配信を読む
206217
207218
%section.detail-introduction.partners_logo.text-center#partners{style: "padding-top: 50px;"}
208219
%h2{style: "color: dimgray;"}

app/views/shared/_header.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
%li= link_to '全国の道場', '/#dojos'
1616
%li= link_to 'パートナー法人', '/#partners'
1717
%li.navbar-dd-p
18-
= link_to '最近の活動', '/#timeline'
18+
= link_to '最近の活動', '/#news'
1919
%span.navbar-dd-l
2020
%ul.navbar-dd
21-
%li= link_to '☯️ SNS', '/#timeline'
21+
/%li= link_to '☯️ SNS', '/#timeline'
2222
%li= link_to '📰 News', '/#news'
2323
%li= link_to '📻 Podcast', '/podcasts'
2424
%li= link_to '📺 YouTube', '/youtube'

0 commit comments

Comments
 (0)