Skip to content

Commit

Permalink
1508: removed side bar and moved contents next to hero logos
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandravaphilips committed Jan 17, 2024
1 parent 3de69fb commit 98e7d09
Show file tree
Hide file tree
Showing 15 changed files with 35 additions and 157 deletions.
19 changes: 7 additions & 12 deletions eswatinilii/templates/liiweb/home.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{% extends "liiweb/home.html" %}
{% load i18n static %}
{% block hero-logos %}
<div class="d-flex justify-content-between">
<img class="me-4"
src="{% static 'images/africanlii-logo.svg' %}"
alt="africanlii-logo"/>
<img class="me-4"
src="{% static 'images/judiciary_swazi.png' %}"
alt="judiciary-logo"/>
<img src="{% static 'images/laws-africa-logo.png' %}" alt="laws-logo"/>
</div>
<img class="me-4"
src="{% static 'images/africanlii-logo.svg' %}"
alt="africanlii-logo"/>
<img class="me-4"
src="{% static 'images/judiciary_swazi.png' %}"
alt="judiciary-logo"/>
<img src="{% static 'images/laws-africa-logo.png' %}" alt="laws-logo"/>
{% endblock %}
{% block hero-headings %}
<h1 class="mb-4">{% trans 'Welcome to eSwatini Legal Information Institute' %}</h1>
Expand All @@ -20,9 +18,6 @@ <h4 class="mb-4">
</h4>
{% endblock %}
{% block second-col-about %}
<div>
<strong>{% trans 'About' %}</strong>
</div>
<p>
{% blocktrans trimmed %}
ESwatiniLII is a free access to law website by the Judiciary of eSwatini. eSwatiniLII exists to provide free access to the law for everyone, as a fundamental right of every citizen to know the law that governs them.
Expand Down
3 changes: 0 additions & 3 deletions ghalii/templates/liiweb/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ <h4 class="mb-4">
</h4>
{% endblock %}
{% block second-col-about %}
<div>
<strong>{% trans 'About' %}</strong>
</div>
<p>
{% blocktrans trimmed %}
GhaLII is a non-profit organisation based in Accra that publishes digital parliamentary, legislative and judicial information from Ghana and ECOWAS.
Expand Down
41 changes: 0 additions & 41 deletions lawlibrary/templates/lawlibrary/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ <h2 class="mb-4 heading-underlined">{% trans 'Recent Legislation' %}</h2>
</section>
{% endblock %}
{% block second-column-content %}
<div>
<strong>{% trans 'About' %}</strong>
</div>
<p>
{% blocktrans trimmed %}
LawLibrary.org.za is a project of the AfricanLII and Judicial Institute for Africa at the University of Cape Town.
Expand All @@ -47,44 +44,6 @@ <h2 class="mb-4 heading-underlined">{% trans 'Recent Legislation' %}</h2>
{% include 'peachjam/_social_media.html' %}
{% endblock %}
{% endif %}
<ul class="nav nav-tabs about-tabs d-flex justify-content-center justify-content-lg-start"
role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link fb-nav-link"
id="facebook-tab"
data-bs-toggle="tab"
data-bs-target="#facebook-tab-content"
type="button"
role="tab"
aria-controls="facebook"
aria-selected="false">
<i class="bi bi bi-facebook facebook-forecolor"></i>
<span class="facebook-forecolor">{% trans 'Facebook' %}</span>
</button>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade"
id="facebook-tab-content"
role="tabpanel"
aria-labelledby="facebook-tab-content">
<div class="d-flex justify-content-center justify-content-lg-start">
<iframe width="248px"
height="400px"
frameborder="0"
allowtransparency="true"
allowfullscreen="true"
scrolling="no"
allow="encrypted-media"
src="https://www.facebook.com/v7.0/plugins/page.php?adapt_container_width=true&amp;app_id=323754998056442&amp;channel=https%3A%2F%2Fstaticxx.facebook.com%2Fx%2Fconnect%2Fxd_arbiter%2F%3Fversion%3D46%23cb%3Dfff64532b89928%26domain%3Dlawlibrary.org.za%26is_canvas%3Dfalse%26origin%3Dhttps%253A%252F%252Flawlibrary.org.za%252Ff3480a77dff53bc%26relation%3Dparent.parent&amp;container_width=248&amp;height=400&amp;hide_cover=false&amp;href=https%3A%2F%2Fwww.facebook.com%2Fafricanlii%2F&amp;locale=en_US&amp;sdk=joey&amp;show_facepile=false&amp;small_header=true&amp;tabs=timeline&amp;width=248"
style="border: none;
visibility: visible;
width: 248px;
height: 400px">
</iframe>
</div>
</div>
</div>
{% endblock %}
{% block pocketlaw %}
{{ block.super }}
Expand Down
3 changes: 0 additions & 3 deletions lesotholii/templates/liiweb/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ <h4 class="mb-4">
</h4>
{% endblock %}
{% block second-col-about %}
<div>
<strong>{% trans 'About' %}</strong>
</div>
<p>
{% blocktrans trimmed %}
LesLII's mission is to publish the laws of Lesotho for free access to everyone. LesLII is supported by the Judiciary of Lesotho, the Law Office, the Law Society, and other justice sector stakeholders.
Expand Down
96 changes: 28 additions & 68 deletions liiweb/templates/liiweb/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,32 +50,8 @@
{% block after-search %}{% endblock %}
<section class="mt-2">
<div class="container">
<div class="row justify-content-center hero-logos mt-5 mb-3">
{% block hero-logos %}
<img src="{% static 'images/africanlii-logo.svg' %}" alt="AfricanLII"/>
<img src="{% static 'images/laws-africa-logo.png' %}" alt="Laws.Africa"/>
{% endblock %}
</div>
</div>
</section>
<section class="py-5">
<div class="container">
<div class="row">
<div class="col-12 col-lg-9">
{% block first-column-content %}
<section class="pb-3 pt-3">
<h2 class="mb-4 heading-underlined">{% trans 'Recent Judgments' %}</h2>
{% trans 'View more judgments' as text %}
{% include 'peachjam/_recent_document_list.html' with documents=recent_judgments view_more_text=text view_more_url_name='judgment_list' %}
</section>
<section class="pb-3 pt-3">
<h2 class="mb-4 heading-underlined">{% trans 'Recent Legislation' %}</h2>
{% trans 'View more legislation' as text %}
{% include 'peachjam/_recent_document_list.html' with documents=recent_legislation view_more_text=text view_more_url_name='legislation_list' %}
</section>
{% endblock %}
</div>
<div class="col-12 col-lg-3">
<div class="row justify-content-between align-items-center mt-5 mb-3">
<div class="col-12 col-lg-6">
{% block second-column-content %}
{% block second-col-about %}{% endblock %}
{% block second-col-logos %}{% endblock %}
Expand All @@ -84,50 +60,34 @@ <h2 class="mb-4 heading-underlined">{% trans 'Recent Legislation' %}</h2>
{% include 'peachjam/_social_media.html' %}
{% endblock %}
{% endif %}
<ul class="nav nav-tabs about-tabs d-flex justify-content-center justify-content-lg-start"
role="tablist">
{% block facebook-tab %}
<li class="nav-item" role="presentation">
<button class="nav-link fb-nav-link"
id="facebook-tab"
data-bs-toggle="tab"
data-bs-target="#facebook-tab-content"
type="button"
role="tab"
aria-controls="facebook"
aria-selected="false">
<i class="bi bi-facebook facebook-forecolor"></i>
<span class="facebook-forecolor">{% trans 'Facebook' %}</span>
</button>
</li>
{% endblock %}
</ul>
<div class="tab-content">
{% block facebook-pane %}
<div class="tab-pane fade"
id="facebook-tab-content"
role="tabpanel"
aria-labelledby="facebook-tab-content">
<div class="d-flex justify-content-center justify-content-lg-start">
<iframe width="248px"
height="400px"
frameborder="0"
allowtransparency="true"
allowfullscreen="true"
scrolling="no"
allow="encrypted-media"
src="{% block facebook-url %} https://www.facebook.com/v7.0/plugins/page.php?adapt_container_width=true&amp;app_id=323754998056442&amp;channel=https%3A%2F%2Fstaticxx.facebook.com%2Fx%2Fconnect%2Fxd_arbiter%2F%3Fversion%3D46%23cb%3Dfff64532b89928%26domain%3Dlawlibrary.org.za%26is_canvas%3Dfalse%26origin%3Dhttps%253A%252F%252Flawlibrary.org.za%252Ff3480a77dff53bc%26relation%3Dparent.parent&amp;container_width=248&amp;height=400&amp;hide_cover=false&amp;href=https%3A%2F%2Fwww.facebook.com%2Fafricanlii%2F&amp;locale=en_US&amp;sdk=joey&amp;show_facepile=false&amp;small_header=true&amp;tabs=timeline&amp;width=248 {% endblock %}"
style="border: none;
visibility: visible;
width: 248px;
height: 400px">
</iframe>
</div>
</div>
{% endblock %}
</div>
{% endblock %}
</div>
<div class="col-12 col-lg-6">
<div class="hero-logos row justify-content-end">
{% block hero-logos %}
<img src="{% static 'images/africanlii-logo.svg' %}" alt="AfricanLII"/>
<img src="{% static 'images/laws-africa-logo.png' %}" alt="Laws.Africa"/>
{% endblock %}
</div>
</div>
</div>
</div>
</section>
<section class="py-5">
<div class="container">
<div>
{% block first-column-content %}
<section class="pb-3 pt-3">
<h2 class="mb-4 heading-underlined">{% trans 'Recent Judgments' %}</h2>
{% trans 'View more judgments' as text %}
{% include 'peachjam/_recent_document_list.html' with documents=recent_judgments view_more_text=text view_more_url_name='judgment_list' %}
</section>
<section class="pb-3 pt-3">
<h2 class="mb-4 heading-underlined">{% trans 'Recent Legislation' %}</h2>
{% trans 'View more legislation' as text %}
{% include 'peachjam/_recent_document_list.html' with documents=recent_legislation view_more_text=text view_more_url_name='legislation_list' %}
</section>
{% endblock %}
</div>
<div>
{% block lower-row-content %}
Expand Down
3 changes: 0 additions & 3 deletions malawilii/templates/liiweb/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ <h4 class="mb-4">
</h4>
{% endblock %}
{% block second-col-about %}
<div>
<strong>{% trans 'About' %}</strong>
</div>
<p>
{% blocktrans trimmed %}
The Malawi Legal Information Institute (MalawiLII) was launched in 2009 as an online resource that provides free access to the laws of Malawi.
Expand Down
3 changes: 0 additions & 3 deletions namiblii/templates/liiweb/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ <h4 class="mb-4">
</h4>
{% endblock %}
{% block second-col-about %}
<div>
<strong>{% trans 'About' %}</strong>
</div>
<p>
{% blocktrans trimmed %}
NamibLII is a project of the Law Reform and Development Commission and a member of the global Free Access to Law Movement and the AfricanLII community.
Expand Down
3 changes: 0 additions & 3 deletions seylii/templates/liiweb/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ <h4 class="mb-4">
{% include 'liiweb/_donate_call_to_action.html' %}
{% endblock %}
{% block second-col-about %}
<div>
<strong>{% trans 'About' %}</strong>
</div>
<p>
{% blocktrans trimmed %}
The Seychelles Legal Information Institute (SeyLII) is an independent association offering free access to case law, legislation, and secondary legal materials from Seychelles.
Expand Down
3 changes: 0 additions & 3 deletions sierralii/templates/liiweb/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ <h4 class="mb-4">
</h4>
{% endblock %}
{% block second-col-about %}
<div>
<strong>{% trans 'About' %}</strong>
</div>
<p>
{% blocktrans trimmed %}
SierraLII provides free, unrestricted access to the primary and secondary legal materials of Sierra Leone. Free Access to Law supports the rule of law, access to justice and transparency.
Expand Down
3 changes: 0 additions & 3 deletions tanzlii/templates/liiweb/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ <h4 class="mb-4">
</h4>
{% endblock %}
{% block second-col-about %}
<div>
<strong>{% trans 'About' %}</strong>
</div>
<p>
{% blocktrans trimmed %}
TanzLII is a project of the Tanzanian Judiciary.
Expand Down
3 changes: 0 additions & 3 deletions tcilii/templates/liiweb/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ <h4 class="mb-4">
</h4>
{% endblock %}
{% block second-col-about %}
<div>
<strong>{% trans 'About' %}</strong>
</div>
<p>
{% blocktrans trimmed %}
TCILII is a website of the Judiciary of the Turks and Caicos Islands.
Expand Down
3 changes: 0 additions & 3 deletions ulii/templates/liiweb/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ <h4 class="mb-4">
</h4>
{% endblock %}
{% block second-col-about %}
<div>
<strong>{% trans 'About' %}</strong>
</div>
<p>
{% blocktrans trimmed %}
ULII publishes the laws of Uganda for free online access. ULII is part of the Law Reporting Committee of the Judiciary of Uganda.
Expand Down
3 changes: 0 additions & 3 deletions zambialii/templates/liiweb/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ <h4 class="mb-4">
</h4>
{% endblock %}
{% block second-col-about %}
<div>
<strong>{% trans 'About' %}</strong>
</div>
<p>
{% blocktrans trimmed %}
ZambiaLII is a reliable and timely source of judicial decisions, legislation, and statutory instruments.
Expand Down
3 changes: 0 additions & 3 deletions zanzibarlii/templates/liiweb/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ <h4 class="mb-4">
</h4>
{% endblock %}
{% block second-col-about %}
<div>
<strong>{% trans 'About' %}</strong>
</div>
<p>
{% blocktrans trimmed %}
ZanzibarLII is developed under the auspices of the Judiciary of Zanzibar and publishes the law of Zanzibar for free online access to all. ZanzibarLII promotes the rule of law and access to justice in Zanzibar.
Expand Down
3 changes: 0 additions & 3 deletions zimlii/templates/liiweb/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ <h4 class="mb-4">
</h4>
{% endblock %}
{% block second-col-about %}
<div>
<strong>{% trans 'About' %}</strong>
</div>
<p>
{% blocktrans trimmed %}
The Zimbabwe Legal Information Institute (ZimLII) provides free, full and anonymous access to Zimbabwe caselaw, legislation and legal books and journals.
Expand Down

0 comments on commit 98e7d09

Please sign in to comment.