Skip to content

Commit 83d9af0

Browse files
committed
♻️ CSS クラス名を dojocast-cover から cover-wide に変更
- 汎用的な名前に変更することで、DojoCast 以外のページ(News、Docs)でも再利用可能に - border-radius: 0px でカバー画像の角を直角に - 全ての関連ビューファイルを更新
1 parent ccb62ba commit 83d9af0

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

app/assets/stylesheets/custom.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ img.emoji {
9494
transition: opacity 300ms;
9595
}
9696

97-
/* DojoCast Cover Photo */
98-
.dojocast-cover {
97+
/* Wide Cover Photo (used by DojoCast, News, Docs, etc.) */
98+
.cover-wide {
9999
border-radius: 0px;
100100
}
101101

app/views/docs/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<% provide :meta_image, "/img/ogp-docs.jpeg" %>
55

66
<section class="cover">
7-
<%= lazy_image_tag 'docs_cover.jpg', alt: 'Cover Photo on Docs', min: false %>
7+
<%= lazy_image_tag 'docs_cover.jpg', alt: 'Cover Photo on Docs', min: false, class: 'cover-wide' %>
88
</section>
99

1010
<div class='container'>

app/views/news/index.html.erb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
<% provide :url, @url %>
44
<% provide :meta_image, "/img/ogp-news.jpeg" %>
55

6-
<section class="cover">
7-
<%= lazy_image_tag 'news_cover.jpg', alt: 'Cover Photo on News', min: false %>
8-
</section>
6+
<%= lazy_image_tag 'news_cover.jpg', alt: 'Cover Photo on News', class: 'cover-wide' %>
97

108
<div class='container'>
119
<section class='news' style='padding: 50px 0px 0px;'>
@@ -43,7 +41,7 @@
4341
</div>
4442

4543
<section class="cover">
46-
<%= lazy_image_tag '/coderdojo_object.webp', alt: 'CoderDojo Object' %>
44+
<%= lazy_image_tag '/coderdojo_object.webp', alt: 'CoderDojo Object', class: 'cover-wide' %>
4745
</section>
4846

4947
<div class='container'>

app/views/podcasts/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<% provide(:url, @url ) %>
44
<% provide(:meta_image, "/img/ogp-dojocast.jpeg") %>
55

6-
<%= lazy_image_tag('/podcasts/dojocast-cover.webp', alt: 'DojoCast Cover Photo', class: 'dojocast-cover') %>
6+
<%= lazy_image_tag('/podcasts/dojocast-cover.webp', alt: 'DojoCast Cover Photo', class: 'cover-wide') %>
77

88
<div class="container" style="line-height: 2.2em;">
99
<section class="doc" style="padding: 50px 0px 0px 0px;">

app/views/podcasts/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<% provide :url, @url %>
44
<% provide :meta_image, @episode.cover %>
55

6-
<%= lazy_image_tag('/podcasts/dojocast-cover.webp', alt: 'DojoCast Cover Photo', class: 'dojocast-cover') %>
6+
<%= lazy_image_tag('/podcasts/dojocast-cover.webp', alt: 'DojoCast Cover Photo', class: 'cover-wide') %>
77

88
<style type="text/css">
99
.prev { display: table-cell; font-color: white; text-align: left; }

0 commit comments

Comments
 (0)