Add logo and rename
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Project Notes</title>
|
||||
<title>PersoNotes</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
@ -21,15 +21,19 @@
|
||||
<script src="/frontend/src/font-manager.js"></script>
|
||||
<script src="/frontend/src/vim-mode-manager.js"></script>
|
||||
<script src="/frontend/src/favorites.js"></script>
|
||||
<script src="/frontend/src/sidebar-sections.js"></script>
|
||||
<script src="/frontend/src/keyboard-shortcuts.js"></script>
|
||||
<script type="module" src="/static/dist/project-notes-frontend.es.js"></script>
|
||||
<script type="module" src="/static/dist/personotes-frontend.es.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<button id="toggle-sidebar-btn" title="Afficher/Masquer la barre latérale (Ctrl/Cmd+B)" style="background: none; border: none; padding: 0; margin-right: 1rem; cursor: pointer; color: var(--text-primary); display: flex; align-items: center;">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>
|
||||
</button>
|
||||
<h1>📝 Project Notes</h1>
|
||||
<div style="display: flex; align-items: center; gap: 0.75rem;">
|
||||
<img src="/static/images/logo.svg" alt="Logo" style="width: 40px; height: 40px;">
|
||||
<h1 style="margin: 0;">PersoNotes</h1>
|
||||
</div>
|
||||
<input
|
||||
type="search"
|
||||
name="query"
|
||||
@ -44,6 +48,7 @@
|
||||
hx-get="/api/home"
|
||||
hx-target="#editor-container"
|
||||
hx-swap="innerHTML"
|
||||
hx-push-url="true"
|
||||
style="white-space: nowrap;"
|
||||
title="Retour à la page d'accueil (Ctrl/Cmd+H)">
|
||||
🏠 Accueil
|
||||
@ -52,6 +57,7 @@
|
||||
hx-get="/api/daily/today"
|
||||
hx-target="#editor-container"
|
||||
hx-swap="innerHTML"
|
||||
hx-push-url="true"
|
||||
style="white-space: nowrap;"
|
||||
title="Note du jour (Ctrl/Cmd+D)">
|
||||
📅 Note du jour
|
||||
@ -478,13 +484,18 @@
|
||||
<hr>
|
||||
|
||||
<section>
|
||||
<h2 class="sidebar-section-title">⭐ Favoris</h2>
|
||||
<div id="favorites-list"
|
||||
hx-get="/api/favorites"
|
||||
hx-trigger="load"
|
||||
hx-swap="innerHTML">
|
||||
<!-- Les favoris apparaîtront ici -->
|
||||
<p style="color: var(--text-muted); font-size: 0.85rem; text-align: center;">Chargement...</p>
|
||||
<div class="sidebar-section-header" data-section="favorites" onclick="toggleSidebarSection('favorites', event)" style="cursor: pointer; display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0;">
|
||||
<span class="section-toggle expanded">▶</span>
|
||||
<h2 class="sidebar-section-title" style="margin: 0; flex: 1;">⭐ Favoris</h2>
|
||||
</div>
|
||||
<div class="sidebar-section-content" id="favorites-content" style="display: block;">
|
||||
<div id="favorites-list"
|
||||
hx-get="/api/favorites"
|
||||
hx-trigger="load once delay:100ms"
|
||||
hx-swap="innerHTML">
|
||||
<!-- Les favoris apparaîtront ici -->
|
||||
<p style="color: var(--text-muted); font-size: 0.85rem; text-align: center;">Chargement...</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@ -494,7 +505,7 @@
|
||||
<h2 class="sidebar-section-title">📅 Daily Notes</h2>
|
||||
<div id="daily-calendar-container"
|
||||
hx-get="/api/daily/calendar/{{.Now.Format "2006/01"}}"
|
||||
hx-trigger="load"
|
||||
hx-trigger="load once delay:150ms"
|
||||
hx-swap="innerHTML">
|
||||
<!-- Le calendrier apparaîtra ici -->
|
||||
<p style="color: var(--text-muted); font-size: 0.85rem; text-align: center;">Chargement...</p>
|
||||
@ -503,7 +514,7 @@
|
||||
<h3 style="font-size: 0.8rem; margin-top: var(--spacing-md); margin-bottom: var(--spacing-sm); color: var(--text-secondary);">Récentes</h3>
|
||||
<div id="daily-recent-container"
|
||||
hx-get="/api/daily/recent"
|
||||
hx-trigger="load"
|
||||
hx-trigger="load once delay:200ms"
|
||||
hx-swap="innerHTML">
|
||||
<!-- Les notes récentes apparaîtront ici -->
|
||||
</div>
|
||||
@ -521,7 +532,7 @@
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div id="file-tree" hx-get="/api/tree" hx-trigger="load" hx-swap="innerHTML">
|
||||
<div id="file-tree" hx-get="/api/tree" hx-trigger="load once delay:250ms" hx-swap="innerHTML">
|
||||
<!-- L'arborescence des fichiers apparaîtra ici -->
|
||||
<p style="color: var(--text-muted); font-size: 0.85rem;">Chargement...</p>
|
||||
</div>
|
||||
@ -546,7 +557,7 @@
|
||||
<!-- Bouton À propos -->
|
||||
<button
|
||||
class="sidebar-action-btn"
|
||||
title="À propos de Project Notes"
|
||||
title="À propos de PersoNotes"
|
||||
hx-get="/api/about"
|
||||
hx-target="#editor-container"
|
||||
hx-swap="innerHTML"
|
||||
@ -562,7 +573,7 @@
|
||||
<main id="main-content">
|
||||
<div id="editor-container"
|
||||
hx-get="/api/home"
|
||||
hx-trigger="load"
|
||||
hx-trigger="load once"
|
||||
hx-swap="innerHTML">
|
||||
<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; height: 50vh; text-align: center; color: var(--text-secondary);">
|
||||
<svg style="width: 64px; height: 64px; margin-bottom: 1rem; opacity: 0.5;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
|
||||
Reference in New Issue
Block a user