mirror of
https://forge.chapril.org/tykayn/book_generator
synced 2025-06-20 01:34:43 +02:00
⚡ - sauvegarde automatique de l'avancement du livre
This commit is contained in:
parent
de532abbb7
commit
375fbb3a7a
1814 changed files with 334236 additions and 0 deletions
58
templates/index.html
Normal file
58
templates/index.html
Normal file
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Éditeur de Livre</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="{{ url_for('static', filename='css/style.css') }}" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="theme-switch">
|
||||
<div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" id="theme-switch">
|
||||
<label class="form-check-label" for="theme-switch">Thème sombre</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<!-- Sidebar -->
|
||||
<div class="col-md-2 sidebar">
|
||||
<h4>Statistiques</h4>
|
||||
<div class="word-count">
|
||||
<h5>Mots aujourd'hui</h5>
|
||||
<p id="words-today" class="h3">{{ words_today }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Main content -->
|
||||
<div class="col-md-5 editor">
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h2>Éditeur de Livre</h2>
|
||||
<button id="update-btn" class="btn btn-primary">Mettre à jour</button>
|
||||
</div>
|
||||
<textarea id="editor-content">{{ content }}</textarea>
|
||||
</div>
|
||||
|
||||
<!-- Preview panel -->
|
||||
<div class="col-md-5 preview-panel">
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h2>Prévisualisation</h2>
|
||||
<div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" id="auto-preview" checked>
|
||||
<label class="form-check-label" for="auto-preview">Mise à jour automatique</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="preview-content" class="preview-content"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue