Skip to content
This repository was archived by the owner on Mar 19, 2020. It is now read-only.

Commit 9608a5e

Browse files
author
Yuma Soga (YuSan | ゆ~さん)
authored
Merge pull request #32 from CoderDojo-Konan-Okayama/add/card_button_and_image
#30 #31 Add next event button and image at About Section
2 parents 8e60437 + 53b3293 commit 9608a5e

18 files changed

+31
-18
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
/log/*
1616
!/log/.keep
1717
/tmp
18-
/coverage
18+
/coverage
19+
/config/master.key
Loading
Loading
Loading
Loading
Loading
Loading
File renamed without changes.
File renamed without changes.

app/assets/stylesheets/application.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*= require font-awesome
1616
*/
1717
body {
18-
background-color: whitesmoke;
18+
background-color: floralwhite;
1919
}
2020
::-webkit-scrollbar{
2121
width: 12px;

app/assets/stylesheets/pages.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// You can use Sass (SCSS) here: http://sass-lang.com/
44
.pages-layout {
55
.pages-layout__header {
6-
background-image: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)), image-url('coderdojo-konan-header-image-1.jpg');
7-
background-size: cover;
6+
background-image: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)), image-url('coderdojo-konan-header-image-1.jpg');
7+
background-size: cover;
88
background-position: center;
99
.mdl-layout__header-row {
1010
margin-top: 0.5rem;

app/assets/stylesheets/staticpages.scss

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,15 @@
5151
}
5252
main {
5353
article {
54-
margin: 0.5rem;
54+
margin-top: 3rem;
55+
margin: 1rem;
5556
#about-section {
56-
padding: 0.8rem;
57+
padding: 1rem;
58+
.mdl-card__title {
59+
height: 25rem;
60+
background: linear-gradient(rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 90%, rgba(0, 0, 0, 1)), image-url('index/introduction-image/dojo-image-05.jpg') center / cover;
61+
color: snow;
62+
}
5763
.twitter-share-button-style {
5864
vertical-align: top;
5965
display: inline-block;
@@ -67,11 +73,14 @@ article {
6773
.about-section-card {
6874
width: 100%;
6975
height: 100%;
70-
padding: 0.5rem;
76+
// padding: 0.5rem;
77+
}
78+
.next-event-button {
79+
margin: 1rem;
7180
}
7281
}
7382
#language-section {
74-
padding: 0.8rem;
83+
padding: 1rem;
7584
.language-section-card {
7685
width: 100%;
7786
height: 100%;
@@ -88,15 +97,15 @@ article {
8897
}
8998
}
9099
#summary-section {
91-
padding: 0.8rem;
100+
padding: 1rem;
92101
.summary-section-card {
93102
width: 100%;
94103
height: 100%;
95104
padding: 0.5rem;
96105
}
97106
}
98107
#partner-section {
99-
padding: 0.8rem;
108+
padding: 1rem;
100109
.partner-section-card {
101110
width: 100%;
102111
height: 100%;
@@ -140,7 +149,7 @@ article {
140149
}
141150
}
142151
#contact-section {
143-
padding: 0.8rem;
152+
padding: 1rem;
144153
.contact-section-card {
145154
width: 100%;
146155
height: 100%;

app/views/staticpages/index.html.haml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,26 +66,29 @@
6666
%li PHP, Python, Ruby, Unity
6767
%li Arduino, Raspberry Pi など
6868
%p 道場ごとに内容も規模も違いますが、Ninjaの自主性を重視している姿勢は一緒です。
69+
- unless next_event_url.nil?
70+
.mdl-card__actions.mdl-card--borde.next-event-button
71+
= link_to "次回の開催Check!", next_event_url, class: 'btn mdl-button mdl-button--colored mdl-button--raised mdl-js-button mdl-js-ripple-effect'
6972
%section#language-section
7073
.language-section-card.mdl-card.mdl-shadow--2dp
7174
.mdl-card__title
7275
%h1.mdl-card__title-text CoderDojo 岡山 岡南での主な言語・ツール
7376
.mdl-card__supporting-text
7477
.mdl-grid
7578
.mdl-cell.mdl-cell--3-col.mdl-cell--8-col-tablet.language-section-card-cell
76-
%img{:alt => "Scratch Cat", :src => "#{asset_path "scratch-cat.png"}"}/
79+
%img{:alt => "Scratch Cat", :src => "#{asset_path "index/scratch-cat.png"}"}/
7780
%p
7881
%a{:href => "https://scratch.mit.edu/"} Scratch
7982
.mdl-cell.mdl-cell--3-col.mdl-cell--8-col-tablet.language-section-card-cell
80-
%img{:alt => "Java Logo", :src => "#{asset_path "java-original.png"}"}/
83+
%img{:alt => "Java Logo", :src => "#{asset_path "index/java-original.png"}"}/
8184
%p
8285
%a{:href => "https://www.java.com/ja/"} Java
8386
.mdl-cell.mdl-cell--3-col.mdl-cell--8-col-tablet.language-section-card-cell
84-
%img{:alt => "Web系言語", :src => "#{asset_path "web-lang.png"}"}/
87+
%img{:alt => "Web系言語", :src => "#{asset_path "index/web-lang.png"}"}/
8588
%p
8689
%a HTML・CSS・JavaScript
8790
.mdl-cell.mdl-cell--3-col.mdl-cell--8-col-tablet.language-section-card-cell
88-
%img{:alt => "Ruby (on Rails)", :src => "#{asset_path "ruby-original.png"}"}/
91+
%img{:alt => "Ruby (on Rails)", :src => "#{asset_path "index/ruby-original.png"}"}/
8992
%p
9093
%a{:href => "https://www.ruby-lang.org/ja/"} Ruby (on Rails)
9194
%section#summary-section
@@ -112,15 +115,15 @@
112115
%h3 CoderDojo 岡山 岡南 は、これらのパートナー様のご支援によって成り立っております!
113116
%ul.partner-list
114117
%li.partner-list-item
115-
%img#sakura-internet-logo{:src => "#{asset_path "sakura-internet.png"}"}/
118+
%img#sakura-internet-logo{:src => "#{asset_path "index/supporter/sakura-internet.png"}"}/
116119
.mdl-tooltip{"data-mdl-for" => "sakura-internet-logo"} 「さくらのクラウド」の無償提供
117120
%p SAKURA INTERNET INC. 様
118121
%li.partner-list-item
119-
%img#esa-io-logo{:src => "#{asset_path "esa.png"}"}/
122+
%img#esa-io-logo{:src => "#{asset_path "index/supporter/esa.png"}"}/
120123
.mdl-tooltip{"data-mdl-for" => "esa-io-logo"} ドキュメント共有サービスの提供
121124
%p ESA.IO 様
122125
%li.partner-list-item
123-
%img#rimgate-logo{:src => "#{asset_path "non-logo.png"}"}/
126+
%img#rimgate-logo{:src => "#{asset_path "index/supporter/non-logo.png"}"}/
124127
.mdl-tooltip{"data-mdl-for" => "rimgate-logo"} サーバー・ドメイン代などの支援
125128
%p リムゲイト株式会社 様
126129
%section#contact-section

0 commit comments

Comments
 (0)