Skip to content

Commit 5964b03

Browse files
committed
🔗 ヘッダーとフッターのNewsリンクを内部 /news ページへ変更
- ヘッダーのNews リンク: '/#news' → news_index_path - フッターのNews リンク: '/#news' → '/news' - フッターのNews アイコン: news_url → news_index_path これにより、すべてのNewsリンクが外部サイト(news.coderdojo.jp)ではなく 内部の /news ページを指すように統一されました
1 parent a8a99a7 commit 5964b03

File tree

3 files changed

+17
-22
lines changed

3 files changed

+17
-22
lines changed

app/views/news/index.html.erb

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,20 @@
44
<% provide :meta_image, "/img/ogp-news.jpeg" %>
55

66
<div class='container'>
7-
<section class='news' style='padding: 50px 0px;'>
7+
<section class='news' style='padding: 50px 0px 0px;'>
88
<h2 class='text-center'><%= @title.html_safe %></h2>
99

10-
<p class='text-center' style='padding-bottom: 50px;'>
10+
<p class='text-center' style='padding-top: 30px;'>
1111
<%= @desc.html_safe %>
1212
</p>
13-
13+
</section>
14+
15+
<section class="text-center list" style='margin-bottom: 30px;'>
16+
<%= render 'shared/dojo_letter_signup' %>
17+
<%= render 'shared/social_buttons' %>
18+
</section>
19+
20+
<section class='news' style='padding: 50px 0px;'>
1421
<% if @news_items.any? %>
1522
<div class="news-list">
1623
<% @news_items.each do |news| %>
@@ -30,20 +37,8 @@
3037
<% end %>
3138
</section>
3239

33-
<%= render 'shared/dojo_letter_signup' %>
34-
35-
<div style="margin-bottom: 40px;">
36-
<p style="color: #5F5F5F">
37-
<small>
38-
最新情報は
39-
<a href="https://news.coderdojo.jp" target="_blank" rel="noopener">CoderDojo Japan ブログ</a>
40-
<a href="https://www.facebook.com/groups/coderdojo.jp/" target="_blank" rel="noopener">Facebook グループ</a>
41-
でも配信しています! 📰✨
42-
</small>
43-
</p>
44-
</div>
45-
46-
<section class="text-center list" style='margin-bottom: 30px;'>
40+
<section class="text-center list" style='margin-bottom: 100px;'>
41+
<%= render 'shared/dojo_letter_signup' %>
4742
<%= render 'shared/social_buttons' %>
48-
</section>
49-
</div>
43+
</section>
44+
</div>

app/views/shared/_footer.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h2 style="line-height: 30px;">
33
<a class="footer-link" href="/" title="トップページに戻ります">Top</a>
44
| <a class="footer-link" href="/kata" title="道場情報まとめ「Kata」を見る">Kata</a>
5-
| <a class="footer-link" href="/#news" title="最近のニュース「DojoLetter」を見る">News</a>
5+
| <a class="footer-link" href="/news" title="最近のニュース「DojoLetter」を見る">News</a>
66
| <a class="footer-link" href="/docs" title="公式資料まとめ「Docs」を見る">資料</a>
77
| <a class="footer-link" href="/charter" title="CoderDojo 憲章を見る">憲章</a>
88
| <a class="footer-link" href="/stats" title="CoderDojo の統計データを見る">統計</a>
@@ -16,7 +16,7 @@
1616
</h2>
1717

1818
<h2>
19-
<%= link_to news_url do %>
19+
<%= link_to news_index_path do %>
2020
<i class="fa fa-newspaper-o fa-3x fa-fw" aria-hidden="true" title="News"></i>
2121
<% end %>
2222
<%= link_to facebook_page_url do %>

app/views/shared/_header.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<%= link_to '最近の活動', '/#news' %>
2222
<span class="navbar-dd-l"></span>
2323
<ul class="navbar-dd">
24-
<li><%= link_to '📰 News', '/#news' %></li>
24+
<li><%= link_to '📰 News', news_index_path %></li>
2525
<li><%= link_to '📻 Podcast', '/podcasts' %></li>
2626
<li><%= link_to '📺 YouTube', '/youtube' %></li>
2727
<li><%= link_to '📚 その他', '/#kata' %></li>

0 commit comments

Comments
 (0)