Skip to content

Commit

Permalink
Add link to YouTUbe channel and share buttons in Docs index page
Browse files Browse the repository at this point in the history
  • Loading branch information
yasulab committed Feb 21, 2024
1 parent dc8830a commit d1408e8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 18 deletions.
34 changes: 34 additions & 0 deletions app/views/docs/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<% provide :title, strip_tags(@title) %>
<% provide :desc, strip_tags(@desc) %>
<% provide :url, @url %>
<% provide :meta_image, "/img/ogp-docs.jpeg" %>

<div class='container'>
<section class='docs' style='padding: 50px 0px;'>
<h2 class='text-center'><%= @title.html_safe %></h2>

<p class='text-center' style='padding-bottom: 50px;'>
<%= @desc.html_safe %>
<br>
初めての方は
<b><%= link_to 'Kata', kata_path %></b>
をご参照ください。
</p>

<ul>
<% @docs.each do |doc| %>
<li><%= link_to doc.title, doc.url %></li>
<% end %>
</ul>
</section>

<div style="margin-bottom: 40px;">
<p style="color: #5F5F5F"><small><a href='https://www.youtube.com/CoderDojoJapan'>YouTube</a> にも資料があります! 📺✨</small></p>
<script src="https://apis.google.com/js/platform.js"></script>
<div class="g-ytsubscribe" data-channelid="UCal5GuoCDCMDQe07w69TuJA" data-layout="full" data-count="default"></div>
</div>
<section class="text-center list" style='margin-bottom: 30px;'>
<%= render 'shared/social_buttons' %>
</section>
</div>
18 changes: 0 additions & 18 deletions app/views/docs/index.html.haml

This file was deleted.

0 comments on commit d1408e8

Please sign in to comment.