Commit b4cc07b1 authored by Stephanie Kirtiadi's avatar Stephanie Kirtiadi
Browse files

Addition of templates related to donate pages.

Added donate-empty.html and donate-page model for miscellaneous
static donate page. This particular commit is for the donate
thank you page.

Issue #48276
parent fd257b66
_model: page
_model: donate-page
---
_template: layout.html
---
......@@ -6,10 +6,34 @@ title: Thank You
---
section: Donate
---
body:
section_id: donate
---
page_type: thank-you
---
header_description:
Thank you for your support of the Tor Project. You should receive an email receipt shortly. With your support, we'll be able to tackle ambitious projects, like increasing the capacity and scalability of the Tor network, taking our anti-censorship protections to the next level, and optimizing our development of Tor Browser for Android.
It's an incredible time to stand up for world-leading security and privacy software. Tell family, friends, and colleagues that you're supporting privacy and security and taking back the internet with Tor!
<div class="content-center">
<h4 class="text-white text-uppercase">Share the Tor Project</h4>
<div class="share-icons">
<a href="http://www.facebook.com/sharer.php?u=https://donate.torproject.org"><img src="/static/images/facebook-logo.png">
</a>
<a href="https://twitter.com/intent/tweet?text=Tracking%2C%20surveillance%2C%20and%20censorship%20are%20widespread%20online.%20Let%27s%20%23TakeBacktheInternet.%20Join%20me%20and%20donate%20to%20%40torproject%3A%20https%3A//donate.torproject.org"><img src="/static/images/twitter-white-on-blue.png">
</a>
</div>
</div>
---
header_description_alignment: center
---
body:
<h4 class="text-uppercase">Got Skills?</h4>
The Tor network depends on volunteers. We need people to run relays, write code, organize the community and spread the word about our good work. Learn how you can help.
<hr>
<a class="btn btn-primary" href="https://www.torproject.org/getinvolved/volunteer.html.en" target="_blank">I Want To Volunteer</a>
---
html: empty.html
html: donate-empty.html
......@@ -6,6 +6,8 @@ default_frequency_for_both: single
---
section:
---
section_id: donate
---
title: Donate
---
_template: layout.html
......
lego @ 4ff73f56
Subproject commit c5c8dfb4fec980e392ce3e758f66cf46f2a5c9fc
Subproject commit 4ff73f56641711a78c95921c40feeaa6a32839b8
[model]
name = Donate Page
label = {{ this.title }}
[fields.title]
label = Title
type = string
translate = True
[fields.section]
label = Section
type = string
translate = True
[fields.section_id]
label = Section ID
type = string
translate = False
[fields.page_type]
label = Page Type
type = string
translate = False
[fields.header_description]
label = Header Description
type = markdown
translate = True
[fields.header_description_alignment]
label = Header Description Alignment
type = select
choices = left, center, right
choice_labels = Left, Center, Right
[fields.body]
label = Body
type = markdown
translate = True
[fields.color]
label = Color
type = string
[fields.html]
label = Html
type = string
{% block body %}
<div class="donate-page">
<div class="donate-page-wrapper {{ this.page_type }}">
{{ this.body }}
</div>
</div>
{% endblock %}
......@@ -5,9 +5,11 @@
<div class="row flex-xl-nowrap">
{% set locale = bag('alternatives', this.alt) %}
<main role="main" class="mx-auto col-12 {{ locale.order }} {{ locale.direction }}">
{% if this.section_id != 'donate' %}
<div class="container py-3 mt-5 preamble">
{{ this.body }}
</div>
{% endif %}
{% include this.html %}
</main>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment