Improve formatting of p2p campaigns

This commit is contained in:
Eric Schultz 2018-11-19 13:53:15 -06:00
parent 1c1e62d091
commit 478825a47a
2 changed files with 5 additions and 26 deletions

View file

@ -103,7 +103,7 @@
</div> </div>
</aside> </aside>
<% unless current_campaign_editor? %> <% unless current_campaign_editor? || @campaign.child_campaign? %>
<aside class='u-marginTop--15'> <aside class='u-marginTop--15'>
<a class='button u-width--full' target='_blank' if-branded='background-color, dark' href='/peer-to-peer?npo_id=<%=@nonprofit.id %>'> <a class='button u-width--full' target='_blank' if-branded='background-color, dark' href='/peer-to-peer?npo_id=<%=@nonprofit.id %>'>
Start Your Own Campaign for <%= @nonprofit.name %> Start Your Own Campaign for <%= @nonprofit.name %>
@ -120,8 +120,8 @@
reason_for_supporting: @campaign.reason_for_supporting reason_for_supporting: @campaign.reason_for_supporting
%> %>
<section class='box'> <section class='box u-centered' style="margin-top:20px; margin-bottom:20px;">
<a class='button u-width--full' target='_blank' if-branded='background-color, dark' href='/peer-to-peer?campaign_id=<%= @peer_to_peer_campaign_param %>'> <a class='button--jumbo' target='_blank' if-branded='background-color, dark' href='/peer-to-peer?campaign_id=<%= @peer_to_peer_campaign_param %>'>
Start Your Own Campaign for <%= @nonprofit.name %> Start Your Own Campaign for <%= @nonprofit.name %>
</a> </a>
</section> </section>

View file

@ -1,26 +1,5 @@
<section class='box' style="font-style:italic"> <section class='box' style="font-style: italic">
<div class="well"> <div class="well" style="padding-left:16px;">
<h4><%= profile.name %> <small>(<%= profile.city %><% if profile.state_code && profile.city %><%= profile.city_state %> <%= profile.state_code %><% end %>)</small></h4> <h4><%= profile.name %> <small>(<%= profile.city %><% if profile.state_code && profile.city %><%= profile.city_state %> <%= profile.state_code %><% end %>)</small></h4>
<blockquote><p>"<%= reason_for_supporting %>"</p></blockquote></div> <blockquote><p>"<%= reason_for_supporting %>"</p></blockquote></div>
<!-- <section class="campaigner-profile">-->
<!-- <figure>-->
<!-- <div class="avatar">-->
<!-- <img src='<%#= profile.picture %>' />-->
<!-- </div>-->
<!-- <figcaption>-->
<!-- <p><%#= profile.name %></p>-->
<!-- <p><%#= profile.city %></p>-->
<%# if profile.state_code && profile.city %>
<!-- <p><%#= profile.city_state %> <%#= profile.state_code %></p>-->
<%# end %>
<!-- </figcaption>-->
<!-- </figure>-->
<!-- <section class='u-marginBottom--15 pastelBox--grey'>-->
<!-- <header>What's your reason for supporting <%#= campaign_name %>?</header>-->
<!-- <div class='pastelBox-body'>-->
<%#= reason_for_supporting %>
<!-- </div>-->
<!-- </section>-->
<!-- </section>-->
</section> </section>