-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CONCD-650 A few more mostly small tweaks (#2255)
* CONCD-650 going to try moving the guide outside of the editor column * CONCD-650 adjusting the vertical positioning of the guide * CONCD-650 additional padding between the About this Campaign sections * CONCD-650 fixed a bug where the external link symbol was being displayed next to loc.gov links * CONCD-650 reduced font of Helpful Links * CONCD-650 Change title to 'How-To Guide' * CONCD-650 fixed an issue where css was having unintended consequences * CONCD-650 trying to fix an issue where the modal cannot be interacted with, unless there is at least one guide object * CONCD-650 center name in the title bar vertically * CONCD-650 center X vertically * CONCD-650 trying to make the 'x' consistent across guide sections
- Loading branch information
Showing
4 changed files
with
107 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<div class="carousel carousel-fade sidebar" id="guide-carousel" data-interval="false"> | ||
<div class="carousel-inner"> | ||
<div class="carousel-item active" id="guide-nav"> | ||
<ul class="nav flex-column"> | ||
<li id="title-bar" class="nav-item bg-primary text-white px-3 py-1"> | ||
<a>How-To Guide</a> | ||
<button type="button" class="close text-white py-2" onclick="closeOffcanvas()"> | ||
<span class="fas fa-times"></span> | ||
</button> | ||
</li> | ||
<li class="nav-item toc-title"> | ||
<a class="nav-link" data-target="#guide-carousel" data-slide-to="1" href="#">About this Campaign</a> | ||
</li> | ||
{% for guide in guides %} | ||
<li class="nav-item toc-title"> | ||
<a data-target="#guide-carousel" data-slide-to="{{ forloop.counter|add:1 }}" class="nav-link" href="#pane-{{ forloop.counter }}"> | ||
{{ guide.title }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<div class="carousel-item container"> | ||
<div class="bg-primary px-2 py-1 row text-white"> | ||
<a data-target="#guide-carousel" data-slide-to="0" class="text-white" href=""> | ||
<i class="fas fa-solid fa-bars py-2"></i> | ||
</a> | ||
<h3 class="px-2 my-1">How-To Guide</h3> | ||
<button id="close-guide" type="button" class="close text-white" onclick="closeOffcanvas()"> | ||
<span class="fas fa-times"></span> | ||
</button> | ||
</div> | ||
<div class="border-bottom justify-content-center mb-3 py-1 row"> | ||
<h3>About this Campaign</h3> | ||
<a class="font-weight-bold ml-3" id="next-guide" href="#guide-carousel" data-slide="next">></a> | ||
</div> | ||
{% if campaign.description %} | ||
<h4>About this campaign</h4> | ||
<p>{{ campaign.description|safe }}</p> | ||
{% endif %} | ||
{% if asset.item.project.description %} | ||
<h4>About this project</h4> | ||
<p>{{ asset.item.project.description|safe }}</p> | ||
{% endif %} | ||
{% if campaign.resource_set.related_links %} | ||
<h5 class="pt-4">Helpful Links</h5> | ||
<p> | ||
<ul> | ||
{% for resource in campaign.resource_set.related_links %} | ||
<li class="mb-3"> | ||
<a href="{{ resource.resource_url }}" target="_blank" rel=noopener> | ||
{{ resource.title }}{% if 'loc.gov' not in resource.resource_url %} <i class="fa fa-external-link-alt"></i>{% endif %} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</p> | ||
{% endif %} | ||
</div> | ||
{% for guide in guides %} | ||
<div class="carousel-item container" id="pane-{{ forloop.counter }}"> | ||
<div class="bg-primary px-2 py-1 row text-white"> | ||
<a data-target="#guide-carousel" data-slide-to="0"> | ||
<i class="fas fa-solid fa-bars py-2"></i> | ||
</a> | ||
<h3 class="px-2 my-1">How-To Guide</h3> | ||
<button id="close-guide" type="button" class="close text-white" onclick="closeOffcanvas()"> | ||
<span class="fas fa-times"></span> | ||
</button> | ||
</div> | ||
<div class="border-bottom justify-content-center mb-3 py-1 row"> | ||
<a class="font-weight-bold mr-3" id="previous-guide" href="#guide-carousel" data-slide="prev"><</a> | ||
<h3>{{ guide.title }}</h3> | ||
{% if not forloop.last %} | ||
<a class="font-weight-bold ml-3" id="next-guide" href="#guide-carousel" data-slide="next">></a> | ||
{% endif %} | ||
</div> | ||
{{ guide.body|safe }} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters