timetracker/frontend/src/components/Nav.jsx

70 lines
2.0 KiB
React
Raw Normal View History

2023-01-25 11:56:32 +00:00
function Nav() {
return (
<nav className="mb-4 bg-white dark:bg-gray-900 border-gray-200 rounded">
<div className="container flex flex-wrap items-center justify-between mx-auto">
2023-01-25 12:31:05 +00:00
<a
href="{% url 'index' %}"
className="flex items-center"
>
2023-01-25 11:56:32 +00:00
<span className="text-4xl"></span>
<span className="self-center text-xl font-semibold whitespace-nowrap text-white">
Timetracker
</span>
</a>
<div className="w-full md:block md:w-auto">
<ul className="flex flex-col md:flex-row p-4 mt-4 dark:text-white">
<li>
<a
className="block py-2 pl-3 pr-4 hover:underline"
href="{% url 'add_game' %}"
>
New Game
</a>
</li>
<li>
<a
className="block py-2 pl-3 pr-4 hover:underline"
href="{% url 'add_platform' %}"
>
New Platform
</a>
</li>
{/* {% if game_available and platform_available %} */}
<li>
<a
className="block py-2 pl-3 pr-4 hover:underline"
href="{% url 'add_purchase' %}"
>
New Purchase
</a>
</li>
{/* {% endif %} */}
{/* {% if purchase_available %} */}
<li>
<a
className="block py-2 pl-3 pr-4 hover:underline"
href="{% url 'add_session' %}"
>
New Session
</a>
</li>
{/* {% endif %} */}
{/* {% if session_count > 0 %} */}
<li>
<a
className="block py-2 pl-3 pr-4 hover:underline"
href="{% url 'list_sessions' %}"
>
All Sessions
</a>
</li>
{/* {% endif %} */}
</ul>
</div>
</div>
</nav>
);
}
2023-01-25 12:31:05 +00:00
export default Nav;