Modified files
tailwind.config.js
---
+++
@@ -2,7 +2,11 @@
module.exports = {
content: ["./templates/**/*.html"],
theme: {
- extend: {},
+ extend: {
+ boxShadow: {
+ underline: "inset 0 -2px 0 0"
+ }
+ },
},
plugins: [],
}
templates/app/base.html
---
+++
@@ -13,18 +13,18 @@
<body>
<nav class="px-10 py-4 border-b border-gray-300 shadow-md">
<div class="flex justify-end items-center gap-6 max-w-7x mx-auto">
- {% if user.is_authenticated %}
- <a class="button primary" href="{% url 'create_article' %}">Create new</a>
- <a class="" href="{% url 'home' %}">Articles</a>
- <a class="" href="{% url 'account_email' %}">Change email</a>
- <form method="POST" action="{% url 'account_logout' %}">
- {% csrf_token %}
- <button type="submit">Log out</button>
- </form>
- {% else %}
- <a class="button secondary text-sm" href="{% url 'account_login' %}">Log in</a>
- <a class="button primary text-sm" href="{% url 'account_signup' %}">Sign up</a>
- {% endif %}
+ {% if user.is_authenticated %}
+ <a class="button primary" href="{% url 'account_signup' %}">Create new</a>
+ <a class="hover:shadow-underline hover:shadow-gray-300" href="{% url 'home' %}">Articles</a>
+ <a class="hover:shadow-underline hover:shadow-gray-300" href="{% url 'account_email' %}">Change email</a>
+ <form method="POST" action="{% url 'account_logout' %}">
+ {% csrf_token %}
+ <button class="hover:shadow-underline hover:shadow-gray-300" type="submit">Log out</button>
+ </form>
+ {% else %}
+ <a class="button secondary text-sm" href="{% url 'account_login' %}">Log in</a>
+ <a class="button primary text-sm" href="{% url 'account_signup' %}">Sign up</a>
+ {% endif %}
</div>
</nav>
{% block content %}