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

Commit 07145c8

Browse files
author
Yuma Soga
committed
#35 Update Index Page to own desgin
1 parent fcbd42a commit 07145c8

File tree

5 files changed

+95
-17
lines changed

5 files changed

+95
-17
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ gem 'pg'
4141

4242
gem 'bootstrap', '~> 4.1.1'
4343

44+
gem 'simple_form'
45+
4446
group :development, :test do
4547
gem 'sqlite3'
4648
gem 'byebug'

Gemfile.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ GEM
257257
json (~> 1.7, >= 1.7.7)
258258
rdoc (~> 4.0)
259259
sexp_processor (4.11.0)
260+
simple_form (4.0.1)
261+
actionpack (>= 5.0)
262+
activemodel (>= 5.0)
260263
simplecov (0.13.0)
261264
docile (~> 1.1.0)
262265
json (>= 1.8, < 3)
@@ -334,6 +337,7 @@ DEPENDENCIES
334337
rspec-rails
335338
sass-rails (~> 5.0.5)
336339
sdoc (~> 0.4.0)
340+
simple_form
337341
simplecov
338342
spring
339343
sqlite3
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#thinking-together.bg-dark{
22
background-color: $gray-100 !important;
33
}
4-
#language.bg-dark{
4+
#learn-with-each-other.bg-dark{
55
background-color: $gray-100 !important;
66
}
7+
#contact {
8+
.twitter-timeline-box {
9+
display: inline-block;
10+
position: relative;
11+
margin: 0.5rem;
12+
width: 340px;
13+
height: 500px;
14+
vertical-align: top;
15+
}
16+
}

app/views/layouts/staticpages.html.haml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,25 @@
4141
%li.nav-item
4242
%a.nav-link.js-scroll-trigger{:href => "#contact"} Contact
4343
= yield
44+
45+
%footer.bg-dark
46+
.footer-connect
47+
.container
48+
.row
49+
.col-lg-12.mx-auto.my-3.text-center.text-white
50+
.footer-social
51+
%h5 Social Links
52+
.footer-social-icons
53+
%a.mx-1{ target: "_blank" , href: "https://twitter.com/coderdojo_konan", title: "Twitter" }
54+
= fa_icon "twitter 2x"
55+
%a.mx-1{ target: "_blank", href: "http://facebook.com/Coderdojo.Konan/", title: "Facebook" }
56+
= fa_icon "facebook 2x"
57+
%a.mx-1{ target: "_blank", href: "https://www.instagram.com/coderdojo_konan/", title: "Instagram" }
58+
= fa_icon "instagram 2x"
59+
%a.mx-1{ target: "_blank", href: "https://github.com/CoderDojo-Konan-Okayama", title: "Github" }
60+
= fa_icon "github 2x"
61+
%a.mx-1{ target: "_blank", href: "https://www.youtube.com/channel/UCRN6euxI9l10q6I-gVewVcw", title: "YouTube" }
62+
= fa_icon "youtube 2x"
63+
.row
64+
.col-lg-12.col-lg-12.mx-auto.my-3.text-center.text-white
65+
%p Copyright © 2018 CoderDojo Konan Okayama

app/views/staticpages/index.html.haml

Lines changed: 56 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,44 @@
8585
などに掲載されているテキストをやったりもしています。
8686
%br/
8787
とても自由な雰囲気で、そして楽しみながらやることに重点を置いているのです。
88-
%section#learn-with-each-other.bg-white.p-3
88+
%section#share-what-you-made.bg-white.p-3
8989
.container
9090
.row
9191
.col-lg-8.mx-auto.p-3.my-3
92-
%img.img-fluid{:alt => "開催風景 2", :src => "#{asset_path "index/introduction-image/dojo-image-01.jpg"}"}/
92+
%img.img-fluid{:alt => "開催風景 2", :src => "#{asset_path "index/introduction-image/dojo-image-07.png"}"}/
93+
.col-lg-8.mx-auto.my-3.text-center
94+
%h2.section-heading
95+
Share what you made
96+
%br - 作ったものを共有する
97+
%hr.my-4/
98+
%p.mb-4
99+
CoderDojo では、必ず会の終わりに発表会があります。
100+
%br/
101+
そこでは、その日に作った作品や、学んだことなどを思う存分に発表することができます。
102+
%br/
103+
素晴らしい箇所には拍手や、「すごい!」などの声があがり、やる気が上がります。
104+
%br/
105+
また、直した方が良い箇所や、悩んでいる所についても、
106+
%br/
107+
メンターや他のNinjaが一緒に考えたりしてくれます。
108+
%p.mb-4
109+
もちろん、これは Ninja だけが楽しむのではありません。
110+
%br/
111+
参加しているメンターも、時には目を見張るような、
112+
%br/
113+
素晴らしいアイデアや工夫をした作品に出会う時があります。
114+
%br/
115+
そういう時は、データを持ち帰って研究するなど、メンター自身も楽しんでいるのです。
116+
%p.mb-4
117+
このように、Ninja - メンター と双方向で楽しめるのが、CoderDojo で、
118+
%br/
119+
メンターの楽しんでいる様子を見て、また Ninja も楽しむようになるのです。
120+
121+
%section#learn-with-each-other.bg-dark.p-3
122+
.container
123+
.row
124+
.col-lg-8.mx-auto.p-3.my-3
125+
%img.img-fluid{:alt => "開催風景 3", :src => "#{asset_path "index/introduction-image/dojo-image-01.jpg"}"}/
93126
.col-lg-8.mx-auto.my-3.text-center
94127
%h2.section-heading
95128
Learn with each other and co-polish
@@ -113,7 +146,7 @@
113146
中には全くもって初対面だったのに、Dojoを通し、仲良くなったNinja達も居ます。
114147
%br/
115148
彼らは互いに切磋琢磨し、めきめきと上達してきているのです。
116-
%section#language.bg-dark
149+
%section#language.bg-white
117150
.container
118151
.row
119152
.col-lg-12.text-center
@@ -195,22 +228,29 @@
195228
-# Category
196229
-# .project-name
197230
-# Project Name
198-
%section.bg-dark.text-white
199-
.container.text-center
200-
%h2.mb-4 Free Download at Start Bootstrap!
201-
%a.btn.btn-light.btn-xl.sr-button{:href => "http://startbootstrap.com/template-overviews/creative/"} Download Now!
202231
%section#contact
203232
.container
204233
.row
205234
.col-lg-8.mx-auto.text-center
206-
%h2.section-heading Let's Get In Touch!
235+
%h2.section-heading
236+
%i.fa.fa-envelope-o.sr-contact.mx-3
237+
Contact us
207238
%hr.my-4/
208-
%p.mb-5 Ready to start your next project with us? That's great! Give us a call or send us an email and we will get back to you as soon as possible!
239+
%p.mb-5 何か気になることがございましたら、お気軽にお問い合わせください!
240+
.row
241+
.col-lg-8.mx-auto.mw-100
242+
= simple_form_for :contact_form, :html => { :class => 'form-horizontal' } do |f|
243+
= f.input :name, as: :string, placeholder: 'お名前'
244+
= f.input :email, as: :string, placeholder: 'メールアドレス'
245+
= f.input :subject, as: :string, placeholder: '件名'
246+
= f.input :body, as: :text, placeholder: '本文を入力してください。', :input_html => { :rows => 5 }
247+
= f.submit '送信', :class => 'btn btn-primary'
209248
.row
210-
.col-lg-4.ml-auto.text-center
211-
%i.fa.fa-phone.fa-3x.mb-3.sr-contact
212-
%p 123-456-6789
213-
.col-lg-4.mr-auto.text-center
214-
%i.fa.fa-envelope-o.fa-3x.mb-3.sr-contact
215-
%p
216-
%a{:href => "mailto:your-email@your-domain.com"} feedback@startbootstrap.com
249+
.col-lg-4.mx-auto.my-3.p-2.mw-100
250+
.fb-page.fb-page-style{"data-adapt-container-width" => "true", "data-hide-cover" => "false", "data-href" => "https://www.facebook.com/Coderdojo.Konan/", "data-show-facepile" => "true", "data-small-header" => "false", "data-tabs" => "timeline"}
251+
%blockquote.fb-xfbml-parse-ignore{:cite => "https://www.facebook.com/Coderdojo.Konan/"}
252+
%a{:href => "https://www.facebook.com/Coderdojo.Konan/"} CoderDojo 岡山 岡南
253+
.col-lg-4.mx-auto.my-3.p-2.mw-100
254+
.twitter-timeline-box
255+
%a.twitter-follow-button{"data-show-count" => "false", :href => "https://twitter.com/CoderDojo_Konan?ref_src=twsrc%5Etfw"} Follow @CoderDojo_Konan
256+
%a.twitter-timeline{"data-height" => "500", "data-theme" => "light", "data-width" => "340", :href => "https://twitter.com/coderdojo_konan?ref_src=twsrc%5Etfw"} Tweets by coderdojo_konan

0 commit comments

Comments
 (0)