Skip to content

Commit 842ea94

Browse files
authored
Merge pull request #86 from yasslab/add-footer-logo
Add section of sponsers logo
2 parents 467902e + 3081038 commit 842ea94

File tree

11 files changed

+59
-2
lines changed

11 files changed

+59
-2
lines changed
16.2 KB
Loading
129 KB
Binary file not shown.

app/assets/images/logos/osscafe.png

27.1 KB
Loading

app/assets/images/logos/osscafe.pxm

164 KB
Binary file not shown.

app/assets/images/logos/scrivito.png

65.3 KB
Loading

app/assets/images/logos/scrivito.pxm

225 KB
Binary file not shown.

app/assets/images/logos/yasslab.png

49.7 KB
Loading

app/assets/images/logos/yasslab.pxm

283 KB
Binary file not shown.

app/assets/stylesheets/custom.scss

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,35 @@ div #README{
3838
margin: 0 !important;
3939
}
4040

41+
// Sponsor section
42+
.sponsors_logo {
43+
ul{
44+
padding-left: 0px;
45+
}
46+
li{
47+
list-style-type: none;
48+
display: inline-block;
49+
padding-top: 20px;
50+
width: 300px;
51+
height: 120px;
52+
53+
@media only screen and (min-width: 560px) {
54+
padding: 20px 0px 0px 0px;
55+
margin: 0px 0px 0px 0px;
56+
width: 220px;
57+
height: 100px;
58+
}
59+
@media only screen and (min-width: 720px) {
60+
padding: 0px 20px 0px 20px;
61+
margin: 20px 0px 0px 0px;
62+
width: 320px;
63+
height: 100px;
64+
}
65+
img{
66+
width:100%;
67+
}
68+
}
69+
}
4170

4271
// Customized by @coderdojo-tokyo
4372

app/views/custom_widget/show.html.erb

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,27 @@
107107

108108
<p>本家サイトである CoderDojo (英語) では世界中の活動の様子が見れます。また、Facebook の CoderDojo Japan では日本全国の活動の様子を知ることができます。</p>
109109
<p>「これまでの成り立ちを知りたい」「地元で道場を立ち上げてみたい」といった場合には <a href="/kata">CoderDojo Kata</a> を参照してみてください。</p>
110-
<br />
111-
<h2>お問い合わせ</h2>
110+
</section>
111+
</div>
112+
113+
<div id="sponsors">
114+
<section class='detail-introduction sponsors_logo text-center'>
115+
<h2>スポンサー</h2>
116+
<ul>
117+
<li><a href="https://case-shinjuku.com/">
118+
<%= image_tag "logos/case-shinjuku.png"%></a></li>
119+
<li><a href="http://www.osscafe.net/">
120+
<%= image_tag "logos/osscafe.png"%></a></li>
121+
<li><a href="https://scrivito.com/">
122+
<%= image_tag "logos/scrivito.png"%></a></li>
123+
<li><a href="https://yasslab.jp/">
124+
<%= image_tag "logos/yasslab.png"%></a></li>
125+
</ul>
126+
</section>
127+
</div>
128+
<div class="text-center grayscale-bg">
129+
<section class='detail-introduction'>
130+
<h2>お問い合わせ</h2>
112131

113132
<p>取材や支援などのお問い合わせについては、下記からご連絡ください 📨<br />
114133
メールの場合は担当の安川まで (<i>yohei@coderdojo.jp</i>) ご連絡ください。</p>

test/integration/top_test.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# -*- coding: utf-8 -*-
2+
require 'test_helper'
3+
4+
class Toptest < ActionDispatch::IntegrationTest
5+
test "Sponser links should be exist" do
6+
get "/"
7+
assert_select 'section.sponsors_logo a[href]', count:4
8+
end
9+
end

0 commit comments

Comments
 (0)