Skip to content

Commit

Permalink
Merge pull request #1478 from laws-africa/donate
Browse files Browse the repository at this point in the history
Seylii donate button and page
  • Loading branch information
actlikewill authored Aug 29, 2023
2 parents f7d4e25 + 79431be commit 95231fb
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 0 deletions.
1 change: 1 addition & 0 deletions liiweb/templates/liiweb/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
{% endblock %}
</div>
</section>
{% block after-search %}{% endblock %}
<section class="mt-2">
<div class="container">
<div class="row justify-content-center hero-logos mt-5 mb-3">
Expand Down
2 changes: 2 additions & 0 deletions seylii/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@
LANGUAGES = [
("en", _("English")),
]

ROOT_URLCONF = "seylii.urls" # noqa
4 changes: 4 additions & 0 deletions seylii/static/stylesheets/seylii.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ footer {
.btn.btn-primary {
color: #fff;
}

.donate {
background-color: transparentize($primary, 0.80);
}
15 changes: 15 additions & 0 deletions seylii/templates/liiweb/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ <h4 class="mb-4">
alt="judiciary-of-the-seychelles-logo"/>
<img src="{% static 'images/indigo-logo.jpg' %}" alt="indigo-logo"/>
{% endblock %}
{% block after-search %}
<section class="py-3 donate">
<div class="container">
<div class="row justify-content-center align-items-center">
<div class="col-md-6">
<h3 class="font-weight-bold">Donate to SeyLII</h3>
<p class="lead">SeyLII is an independent, self-funded organisation and needs your support.</p>
</div>
<div class="col-md-auto align-content-center">
<a class="btn btn-danger btn-lg btn-block" href="{% url 'donate' %}">Donate</a>
</div>
</div>
</div>
</section>
{% endblock %}
{% block second-col-about %}
<div>
<strong>{% trans 'About' %}</strong>
Expand Down
35 changes: 35 additions & 0 deletions seylii/templates/seylii/donate.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{% extends "peachjam/layouts/main.html" %}
{% load i18n %}
{% block title %}
{% trans 'Donate' %}
{% endblock %}
{% block page-content %}
<section class="container my-4">
<h1>Donate to the Seychelles Legal Information Institute</h1>
<p>
Donate to the Seychelles Legal Information Institute (SEYLII) and support our work to providing free and anonymous access to case law, legislation and secondary legal materials from the Seychelles. SeyLII is an independent, self-funded organisation and needs your support. Your contribution will make a real difference and help us bring to life various of our projects for 2022-2025. (<a href="{% url 'document_detail' 'akn/sc/doc/strategic-plan/2022-10-31/seylii-strategic-plan/eng@2022-10-31' %}">Link to our strategic plan</a>)
</p>
<p>If you would like to make a cash donation please see our banking details below:</p>
<p>
Account name: <strong>SEYLII ASSOCIATION OF SEYCHELLES</strong>
</p>
<p>
Bank name: <strong>The Mauritius Commercial Bank (Seychelles) Ltd</strong>
</p>
<p>
Bank Address: <strong>P.O Box 122 - Main Branch, Caravelle House, Manglier Street, Victoria, Mahe, Republic of Seychelles +2 48 428 4555 F: +248 432 2676</strong>
</p>
<p>
Account number: <strong>00000426814</strong>
</p>
<p>
BRN: <strong>A431282</strong>
</p>
<p>
SWIFT: <strong>MCBLSCSC</strong>
</p>
<p>
If you wish to donate to a specific project, to donate in kind or to learn how you may assist us in other ways please do not hesitate to contact us via email on <a href="mailto:[email protected]">[email protected]</a> for more information.
</p>
</section>
{% endblock %}
8 changes: 8 additions & 0 deletions seylii/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from django.urls import include, path

from seylii.views import DonatePageView

urlpatterns = [
path("donate/", DonatePageView.as_view(), name="donate"),
path("", include("liiweb.urls")),
]
5 changes: 5 additions & 0 deletions seylii/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.views.generic import TemplateView


class DonatePageView(TemplateView):
template_name = "seylii/donate.html"

0 comments on commit 95231fb

Please sign in to comment.