Files
pkm/app/templates/home.html
2025-08-18 20:14:56 +02:00

30 lines
1.2 KiB
HTML

{% extends "base.html" %}
{% block title %}PKM — Welcome{% endblock %}
{% block content %}
<div class="card bg-base-100 shadow">
<div class="card-body">
<h2 class="card-title">Welcome</h2>
{% if has_vault %}
<p>Your vault path is configured:</p>
<code class="kbd kbd-sm">{{ vault_path }}</code>
<div class="mt-3">
<a href="{{ notes_url }}" class="btn btn-primary btn-sm">Open Notes</a>
<a href="{{ url_for('notes.notes_new') }}" class="btn btn-outline btn-sm ml-2">New Note</a>
</div>
<p class="mt-4">You're ready to proceed with indexing and note features in the next milestones.</p>
{% else %}
<div class="alert alert-warning">
<span>No vault path configured.</span>
</div>
<p class="mt-2">
Set KB_VAULT_PATH in your environment or run via the CLI with
<span class="kbd kbd-sm">pkm run --vault /path/to/vault</span>
</p>
{% endif %}
<div class="divider"></div>
<p class="text-sm opacity-70">
Tailwind + DaisyUI is active. Try switching theme in the navbar.
</p>
</div>
</div>
{% endblock %}