Skip to content

Commit c9995e6

Browse files
committed
Convert HTML to ERB: Pokemon resources
1 parent 5d6947f commit c9995e6

File tree

6 files changed

+142
-162
lines changed

6 files changed

+142
-162
lines changed

app/views/pokemons/new.html.erb

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<% provide(:title, '『プログラミングでポケモンをうごかしてみよう』に参加する皆さまへ') %>
2+
<% provide(:desc, '『プログラミングでポケモンをうごかしてみよう』のワークショップで必要となるポケモン素材のダウンロードお申し込みフォームです。') %>
3+
<% provide(:url, '/pokemon') %>
4+
<% provide(:meta_image, '/img/pokemon_scratch.png') %>
5+
6+
<div class="container">
7+
<section class="introduction" style="padding: 50px 0px;">
8+
<div class="text-center">
9+
<h1 style="line-height: 1.4em;">
10+
ポケモン素材の<br class="ignore-pc" />ダウンロード
11+
</h1>
12+
<%= lazy_image_tag '/img/pokemon_scratch.png', alt: 'ポケモン・ワークショップのカバー画像', min: true, style: 'padding-bottom: 50px; border-radius: 4px;' %>
13+
</div>
14+
<p>
15+
<%= link_to 'プログラミングでポケモンをうごかしてみよう', pokemon_workshop_path %>』のワークショップで使うポケモン素材です。
16+
</p>
17+
<blockquote style="border: 1px solid black; padding: .5em 1.5em; margin: 1em 0 1.5em; margin: 50px auto 50px;">
18+
<p style="font-weight: bolder;">
19+
🆕
20+
本ワークショップは、2024年度にダウンロード版からオンライン版に移行しました。CoderDojo 運営者の方で本ワークショップ実施予定の方は <%= link_to 'Kata', kata_path(anchor: 'pokemon') %> に記載されているリンク先から詳細をご確認ください。
21+
</p>
22+
</blockquote>
23+
<%= form_with url: pokemon_path, class: 'form' do |f| %>
24+
<div class="field">
25+
<%= f.label :email, "メールアドレス" %>
26+
<%= f.email_field :email, autofocus: true, required: true, autocomplete: "email", class: "form__field", placeholder: '例: example@gmail.com', disabled: true %>
27+
</div>
28+
<div class="field">
29+
<%= f.label :parent_name, "保護者の名前" %>
30+
<%= f.text_field :parent_name, autofocus: true, required: true, autocomplete: "name", class: "form__field", placeholder: '例: 幸田 道場', disabled: true %>
31+
</div>
32+
<div class="field">
33+
<%= f.label :participant_name, "参加者の名前" %>
34+
<%= f.text_field :participant_name, autofocus: true, required: true, autocomplete: "name", class: "form__field", placeholder: '例: 幸田 道子', disabled: true %>
35+
</div>
36+
<div class="field">
37+
<%= f.label :dojo_name, "道場名" %>
38+
<%= f.text_field :dojo_name, autofocus: true, required: true, class: "form__field", placeholder: '例: CoderDojo 柏', disabled: true %>
39+
</div>
40+
<div class="form__terms">
41+
<h2 class="form__h2">ポケモン素材の利用規約</h2>
42+
<p><small>必ず、こちらの<%= link_to 'ポケモン素材の利用規約(全文)', 'https://bit.ly/pokemon-sozai-tos', rel: 'noopener', target: '_blank' %>をご確認ください。</small></p>
43+
<ul style="list-style: none">
44+
<li style="margin-left: -14px;"><small>【特にご注意いただきたい事項】</small></li>
45+
</ul>
46+
<ul>
47+
<li><small>本素材または本素材を使った作品は、 インターネットに公開できません。例えば、本素材を使った作品のスクリーンショットをSNSで共有したり、scratch.mit.edu などで公開しないようお願いします。</small></li>
48+
<li><small>本素材を使って、政治的・宗教的・思想的な主張はできません。暴力的、残虐的、性的、差別的な表現や、犯罪行為を助長するような表現、その他公序良俗に反するような表現もお控えください。</small></li>
49+
<li><small>本素材の著作権その他一切の権利は、株式会社ポケモンまたは株式会社ポケモンに権利を許諾した第三者に帰属しています。本素材または本素材を使った作品の頒布、譲渡、公衆送信、貸与、リース、輸出、再許諾などはできません。</small></li>
50+
</ul>
51+
</div>
52+
<div class="field">
53+
<%= f.check_box :term_of_use, required: true, disabled: true, style: "display:inline" %>
54+
<%= f.label :term_of_use, "上記の利用規約(全文)に同意する", style: "display:inline" %>
55+
</div>
56+
57+
<%= f.submit "申し込む", class: "form__submit", style: "background-color: #ccc;", disabled: true, title: "本フォームは現在無効です。" %>
58+
59+
<p class="form-notes">
60+
Scratchは、Scratch財団がMITメディアラボのライフロング・キンダーガーテン・グループの協力により開発しているプロジェクトです。
61+
<%= link_to 'scratch.mit.edu', 'https://scratch.mit.edu', rel: 'noopener', target: '_blank' %> から自由に入手できます。<br><br>
62+
©2021 Pokémon. ©1995-2021 Nintendo/Creatures Inc./GAME FREAK inc。<br>
63+
ポケットモンスター・ポケモン・Pokémonは任天堂・クリーチャーズ・ゲームフリークの登録商標です。
64+
</p>
65+
<% end %>
66+
</section>
67+
</div>

app/views/pokemons/new.html.haml

Lines changed: 0 additions & 76 deletions
This file was deleted.

app/views/pokemons/show.html.erb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<% provide(:title, '『ポケモンと学ぶ初めてのプログラミング』素材ダウンロードに参加する皆さまへ') %>
2+
<% provide(:desc, '『ポケモンと学ぶ初めてのプログラミング』のワークショップで必要となるポケモン素材のダウンロードページです。') %>
3+
<% provide(:url, '/pokemon/downloads') %>
4+
<% provide(:meta_image, '/img/pokemon_scratch.png') %>
5+
6+
<div class="container" style="line-height: 2.2em;">
7+
<section class="doc text-center">
8+
<h2 style="padding: 20px 0px; line-height: 1.4em;">
9+
利用規約に同意して頂き<br class="ignore-pc" />ありがとうございます💖
10+
</h2>
11+
<img class="lazyload" loading="lazy" src="https://i.gyazo.com/612bd10c725dc91a6a3bcc2d7a6d427a.png" style="padding-bottom: 20px; border-radius: 4px; max-width: 500px;" />
12+
<p style="padding-top: 20px;">
13+
ボタンをクリックして、<br class="ignore-pc" />ポケモン素材をダウンロードしよう!
14+
</p>
15+
<%= link_to @presigned_url, class: "btn-blue", style: "max-width:320px; display:block; margin:20px auto 100px;" do %>
16+
<i class="fas fa-folder-download white"></i>
17+
ポケモン素材をダウンロードする
18+
<% end %>
19+
</section>
20+
</div>

app/views/pokemons/show.html.haml

Lines changed: 0 additions & 20 deletions
This file was deleted.

app/views/pokemons/workshop.html.erb

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<% provide(:title, '『プログラミングでポケモンをうごかしてみよう』のワークショップ事例') %>
2+
<% provide(:desc, '『プログラミングでポケモンをうごかしてみよう』のワークショップ事例を掲載しています。ワークショップの開催を予定している CoderDojo 関係者のご参考になれば幸いです。') %>
3+
<% provide(:url, '/pokemon/workshop') %>
4+
<% provide(:meta_image, '/img/pokemon_scratch.png') %>
5+
6+
<div class="container">
7+
<section class="introduction" style="padding: 50px 0px;">
8+
<div class="text-center">
9+
<h2 style="line-height: 1.4em;">ポケモンワークショップの事例紹介</h2>
10+
<%= lazy_image_tag '/img/pokemon_scratch.png', alt: 'ポケモン・ワークショップのカバー画像', min: true, style: 'padding-bottom: 50px; border-radius: 4px;' %>
11+
</div>
12+
<p style="padding-bottom: 20px; font-size: 95%;">
13+
『プログラミングでポケモンをうごかしてみよう』のワークショップ事例を載せています。<br><br class="ignore-pc" />ワークショップ開催を検討している CoderDojo 関係者の参考になれば幸いです。
14+
<div class="home-point-video">
15+
<iframe class="lazyload" loading="lazy" width="697" height="392" src="https://www.youtube.com/embed/Wr-z-QE-k8s" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="1"></iframe>
16+
</div>
17+
<div class="btn-cover">
18+
<a class="btn-blue" style="padding: 12px 0px;" href="https://www.youtube.com/watch?v=Wr-z-QE-k8s">
19+
<i class="fa fa-youtube"></i>
20+
YouTube で見る
21+
</a>
22+
</div>
23+
</p>
24+
<h3 id="references" style="padding-top: 50px;">☯️ 他の開催事例</h3>
25+
<ul>
26+
<li><a href="https://dojocon2022.coderdojo.jp/event/pokemon-workshop/">DojoCon Japan 2022 における開催事例</a></li>
27+
<li><a href="https://coderdojo-tonami.org/blog/fes-2021/">CoderDojo となみ(砺波)の開催事例</a></li>
28+
<li><a href="https://coderdojo-hikari.com/archives/20210704_report-56.html">CoderDojo 光の開催事例</a></li>
29+
<li><a href="https://coderdojo-inuyama.rgr.jp/2021/06/07/はじめてのプログラミンオンライン開催)/">CoderDojo 犬山の開催事例</a></li>
30+
<li><a href="https://www.facebook.com/groups/coderdojo.jp/posts/5678892912224061/">CoderDojo 倉敷の開催事例</a></li>
31+
</ul>
32+
<p style="padding-bottom: 10px; font-size: 95%;">
33+
ワークショップ開催方法については<br class="ignore-pc" /><%= link_to 'Kata - 支援・資料', '/kata#support' %>』をご参照ください。
34+
<div class="btn-cover">
35+
<a class="btn-blue" style="padding: 12px 0px; font-size: 90%;" href="/kata#support">
36+
<i class="fa fa-yin-yang"></i>
37+
支援・資料のページを見る
38+
</a>
39+
</div>
40+
</p>
41+
<h3 id="references" style="padding-top: 50px;">📚 関連リンク</h3>
42+
<ul>
43+
<li><a href="https://prtimes.jp/main/html/rd/p/000000003.000038935.html">プログラミングでポケモンを動かすワークショップが、全国のCoderDojoで実施可能に - PR TIMES</a></li>
44+
<li><a href="https://www.pokemon-foundation.or.jp/news/5/">全国のCoderDojoでプログラミングワークショップが実施可能に | ポケモン・ウィズ・ユー財団</a></li>
45+
<li><a href="https://takadanobaba.keizai.biz/headline/656/">プログラミングでポケモンを動かすワークショップ、全国のコーダー道場で実現 - 高田馬場経済新聞</a></li>
46+
</ul>
47+
48+
<p class="form-notes">
49+
Scratchは、Scratch財団がMIT Media Lab - The Lifelong Kindergarten Groupの<br>協力により開発しているプロジェクトです。<%= link_to 'scratch.mit.edu', 'https://scratch.mit.edu', rel: 'noopener', target: '_blank' %> から自由に入手できます。<br>
50+
<br>
51+
©2021 Pokémon. ©1995-2021 Nintendo/Creatures Inc./GAME FREAK inc。<br>
52+
ポケットモンスター・ポケモン・Pokémonは任天堂・クリーチャーズ・ゲームフリークの登録商標です。
53+
</p>
54+
</section>
55+
</div>

0 commit comments

Comments
 (0)