Skip to content

Commit

Permalink
Merge pull request #8260 from cfpb/tccp/illustration
Browse files Browse the repository at this point in the history
TCCP: Landing page illustration (for testing)
  • Loading branch information
chosak authored Mar 21, 2024
2 parents 88b960c + 1259fa5 commit d12eabb
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 26 deletions.
63 changes: 37 additions & 26 deletions cfgov/tccp/jinja2/tccp/landing_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,47 +11,58 @@
<link rel="stylesheet" href="{{ static('apps/tccp/css/main.css') }}">
{% endblock %}

{% block content_intro %}

{% with
value = {
"heading": heading,
"body": (
"We know people use credit cards for many reasons. " ~
"Our database of " ~
(stats.count or "") ~
" cards can help you find ones that are best for you."
),
"image": {
"url": static("apps/tccp/img/explore-credit-cards-hero-lg.png"),
"height": 390,
"width": 940
},
"small_image": {
"url": static("apps/tccp/img/explore-credit-cards-hero-lg.png"),
"height": 390,
"width": 1140
},
"background_color": "#FFE1B9"
},
image = image_passthrough
%}
{% include "v1/includes/molecules/hero.html" with context %}
{% endwith %}

{% endblock content_intro %}

{% block content_main %}

<div class="content_wrapper">
<div class="block block__sub">
<h1>{{ heading }}</h1>
<p class="lead-paragraph">
We know people use credit cards for many reasons.
Our database of {{ stats.count or "" }}
cards can help you find ones that are best for you.
</p>
</div>

<div class="block block__sub">
<div class="block block__sub block__flush-top">
<h2 class="h3">
How is this comparison tool different than others you may have used?
</h2>
<p>
<ul class="m-list m-list__unstyled tool-features">
<li class="m-list_item m-list_item__has-icon">
{{ svg_icon("credit-card-round") }}
<span>
larger pool of cards, likely including banks you’ve never heard of with great rates
</span>
<ul class="m-list">
<li class="m-list_item">
Larger pool of cards, likely including banks you’ve never heard of with great rates
</li>
<li class="m-list_item m-list_item__has-icon">
{{ svg_icon("court-round") }}
<a
href="/data-research/credit-card-data/terms-credit-card-plans-survey/"
>issuers required by law to submit data to us</a>
>Issuers required by law to submit data to us</a>
</li>
<li class="m-list_item m-list_item__has-icon">
{{ svg_icon("disabled-round") }}
<span>
no paid advertising
</span>
No paid advertising
</li>
<li class="m-list_item m-list_item__has-icon">
{{ svg_icon("dollar-round") }}
<span>
card interest is rated, to help you compare
</span>
Card interest is rated, to help you compare
</li>
</ul>
</p>
Expand Down
3 changes: 3 additions & 0 deletions cfgov/tccp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
from rest_framework.renderers import JSONRenderer, TemplateHTMLRenderer
from rest_framework.response import Response

from v1.models.home_page import image_passthrough

from .filter_backend import CardSurveyDataFilterBackend
from .filterset import CardSurveyDataFilterSet
from .forms import LandingPageForm
Expand Down Expand Up @@ -43,6 +45,7 @@ def get(self, request):
"breadcrumb_items": self.breadcrumb_items,
"form": LandingPageForm(),
"stats": CardSurveyData.objects.get_summary_statistics(),
"image_passthrough": image_passthrough,
}
)

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d12eabb

Please sign in to comment.