2023-01-25 16:49:57 +00:00
|
|
|
import { Link } from 'react-router-dom';
|
|
|
|
|
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 16:49:57 +00:00
|
|
|
<Link
|
|
|
|
to="/"
|
2023-01-25 12:31:05 +00:00
|
|
|
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>
|
2023-01-25 16:49:57 +00:00
|
|
|
</Link>
|
2023-01-25 11:56:32 +00:00
|
|
|
<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>
|
2023-01-25 16:49:57 +00:00
|
|
|
<Link
|
2023-01-25 11:56:32 +00:00
|
|
|
className="block py-2 pl-3 pr-4 hover:underline"
|
2023-01-25 16:49:57 +00:00
|
|
|
to="/sessions"
|
2023-01-25 11:56:32 +00:00
|
|
|
>
|
|
|
|
All Sessions
|
2023-01-25 16:49:57 +00:00
|
|
|
</Link>
|
2023-01-25 11:56:32 +00:00
|
|
|
</li>
|
|
|
|
{/* {% endif %} */}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2023-01-25 12:31:05 +00:00
|
|
|
export default Nav;
|