Skip to content

Commit

Permalink
feat(admin): first pass @ login page style, title override
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda committed Sep 18, 2024
1 parent b634e55 commit 3a11806
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions benefits/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ def index(self, request, extra_context=None):
)

return TemplateResponse(request, "admin/agency-dashboard-index.html", context)


BenefitsAdminSite.site_header = "Administrator"
BenefitsAdminSite.site_title = "Cal-ITP Benefits - Administrator"
28 changes: 28 additions & 0 deletions benefits/templates/admin/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{% extends "admin/login.html" %}
{% load i18n static %}

{% block dark-mode-vars %}
{% endblock dark-mode-vars %}

{% block extrastyle %}
<link href="{% static "img/favicon.ico" %}" rel="icon" type="image/x-icon" />
<script nonce="{{ request.csp_nonce }}"
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"
integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ="
crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous">
<link href="{% static "css/admin/styles.css" %}" rel="stylesheet">
{% endblock extrastyle %}

{% block branding %}
<div class="d-flex justify-content-center w-100 bg-primary">
<img class="my-3" src="{% static "img/logo-lg.svg" %}" width="220" height="50" alt="California Integrated Travel Project: Benefits logo (large)" />
</div>

<div id="site-name">
<h1 class="text-center text-white fs-3 py-3 m-0">{{ site_header }}</h1>
</div>
{% endblock branding %}

0 comments on commit 3a11806

Please sign in to comment.