added new landing page
This commit is contained in:
1
app/views/landings/_image.html.erb
Normal file
1
app/views/landings/_image.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<div class="landing-post"><a href="<%= post_path(post) %>"><img src="<%= post.medium_file_url %>" width="<%= post.medium_image_width %>" height="<%= post.medium_image_height %>"><div class="data"><p><%= post.essential_tag_string %></p></div></a></div>
|
||||
8
app/views/landings/_tag.html.erb
Normal file
8
app/views/landings/_tag.html.erb
Normal file
@@ -0,0 +1,8 @@
|
||||
<!--
|
||||
- tag
|
||||
-->
|
||||
<div>
|
||||
<% @explorer.search(tag, 300).each do |post| %>
|
||||
<%= post.presenter.medium_image_html(self, :max_height => 300) %>
|
||||
<% end %>
|
||||
</div>
|
||||
22
app/views/landings/show.html.erb
Normal file
22
app/views/landings/show.html.erb
Normal file
@@ -0,0 +1,22 @@
|
||||
<div id="c-landings">
|
||||
<div id="a-show">
|
||||
<h1><%= link_to Danbooru.config.app_name, posts_path %></h1>
|
||||
<p class="slogan">Find good art fast</p>
|
||||
|
||||
<div class="column">
|
||||
<% @explorer.col1.each do |post| %>
|
||||
<%= render "image", :post => post %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<div class="column">
|
||||
<% @explorer.col2.each do |post| %>
|
||||
<%= render "image", :post => post %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
<%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user