Skip to content

Commit

Permalink
Branding done, need to bootstrap and make it consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
ineshbose committed Dec 22, 2021
1 parent ab3aa77 commit 67bb5b3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/portion_mate/settings.py
Expand Up @@ -60,7 +60,7 @@
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [],
"DIRS": ["templates"],
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
Expand Down
20 changes: 20 additions & 0 deletions src/backend/templates/admin/base_site.html
@@ -0,0 +1,20 @@
{% extends 'admin/base.html' %}

{% block extrastyle %}
{{ block.super }}
<style>
:root {
--primary: #fd7e14;
--secondary: #ac560e;
}
</style>
{% endblock %}

{% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ title }} | Portion Mate Django Admin{% endblock %}

{% block branding %}
<h1 id="site-name"><a href="{% url 'admin:index' %}" style="color:#ffffff;">
<img src="https://portion-mate-glasgow.readthedocs.io/en/latest/assets/logo.png" width="30" height="30" style="display: inline-block!important;" alt="">
Portion Mate
</a></h1>
{% endblock %}
10 changes: 10 additions & 0 deletions src/backend/templates/rest_framework/api.html
@@ -0,0 +1,10 @@
{% extends "rest_framework/base.html" %}

{% block title %}{% if name %}{{ name }} | {% endif %}Portion Mate API{% endblock %}

{% block branding %}
<a class='navbar-brand' rel="nofollow" href='#'>
<img src="https://portion-mate-glasgow.readthedocs.io/en/latest/assets/logo.png" width="30" height="30" style="display: inline-block!important;" alt="">
Portion Mate
</a>
{% endblock %}

0 comments on commit 67bb5b3

Please sign in to comment.