Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core#8535] Pro rate limit upsell #1962

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions lib/views/user/rate_limited.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,80 @@
'{{pro_site_link}} subscription.',
pro_site_link: link_to(pro_site_name, account_request_index_path)) %>
</p>

<style>
.pro-upsell__features {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}

.pro-upsell__features div {
display: flex;
align-items: center;
gap: 10px;
}

.pro-upsell__features img {
width: 100%;
height: auto;
}

.pro-upsell__features .screenshot img {
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
border: 1px solid #DCDAD5;
border-radius: 3px;
}

.pro-upsell .marketing-highlight:before {
background: none;
}

.pro-upsell .marketing-highlight {
font-weight: 700;
}
</style>

<div class="pro-upsell">
<p>
<h4><%= _('Sending to multiple authorities at once?') %></h4>
<%= link_to _('Subscribe to {{pro_site_name}}',
pro_site_name: pro_site_name),
account_request_index_path %>
</p>
<p>
<%=_('<strong class="marketing-highlight">Make a request to ' \
'multiple authorities</strong>: select authorities at the ' \
'click of a button') %>
<br>
<%=_('<strong class="marketing-highlight">Manage large volumes of ' \
'responses</strong>: easily keep track of the status of each ' \
'request') %>
<br>
<%=_('<strong class="marketing-highlight">Get regular updates' \
'</strong> as the responses come in — without overwhelming ' \
'your inbox') %>
</p>

<div class="pro-upsell__features">
<div>
<%= image_tag('alaveteli-pro/pro-multi-send.png',
alt: _('Batch FOI requests')) %>
<%= _('No more copy and paste emails: our Batch Request tool helps ' \
'you create one request and send it to many authorities at ' \
'once.') %>
</div>
<div class="screenshot">
<%= image_tag('alaveteli-pro/screenshot-batch-selection.jpg',
alt: _('Batch requests allow multiple recipients of a ' \
'single request')) %>
</div>
<div class="screenshot">
<%= image_tag('alaveteli-pro/screenshot-batch-list.jpg',
alt: _('Batch requests are part of a new workflow')) %>
</div>
</div>
</div>
<% end %>

<% if @info_request %>
Expand Down