retouche des redirections de page

This commit is contained in:
ben
2025-12-11 16:11:20 +01:00
parent 5b0edbccca
commit 74a04ea355
9 changed files with 21 additions and 19 deletions

View File

@@ -7,22 +7,14 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">
<script src="https://cdn.ckeditor.com/ckeditor5/39.0.1/classic/ckeditor.js"></script>
<script src="https://cdn.ckeditor.com/ckeditor5/39.0.1/classic/translations/fr.js"></script>
<link rel="stylesheet" href="../../css/blog.css">
<style>
body {
background: #f4f6f9;
}
.container {
margin: 40px auto;
}
.ck-editor__editable {
min-height: 350px;
}
</style>
</head>
<body>
@@ -144,7 +136,7 @@
<!--Boutons-->
<div class="d-flex gap-3 mt-4">
<a href="../html/liste_categorie_article.html" class="btn btn-secondary w-50">Annuler</a>
<a href="../html/accueil_blog.html" class="btn btn-secondary w-50">Annuler</a>
<button type="submit" class="btn btn-primary w-50">Ajouter</button>
</div>

View File

@@ -97,7 +97,7 @@
</div>
<div class="d-flex gap-3 mt-4">
<a href="../html/liste_categorie_article.html" class="btn btn-secondary w-50">Annuler</a>
<a href="../html/accueil_blog.html" class="btn btn-secondary w-50">Annuler</a>
<button type="submit" class="btn btn-primary w-50">Ajouter</button>
</div>
</form>

View File

@@ -157,7 +157,7 @@
<!--Boutons-->
<div class="d-flex gap-3 mt-4">
<a href="../../blog/html/liste_categorie_article.html" class="btn btn-secondary w-50">Annuler</a>
<a href="../../blog/html/accueil_blog.html" class="btn btn-secondary w-50">Annuler</a>
<button type="submit" class="btn btn-primary w-50">Enregistrer</button>
</div>

View File

@@ -95,7 +95,7 @@
</div>
<div class="d-flex gap-3 mt-4">
<a href="../html/liste_categorie_article.html" class="btn btn-secondary w-50">Annuler</a>
<a href="../html/accueil_blog.html" class="btn btn-secondary w-50">Annuler</a>
<button type="submit" class="btn btn-primary w-50">Enregistrer</button>
</div>

View File

@@ -40,7 +40,7 @@ existingCategories.push(nom);
// Redirection après 1 seconde
setTimeout(() => {
window.location.href = "../html/liste_categorie_article.html";
window.location.href = "../html/accueil_blog.html";
}, 1000);

View File

@@ -55,6 +55,6 @@ form.addEventListener("submit", function (e) {
// Redirection après succès
setTimeout(() => {
window.location.href = "../../blog/html/liste_categorie_article.html";
window.location.href = "../../blog/html/accueil_blog.html";
}, 1500);
});

View File

@@ -21,6 +21,6 @@ form.addEventListener("submit", function (e) {
// Redirection après succès
setTimeout(() => {
window.location.href = "../html/liste_categorie_article.html";
window.location.href = "../html/accueil_blog.html";
}, 1500);
});

11
css/blog.css Normal file
View File

@@ -0,0 +1,11 @@
body {
background: #f4f6f9;
}
.container {
margin: 40px auto;
}
.ck-editor__editable {
min-height: 350px;
}

3
package-lock.json generated
View File

@@ -76,8 +76,7 @@
"node_modules/scheduler": {
"version": "0.27.0",
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
"integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
"peer": true
"integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="
},
"node_modules/tinymce": {
"version": "8.2.2",