Added login page

This commit is contained in:
julien
2026-03-09 17:52:51 +01:00
parent 898b4b75c8
commit 2da6bc416b
13 changed files with 754 additions and 25 deletions

View File

@@ -1,20 +1,66 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>{% block title %}Mon Blog{% endblock %}</title>
{# <link rel="stylesheet" href="/css/main.css"> #}
{#
<link rel="stylesheet" href="/css/main.css"> #}
<style>
body {font-family: Arial, sans-serif; margin: 2rem;}
.post {border-bottom: 1px solid #ccc; padding: 1rem 0;}
body {
font-family: Arial, sans-serif;
margin: 2rem;
}
.post {
border-bottom: 1px solid #ccc;
padding: 1rem 0;
}
.admin-actions a,
.admin-actions form {margin-right: .5rem;}
.admin-actions form {
margin-right: .5rem;
}
.btn {
padding: 0.5rem 1rem;
border-radius: 4px;
text-decoration: none;
display: inline-block;
}
.btn-primary {
background: #007bff;
color: white;
border: none;
cursor: pointer;
}
.btn-secondary {
background: #6c757d;
color: white;
border: none;
cursor: pointer;
}
.btn-danger {
background: #dc3545;
color: white;
border: none;
cursor: pointer;
}
.btn-sm {
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
}
</style>
</head>
<body>
{# Header commun #}
{% include 'partials/_header.twig' %}
{% include 'partials/_header.twig' with {'session': _SESSION} %}
{# Zone principale chaque page injecte son contenu #}
<main>
@@ -25,8 +71,9 @@
{% include 'partials/_footer.twig' %}
{# Scripts globaux #}
{# <script src="/js/app.js"></script> #}
{#
<script src="/js/app.js"></script> #}
{% block scripts %}{% endblock %}
</body>
</html>
</html>