diff --git a/cfgov/tccp/jinja2/tccp/landing_page.html b/cfgov/tccp/jinja2/tccp/landing_page.html index ab4818b6ff..40564a2d43 100644 --- a/cfgov/tccp/jinja2/tccp/landing_page.html +++ b/cfgov/tccp/jinja2/tccp/landing_page.html @@ -11,47 +11,58 @@ {% 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 %}
-
-

{{ heading }}

-

- 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. -

-
- -
+

How is this comparison tool different than others you may have used?

-

    -
  • - {{ svg_icon("credit-card-round") }} - - larger pool of cards, likely including banks you’ve never heard of with great rates - +
      +
    • + Larger pool of cards, likely including banks you’ve never heard of with great rates
    • - {{ svg_icon("court-round") }} issuers required by law to submit data to us + >Issuers required by law to submit data to us
    • - {{ svg_icon("disabled-round") }} - - no paid advertising - + No paid advertising
    • - {{ svg_icon("dollar-round") }} - - card interest is rated, to help you compare - + Card interest is rated, to help you compare

    diff --git a/cfgov/tccp/views.py b/cfgov/tccp/views.py index 8273ec4af0..4fbad67ad4 100644 --- a/cfgov/tccp/views.py +++ b/cfgov/tccp/views.py @@ -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 @@ -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, } ) diff --git a/cfgov/unprocessed/apps/tccp/img/explore-credit-cards-hero-lg.png b/cfgov/unprocessed/apps/tccp/img/explore-credit-cards-hero-lg.png new file mode 100644 index 0000000000..de6fee8def Binary files /dev/null and b/cfgov/unprocessed/apps/tccp/img/explore-credit-cards-hero-lg.png differ diff --git a/cfgov/unprocessed/apps/tccp/img/explore-credit-cards-hero-sm.png b/cfgov/unprocessed/apps/tccp/img/explore-credit-cards-hero-sm.png new file mode 100644 index 0000000000..e89f050ead Binary files /dev/null and b/cfgov/unprocessed/apps/tccp/img/explore-credit-cards-hero-sm.png differ