Skip to content

Commit

Permalink
Improve donation flows to new page
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Apr 3, 2024
1 parent c295ec1 commit 7c2064a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
4 changes: 2 additions & 2 deletions locale/cy_GB.UTF-8/LC_MESSAGES/TheyWorkForYou.po
Original file line number Diff line number Diff line change
Expand Up @@ -1673,8 +1673,8 @@ msgstr "Cofrestrwch am y newyddion diweddaraf gan mySociety"
msgid "Your data"
msgstr "Eich data"

#: www/includes/easyparliament/templates/html/footer.php:44
msgid "Your donations keep this site and others like it running"
#: www/includes/easyparliament/templates/html/footer.php:43
msgid "This site is not publicly funded. Support our mission of making UK politics more transparent and accessible."
msgstr "Mae eich rhoddion yn parhau bodolaeth y safle hwn ac eraill tebyg iddo"

#: www/includes/easyparliament/templates/html/footer.php:45
Expand Down
13 changes: 13 additions & 0 deletions www/docs/style/sass/parts/_donate_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,16 @@
font-size: 0.75em;
}
}

.inline-donation-box {
a.button {
text-decoration: none;
}
}

@media only screen and (max-width: 600px) {
.inline-donation-box a {
display: block;
margin-bottom: 10px; /* Adjust as needed */
}
}
4 changes: 2 additions & 2 deletions www/includes/easyparliament/templates/html/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@

<div class="medium-3 columns">
<div class="mysoc-footer__donate">
<p><?= gettext('Your donations keep this site and others like it running') ?></p>
<a href="https://www.mysociety.org/donate?utm_source=theyworkforyou.com&utm_content=footer+donate+now&utm_medium=link&utm_campaign=mysoc_footer" class="mysoc-footer__donate__button"><?= gettext('Donate now') ?></a>
<p><?= gettext('This site is not publicly funded. Support our mission of making UK politics more transparent and accessible.') ?></p>
<a href=/support-us/?utm_source=theyworkforyou.com&utm_content=footer+donate+now&utm_medium=link&utm_campaign=mysoc_footer" class="mysoc-footer__donate__button"><?= gettext('Donate now') ?></a>
</div>
</div>

Expand Down
12 changes: 11 additions & 1 deletion www/includes/easyparliament/templates/html/mp/votes.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,19 @@
<p>
You can read more about <a href="/voting-information/#voting-summaries">how this works</a>, <a href="/voting-information/#what-kind-of-votes-are-included-in-theyworkforyou-s-policies">the kinds of votes we include</a>, <a href="/voting-information/#comparison-to-parties">how we compare MPs to parties</a>, and <a href="/voting-information/#votes-are-not-opinions-but-they-matter">why we think this is important</a>.</a>
</p>
<hr />
<p>
If you want to support and help us improve this work, please consider <a href="https://www.mysociety.org/donate?utm_source=theyworkforyou.com&utm_content=vote-desc&utm_medium=link&utm_campaign=voting_page">donating</a>.
These summaries are created by the team at TheyWorkForYou. We are independent of Parliament and receive no public funding for this work.
</p>
<p>
If you want to support and help us improve these summaries, please consider <a href="https://www.mysociety.org/donate?utm_source=theyworkforyou.com&utm_content=vote-desc&utm_medium=link&utm_campaign=voting_page">donating</a>.
</p>
<div class="inline-donation-box">
<a href="/support-us/?how-often=annually&how-much=10" class="button">Donate £10 a year</a>
<a href="/support-us/?how-often=one-off&how-much=25" class="button" >Donate £25 once</a>
<a href="/support-us/" class="button">Donate another amount</a>
</div>
<p>Learn more about <a href="/support-us/#why-does-mysociety-need-donations-for-these-sites">how we'll use your donation</a> and <a href="/support-us/#i-want-to-be-a-mysociety-supporter">other ways to help</a>.</p>
</div>

<?php if ($party_switcher == true): ?>
Expand Down

0 comments on commit 7c2064a

Please sign in to comment.